git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9da312
)
s4:dsdb/common/util_samr.c - use an LDB constant for result checking
author
Matthias Dieter Wallnöfer
<mdw@samba.org>
Wed, 6 Oct 2010 18:45:36 +0000
(20:45 +0200)
committer
Matthias Dieter Wallnöfer
<mdw@samba.org>
Thu, 7 Oct 2010 07:40:31 +0000
(07:40 +0000)
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Thu Oct 7 07:40:31 UTC 2010 on sn-devel-104
source4/dsdb/common/util_samr.c
patch
|
blob
|
history
diff --git
a/source4/dsdb/common/util_samr.c
b/source4/dsdb/common/util_samr.c
index dbf71949a041dfb7e33a3fde9b768ddd20c62e4f..85bfbfd75efe9f084cce7bdb17d4e5cd9b678f90 100644
(file)
--- a/
source4/dsdb/common/util_samr.c
+++ b/
source4/dsdb/common/util_samr.c
@@
-216,7
+216,7
@@
NTSTATUS dsdb_add_user(struct ldb_context *ldb,
if (samdb_msg_add_uint(ldb, tmp_ctx, msg,
"userAccountControl",
- user_account_control) !=
0
) {
+ user_account_control) !=
LDB_SUCCESS
) {
ldb_transaction_cancel(ldb);
talloc_free(tmp_ctx);
return NT_STATUS_NO_MEMORY;