diff options
author | Jim McDonough <jmcd@samba.org> | 2002-04-04 03:03:00 +0000 |
---|---|---|
committer | Jim McDonough <jmcd@samba.org> | 2002-04-04 03:03:00 +0000 |
commit | 0475126ffb69f0485fd31511cb13d98df74a8d5b (patch) | |
tree | 19eb27a81a745f603ed67c9d1962e51b77f72d0e | |
parent | 24c6bf4e8b6d519340d5f9f3353ffc6b5f7520b3 (diff) | |
download | samba-0475126ffb69f0485fd31511cb13d98df74a8d5b.tar.gz samba-0475126ffb69f0485fd31511cb13d98df74a8d5b.tar.xz samba-0475126ffb69f0485fd31511cb13d98df74a8d5b.zip |
Try harder next time to not duplicate function...take ads_err2string back
out since it's already in ads_errstr() in ads_status.c
-rw-r--r-- | source/libads/ldap.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/source/libads/ldap.c b/source/libads/ldap.c index 57fd3305e7c..9670327dbe5 100644 --- a/source/libads/ldap.c +++ b/source/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 |