Skip to content

include/functions.inc: The $initialAttrs array in change_password() c…#42

Open
sunweaver wants to merge 1 commit intogosa-project:masterfrom
sunweaver:pr/change-password-avoid-PHP-error
Open

include/functions.inc: The $initialAttrs array in change_password() c…#42
sunweaver wants to merge 1 commit intogosa-project:masterfrom
sunweaver:pr/change-password-avoid-PHP-error

Conversation

@sunweaver
Copy link
Copy Markdown
Contributor

…ontains the result of an LDAP fetch which contains the DN (and this is not an array), so skip that.

…ontains the result of an LDAP fetch which contains the DN (and this is not an array), so skip that.
@sunweaver sunweaver requested a review from Juinness January 18, 2022 19:24
@Juinness
Copy link
Copy Markdown
Contributor

Juinness commented Jan 20, 2022

$attrsEvent['dn'] = $initialAttrs['dn'];

You could skip this in the iteration, but afterwards the 'dn' entry is fixed. In the '$initialAttrs' are also other entries that are not an array and may be relevant. These would then also be skipped, which could lead to errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants