Andrew Richey
2008-Feb-02 14:47 UTC
[Samba] Linux (specially Fedora 8), issues with ldap and samba services starting up at boot time
Hey guys, For some reason, when I enable smb and nmb to start at boot time... I get error messages in my log.smbd. [2008/02/01 18:47:00, 1] lib/smbldap.c:another_ldap_try(1153) Connection to LDAP server failed for the 1 try! [2008/02/01 18:47:04, 1] lib/smbldap.c:another_ldap_try(1153) Connection to LDAP server failed for the 2 try! From this you'd think that either I hadn't stored the right password (via smbpasswd -w), or the LDAP server is somehow unreachable. But that isn't the case. And when I start both services manually, after boot, everything works great. Was curious if anyone else has run into this problem. Granted, I am a lot more familiar with BSD variants than I am Linux... so I may be missing something obvious. -Andrew
Andrew Richey
2008-Feb-03 16:00 UTC
[Samba] Linux (specially Fedora 8), issues with ldap and samba services starting up at boot time
Hey there, thanks for the response! Here is that same section out of my smb.conf. passdb backend = ldapsam:ldap://example.com:389 ldap admin dn = cn=admin,dc=example,dc=com ldap suffix = ou=samba,dc=example,dc=com ldap user suffix = ou=users ldap machine suffix = ou=computers ldap group suffix = ou=groups The main difference between mine, and your working config, is that I specify port 389 in my passdb backend paramater. Also, my admin dn isn't within the same part of the tree that the samba stuff is in. I have the samba users/machines/groups within ou=samba. Do you think this could cause an issue? BTW, I'm using OpenLDAP. satish patel wrote:> i have face time kind of problem but i got solution in smb.conf > > This is good and working fine > > passdb backend = ldapsam:ldap://example.com > ldap admin dn = cn=Directory Manager > ldap suffix = dc=example,dc=com > ldap user suffix = ou=People > ldap machine suffix = ou=Computers > ldap group suffix = ou=Groups > > This is wrong not working and got same error ldap retry.. > > passdb backend = ldapsam:ldap://example.com > ldap admin dn = cn=Directory Manager > ldap suffix = dc=tulipconnect,dc=com > ldap user suffix = ou=People,dc=example,dc=com > ldap machine suffix = ou=Computers,dc=example,dc=com > ldap group suffix = ou=Groups,dc=example,dc=com > > I am runung is configuration FDS server > > > > > */Andrew Richey <ar2748@columbia.edu>/* wrote: > > Hey guys, > > For some reason, when I enable smb and nmb to start at boot time... I > get error messages in my log.smbd. > > [2008/02/01 18:47:00, 1] lib/smbldap.c:another_ldap_try(1153) > Connection to LDAP server failed for the 1 try! > [2008/02/01 18:47:04, 1] lib/smbldap.c:another_ldap_try(1153) > Connection to LDAP server failed for the 2 try! > > From this you'd think that either I hadn't stored the right password > (via smbpasswd -w), or the LDAP server is somehow unreachable. But > that > isn't the case. And when I start both services manually, after boot, > everything works great. Was curious if anyone else has run into this > problem. Granted, I am a lot more familiar with BSD variants than > I am > Linux... so I may be missing something obvious. > > -Andrew > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba > > > > > $ cat > ~/satish/url.txt > > http://www.linuxbug.org > _____________________________________________________________________________________________________ > > ------------------------------------------------------------------------ > Download prohibited? No problem. CHAT > <http://in.rd.yahoo.com/tagline_webmessenger_1/*http://in.messenger.yahoo.com/webmessengerpromo.php> > from any browser, without download.
Adam Williams
2008-Feb-04 16:53 UTC
[Samba] Linux (specially Fedora 8), issues with ldap and samba services starting up at boot time
paste your smb.conf, maybe you have a typo? Andrew Richey wrote:> Hey guys, > > For some reason, when I enable smb and nmb to start at boot time... I > get error messages in my log.smbd. > > [2008/02/01 18:47:00, 1] lib/smbldap.c:another_ldap_try(1153) > Connection to LDAP server failed for the 1 try! > [2008/02/01 18:47:04, 1] lib/smbldap.c:another_ldap_try(1153) > Connection to LDAP server failed for the 2 try! > > From this you'd think that either I hadn't stored the right password > (via smbpasswd -w), or the LDAP server is somehow unreachable. But > that isn't the case. And when I start both services manually, after > boot, everything works great. Was curious if anyone else has run into > this problem. Granted, I am a lot more familiar with BSD variants > than I am Linux... so I may be missing something obvious. > > -Andrew