From f798edaea3c9f1c97b1818d88532e7b33aabcf36 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 3 Apr 2020 15:58:28 +0200 Subject: [PATCH] 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) --- source3/libads/ldap.c | 1 + 1 file changed, 1 insertion(+) 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 */ -- 2.47.2