LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 10-16-2017, 07:52 AM   #1
Ankushkalra
Member
 
Registered: Jan 2017
Posts: 48

Rep: Reputation: Disabled
Password expiration notification to LDAP user


Hi,

I have successfully configured OpenLDAP Server in rhel7.2.I have also implemented password policy as per URL https://access.redhat.com/solutions/2710021.

LDAP client server authentication is working fine.

I want whenever any LDAP user logs in to LDAP client,it should show how many days are left before password expiration.

For the same I have modified my ldap password policy by "ldapmodify" command with "pwdExpireWarning" same as that of "pwdMaxAge".

When a user logs in to LDAP client,ldap user simply gets logged in with no message at loggin prompt.

Although i can see "password expiry" of user ldap219346 got changed.


code:

Logs in /var/log/ldap.log
Oct 16 06:18:39 <LDAP_Server> slapd[1701]: ppolicy_bind: Setting warning for password expiry for uid=ldap219346,ou=People,dc=domain,dc=com = 2588352 sec
onds

LDAP server password policy:
# cat passwordpolicy.ldif
dn: cn=default,ou=policies,dc=domain,dc=com
cn: default
objectClass: pwdPolicy
objectClass: device
objectClass: top
pwdAttribute: userPassword
pwdMaxAge: 2592000
pwdExpireWarning: 604800
pwdInHistory: 4
pwdCheckQuality: 1
pwdMinLength: 14
pwdMaxFailure: 3
pwdLockout: TRUE
pwdLockoutDuration: 300
pwdGraceAuthNLimit: 0
pwdFailureCountInterval: 0
pwdMustChange: TRUE
pwdAllowUserChange: TRUE
pwdSafeModify: FALSE

LDAP server updated password policy:
# cat updatepasswordpolicy.ldif
dn: cn=default,ou=policies,dc=domain,dc=com
changetype: modify
replace: pwdExpireWarning
pwdExpireWarning: 2592000



When i logged in LDAP client:

[LDAP client]# su - ldap219346
Last login: Mon Oct 16 07:09:02 CDT 2017 on pts/0
[LDAP client]$

Please suggest.


Thanks
 
Old 10-19-2017, 10:40 AM   #2
Ankushkalra
Member
 
Registered: Jan 2017
Posts: 48

Original Poster
Rep: Reputation: Disabled
Kindly help
 
Old 08-06-2018, 01:19 PM   #3
timbeh
LQ Newbie
 
Registered: Aug 2018
Location: Sao José/Santa Catarina/Brasil
Posts: 1

Rep: Reputation: Disabled
Any news?

Hello Fellows!
Did anybody faced the same?
I am facing the same.
In fact, i am using OPENLDAP server on Suse 11 SP1, and my client is Suse 10 SP2.
In Suse 11 sp1 is displaying, but, in Suse 10 it is not displaying.
Would be happy if any of you could help.
thanks!
 
  


Reply



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
Linux password expiration warning from LDAP narendra.united Linux - Security 3 06-23-2017 08:28 AM
How do I force password reset and expiration of new user chass Linux - Newbie 5 02-06-2015 01:37 PM
LDAP - Enabling password expiration jhyland87 Linux - Server 2 05-10-2012 05:00 AM
How to force user to change password after expiration in Linux? ssy68 Linux - Newbie 4 06-30-2011 02:54 PM
password expiration and user account lockout / disable automation frznchckn Linux - Security 1 05-05-2009 12:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:51 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration