Get current ldap/ad password policy #771
Unanswered
nilskretschmer
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Hi @nilskretschmer, You may be able to retrieve these configuration values by retrieving the root domain object (not the RootDSE): use LdapRecord\Models\Entry;
Entry::in('DC=example,DC=com')
->read()
->whereHas('objectclass')
->firstOrFail(); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to retrieve the current configured password policy from ad/ldap?
We catch the exception like this:
But it would be very nice to show the user some detailed description about the policy itself. Because the policy can change from time to time it would be best practice to keep it dynamic and retrieve the policy directly from the ad/ldap.
Beta Was this translation helpful? Give feedback.
All reactions