Author: abartlet Date: 2007-08-01 04:05:06 +0000 (Wed, 01 Aug 2007) New Revision: 24112
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24112 Log: 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 Modified: branches/SAMBA_4_0/source/winbind/wb_init_domain.c Changeset: Modified: branches/SAMBA_4_0/source/winbind/wb_init_domain.c =================================================================== --- branches/SAMBA_4_0/source/winbind/wb_init_domain.c 2007-08-01 01:22:53 UTC (rev 24111) +++ branches/SAMBA_4_0/source/winbind/wb_init_domain.c 2007-08-01 04:05:06 UTC (rev 24112) @@ -284,6 +284,8 @@ 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 @@ 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);