If adding a user to ldap, make sure we have the 'account' structural class, or
authorAndrew Bartlett <abartlet@samba.org>
Wed, 25 Sep 2002 09:35:45 +0000 (09:35 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 25 Sep 2002 09:35:45 +0000 (09:35 +0000)
else we can't add to OpenLDAP 2.1
(This used to be commit d9a91a41441c156223760cb356fa997ea7bdbc1a)

source3/passdb/pdb_ldap.c

index f82cb4488fc59ff298a9c0520b0233409341f4f5..6d38a2600d02fe4e4dc956c14889a0aa58757197 100644 (file)
@@ -1590,6 +1590,7 @@ static BOOL ldapsam_add_sam_account(struct pdb_methods *my_methods, SAM_ACCOUNT
                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);
        }