r20132: get rid of defined but not used warning - static function only used
authorHerb Lewis <herb@samba.org>
Tue, 12 Dec 2006 20:27:01 +0000 (20:27 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:16:26 +0000 (12:16 -0500)
inside the #ifdef HAVE_KRB5
(This used to be commit c6cdf76c5809b4a4b145acb7dd4a695aaf7fcd28)

source3/libads/sasl.c

index c3f496938acc2faf1279099f428485515b9e33ff..7d1fd0d1a839749ef2160d1762c33de5a8a8a4a9 100644 (file)
@@ -136,6 +136,7 @@ static ADS_STATUS ads_sasl_spnego_ntlmssp_bind(ADS_STRUCT *ads)
        return ADS_ERROR(rc);
 }
 
+#ifdef HAVE_KRB5
 /* 
    perform a LDAP/SASL/SPNEGO/KRB5 bind
 */
@@ -165,6 +166,7 @@ static ADS_STATUS ads_sasl_spnego_krb5_bind(ADS_STRUCT *ads, const char *princip
 
        return ADS_ERROR(rc);
 }
+#endif
 
 /* 
    this performs a SASL/SPNEGO bind