1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-10 13:57:47 +03:00

Support "net ads join" format while joining to a specific ou.

libnetjoin now supports Computers/Servers/Unix as well as
ou=Computers,ou=Servers,ou=Unix,dc=ber,dc=realm,dc=com.

Guenther
This commit is contained in:
Günther Deschner 2008-03-28 16:39:02 +01:00
parent 380e9d26db
commit c0be84c96d

View File

@ -207,6 +207,11 @@ static ADS_STATUS libnet_join_precreate_machine_acct(TALLOC_CTX *mem_ctx,
const char *attrs[] = { "dn", NULL };
bool moved = false;
status = ads_check_ou_dn(mem_ctx, r->in.ads, r->in.account_ou);
if (!ADS_ERR_OK(status)) {
return status;
}
status = ads_search_dn(r->in.ads, &res, r->in.account_ou, attrs);
if (!ADS_ERR_OK(status)) {
return status;