s3:libads: Fix ads_get_upn()
authorAndreas Schneider <asn@samba.org>
Fri, 3 Apr 2020 13:58:28 +0000 (15:58 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 14 May 2020 07:18:23 +0000 (07:18 +0000)
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 <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
(cherry picked from commit ec69752cb963ae850568d3f4905d2941e485627e)

source3/libads/ldap.c

index afae46d2e79e2f27c59f68f578b7551f5b53aa53..db2b72ab1b5885f1b541e7d955a9fa54829992c7 100644 (file)
@@ -1373,6 +1373,7 @@ char *ads_parent_dn(const char *dn)
                "userAccountControl",
                "DnsHostName",
                "ServicePrincipalName",
+               "userPrincipalName",
                "unicodePwd",
 
                /* Additional attributes Samba checks */