]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
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>
Tue, 7 Apr 2020 09:37:25 +0000 (09:37 +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 979192eb3ed1274733c510a9fea3597c08f6ef69..8ad76ed0ae935a85b563e96193dcf6cb80d9f793 100644 (file)
@@ -1373,6 +1373,7 @@ char *ads_parent_dn(const char *dn)
                "userAccountControl",
                "DnsHostName",
                "ServicePrincipalName",
+               "userPrincipalName",
                "unicodePwd",
 
                /* Additional attributes Samba checks */