summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/libads/ldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c
index 32cc82c925..84ceba2406 100644
--- a/source3/libads/ldap.c
+++ b/source3/libads/ldap.c
@@ -3310,7 +3310,7 @@ ADS_STATUS ads_find_samaccount(ADS_STRUCT *ads,
}
if (ads_count_replies(ads, res) != 1) {
- printf("no result\n");
+ status = ADS_ERROR(LDAP_NO_RESULTS_RETURNED);
goto out;
}