diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-09-06 10:39:34 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-09-06 10:39:34 +0000 |
commit | 4aad4d7c73dcf8d1d0e932c21cae49a3700caf01 (patch) | |
tree | 1b02832b84ff8609d25b050dba43103ae287b86d /source3/libads | |
parent | e4eed6e8f4d79b7ae6fc5447b1af02a73ef7777e (diff) | |
download | samba-4aad4d7c73dcf8d1d0e932c21cae49a3700caf01.tar.gz samba-4aad4d7c73dcf8d1d0e932c21cae49a3700caf01.tar.bz2 samba-4aad4d7c73dcf8d1d0e932c21cae49a3700caf01.zip |
Add some DEBUG()s to some libads failure modes.
(This used to be commit ad3c8da13b9d510f78fd56364cd0987de88a9b9f)
Diffstat (limited to 'source3/libads')
-rw-r--r-- | source3/libads/ldap.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index 2cfbedc6d4..428fc02065 100644 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -608,14 +608,17 @@ ADS_STATUS ads_do_search(ADS_STRUCT *ads, const char *bind_path, int scope, char *utf8_exp, *utf8_path, **search_attrs = NULL; TALLOC_CTX *ctx; - if (!(ctx = talloc_init())) + if (!(ctx = talloc_init())) { + DEBUG(1,("ads_do_search: talloc_init() failed!")); return ADS_ERROR(LDAP_NO_MEMORY); + } /* 0 means the conversion worked but the result was empty so we only fail if it's negative. In any case, it always at least nulls out the dest */ if ((push_utf8_talloc(ctx, &utf8_exp, exp) < 0) || (push_utf8_talloc(ctx, &utf8_path, bind_path) < 0)) { + DEBUG(1,("ads_do_search: push_utf8_talloc() failed!")); rc = LDAP_NO_MEMORY; goto done; } @@ -627,6 +630,7 @@ ADS_STATUS ads_do_search(ADS_STRUCT *ads, const char *bind_path, int scope, /* if (!(search_attrs = ads_push_strvals(ctx, attrs))) */ if (!(str_list_copy(&search_attrs, attrs))) { + DEBUG(1,("ads_do_search: str_list_copy() failed!")); rc = LDAP_NO_MEMORY; goto done; } |