summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-09-25 09:35:45 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-09-25 09:35:45 +0000
commitbfa04e42b895e1113b7fa38024b7e7d3d2df7adb (patch)
tree87a37ac1a082611dfc550f3f625bacf1594046a2 /source3/passdb
parent2bd2b243fcdd92979ad98baea55569005df21670 (diff)
downloadsamba-bfa04e42b895e1113b7fa38024b7e7d3d2df7adb.tar.gz
samba-bfa04e42b895e1113b7fa38024b7e7d3d2df7adb.tar.bz2
samba-bfa04e42b895e1113b7fa38024b7e7d3d2df7adb.zip
If adding a user to ldap, make sure we have the 'account' structural class, or
else we can't add to OpenLDAP 2.1 (This used to be commit d9a91a41441c156223760cb356fa997ea7bdbc1a)
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/pdb_ldap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c
index f82cb4488f..6d38a2600d 100644
--- a/source3/passdb/pdb_ldap.c
+++ b/source3/passdb/pdb_ldap.c
@@ -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);
}