[Samba] samba-tool : how to remove expiry date of an account
Olivier BILHAUT
obilhaut at fondation-misericorde.fr
Fri May 26 13:54:14 UTC 2023
You're right, but it does that safely ;)
Many thanks for
precisions
--
Oliver
Le 2023-05-26 15:48, Rowland Penny via samba a
écrit :
> 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
More information about the samba
mailing list