From: Jonathon Reinhart Date: Wed, 5 Feb 2020 05:32:02 +0000 (-0500) Subject: python: Fix userPrincipalName in GetPasswordCommand.get_account_attributes() X-Git-Url: http://git.samba.org/samba.git/?a=commitdiff_plain;h=0dd2a27347ba8fcd9c26aa54f36df8d33e5005ed;p=gd%2Fsamba-autobuild%2F.git python: Fix userPrincipalName in GetPasswordCommand.get_account_attributes() Signed-off-by: Jonathon Reinhart Reviewed-by: Andreas Schneider Reviewed-by: Alexander Bokovoy Autobuild-User(master): Andreas Schneider Autobuild-Date(master): Thu Mar 5 16:27:50 UTC 2020 on sn-devel-184 --- diff --git a/python/samba/netcmd/user.py b/python/samba/netcmd/user.py index 26db3105da0..7d4464e2aa9 100644 --- a/python/samba/netcmd/user.py +++ b/python/samba/netcmd/user.py @@ -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