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:
parent
380e9d26db
commit
c0be84c96d
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user