summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-03-24 18:07:23 +0100
committerGünther Deschner <gd@samba.org>2011-03-24 23:08:22 +0100
commitba510fae2369620875fac80eaba2c222f3ee234b (patch)
treef041762aa7ed0b3ddc66fbbfd8e94d33644a45cd
parent63bb64d531bccc963e3131658f6c37887f820e87 (diff)
downloadsamba-ba510fae2369620875fac80eaba2c222f3ee234b.tar.gz
samba-ba510fae2369620875fac80eaba2c222f3ee234b.tar.bz2
samba-ba510fae2369620875fac80eaba2c222f3ee234b.zip
s3-ldapsam: fix ldapsam_create_user() with existing posix accounts.
We were not taking into account the existing posix attributes and thus failed while trying to add a 2nd uid attribute. Found by Sumit. Guenther
-rw-r--r--source3/passdb/pdb_ldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c
index d1bee87f60..0e5567ff6b 100644
--- a/source3/passdb/pdb_ldap.c
+++ b/source3/passdb/pdb_ldap.c
@@ -5364,7 +5364,7 @@ static NTSTATUS ldapsam_create_user(struct pdb_methods *my_methods,
return NT_STATUS_UNSUCCESSFUL;
}
- if (!init_ldap_from_sam(ldap_state, NULL, &mods, user, element_is_set_or_changed)) {
+ if (!init_ldap_from_sam(ldap_state, entry, &mods, user, element_is_set_or_changed)) {
DEBUG(1,("ldapsam_create_user: Unable to fill user structs\n"));
return NT_STATUS_UNSUCCESSFUL;
}