LinuxQuestions.org
Help answer threads with 0 replies.
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 05-29-2009, 01:13 PM   #1
nandanm1
Member
 
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.

http://www.linuxhomenetworking.com/w...DAP_and_RADIUS

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/migrate_passwd.pl /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 01:21 PM.
 
  


Reply


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 02:57 PM
password change over LDAP works only if TLS is disabled cyrilrip Linux - General 2 06-02-2005 02: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 08:07 AM
HELP NEEDED: Open LDAP Make Test Failure jhotchkiss Linux - Software 0 10-20-2003 12:43 PM
change password at slave ldap u4113072 Linux - Software 0 11-12-2002 03:50 AM


All times are GMT -5. The time now is 12:19 AM.

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