summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2005-12-21 10:05:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:55 -0500
commit568e8003bc48ec18118358b98c2d1131efd6ff45 (patch)
treea06889c2a2cdc94dc231d544fb3145bf31096c77
parent025cee7eec8dac36704be7c12e2c48876bff21a0 (diff)
downloadsamba-568e8003bc48ec18118358b98c2d1131efd6ff45.tar.gz
samba-568e8003bc48ec18118358b98c2d1131efd6ff45.tar.bz2
samba-568e8003bc48ec18118358b98c2d1131efd6ff45.zip
r12406: Since w2k3 sp1 we fail to create user accounts using e.g. "net ads user
add" with "Server is unwilling to perform". Seems we have to put in the same userAccountControl bits the server would pick when we wouldn't send them at all. Guenther (This used to be commit fd5da5875cdc47fc6ef6ba1615a9635f9f157589)
-rw-r--r--source3/libads/ldap_user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libads/ldap_user.c b/source3/libads/ldap_user.c
index 56a0d8013b..3ff6acc9e8 100644
--- a/source3/libads/ldap_user.c
+++ b/source3/libads/ldap_user.c
@@ -65,7 +65,7 @@ ADS_STATUS ads_add_user_acct(ADS_STRUCT *ads, const char *user,
if (!(new_dn = talloc_asprintf(ctx, "cn=%s,%s,%s", name, container,
ads->config.bind_path)))
goto done;
- if (!(controlstr = talloc_asprintf(ctx, "%u", UF_NORMAL_ACCOUNT)))
+ if (!(controlstr = talloc_asprintf(ctx, "%u", (UF_NORMAL_ACCOUNT | UF_ACCOUNTDISABLE))))
goto done;
if (!(mods = ads_init_mods(ctx)))
goto done;