Hi,
if you have enabled password policy and set entries using
/usr/lib/dirsrv/${SLAPD}/ns-newpwpolicy.pl utility (those all goes to
sub-entry), then you can list it:
ldapsearch -D "Directory Manager" -W -b
"cn=nsPwPolicyContainer,People,dc=DOMAIN,dc=com"
"(&(objectclass=ldapsubentry)(cn=$User))"
Variables:
SLAPD=instance_name
User=User_CN # for me it is "Predrag Zecevic" / firstname lastname pair
Regards.
On 06.03.2013 16:50, Fosiul Alam wrote:
HI Thanks
but if how do i see that ??
/usr/bin/ldapsearch -xZZ -D 'cn=xxx' -w 'xxx' -b
'uid=testuser,ou=Users,l=xx,dc=xxx,dc=lan'
this does not show that passwordExpirationTime
Thanks
Fosiul
On Wed, Mar 6, 2013 at 3:22 PM, Josh Ellsworth
<jellsworth(a)primaticsfinancial.com> wrote:
> Assuming you have password expiration configured, the attribute
passwordExpirationTime holds a datetime value for when the password will expire.
>
> -----Original Message-----
> From: 389-users-bounces(a)lists.fedoraproject.org
[mailto:389-users-bounces@lists.fedoraproject.org] On Behalf Of Fosiul Alam
> Sent: Wednesday, March 06, 2013 5:00 AM
> To: General discussion list for the 389 Directory server project.
> Subject: [389-users] How to get password expire time for user
>
> HI Expert
> I am trying to find out a way to get password expire time for users so that i can
sent them email
>
> i was looking in google , but i am not clear yet can any one please advise whats the
best way to get password expire time ??
>
> Thanks
> Fosiul.
> --
> 389 users mailing list
> 389-users(a)lists.fedoraproject.org
>
https://admin.fedoraproject.org/mailman/listinfo/389-users
> Email Disclaimer: This email and any files transmitted with it may be confidential,
legally privileged and are intended solely for the use of the individual(s) or entity to
whom they are addressed. If you are not the intended recipient, you are hereby notified
that any use, sharing, dissemination, or reproduction of information contained in the
email is strictly prohibited and may be unlawful. If you are not the intended recipient,
please notify the sender by return email that you have received this email in error and
destroy all copies of the original message.
> --
> 389 users mailing list
> 389-users(a)lists.fedoraproject.org
>
https://admin.fedoraproject.org/mailman/listinfo/389-users
--
Predrag Zečević, Technical Support Analyst, 2e Systems GmbH
Telephone: +49 6196 9505 815, Facsimile: +49 6196 9505 894
Mobile: +49 174 3109 288, Skype: predrag.zecevic
E-mail: predrag.zecevic(a)2e-systems.com
Headquarter: 2e Systems GmbH, Königsteiner Str. 87,
65812 Bad Soden am Taunus, Germany
Company registration: Amtsgericht Königstein (Germany), HRB 7303
Managing director: Phil Douglas
http://www.2e-systems.com/ - Making your business fly!
[***]===---
Enzymes are things invented by biologists that explain things which
otherwise require harder thinking. -- Jerome Lettvin