[Samba] smbpasswd problem with LDAP

Tom Palmaers tompee at ba.be
Tue Nov 26 08:04:00 GMT 2002


On Mon, Nov 25, 2002 at 05:58:14PM +0100, Marcel Beltz wrote:

> i have a running samba with ldap for user-managment. i guess i had the 
> same problem. can you pipe the output of the following

> ldapsearch -LLL "uid=william"

Here is the output of the command:

nas:~# ldapsearch -x -LLL "uid=william"
dn: cn=william,ou=domain.be,o=domain,c=be
sn: William Stevens
objectClass: top
objectClass: person
objectClass: inetOrgPerson
objectClass: qmailUser
objectClass: sambaAccount
mail: william.steevenss at domain.be
mailAlternateAddress: william at domain.be
mailHost: nas.domain.be
mailMessageStore: /var/qmail/maildirs/william
cn: william
uid: william
pwdLastSet: 1
logonTime: 0
logoffTime: 0
kickoffTime: 0
pwdCanChange: 0
pwdMustChange: 0
displayName: William Steevenss
rid: 500
primaryGroupID: 512
lmPassword: 1
ntPassword: 1
acctFlags: [U          ]

nas:~# 

Also , as many other people told me, I shouldn't do 'smbpasswd -U
william' , but i should do 'smbpasswd william' instead. I did this, but
it gave the same errors...

The ldap stuff in my /etc/samba.conf looks like this:

ldap port = 389
ldap suffix = "ou=domain.be,o=domain,c=be"
ldap filter = (&(cn=%u)(objectclass=sambaAccount))
ldap admin dn = "cn=root,ou=domain.be,o=domain,c=be"
ldap ssl = no

Hope you can help me out with this, cause i had it working before, but
then i changed the uid= tags into cn= (to make it work with a qmail-ldap
webinterface thing). And since then it stopped working. I also tried to
switch back to uid=, but it then gives the same errors... :-(

Greetz,

---

Tom Palmaers



More information about the samba mailing list