diff options
author | Gerald Carter <jerry@samba.org> | 2005-03-22 15:12:50 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2005-03-22 15:12:50 +0000 |
commit | a779ada80fcaad18f68f22d8094c67498d145a88 (patch) | |
tree | f95f2829717d5c301a272e16a4ab5f316edf6fa8 /source/libads/sasl.c | |
parent | 0f8d615a5793dcbcba6af0feec63300b48c34224 (diff) | |
download | samba-a779ada80fcaad18f68f22d8094c67498d145a88.tar.gz samba-a779ada80fcaad18f68f22d8094c67498d145a88.tar.xz samba-a779ada80fcaad18f68f22d8094c67498d145a88.zip |
r5952: BUG 2469: patch from Jason Mader to cleanup compiler warning when not using krb5
Diffstat (limited to 'source/libads/sasl.c')
-rw-r--r-- | source/libads/sasl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/libads/sasl.c b/source/libads/sasl.c index 97ba9c92862..0164b0c7401 100644 --- a/source/libads/sasl.c +++ b/source/libads/sasl.c @@ -173,7 +173,9 @@ static ADS_STATUS ads_sasl_spnego_bind(ADS_STRUCT *ads) DATA_BLOB blob; char *principal = NULL; char *OIDs[ASN1_MAX_OIDS]; +#ifdef HAVE_KRB5 BOOL got_kerberos_mechanism = False; +#endif rc = ldap_sasl_bind_s(ads->ld, NULL, "GSS-SPNEGO", NULL, NULL, NULL, &scred); @@ -202,10 +204,12 @@ static ADS_STATUS ads_sasl_spnego_bind(ADS_STRUCT *ads) /* make sure the server understands kerberos */ for (i=0;OIDs[i];i++) { DEBUG(3,("ads_sasl_spnego_bind: got OID=%s\n", OIDs[i])); +#ifdef HAVE_KRB5 if (strcmp(OIDs[i], OID_KERBEROS5_OLD) == 0 || strcmp(OIDs[i], OID_KERBEROS5) == 0) { got_kerberos_mechanism = True; } +#endif free(OIDs[i]); } DEBUG(3,("ads_sasl_spnego_bind: got server principal name =%s\n", principal)); |