summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/ldap-nss.c33
-rw-r--r--server/ldap-nss.h1
2 files changed, 0 insertions, 34 deletions
diff --git a/server/ldap-nss.c b/server/ldap-nss.c
index eeef9ca..7f72f4d 100644
--- a/server/ldap-nss.c
+++ b/server/ldap-nss.c
@@ -4030,36 +4030,3 @@ _nss_ldap_test_initgroups_ignoreuser (const char *user)
return 0;
}
-
-int
-_nss_ldap_get_ld_errno (char **m, char **s)
-{
- int rc;
- int lderrno;
-
- if (__session.ls_conn == NULL)
- {
- return LDAP_UNAVAILABLE;
- }
-
- /* is this needed? */
- rc = ldap_get_option (__session.ls_conn, LDAP_OPT_ERROR_NUMBER, &lderrno);
- if (rc != LDAP_SUCCESS)
- return rc;
-
- if (s != NULL)
- {
- rc = ldap_get_option (__session.ls_conn, LDAP_OPT_ERROR_STRING, s);
- if (rc != LDAP_SUCCESS)
- return rc;
- }
-
- if (m != NULL)
- {
- rc = ldap_get_option (__session.ls_conn, LDAP_OPT_MATCHED_DN, m);
- if (rc != LDAP_SUCCESS)
- return rc;
- }
-
- return lderrno;
-}
diff --git a/server/ldap-nss.h b/server/ldap-nss.h
index c163eee..b48106e 100644
--- a/server/ldap-nss.h
+++ b/server/ldap-nss.h
@@ -607,6 +607,5 @@ void _nss_ldap_close (void);
int _nss_ldap_test_config_flag (unsigned int flag);
int _nss_ldap_test_initgroups_ignoreuser (const char *user);
-int _nss_ldap_get_ld_errno (char **m, char **s);
#endif /* _LDAP_NSS_LDAP_LDAP_NSS_H */