summaryrefslogtreecommitdiff
path: root/source4/rpc_server/lsa
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-08-05 22:00:27 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-08-07 14:22:42 +0200
commit67b1e1b8f3314f49d028a11df5ccda1e81986cda (patch)
tree98c954ea46e3e926a5fe29834c06f2b0fcd1df17 /source4/rpc_server/lsa
parent25e973d5db9ffa6d4138cdbe7c3dd1880149ad2a (diff)
downloadsamba-67b1e1b8f3314f49d028a11df5ccda1e81986cda.tar.gz
samba-67b1e1b8f3314f49d028a11df5ccda1e81986cda.tar.bz2
samba-67b1e1b8f3314f49d028a11df5ccda1e81986cda.zip
s3:dcesrv_lsa.c - use the RELAX control in order to create LSA objects
Diffstat (limited to 'source4/rpc_server/lsa')
-rw-r--r--source4/rpc_server/lsa/dcesrv_lsa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/rpc_server/lsa/dcesrv_lsa.c b/source4/rpc_server/lsa/dcesrv_lsa.c
index 37e807bfe9..7c7bdfdc1e 100644
--- a/source4/rpc_server/lsa/dcesrv_lsa.c
+++ b/source4/rpc_server/lsa/dcesrv_lsa.c
@@ -27,8 +27,8 @@
#include "auth/kerberos/kerberos.h"
#include "librpc/gen_ndr/ndr_drsblobs.h"
#include "librpc/gen_ndr/ndr_lsa.h"
-#include "../lib/crypto/crypto.h"
#include "lib/util/tsort.h"
+#include "dsdb/common/util.c"
/*
this type allows us to distinguish handle types
@@ -1084,7 +1084,7 @@ static NTSTATUS dcesrv_lsa_CreateTrustedDomain_base(struct dcesrv_call_state *dc
trusted_domain_state->trusted_domain_dn = talloc_reference(trusted_domain_state, msg->dn);
/* create the trusted_domain */
- ret = ldb_add(sam_ldb, msg);
+ ret = dsdb_add(sam_ldb, msg, DSDB_MODIFY_RELAX);
switch (ret) {
case LDB_SUCCESS:
break;
@@ -2966,7 +2966,7 @@ static NTSTATUS dcesrv_lsa_CreateSecret(struct dcesrv_call_state *dce_call, TALL
secret_state->secret_dn = talloc_reference(secret_state, msg->dn);
/* create the secret */
- ret = ldb_add(secret_state->sam_ldb, msg);
+ ret = dsdb_add(secret_state->sam_ldb, msg, DSDB_MODIFY_RELAX);
if (ret != LDB_SUCCESS) {
DEBUG(0,("Failed to create secret record %s: %s\n",
ldb_dn_get_linearized(msg->dn),