A couple of options for TLS configuration. Still a conflict here,

the default context is initialized before the config file is read,
so the locations are not know at context initialization.
This commit is contained in:
Julio Sánchez Fernández 1999-07-15 15:04:02 +00:00
parent 41de66a0b2
commit d92c7c1c7d

View file

@ -45,7 +45,7 @@ read_config( char *fname )
char *line, *savefname, *saveline;
int cargc, savelineno;
char *cargv[MAXARGS];
int lineno, i;
int lineno, i, rc;
static BackendInfo *bi = NULL;
static BackendDB *be = NULL;
@ -600,6 +600,22 @@ read_config( char *fname )
#endif /*SLAPD_MODULES*/
#ifdef HAVE_TLS
} else if ( !strcasecmp( cargv[0], "SSLCertificateFile" ) ) {
rc = ldap_pvt_tls_set_option( NULL,
LDAP_OPT_X_TLS_CERTFILE,
cargv[1] );
if ( rc )
return rc;
} else if ( !strcasecmp( cargv[0], "SSLCertificateKeyFile" ) ) {
rc = ldap_pvt_tls_set_option( NULL,
LDAP_OPT_X_TLS_KEYFILE,
cargv[1] );
if ( rc )
return rc;
#endif
/* pass anything else to the current backend info/db config routine */
} else {
if ( bi != NULL ) {