[SCM] Samba Shared Repository - branch master updated
Günther Deschner
gd at samba.org
Tue Apr 12 06:11:01 MDT 2011
The branch, master has been updated
via 4edc98e s3: For net ads join, create a krb5.conf
via da5e5a6 s3: Initialize output in libnet_Join
via feb3cde s3: Retry the join with the short name
from 510e618 s3-util: separate out cmdline helpers.
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 4edc98eb9e18eff00bb5ce9bdcdffa5b11149dd4
Author: Volker Lendecke <vl at samba.org>
Date: Sat Feb 26 18:12:49 2011 +0100
s3: For net ads join, create a krb5.conf
Signed-off-by: Günther Deschner <gd at samba.org>
Autobuild-User: Günther Deschner <gd at samba.org>
Autobuild-Date: Tue Apr 12 14:10:05 CEST 2011 on sn-devel-104
commit da5e5a6a83a6dcf04c51497f8b5f10621d7b47f7
Author: Volker Lendecke <vl at samba.org>
Date: Sat Feb 26 18:12:32 2011 +0100
s3: Initialize output in libnet_Join
Signed-off-by: Günther Deschner <gd at samba.org>
commit feb3cdee366a439e8526f439714c9068068cdaa4
Author: Volker Lendecke <vl at samba.org>
Date: Sat Feb 26 17:53:16 2011 +0100
s3: Retry the join with the short name
Signed-off-by: Günther Deschner <gd at samba.org>
-----------------------------------------------------------------------
Summary of changes:
source3/libnet/libnet_join.c | 7 +++++++
source3/utils/net_ads.c | 5 +++++
2 files changed, 12 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/libnet/libnet_join.c b/source3/libnet/libnet_join.c
index e702ffc..1e866c3 100644
--- a/source3/libnet/libnet_join.c
+++ b/source3/libnet/libnet_join.c
@@ -1974,6 +1974,11 @@ static WERROR libnet_DomainJoin(TALLOC_CTX *mem_ctx,
}
#ifdef HAVE_ADS
+
+ create_local_private_krb5_conf_for_domain(
+ r->out.dns_domain_name, r->out.netbios_domain_name,
+ NULL, &cli->dest_ss, cli->desthost);
+
if (r->out.domain_is_ad && r->in.account_ou &&
!(r->in.join_flags & WKSSVC_JOIN_FLAGS_JOIN_UNSECURE)) {
@@ -2068,6 +2073,8 @@ WERROR libnet_Join(TALLOC_CTX *mem_ctx,
LIBNET_JOIN_IN_DUMP_CTX(mem_ctx, r);
}
+ ZERO_STRUCT(r->out);
+
werr = libnet_join_pre_processing(mem_ctx, r);
if (!W_ERROR_IS_OK(werr)) {
goto done;
diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c
index e6ac1c9..ca5c1bf 100644
--- a/source3/utils/net_ads.c
+++ b/source3/utils/net_ads.c
@@ -1412,6 +1412,11 @@ int net_ads_join(struct net_context *c, int argc, const char **argv)
r->in.msg_ctx = c->msg_ctx;
werr = libnet_Join(ctx, r);
+ if (W_ERROR_EQUAL(werr, WERR_DCNOTFOUND) &&
+ strequal(domain, lp_realm())) {
+ r->in.domain_name = lp_workgroup();
+ werr = libnet_Join(ctx, r);
+ }
if (!W_ERROR_IS_OK(werr)) {
goto fail;
}
--
Samba Shared Repository
More information about the samba-cvs
mailing list