Re: How to get password expire time for user

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Thanks

if i run this command

/usr/bin/ldapsearch -xZZ -D 'cn=xxxx' -w 'xxxx' -b
'ou=Users,l=xxx,dc=xxx,dc=lan' passwordExpirationTime

its giving me all the expired time for all users  which is great

but its comming as

passwordExpirationTime: 20130603123556Z

why its putting Z   at last ??
Thanks
Fosiul

On Wed, Mar 6, 2013 at 4:01 PM, Predrag Zecevic [Unix Systems
Administrator] <predrag.zecevic@xxxxxxxxxxxxxx> wrote:
> 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@xxxxxxxxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxxxxxx [mailto:389-users-bounces@xxxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Fosiul Alam
>>> Sent: Wednesday, March 06, 2013 5:00 AM
>>> To: General discussion list for the 389 Directory server project.
>>> Subject:  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@xxxxxxxxxxxxxxxxxxxxxxx
>>> 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@xxxxxxxxxxxxxxxxxxxxxxx
>>> 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@xxxxxxxxxxxxxx
>
> 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
>
>
> --
> 389 users mailing list
> 389-users@xxxxxxxxxxxxxxxxxxxxxxx
> https://admin.fedoraproject.org/mailman/listinfo/389-users



-- 
Regards
Fosiul Alam
07877100621
http://www.fosiul.co.uk
--
389 users mailing list
389-users@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/389-users



[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux