samba-tool and expiring a user

Rowland Penny repenny241155 at gmail.com
Sat Nov 2 13:24:08 MDT 2013


Hi, just a bit confused about samba-tool user setexpiry

if you run 'samba-tool user setexpiry --help' amongst the text that is 
printed is this:

Example2:
su samba-tool user setexpiry User2

Example2 shows how to set the account expiration of user User2 so it will
never expire.  The user in this example resides on the  local server.   sudo
is used so a user may run the command as root.

And then this:

Example4:
samba-tool user setexpiry --noexpiry User4
Example4 shows how to set the account expiration so that it will never 
expire.
The username and sAMAccountName in this example is User4.

Which is correct?

also at the top is this:

Set the expiration of a user account.

but then amongst the options there is this:

--noexpiry            Password does never expire

Just what is being is being expired, the account or the password?, 
because one relies on the 'accountExpires' attribute and the other the 
'userAccountControl' attribute.

Rowland


More information about the samba-technical mailing list