mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-16 11:57:39 -05:00
ITS#7271 Don't clobber SASL_NOCANON in clients/tools/common.c
This commit is contained in:
parent
df1d118de8
commit
5cf4fbc74d
1 changed files with 7 additions and 6 deletions
|
|
@ -1410,12 +1410,13 @@ dnssrv_free:;
|
|||
|
||||
#ifdef HAVE_CYRUS_SASL
|
||||
/* canon */
|
||||
if( ldap_set_option( ld, LDAP_OPT_X_SASL_NOCANON,
|
||||
nocanon ? LDAP_OPT_ON : LDAP_OPT_OFF ) != LDAP_OPT_SUCCESS )
|
||||
{
|
||||
fprintf( stderr, "Could not set LDAP_OPT_X_SASL_NOCANON %s\n",
|
||||
nocanon ? "on" : "off" );
|
||||
tool_exit( ld, EXIT_FAILURE );
|
||||
if( nocanon ) {
|
||||
if( ldap_set_option( ld, LDAP_OPT_X_SASL_NOCANON,
|
||||
LDAP_OPT_ON ) != LDAP_OPT_SUCCESS )
|
||||
{
|
||||
fprintf( stderr, "Could not set LDAP_OPT_X_SASL_NOCANON on\n" );
|
||||
tool_exit( ld, EXIT_FAILURE );
|
||||
}
|
||||
}
|
||||
#endif
|
||||
if( ldap_set_option( ld, LDAP_OPT_PROTOCOL_VERSION, &protocol )
|
||||
|
|
|
|||
Loading…
Reference in a new issue