mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
python: Fix userPrincipalName in GetPasswordCommand.get_account_attributes()
Signed-off-by: Jonathon Reinhart <Jonathon.Reinhart@gmail.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Thu Mar 5 16:27:50 UTC 2020 on sn-devel-184
This commit is contained in:
committed by
Andreas Schneider
parent
e45e0912d9
commit
0dd2a27347
@ -1182,7 +1182,7 @@ class GetPasswordCommand(Command):
|
|||||||
add_sAMAcountName = True
|
add_sAMAcountName = True
|
||||||
|
|
||||||
add_userPrincipalName = False
|
add_userPrincipalName = False
|
||||||
upn = "usePrincipalName"
|
upn = "userPrincipalName"
|
||||||
if upn.lower() not in lower_attrs:
|
if upn.lower() not in lower_attrs:
|
||||||
search_attrs += [upn]
|
search_attrs += [upn]
|
||||||
add_userPrincipalName = True
|
add_userPrincipalName = True
|
||||||
|
Reference in New Issue
Block a user