LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-02-2009, 06:49 AM   #1
ortodopodo
LQ Newbie
 
Registered: Nov 2009
Posts: 5

Rep: Reputation: 0
smbpasswd does not allow user to change its password


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,
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
smbpasswd - failed to change password for <user> amocjr Linux - Networking 4 12-28-2009 03:11 AM
Locking out a user when password expires, but allowing them to change their password kaplan71 Linux - Security 5 06-27-2008 07:12 PM
samba(global security=user) useful tools for client.ex: user change password. hocheetiong Linux - Newbie 1 03-18-2008 09:20 AM
Change password with the command smbpasswd ricardogorayeb Linux - General 0 10-05-2006 07:38 AM
Unable to change existing smbpasswd on user; pam problem?? Geronimo Debian 1 10-13-2004 05:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration