Gentoo Archives: gentoo-user

From: gentuxx <gentuxx@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] OT? Samba/LDAP Hell
Date: Sun, 30 Jul 2006 19:15:03
Message-Id: 44CD041E.2070001@gmail.com
In Reply to: Re: [gentoo-user] OT? Samba/LDAP Hell by "Michael W. Holdeman"
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Michael W. Holdeman wrote:
5 > On Sunday 30 July 2006 02:14, gentuxx wrote:
6 >> Hi all,
7 >>
8 >> This is slightly off topic for this list, but I thought I might get
9 >> some response from the "braintrust". ;-)
10 >>
11 >> A while back I started to configure samba to work with LDAP. I got as
12 >> far as configuring slapd.conf and entering a "tickler" user. Now, I
13 >> can't connect to any of my samba shares. Looking in the samba logs,
14 >> when the daemon starts, it's still trying to connect to the ldap
15 >> server to get the security.tbd. I've verified /etc/samba/smb.conf,
16 >> /etc/conf.d/samba, and /etc/pam.d/samba and none contain any reference
17 >> to ldap. But something is obviously still telling samba to use ldap.
18 >>
19 >> In an effort to get things working, I started with a *very* basic
20 >> smb.conf, but still no joy. Here's the global section:
21 >>
22 >> [global]
23 >> log file = /var/log/samba/%m.log
24 >> workgroup = HOME
25 >> debug level = 10
26 >> server string = gentoo
27 >>
28 > What version of samba? I am having fits with 3.0.23a, and
29 authentication. I
30 > can't get any shares to authenticate except [public]. Nothing in the logs
31 > really giving a hint either, and not using ldap. I wonder if there is a
32 > problem we have made in gentoo? somewhere, PAM?....
33 >
34
35 I'm using 3.0.22-r3. I tend to use stable for the most part, except a
36 few packages here and there.
37
38 Anyway, here are some errors that I get in /var/log/samba/smbd.log
39 when the service is (re)started:
40
41 Connection to LDAP server failed for the 14 try!
42 [2006/07/29 19:31:46, 0] passdb/secrets.c:fetch_ldap_pw(629)
43 fetch_ldap_pw: neither ldap secret retrieved!
44 [2006/07/29 19:31:46, 0] lib/smbldap.c:smbldap_connect_system(851)
45 ldap_connect_system: Failed to retrieve password from secrets.tdb
46 [2006/07/29 19:31:46, 1] lib/smbldap.c:another_ldap_try(1051)
47 Connection to LDAP server failed for the 15 try!
48 [2006/07/29 19:31:47, 0] passdb/secrets.c:fetch_ldap_pw(629)
49 fetch_ldap_pw: neither ldap secret retrieved!
50 [2006/07/29 19:31:47, 0] lib/smbldap.c:smbldap_connect_system(851)
51 ldap_connect_system: Failed to retrieve password from secrets.tdb
52 [2006/07/29 19:31:47, 0] passdb/pdb_ldap.c:ldapsam_search_one_group(2170)
53 ldapsam_search_one_group: Problem during the LDAP search: LDAP
54 error: (unknown) (Time limit exceeded)
55
56
57 ...So this is how I know samba is looking for an LDAP server (which I
58 don't want it to do).
59
60
61 - --
62 gentux
63 echo "hfouvyyAhnbjm/dpn" | perl -pe 's/(.)/chr(ord($1)-1)/ge'
64
65 gentux's gpg fingerprint ==> 5495 0388 67FF 0B89 1239 D840 4CF0 39E2
66 18D3 4A9E
67 -----BEGIN PGP SIGNATURE-----
68 Version: GnuPG v1.4.4 (GNU/Linux)
69
70 iD8DBQFEzQQdTPA54hjTSp4RAlDEAJ44HjHcMEhxAya1KhnA9wLrE437BgCePplG
71 XRQe44dNQ7trps/KWK+nq/s=
72 =+KaU
73 -----END PGP SIGNATURE-----
74
75 --
76 gentoo-user@g.o mailing list