Patch for Problems with LDAP_OPT_X_SASL_NOCANON
[Date Prev][Date Next] [Thread Prev][Thread Next]Patch for Problems with LDAP_OPT_X_SASL_NOCANON
- From: Matt Klaric <matt [at] klaric.com>
- To: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Subject: Patch for Problems with LDAP_OPT_X_SASL_NOCANON
- Date: Tue, 13 Nov 2012 10:34:22 -0600
I'm using version 0.8.11 of nss-pam-ldapd. I've compiled the code to build without SASL support but a SASL option ( LDAP_OPT_X_SASL_NOCANON ) is still being set in nslcd/myldap.c. This is because my system does have SASL support, but I'm choosing not to use it when compiling nss-pam-ldapd. However, my /usr/include/ldap.h file contains a macro definition for LDAP_OPT_X_SASL_NOCANON. In practice, this results in an error when attempting to authenticate because I'm unable to set the aforementioned option on my session (due to lack of SASL support).
I've attached a patch that adds additional checks surrounding the setting of this option. I believe that this option should only be set if the user has specified SASL support (and has either sasl.h or sasl/sasl.h installed) *and* has the LDAP_OPT_X_SASL_NOCANON macro defined.
Feedback on this patch is welcome.
Thanks,
Matt
Attachment:
nss-pam-ldapd-0.8.11-remove-sasl-option.patch
Description: Binary data
-- To unsubscribe send an email to nss-pam-ldapd-users-unsubscribe@lists.arthurdejong.org or see http://lists.arthurdejong.org/nss-pam-ldapd-users/
- Patch for Problems with LDAP_OPT_X_SASL_NOCANON, Matt Klaric
- Prev by Date: Re: upgrade from 0.8.10 to 0.8.11 breaks configuration
- Next by Date: Re: Patch for Problems with LDAP_OPT_X_SASL_NOCANON Re: upgrade from 0.8.10 to 0.8.11 breaks configuration
- Previous by thread: Re: upgrade from 0.8.10 to 0.8.11 breaks configuration
- Next by thread: Re: Patch for Problems with LDAP_OPT_X_SASL_NOCANON Re: upgrade from 0.8.10 to 0.8.11 breaks configuration