Displaying 1 result from an estimated 1 matches for "setexp".
Did you mean:
setext
2023 May 26
1
samba-tool : how to remove expiry date of an account
On 26/05/2023 14:44, Olivier BILHAUT wrote:
> Thanks Rowland,
>
> I'll give a try to ldbmodify, even if I prefer to avoid modifying
> directly ldb files.
>
>
What do you think samba-tool does ?
Using samba-tool to set expiry, ultimately does this:
setexp = """
dn: %s
changetype: modify
replace: userAccountControl
userAccountControl: %u
replace: accountExpires
accountExpires: %u
""" % (user_dn, userAccountControl, accountExpires)
self.modify_ldif(setexp)
Rowland