mirror of
https://github.com/samba-team/samba.git
synced 2024-12-31 17:18:04 +03:00
for some (very weird) reason, the domain I was testing aginst would not
return a DN for the user. Make sure we don't segfault. Andrew Bartlett
This commit is contained in:
parent
5d7d400d6c
commit
9fdedeff6a
@ -490,6 +490,10 @@ static NTSTATUS lookup_usergroups(struct winbindd_domain *domain,
|
|||||||
}
|
}
|
||||||
|
|
||||||
user_dn = ads_pull_string(ads, mem_ctx, msg, "distinguishedName");
|
user_dn = ads_pull_string(ads, mem_ctx, msg, "distinguishedName");
|
||||||
|
if (!user_dn) {
|
||||||
|
DEBUG(1,("lookup_usergroups(rid=%d) ads_search did not return a a distinguishedName!\n", user_rid));
|
||||||
|
goto done;
|
||||||
|
}
|
||||||
|
|
||||||
if (msg) ads_msgfree(ads, msg);
|
if (msg) ads_msgfree(ads, msg);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user