Allow this to build without LDAP, as per the example below it.
authorAndrew Bartlett <abartlet@samba.org>
Mon, 31 Dec 2001 11:14:38 +0000 (11:14 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 31 Dec 2001 11:14:38 +0000 (11:14 +0000)
Andrew Bartlett
(This used to be commit f60e4450018fc06c9f8ce18e62c29fd968d55daa)

source3/libads/krb5_setpw.c

index e15c22091d2d345f5dc16920a0feb91489db0bc7..3973b424f61bd711a74a4f1206c303faf1fa9fe5 100644 (file)
@@ -390,7 +390,7 @@ ADS_STATUS krb5_set_password(const char *kdc_host, const char *princ, const char
                krb5_free_principal(context, principal);
                krb5_free_context(context);
                DEBUG(1,("send of chpw failed (%s)\n", strerror(errno)));
-               return ADS_ERROR(LDAP_ENCODING_ERROR);
+               return ADS_ERROR_SYSTEM(errno);
        }
 
        free(chpw_req.data);