[Samba] Samba+LDAP - so close yet so far :)

Paul Gienger pgienger at ae-solutions.com
Fri Jul 16 12:50:58 GMT 2004


>PSS: You will find my configuration files from this
>how to doc I started: http://150.208.105.24/smbldap-pdc.html
>  
>
I took a look at what you have and there are a couple of issues.

1. You have configured in smbldap tools the machine account container as 
ou=Users, but in smb.conf you have it in ou=Computers.  These should 
match, and also match your user container per bug #674  and #987.
2. You don't have the full configuration for the smbldap tools scripts.  
There are parameters with quotes around them that aren't in there, you 
should have something like this:

add user script = /usr/sbin/smbldap-useradd -a -m "%u"
delete user script = /usr/sbin/smbldap-userdel "%u"
add group script = /usr/sbin/smbldap-groupadd "%g"
delete group script = /usr/sbin/smbldap-groupdel "%g"
add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g"
delete user from group script = /usr/sbin/smbldap-groupmod -x "%u" "%g"
set primary group script = /usr/sbin/smbldap-usermod -g "%g" "%u"
add machine script = /usr/sbin/smbldap-useradd -w "%u"

of course, make sure that your paths line up, this is from my standard 
'sample for mailing to the list' configuration so it's generic.

-- 
Paul Gienger                     Office:		701-281-1884
Applied Engineering Inc.         Cell:			701-306-
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