The branch, master has been updated via 6acbcd1 Make sure that user exists after running add user script before adding sam account. from 94cfb49 s3-waf: add configure/declaration checks for fdatasync, readahead and splice.
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log ----------------------------------------------------------------- commit 6acbcd1b0ce6529eb381ea94573a707e677eebb4 Author: Bjoern Baumbach <b...@sernet.de> Date: Tue Dec 7 14:36:44 2010 +0100 Make sure that user exists after running add user script before adding sam account. Autobuild-User: Michael Adam <ob...@samba.org> Autobuild-Date: Tue Dec 7 17:37:52 CET 2010 on sn-devel-104 ----------------------------------------------------------------------- Summary of changes: source3/passdb/pdb_interface.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/passdb/pdb_interface.c b/source3/passdb/pdb_interface.c index a6fe2e0..1361c17 100644 --- 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 */ -- Samba Shared Repository