From 4243d47593e26c7786f796548f430c3986e9732e Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Tue, 27 Aug 2002 14:07:09 +0000 Subject: [PATCH] if we are adding a new sambaAccount, make sure that we add a STRUCTURAL objectclass as well (e.g. "account") --- source/passdb/pdb_ldap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/passdb/pdb_ldap.c b/source/passdb/pdb_ldap.c index 2289a7070ee..a4258347178 100644 --- a/source/passdb/pdb_ldap.c +++ b/source/passdb/pdb_ldap.c @@ -1104,6 +1104,7 @@ BOOL pdb_add_sam_account(SAM_ACCOUNT * newpwd) if (ldap_op == LDAP_MOD_REPLACE) { rc = ldap_modify_s(ldap_struct, dn, mods); } else { + make_a_mod(&mods, LDAP_MOD_ADD, "objectclass", "account"); rc = ldap_add_s(ldap_struct, dn, mods); } -- 2.11.4.GIT