[389-users] Re: Setting "lock" time of an account in the future

2023-09-29 Thread Mark Reynolds
Hi Cenk, Yes this can be done by first locking the entry, and then setting passwordLockoutDuration to the time (in seconds) into the future you want it to unlock.  So it's not a nice date you can use, but the value can still be calculated https://access.redhat.com/documentation/en-us/red_hat

[389-users] Re: Setting "lock" time of an account in the future

2023-09-29 Thread Mark Reynolds
Actually, I was wrong there is more you need to do. You need to enable account lockout and set a max failure count: # dsconf slapd-INSTANCE config set passwordLockout=on passwordMaxFailure=3 Then set in each user entry:     passwordRetryCount: 3  --> number equal to passwordMaxFailure     ret

[389-users] Re: Setting "lock" time of an account in the future

2023-10-02 Thread Cenk Y.
Hi Mark, thanks for the response. We already use password lockout plugin, but what I need is the opposite. I want to * Create an account, activate it * Set an expiration date, so that after that date account is locked. Cheers Cenk On Fri, Sep 29, 2023 at 9:50 PM Mark Reynolds wrote: > Actuall

[389-users] Re: Setting "lock" time of an account in the future

2023-10-02 Thread Mark Reynolds
On 10/2/23 4:13 AM, Cenk Y. wrote: Hi Mark, thanks for the response. We already use password lockout plugin, but what I need is the opposite. I want to * Create an account, activate it * Set an expiration date, so that after that date account is locked. Yeah there is no way to "lock" an acco

[389-users] Re: Setting "lock" time of an account in the future

2023-10-02 Thread Thierry Bordaz
On 10/3/23 01:11, Mark Reynolds wrote: On 10/2/23 4:13 AM, Cenk Y. wrote: Hi Mark, thanks for the response. We already use password lockout plugin, but what I need is the opposite. I want to * Create an account, activate it * Set an expiration date, so that after that date account is locked

[389-users] Re: Setting "lock" time of an account in the future

2023-10-03 Thread Cenk Y.
Thanks Mark, Thierry, I've looked quite a bit into account policy. It allows locking an account after an inactivity limit, but from my understanding, it doesn't offer a way to lock it in a pre-configured future time without inactivity. I think this would be a useful feature. I may open a RFE. Ch

[389-users] Re: Setting "lock" time of an account in the future

2023-10-03 Thread Thierry Bordaz
On 10/3/23 09:34, Cenk Y. wrote: Thanks Mark, Thierry, I've looked quite a bit into account policy. It allows locking an account after an inactivity limit, but from my understanding, it doesn't offer a way to lock it in a pre-configured future time without inactivity. Not only inactivity

[389-users] Re: Setting "lock" time of an account in the future

2023-10-03 Thread Cenk Y.
Oh right, how did I miss this. So one needs to set "altStateAttrName: createTimestamp", and configure "accountInactivityLimit". In this case this will globally apply to all accounts with the policy, isn't it? It still won't allow me to set expiration date per account (Unless I create a policy for