r23861: Fix return code in ads_find_samaccount().
authorGünther Deschner <gd@samba.org>
Fri, 13 Jul 2007 09:53:55 +0000 (09:53 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:28:35 +0000 (12:28 -0500)
Guenther

source/libads/ldap.c

index 32cc82c9252ca350612511c90109de1592e029de..84ceba2406ada958d86880130920390fd68e7248 100644 (file)
@@ -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;
        }