Hi,
I am trying to set up ldap+samba to have to sync regardin passwords and rest
let say I have test user : sleep
samba + ldap server address is 192.168.1.44
I set up samba samba and can log to samba server from from localhost and from machines in network and it works ok
I am using : smbclient //192.168.1.44/home -U sleep and it works ok
I used ldapadd to add ldap user like :
ldapadd -c -x -D cn=admin,dc=domain,dc=net -W -f sleep.ldif
( ...added password for it, set up all,pam modules, upon login home directory is created automatically...all works )
can log in with this user, change its password once loged that works ( using passwd ) .
Then I added in smb.conf
passdb backend = ldapsam:ldap://192.168.1.44
ldap admin dn = cn =admin,dc=domain,dc=net
ldap suffix = dc=domain,dc=net
ldap user suffix = ou=People
ldap group suffix = ou= Group
ldap machine suffix = ou= Computers
ldap password sync = yes
and them when I change ( as root ) password for ldap user "sleep" using
smbpasswd sleep ( so I am changing its samba password )
password change is propagate to ldap and with that new password I can log in to samba share, log in to servers using ssh.
Once logged over ssh to server ( samba+ldap) I want to issue comman smbpasswd to change password for user "sleep" I am getting error like
smbpasswd
Old SMB password:
New SMB password:
Retype new SMB password:
Unable to connect to SMB server on machine 127.0.0.1. Error was : NT_STATUS_CONNECTION_REFUSED.
Failed to change password for sleep
tail -f /var/log/samba/log.* does not show anything when I am changing samba password
Suggestion regarding this are welcome, really do not know what should be changed to make it works.
Second think I do not understand, if I issue passwd comamnd like ( logged as sleep )
passwd
Enter login(LDAP) password:
New password:
Re-enter new password:
LDAP password information changed for sleep
passwd: password updated successfully
I can change LDAP password, log with new LDAP password, but samba password stays same, and I would like to make it to be propageted as in case when I chnage it using "smbpasswd " as well.
OS I have is debian and all debian stuff
I understand what I have to set up and already done most of stuff, but I really need your hints regarding this, what to check, read...
Any suggestions are welcome and thank you in advance
regards,