git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94cfb49
)
Make sure that user exists after running add user script before adding sam account.
author
Bjoern Baumbach
<bb@sernet.de>
Tue, 7 Dec 2010 13:36:44 +0000
(14:36 +0100)
committer
Michael Adam
<obnox@samba.org>
Tue, 7 Dec 2010 16:37:52 +0000
(17:37 +0100)
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Tue Dec 7 17:37:52 CET 2010 on sn-devel-104
source3/passdb/pdb_interface.c
patch
|
blob
|
history
diff --git
a/source3/passdb/pdb_interface.c
b/source3/passdb/pdb_interface.c
index a6fe2e0408777ba9e3884f29a954615a8039f349..1361c178b661585fe84e248ef2f701a031d92d21 100644
(file)
--- a/
source3/passdb/pdb_interface.c
+++ b/
source3/passdb/pdb_interface.c
@@
-476,6
+476,11
@@
static NTSTATUS pdb_default_create_user(struct pdb_methods *methods,
flush_pwnam_cache();
pwd = Get_Pwnam_alloc(tmp_ctx, name);
+
+ if(pwd == NULL) {
+ DEBUG(3, ("Could not find user %s, add script did not work\n", name));
+ return NT_STATUS_NO_SUCH_USER;
+ }
}
/* we have a valid SID coming out of this call */