[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Question about ppolicy usage
- To: openldap-technical@openldap.org
- Subject: Re: Question about ppolicy usage
- From: Mikael Bak <bak.mikael@oszk.hu>
- Date: Tue, 2 Apr 2019 08:31:49 +0200
- Autocrypt: addr=bak.mikael@oszk.hu; keydata= xsFNBFvIL5IBEADlPKBdbUGxkS6CA5FQTlNn3Q1ApjMItWOW/gTwEurqRuEAAm4KlJDNwf4i uvrmXud4caPkSswnRwDfhXBxic+2xUjX3muELC2h/ljDkAIFpGT+xK3vCFGkXt7x8f5/SBHh MyB/gKlMeDFyNiLauRVWOspZqNMuZgCZly+SxfH8TlwQ1ScaVkLjvU9aEvgCcdXUUo1nPiIc aP4/OcrMgOudiQP4eAbZ+SuoSEXVwloip9A7HnfrjBvxrWuTeVVuWNorUw3Psdj+yys+cok/ neluqZBVg6P2OWNd703CrMy9hj3s7peAA0Mhfa8TR+GxL50zy3EGu6iF2WZpuanDUDku4Pbd vXMRafPkpADBo8T3bwEAV03gGGSwSw5RWDb+zMApdJ8rmw/RQE2VBrJzhzyhMizVswsunWhP GiexlQPV/Pt4PgyUn76F7jAOUZy7XgVvXyd/Mb5s+ZLX5jCpBtK4bPtOiZTfHVnKh6BFaZJX mW9BYn4R48BCy7GfAErsZjudady98GiRdqAz32/i08Z8otxjyGbyJ+dsvVdeojVH5Z6/OeLX bZsS7PfNsmFEGYYmEaG74IV1ZgXiyLEqNcgp4KX8hMnA/NMSm4pSlUtig86SI/r1hns5I3Tl 1TcMtIVCnhBoty607xBq2PC8E+z9H73H9ywU0EWW6FnSNxZSSwARAQABzR9NaWthZWwgQmFr IDxiYWsubWlrYWVsQG9zemsuaHU+wsGUBBMBCgA+FiEECB5yN1JehrCpky5E4vRHTsaBWbMF AlvIL5ICGyMFCQlmAYAFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQ4vRHTsaBWbOxdg/5 ASzHMclL6iinYrlwvAznw92oAru51Z/cbjg/Bj05VjRWKIvf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155-a159-4d67-a668-f2b3e21d814f@stroeder.com>
- Openpgp: preference=signencrypt
- References: <c855af59-9cdf-32df-08b1-4ea902774ef4@oszk.hu> <89bdc155-a159-4d67-a668-f2b3e21d814f@stroeder.com>
Hi Michael,
On 2019. 04. 01. 18:07, Michael Ströder wrote:
> On 4/1/19 5:32 PM, Mikael Bak wrote:
>> 1) I want to be able to disable users. I can do this by setting:
>> pwdAccountLockedTime: 000001010000Z
>
> I'd recommend to use another attribute and define a ACL on
> attrs=userPassword for that.
>
Yes, I can do that, but I did not find any obvious choise of attribute
for this in the included schemas. What attribute do you recommend for this?
>> 2) I want to be able to set a date in the future when a user account
>> will expire / deactivate.
>>
>> I was hoping to be able to set "pwdAccountLockedTime" to a date in the
>> future and after that date the user account would be locked.
>>
>> Reading the source code for ppolicy I find an interesting block in the
>> function "account_locked()" at line 356:
>>
>> /* Still in the future? not yet in effect */
>> if (now < then)
>> return 0;
>>
>> This leads me to believe that the author's intension may have been to
>> allow what I want to do.
>
> Note that semantics for 'pwdAccountLockedTime' are defined herein:
>
> https://tools.ietf.org/html/draft-behera-ldap-password-policy
>
> It does not mean what you want to achieve.
>
Thanks for the link to the ppolicy draft.
As I said, I realize ppolicy is probably not the best choise for what I
want to do. Unfortunately I did not find any other overlay module that
does what I would like to do. Are there any?
I'm very curious to know what others do in this situation.
> For Æ-DIR I defined custom meta attributes aeStatus, aeExpiryStatus,
> aeNotAfter etc.
>
> https://www.ae-dir.com/docs.html#schema-at-aeStatus
>
Thanks for the info.
How do handle the expiry in Æ-DIR? I have not found a way to construct
an ACL that can have "today" or "now" as a search parameter.
I'm quite new to LDAP, so a little help is greatly appreciated.
Thanks,
Mikael