nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

How to Change Password

This is a discussion on How to Change Password within the Linux software forums, part of the Linux Getting Started category; Dear All. I am using RHEL 4.0 and configured Samba Server with Open LDAP. MY problem is that users are ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 06-02-2006, 03:22 PM
Member
User
 
Join Date: Mar 2006
Posts: 63
Rep Power: 0
puppen
Default How to Change Password

Dear All.

I am using RHEL 4.0 and configured Samba Server with Open LDAP.

MY problem is that users are unable to change there password, it takes that password only when user was first time created, after that if u change the passowrd Samba Server does not take the passowrd and users are unable to login

I am using PHP Ldap admin tool to acees LDAP.

Pls help me.

Regards.
Puppen.
__________________
someone somewhere is made for you.
LOVE is Journey not a destination.
ALL I want is EVERYTHING.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-02-2006, 04:30 PM
tom tom is offline
Contributors
User
 
Join Date: Jun 2005
Location: London, UK
Posts: 213
Rep Power: 0
tom is an unknown quantity at this point
Default

Use command line smbpasswd to set or change password
Reply With Quote
  #3 (permalink)  
Old 06-02-2006, 04:52 PM
Member
User
 
Join Date: Mar 2006
Posts: 63
Rep Power: 0
puppen
Default

Dear Tom.

Will this affect in Open LDAP.

Regards.

Puppen
__________________
someone somewhere is made for you.
LOVE is Journey not a destination.
ALL I want is EVERYTHING.
Reply With Quote
  #4 (permalink)  
Old 06-04-2006, 04:21 PM
tom tom is offline
Contributors
User
 
Join Date: Jun 2005
Location: London, UK
Posts: 213
Rep Power: 0
tom is an unknown quantity at this point
Default

Dear puppen,

It works for me but i don't have OpenLDAP. May be try out with one account.

Ok what kind of samba account information databases you are using? ldapsam? if so use smbldap-passwd.pl script to set or change password
Reply With Quote
  #5 (permalink)  
Old 06-04-2006, 04:35 PM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 481
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

Use smbpasswd command. If SAMBA server is configured properly with LDAP, smbpasswd should able to change or set a password for user.
Add user foo
Code:
smbpasswd -a foo
Add workstation w100
Code:
smbpasswd  -m -a w100$
If you want sync password then you make sure smb.conf has following entry:
Code:
ldap passwd sync = on
or
Code:
ldap passwd sync = only
This option is used to define whether or not Samba should sync the LDAP password with the NT and LM hashes for normal accounts (NOT for workstation, server or domain trust on a password change via SAMBA. See url http://www.unav.es/cti/ldap-smb/smb-ldap-3-howto.html
Reply With Quote
  #6 (permalink)  
Old 06-06-2006, 12:30 PM
Member
User
 
Join Date: Mar 2006
Posts: 63
Rep Power: 0
puppen
Default

Dear Tom.

I am using passdb backend = ldapsam:ldap://

regards.
Puppem
__________________
someone somewhere is made for you.
LOVE is Journey not a destination.
ALL I want is EVERYTHING.
Reply With Quote
  #7 (permalink)  
Old 06-06-2006, 01:56 PM
Member
User
 
Join Date: Mar 2006
Posts: 63
Rep Power: 0
puppen
Default

Dear Monk.

Thank you very much.
The line was commented ldap passwd sync = yes.

Now it is working fine.

regards.

Puppen
__________________
someone somewhere is made for you.
LOVE is Journey not a destination.
ALL I want is EVERYTHING.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Change root password using perl script? Raj1 Solaris/OpenSolaris 8 06-13-2008 11:01 PM
how to change root password sandromax Solaris/OpenSolaris 4 10-11-2007 02:43 AM
Change root password MySQL 5 chiku Databases servers 1 01-16-2007 08:46 PM
HP UX user lock password, change password, password aging rockdalinux HP-UX 0 12-20-2006 02:36 PM
change password under linux Linux software 1 01-18-2006 07:38 PM


All times are GMT +5.5. The time now is 11:10 PM.


Powered by vBulletin® Version 3.7.3 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36