Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix password check ldap #688

Merged
merged 3 commits into from
Aug 18, 2022
Merged

Conversation

artlog
Copy link

@artlog artlog commented Jul 25, 2022

No description provided.

- does not use $entry that is a global pointing to irrelevant data
- set message using language only if keyword exists ( avoid null ) else keep keyword
  ( works for empty "" == success value too )
- if newpassword is missing return newpasswordrequired keyword
- 'result' is always set to a keywork, empty means success:
   can be parsed programatically independently of language
- 'message' is intented for human display.
- ex
  $pwd_forbidden_ldap_fields = array('sn');
  if provided entry to check does not have sn attribute, no error will be traced
  no check will occur since there is no attribute to compare with
- this allow to pass $entry_array = array() and have no error
  if no check for ldap attribute is expected by calling function.
@coudot coudot linked an issue Aug 18, 2022 that may be closed by this pull request
rest/v1/checkpassword.php Outdated Show resolved Hide resolved
@coudot coudot added this to the 1.5 milestone Aug 18, 2022
@coudot coudot added the bug label Aug 18, 2022
@coudot coudot merged commit da3bc75 into ltb-project:master Aug 18, 2022
@coudot coudot deleted the fix-password-check-ldap branch August 18, 2022 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rest api checkpassword bugs
3 participants