mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-22 15:13:50 -06:00
passwd: handle LDAP auto-bind use case as well
Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com> Reviewed-By: Thomas Woerner <twoerner@redhat.com> Reviewed-By: Rob Crittenden <rcritten@redhat.com> Reviewed-By: Rafael Guterres Jeffman <rjeffman@redhat.com>
This commit is contained in:
parent
e386e22046
commit
902c8b0bae
@ -141,7 +141,7 @@ class passwd(Command):
|
||||
DN(api.env.container_user, api.env.basedn)
|
||||
)
|
||||
|
||||
if principal == getattr(context, 'principal') and \
|
||||
if principal == getattr(context, 'principal', None) and \
|
||||
current_password == MAGIC_VALUE:
|
||||
# No cheating
|
||||
logger.warning('User attempted to change password using magic '
|
||||
|
Loading…
Reference in New Issue
Block a user