summaryrefslogtreecommitdiff
path: root/source4/libnet
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-11-14 09:16:58 +0100
committerStefan Metzmacher <metze@samba.org>2011-11-15 09:46:28 +0100
commit6d3558a8f6f157f5b4232388d675d9353a115632 (patch)
treebd130176b7143684cb97831bdaadb1ce471ab526 /source4/libnet
parentb33c711851c4d2b47af5782ed4d58ec2e7d9039c (diff)
downloadsamba-6d3558a8f6f157f5b4232388d675d9353a115632.tar.gz
samba-6d3558a8f6f157f5b4232388d675d9353a115632.tar.bz2
samba-6d3558a8f6f157f5b4232388d675d9353a115632.zip
s4:libnet_vampire: setup base_dn on the self_made_schema
metze
Diffstat (limited to 'source4/libnet')
-rw-r--r--source4/libnet/libnet_vampire.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/libnet/libnet_vampire.c b/source4/libnet/libnet_vampire.c
index 1daf5cf063..fad80eca80 100644
--- a/source4/libnet/libnet_vampire.c
+++ b/source4/libnet/libnet_vampire.c
@@ -592,6 +592,11 @@ NTSTATUS libnet_vampire_cb_schema_chunk(void *private_data,
s->self_made_schema = dsdb_new_schema(s);
NT_STATUS_HAVE_NO_MEMORY(s->self_made_schema);
+ s->self_made_schema->base_dn = ldb_dn_new(s->self_made_schema,
+ s->ldb,
+ c->forest->schema_dn_str);
+ NT_STATUS_HAVE_NO_MEMORY(s->self_made_schema->base_dn);
+
status = dsdb_load_prefixmap_from_drsuapi(s->self_made_schema, mapping_ctr);
if (!W_ERROR_IS_OK(status)) {
return werror_to_ntstatus(status);