Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Query AD for User Account Expiration Date?



On 5/28/08 1:47 PM, "Peter Bukowinski" <email@hidden> wrote:

> The following command should get the expiration age of an AD password, in
> days:
>
> maxPwdAge=$(ldapsearch -LLL -Q -s base -h x.x.x.x -b dc=domain,dc=org
> maxPwdAge | awk -F- '/maxPwdAge/ {print $2/10000000}')

Oops! This returns the expiration age in seconds, not days. I do the
conversion later.

--Peter
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden

This email sent to email@hidden

References: 
 >Re: Query AD for User Account Expiration Date? (From: "Bukowinski, Peter" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.