Skip to content
Snippets Groups Projects
Commit 846a5832 authored by Howard Chu's avatar Howard Chu
Browse files

Set tls_opt_require_cert to default to NEVER. libldap defaults to DEMAND

due to client needs, we change it back here.
parent 0390a171
Branches
Tags
No related merge requests found
......@@ -381,6 +381,16 @@ int main( int argc, char **argv )
goto destroy;
}
#ifdef HAVE_TLS
/* Library defaults to full certificate checking. This is correct when
* a client is verifying a server because all servers should have a
* valid cert. But few clients have valid certs, so we want our default
* to be no checking. The config file can override this as usual.
*/
rc = 0;
(void) ldap_pvt_tls_set_option( NULL, LDAP_OPT_X_TLS_REQUIRE_CERT, &rc );
#endif
if ( read_config( configfile ) != 0 ) {
rc = 1;
SERVICE_EXIT( ERROR_SERVICE_SPECIFIC_ERROR, 19 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment