Thread-topic: Query AD for User Account Expiration Date?
User-agent: Microsoft-Entourage/12.10.0.080409
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