Displaying 2 results from an estimated 2 matches for "ads_search_dn".
2020 Jul 01
3
help for join AD domain failure troubleshooting
...rror
signed SMB2 message
"""
It showed failed while searching a wellknownobject, and Samba source code shows:
if (asprintf(&base, "<WKGUID=%s,%s>", wknguid, ads->config.bind_path ) == -1) {
DEBUG(1, ("asprintf failed!\n"));
return NULL;
}
status = ads_search_dn(ads, &res, base, attrs);
if (!ADS_ERR_OK(status)) {
DEBUG(1,("Failed while searching for: %s\n", base));
goto out;
}
It should fail at line: status = ads_search_dn(ads, &res, base, attrs);
However, if I search by ldapsearch command, it works well:
"""
[root at mo...
2020 Jul 01
0
help for join AD domain failure troubleshooting
...t;
>
> It showed failed while searching a wellknownobject, and Samba source code shows:
>
> if (asprintf(&base, "<WKGUID=%s,%s>", wknguid, ads->config.bind_path ) == -1) {
> DEBUG(1, ("asprintf failed!\n"));
> return NULL;
> }
>
> status = ads_search_dn(ads, &res, base, attrs);
> if (!ADS_ERR_OK(status)) {
> DEBUG(1,("Failed while searching for: %s\n", base));
> goto out;
> }
>
> It should fail at line: status = ads_search_dn(ads, &res, base, attrs);
>
> However, if I search by ldapsearch command, it works...