summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-03-31 14:36:25 +0000
committerVolker Lendecke <vlendec@samba.org>2004-03-31 14:36:25 +0000
commit9d1a4e80132b1bf3874a8ef0fd0ed2be81c7ab91 (patch)
treebe6b6b348a44a137486feb2d73cb25540c024c2b
parentd113219e78c4c03375ad03595603ece6dff94461 (diff)
downloadsamba-9d1a4e80132b1bf3874a8ef0fd0ed2be81c7ab91.tar.gz
samba-9d1a4e80132b1bf3874a8ef0fd0ed2be81c7ab91.tar.bz2
samba-9d1a4e80132b1bf3874a8ef0fd0ed2be81c7ab91.zip
Remove some unused code
(This used to be commit 2b757b6adf0b4e5c799cc8943e8fd96cc94c24bc)
-rw-r--r--source3/passdb/pdb_ldap.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c
index 1831b0e8f9..689c701041 100644
--- a/source3/passdb/pdb_ldap.c
+++ b/source3/passdb/pdb_ldap.c
@@ -539,28 +539,6 @@ static BOOL init_sam_from_ldap (struct ldapsam_privates *ldap_state,
return False;
}
-
-#if 0 /* JERRY -- not used anymore */
- /*
- * If so configured, try and get the values from LDAP
- */
-
- if (lp_ldap_trust_ids() && (get_unix_attributes(ldap_state, sampass, entry, &gid)))
- {
- if (pdb_get_init_flags(sampass,PDB_GROUPSID) == PDB_DEFAULT)
- {
- GROUP_MAP map;
- /* call the mapping code here */
- if(pdb_getgrgid(&map, gid)) {
- pdb_set_group_sid(sampass, &map.sid, PDB_SET);
- }
- else {
- pdb_set_group_sid_from_rid(sampass, pdb_gid_to_group_rid(gid), PDB_SET);
- }
- }
- }
-#endif
-
if (!smbldap_get_single_pstring(ldap_state->smbldap_state->ldap_struct, entry,
get_userattr_key2string(ldap_state->schema_ver, LDAP_ATTR_PWD_LAST_SET), temp)) {
/* leave as default */