s3:libads: Fix ads_get_upn()
authorAndreas Schneider <asn@samba.org>
Fri, 3 Apr 2020 13:58:28 +0000 (15:58 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 6 Apr 2020 17:35:39 +0000 (17:35 +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>
source3/libads/ldap.c

index 01e10c1260ce170df9221099160b3880a2c6d3e9..0caa104464576ef593f642cde5e0292f1a06352e 100755 (executable)
@@ -1373,6 +1373,7 @@ char *ads_parent_dn(const char *dn)
                "userAccountControl",
                "DnsHostName",
                "ServicePrincipalName",
+               "userPrincipalName",
                "unicodePwd",
 
                /* Additional attributes Samba checks */