Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 05-29-2009, 12:13 PM   #1
Registered: Apr 2009
Posts: 61
Blog Entries: 1

Rep: Reputation: 15
How to make Ldap test user to automatically change his password after 2 days?

I have successfully configured my ldap server on Centos 5.3 referring to the link below.

However I have added a test user on to my Ldap server using the below commands.

1. useradd test
2. passwd test
3. grep test /etc/passwd > /etc/openldap/passwd.test
4. /usr/share/openldap/migration/ /etc/openldap/passwd.test /etc/openldap/test.ldif
5. ldapadd -x -D "cn=Manager,dc=example,dc=com" -W -f /etc/openldap/test.ldif

The ldif file of the test user looks like this

dc: uid=test, ou=People,dc=example,dc=com
uid: test
cn: test
objectClass: account
objectClass: posixAccount
objectClass: top
objectClass: shadowAccount
userPassword: {crypt}$2$1248Hon......... (some string)
shadowLastChange: 12345 (some number)
shadowMax: 999999
shadowWarning: 7
loginShell: /bin/bash
uidNumber: 520
gidNumber: 521
homeDirectory: /home/test

Could some body help me with this?

Last edited by nandanm1; 05-29-2009 at 12:21 PM.


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
automatically prompt user to change password guy_ripper Linux - Security 7 01-18-2007 01:57 PM
password change over LDAP works only if TLS is disabled cyrilrip Linux - General 2 06-02-2005 01:26 AM
what is the command to make a user change their password after creating a new user? naweenio Linux - Newbie 7 01-05-2005 07:07 AM
HELP NEEDED: Open LDAP Make Test Failure jhotchkiss Linux - Software 0 10-20-2003 11:43 AM
change password at slave ldap u4113072 Linux - Software 0 11-12-2002 02:50 AM

All times are GMT -5. The time now is 03:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration