LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-21-2010, 09:06 PM   #1
macpraveen
LQ Newbie
 
Registered: Apr 2010
Posts: 4

Rep: Reputation: 0
Question ldap password sync with samba and unix user account


Hello
I setup openldap and samba on 9.10. The ubuntu desktop client gets authenticated successfully with the server.

But when I do a passwd on the client, only the ldap passwd is getting changed but not in the samba and the unix user account.

My smb.conf
Code:
   passdb backend = ldapsam:ldap://192.168.3.100
   ldap suffix = dc=example,dc=local
   ldap user suffix = ou=People
   ldap group suffix = ou=Groups
   ldap admin dn = cn=admin,dc=example,dc=local
   ldap ssl = no
   ldap passwd sync = yes

   add machine script = sudo /usr/sbin/smbldap-useradd -t 0 -w "%u"

   obey pam restrictions = yes

   unix password sync = no

   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .

   pam password change = yes
When I do a passwd, I get,

Enter login(LDAP) password:
New password:
Re-enter new password:
LDAP password information changed for username
passwd: password updated successfully

But only the ldap password is getting changed and not in the samba and unix user account.

I tried
unix password sync = yes
but same result.

Am I missing something?

Thanks

Last edited by macpraveen; 04-22-2010 at 12:40 AM.
 
Old 04-22-2010, 01:44 AM   #2
macpraveen
LQ Newbie
 
Registered: Apr 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Unhappy

can some one pls help me out on this?
 
Old 04-22-2010, 01:52 AM   #3
Blue_Ice
Member
 
Registered: Jul 2006
Location: Belgium
Distribution: Debian, Fedora, CentOS, Windows
Posts: 352

Rep: Reputation: Disabled
This is pretty logical as you are only changing the ldap password with passwd. Passwd doesn't read the samba configuration.
Try to use smbpasswd, that will probably work.
 
Old 04-22-2010, 03:44 AM   #4
macpraveen
LQ Newbie
 
Registered: Apr 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Tried with smbpasswd and unix passwd sync yes (in smb.conf) still the same result. But when I type smbpasswd from the terminal (on server) the password is getting changed for both samba and unix account. Do I need to change the passwd chat script in smb.conf?

Where I can see the logs for these password changes? /var/log/samba/log* does not seem to have logged any password changes.

Any ideas?

Last edited by macpraveen; 04-22-2010 at 03:46 AM.
 
Old 04-22-2010, 09:55 AM   #5
Blue_Ice
Member
 
Registered: Jul 2006
Location: Belgium
Distribution: Debian, Fedora, CentOS, Windows
Posts: 352

Rep: Reputation: Disabled
I think you have too many references in your config and I am not sure if they can overrule each other.
 
  


Reply

Tags
account, openldap, password, samba, sync, unix


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to configure when change a linux user password than automatic sync samba passwd. hocheetiong Linux - Newbie 1 08-25-2008 05:57 PM
need help = sync samba - user and password luzyS Linux - Newbie 4 06-06-2008 11:07 PM
Samba - Linux Password Sync with LDAP rbulman Linux - Networking 1 10-26-2006 05:56 AM
sync ldap and samba password with ldappasswd paul_mat Linux - Networking 2 11-21-2005 10:55 PM
sychronize samba and unix password at user creation JohanLingen Programming 1 10-10-2003 07:34 PM


All times are GMT -5. The time now is 05:11 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration