From f21ccff91fe9dd37a57c6505fc19b7fc2c103a59 Mon Sep 17 00:00:00 2001 From: Jim McDonough Date: Thu, 4 Apr 2002 03:03:00 +0000 Subject: Try harder next time to not duplicate function...take ads_err2string back out since it's already in ads_errstr() in ads_status.c (This used to be commit 0475126ffb69f0485fd31511cb13d98df74a8d5b) --- source3/libads/ldap.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'source3') diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index 57fd3305e7..9670327dbe 100644 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -66,21 +66,6 @@ ADS_STATUS ads_connect(ADS_STRUCT *ads) return ads_sasl_bind(ads); } -char *ads_err2string(ADS_STATUS status) -{ - switch(status.error_type) { - case ADS_ERROR_LDAP: - return ldap_err2string(status.rc); - case ADS_ERROR_KRB5: - return error_message(status.rc); - case ADS_ERROR_GSS: - return "gssapi error"; - case ADS_ERROR_SYSTEM: - return strerror(status.rc); - default: - return "unknown error"; - } -} /* Do a search with paged results. cookie must be null on the first call, and then returned on each subsequent call. It will be null -- cgit