git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bd2b24
)
If adding a user to ldap, make sure we have the 'account' structural class, or
author
Andrew Bartlett
<abartlet@samba.org>
Wed, 25 Sep 2002 09:35:45 +0000
(09:35 +0000)
committer
Andrew 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
patch
|
blob
|
history
diff --git
a/source3/passdb/pdb_ldap.c
b/source3/passdb/pdb_ldap.c
index f82cb4488fc59ff298a9c0520b0233409341f4f5..6d38a2600d02fe4e4dc956c14889a0aa58757197 100644
(file)
--- 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);
}