diff options
author | Andrew Bartlett <abartlet@samba.org> | 2007-08-01 04:05:06 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:01:27 -0500 |
commit | 3de02665fe46e5ca027b476a011298b38117fb5e (patch) | |
tree | 194f5df813f23ed022e2d627636c73e3bb53f1aa | |
parent | 07b15cd9fd09adbda5acee00f5a32766e34c6654 (diff) | |
download | samba-3de02665fe46e5ca027b476a011298b38117fb5e.tar.gz samba-3de02665fe46e5ca027b476a011298b38117fb5e.tar.bz2 samba-3de02665fe46e5ca027b476a011298b38117fb5e.zip |
r24112: Complete initialistion of the libnet_ctx when setting up the domain.
We need to set the access_mask and the domain name, or else libnet
will try to do this itself.
This seems to fix the issues Kai was having.
Andrew Bartlett
(This used to be commit 44c193272b05959c756ee0078d666bcdf1374023)
-rw-r--r-- | source4/winbind/wb_init_domain.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/winbind/wb_init_domain.c b/source4/winbind/wb_init_domain.c index eabb23dd45..54b1589e27 100644 --- a/source4/winbind/wb_init_domain.c +++ b/source4/winbind/wb_init_domain.c @@ -284,6 +284,8 @@ static void init_domain_recv_lsa_pipe(struct composite_context *ctx) talloc_steal(state->domain->libnet_ctx, state->domain->libnet_ctx->lsa.pipe); talloc_steal(state->domain->libnet_ctx->lsa.pipe, state->domain->lsa_binding); + state->domain->libnet_ctx->lsa.access_mask = SEC_FLAG_MAXIMUM_ALLOWED; + state->domain->libnet_ctx->lsa.name = state->domain->info->name; ZERO_STRUCT(state->domain->libnet_ctx->lsa.handle); state->lsa_openpolicy.in.system_name = @@ -392,6 +394,8 @@ static void init_domain_recv_samr(struct composite_context *ctx) if (!composite_is_ok(state->ctx)) return; talloc_steal(state->domain->libnet_ctx->samr.pipe, state->domain->samr_binding); + state->domain->libnet_ctx->samr.access_mask = SEC_FLAG_MAXIMUM_ALLOWED; + state->domain->libnet_ctx->samr.name = state->domain->info->name; state->domain->ldap_conn = ldap4_new_connection(state->domain, state->ctx->event_ctx); |