s4-dsdb Add ability to force a particular SID in the upgrade case
[amitay/samba.git] / source3 / passdb / pdb_samba4.c
index 5848c23de8e1dd8eea79cbc2e1beffe0c6eb7d90..aa3352a65887a130c19c4eaaf0d9e7633c3e010e 100644 (file)
@@ -580,7 +580,8 @@ static NTSTATUS pdb_samba4_create_user(struct pdb_methods *m,
 
        /* Internally this uses transactions to ensure all the steps
         * happen or fail as one */
-       status = dsdb_add_user(state->ldb, tmp_ctx, name, acct_flags, &sid, &dn);
+       status = dsdb_add_user(state->ldb, tmp_ctx, name, acct_flags, NULL,
+                              &sid, &dn);
        if (!NT_STATUS_IS_OK(status)) {
                talloc_free(tmp_ctx);
                return status;