Web lists-archives.com

Re: [Samba] Users list and the date the password will expire




On Mon, 13 Feb 2017 16:46:12 +0100
Ole Traupe via samba <samba@xxxxxxxxxxxxxxx> wrote:

You could always replace:

> "(&(objectCategory=person)(objectClass=user)(sAMAccountName=$user))" 
> userAccountControl | grep userAccountControl: | sed 
> "s|userAccountControl: ||")
> 
> if [ "${uAC_string}" -eq "512" ]; then
> 
>      [do expiration parsing]
> fi

With:

"(&(objectCategory=person)(objectClass=user)(sAMAccountName=$user)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))" 

This will do the same ;-)

Rowland


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba