From c0bf7d9db4c704fa43388dc7eb61f90ecdb7e974 Mon Sep 17 00:00:00 2001 From: Jim McDonough Date: Thu, 4 Apr 2002 03:06:22 +0000 Subject: Correct error string function call to ads_errstr() (This used to be commit d7317ca8da4b04804f4d01752cef56ec5a9c3418) --- source3/utils/net_ads.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c index fb9a2b8b02..722e5a8616 100644 --- a/source3/utils/net_ads.c +++ b/source3/utils/net_ads.c @@ -171,7 +171,7 @@ static int ads_user_add(int argc, const char **argv) status = ads_find_user_acct(ads, &res, argv[0]); if (!ADS_ERR_OK(status)) { - d_printf("ads_user_add: %s\n", ads_err2string(status)); + d_printf("ads_user_add: %s\n", ads_errstr(status)); goto done; } @@ -188,7 +188,7 @@ static int ads_user_add(int argc, const char **argv) rc = 0; } else { d_printf("Could not add user %s: %s\n", argv[0], - ads_err2string(status)); + ads_errstr(status)); } done: @@ -264,7 +264,7 @@ static int ads_user_delete(int argc, const char **argv) return 0; } d_printf("Error deleting user %s: %s\n", argv[0], - ldap_err2string(rc.rc)); + ads_errstr(rc)); return -1; } -- cgit