mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
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:
parent
41de66a0b2
commit
d92c7c1c7d
1 changed files with 17 additions and 1 deletions
|
|
@ -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 ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue