mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-17 14:00:30 +08:00
Fix, the TLSVerifyClient option was not evaluated correctly and could never
be turned off. (It defaults to off, so if you never mentioned it, it would stay off. But if you tried "TLSVerifyClient 0" it would turn on.)
This commit is contained in:
parent
65097865c7
commit
41b1753c9b
@ -1080,9 +1080,10 @@ read_config( const char *fname )
|
||||
if ( rc )
|
||||
return rc;
|
||||
} else if ( !strcasecmp( cargv[0], "TLSVerifyClient" ) ) {
|
||||
i = atoi(cargv[1]);
|
||||
rc = ldap_pvt_tls_set_option( NULL,
|
||||
LDAP_OPT_X_TLS_REQUIRE_CERT,
|
||||
cargv[1] );
|
||||
&i );
|
||||
if ( rc )
|
||||
return rc;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user