Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-21-2009, 03:33 PM   #1
LQ Newbie
Registered: May 2009
Location: Pune,India
Distribution: Ubuntu 8.10
Posts: 2

Rep: Reputation: 0
Help in LDAP; Users can change their password

We are trying to create LDAP logins for users in the department.
Now, the problem that we are facing is, of PASSWORD CHANGED.

What we have done :
- Softwares Installed Successfully on Ubuntu 8.10:
Bekerley DB db-4.7.25
OpenLDAP openldap-2.4.16 Stable Release
- Created and added hierarchy.ldif, group and all useraccount files to slapd
- Configured LDAP Clients with libnss-ldap and LDAP Version 3
Here are some of the config. files
1. /etc/ldap/ldap.conf
base dc=coep,dc=org,dc=in
uri ldap://

2. /etc/pam.d/common-account
account required broken_shadow
account sufficient uid < 500 quiet
account [default=bad success=ok user_unknown=ignore]
account required

3. /etc/pam.d/common-auth
auth required
auth sufficient nullok try_first_pass
auth requisite uid >=500 quiet
auth sufficient use_first_pass
auth required

4. /etc/pam.d/common-password
password requisite try_first_pass retry=3
password sufficient md5 shadow nullok try_first_pass use_authtok
password sufficient use_authtok
password required

5. /etc/pam.d/common-session
session required
session [success=1 default=ignore] service in crond quiet use_uid
session required
session optional

6. /etc/nsswitch.conf
passwd: compat files ldap
group: compat files ldap
shadow: compat files ldap

hosts: files mdns4_minimal NOTFOUND=return] dns mdns4
networks: files

protocols: db files
services: db files
ethers: db files
rpc: db files

netgroup: nis

- The user logins are successful, but when we try to change the password of the user using the 'passwd' command, the following error occurs,
passwd: Module is unknown
passwd: password unchanged

We need to allow users change their passwords, by some means, because these same accounts will also be working with Moodle.
Tried searching a lot over the net, but didnt find required solutions. Kindly Help us in this.
Old 08-22-2009, 10:24 AM   #2
Senior Member
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Hi ashwintumma,

You may need to use 'ldappasswd', I don't think the capability is available in PAM,




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 do a user can change its LDAP password on Linux client machine sharjeel Linux - Server 5 05-13-2011 01:25 AM
Allow LDAP users to change passwords graystarr Linux - Server 1 03-10-2009 05:20 PM
password change over LDAP works only if TLS is disabled cyrilrip Linux - General 2 06-02-2005 01:26 AM
Allowing users to change passwords on LDAP topcat Linux - General 10 09-16-2004 12:09 PM
change password at slave ldap u4113072 Linux - Software 0 11-12-2002 02:50 AM > Forums > Linux Forums > Linux - Software

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

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