From: Andreas Schneider Date: Fri, 3 Apr 2020 13:58:28 +0000 (+0200) Subject: s3:libads: Fix ads_get_upn() X-Git-Tag: samba-4.11.9~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9709735d5b26320a141ff686b9919539a8fa8a5;p=thirdparty%2Fsamba.git s3:libads: Fix ads_get_upn() This adds the userPrincipalName to ads_find_machine_acct() which fetches the data for us. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14336 Signed-off-by: Andreas Schneider Reviewed-by: Alexander Bokovoy (cherry picked from commit ec69752cb963ae850568d3f4905d2941e485627e) --- diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index 979192eb3ed..8ad76ed0ae9 100644 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -1373,6 +1373,7 @@ char *ads_parent_dn(const char *dn) "userAccountControl", "DnsHostName", "ServicePrincipalName", + "userPrincipalName", "unicodePwd", /* Additional attributes Samba checks */