From 8b29c8f63454604b7d04cfcb171b30eb8e31636c Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 28 Mar 2008 16:39:02 +0100 Subject: 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 used to be commit c0be84c96d8133c6b77d1f0efe41f5f2373febb3) --- source3/libnet/libnet_join.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3') diff --git a/source3/libnet/libnet_join.c b/source3/libnet/libnet_join.c index f55d558c01..90e1b5941e 100644 --- a/source3/libnet/libnet_join.c +++ b/source3/libnet/libnet_join.c @@ -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; -- cgit