[Samba] Problems with the IdealX scripts

Paul Gienger pgienger at ae-solutions.com
Mon Sep 27 15:46:51 GMT 2004

>oink:/usr/local/sbin # ./smbldap-populate
>Using builtin directory structure
>erreur LDAP: Can't contact master ldap server (IO::Socket::INET: Bad protocol 
>'tcp') at /usr/local/sbin//smbldap_tools.pm line 153.
This sounds like you just configured a Solaris box with the ldapclient 
command.  Edit your /etc/nsswitch.conf file and change
protocols: ldap
back to
protocols: files

If you're not on Solaris, what are the specifics of your environment then?

>I feel like this must be from a typo somewhere but I'm at a loss.  I have 
>followed the instructions in the INSTALL file.  Using smbldap-tools-0.8.5.
>Here are the relevant config files:
>### smb.conf LDAP section ###
>passdb backend = ldapsam:ldap://localhost
>        # ldap filter = (&(objectclass=sambaSamAccount)(uid=%u))
>        ldap admin dn = cn=Manager,dc=borkholder,dc=com
>        ldap suffix = dc=borkholder,dc=com
>        ldap group suffix = ou=Groups
>        ldap user suffix = ou=Users
>        ldap machine suffix = ou=Computers
>        ldap idmap suffix = ou=Users
>        ldap ssl = no
>        add user script = /usr/local/sbin/smbldap-useradd -m "%u"
>        ldap delete dn = No
>        #delete user script = /usr/local/sbin/smbldap-userdel "%u"
>        add machine script = /usr/local/sbin/smbldap-useradd -w "%u"
>        add group script = /usr/local/sbin/smbldap-groupadd -p "%g"
>        #delete group script = /usr/local/sbin/smbldap-groupdel "%g"
>        add user to group script = /usr/local/sbin/smbldap-groupmod -m "%u" 
>        delete user from group script = /usr/local/sbin/smbldap-groupmod -x 
>"%u" "%g"
>        set primary group script = /usr/local/sbin/smbldap-usermod -g "%g" 
>### smbldap.conf without comments ###
>userGecos="Samba User"
>smbpasswd="/usr/bin/smbpasswd"  <--- it is actually not here but I didn't 
>think it mattered since with_smbpasswd is set to 0
>### smbldap_bind.conf ###
>### Proof that I am able to connect to my LDAP server and that nss_ldap works 
>oink:/etc/smbldap-tools # id root
>uid=0(root) gid=0(root) groups=0(root),3(sys),512(admins)
>oink:/etc/smbldap-tools # more /etc/group |grep 512
>Thanks in advance for your help.  Please let me know if there is more info 
>needed to debug this problem.

Paul Gienger                     Office: 701-281-1884
Applied Engineering Inc.         
Information Systems Consultant   Fax:    701-281-1322
URL: www.ae-solutions.com        mailto: pgienger at ae-solutions.com

More information about the samba mailing list