summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2007-07-24 15:36:28 +0000
committerArthur de Jong <arthur@arthurdejong.org>2007-07-24 15:36:28 +0000
commitf8c6a6daa2be2da2b4c7bb73f03aa132268c40a1 (patch)
treeabace65389b7e0fb4d08071b60e10c67ab277622
parentd6f0e2fbfde1a928580cbfdd6845facf2ff1aea2 (diff)
remove some more unused code
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@327 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r--nslcd/ldap-nss.c22
-rw-r--r--nslcd/ldap-nss.h2
-rw-r--r--nslcd/ldap-schema.c1
3 files changed, 0 insertions, 25 deletions
diff --git a/nslcd/ldap-nss.c b/nslcd/ldap-nss.c
index a482f25..48e784e 100644
--- a/nslcd/ldap-nss.c
+++ b/nslcd/ldap-nss.c
@@ -3044,17 +3044,6 @@ _nss_ldap_map_at (enum ldap_map_selector sel, const char *attribute)
}
const char *
-_nss_ldap_unmap_at (enum ldap_map_selector sel, const char *attribute)
-{
- const char *mapped = NULL;
- enum nss_status stat;
-
- stat = _nss_ldap_map_get (sel, MAP_ATTRIBUTE_REVERSE, attribute, &mapped);
-
- return (stat == NSS_STATUS_SUCCESS) ? mapped : attribute;
-}
-
-const char *
_nss_ldap_map_oc (enum ldap_map_selector sel, const char *objectclass)
{
const char *mapped = NULL;
@@ -3066,17 +3055,6 @@ _nss_ldap_map_oc (enum ldap_map_selector sel, const char *objectclass)
}
const char *
-_nss_ldap_unmap_oc (enum ldap_map_selector sel, const char *objectclass)
-{
- const char *mapped = NULL;
- enum nss_status stat;
-
- stat = _nss_ldap_map_get (sel, MAP_OBJECTCLASS_REVERSE, objectclass, &mapped);
-
- return (stat == NSS_STATUS_SUCCESS) ? mapped : objectclass;
-}
-
-const char *
_nss_ldap_map_ov (const char *attribute)
{
const char *value = NULL;
diff --git a/nslcd/ldap-nss.h b/nslcd/ldap-nss.h
index ca55389..268289f 100644
--- a/nslcd/ldap-nss.h
+++ b/nslcd/ldap-nss.h
@@ -412,10 +412,8 @@ int _nss_ldap_shadow_date(const char *val);
void _nss_ldap_shadow_handle_flag(struct spwd *sp);
const char *_nss_ldap_map_at (enum ldap_map_selector sel, const char *attribute);
-const char *_nss_ldap_unmap_at (enum ldap_map_selector sel, const char *attribute);
const char *_nss_ldap_map_oc (enum ldap_map_selector sel, const char *objectclass);
-const char *_nss_ldap_unmap_oc (enum ldap_map_selector sel, const char *objectclass);
enum nss_status _nss_ldap_init (void);
diff --git a/nslcd/ldap-schema.c b/nslcd/ldap-schema.c
index c354718..e1be662 100644
--- a/nslcd/ldap-schema.c
+++ b/nslcd/ldap-schema.c
@@ -254,7 +254,6 @@ init_pwd_attributes (const char ***pwd_attrs)
(*pwd_attrs)[i++] = attmap_passwd_homeDirectory;
(*pwd_attrs)[i++] = attmap_passwd_loginShell;
(*pwd_attrs)[i++] = attmap_passwd_gecos;
- (*pwd_attrs)[i++] = "description";
(*pwd_attrs)[i++] = attmap_objectClass;
(*pwd_attrs)[i] = NULL;
}