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.10.16~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f798edaea3c9f1c97b1818d88532e7b33aabcf36;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 afae46d2e79..db2b72ab1b5 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 */