1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +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:
Jonathon Reinhart 2020-02-05 00:32:02 -05:00 committed by Andreas Schneider
parent e45e0912d9
commit 0dd2a27347

View File

@ -1182,7 +1182,7 @@ class GetPasswordCommand(Command):
add_sAMAcountName = True
add_userPrincipalName = False
upn = "usePrincipalName"
upn = "userPrincipalName"
if upn.lower() not in lower_attrs:
search_attrs += [upn]
add_userPrincipalName = True