Olivier BILHAUT
2023-May-24 09:56 UTC
[Samba] samba-tool : how to remove expiry date of an account
Hi list :) I am looking for the right command to achieve my goal. I would like to remove the account expiry date of an ACCOUNT with a samba-tool command (account never expires) Options of "samba-tool user setexpiry" are : --filter=FILTER LDAP Filter to set password on --days=DAYS Days to expiry --noexpiry Unfortunately, the "noexpiry" parameter just set another option which is "the PASSWORD never expires" which is related to the passord, and so serve a totally different goal. AFAIK, I cannot use the "edit" parameter since I would to do it on an non-interactive mode. Does anybody already achieve this ? Many thanks for your interest ! -- OB
Rowland Penny
2023-May-24 10:30 UTC
[Samba] samba-tool : how to remove expiry date of an account
On 24/05/2023 10:56, Olivier BILHAUT via samba wrote:> Hi list :) > > I am looking for the right command to achieve my goal. > > I > would like to remove the account expiry date of an ACCOUNT with a > samba-tool command (account never expires) > > Options of "samba-tool user > setexpiry" are : > --filter=FILTER LDAP Filter to set password > on > --days=DAYS Days to expiry > --noexpiry > > Unfortunately, the "noexpiry" > parameter just set another option which is "the PASSWORD never expires" > which is related to the passord, and so serve a totally different goal.Only in the commands help. It doesn't touch the password, it alters the 'userAccountControl' and 'accountExpires' attributes, the latter is to '0' (i.e. never) in the case of no expiry. Rowland