mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 10:09:43 -05:00
s/tls/starttls/
This commit is contained in:
parent
c0089a171d
commit
256732f2ce
3 changed files with 11 additions and 3 deletions
|
|
@ -966,7 +966,7 @@ This option puts the database into "read-only" mode. Any attempts to
|
|||
modify the database will return an "unwilling to perform" error. By
|
||||
default, readonly is off.
|
||||
.HP
|
||||
.B replica host=<hostname>[:port] [tls=yes|critical]
|
||||
.B replica host=<hostname>[:port] [starttls=yes|critical]
|
||||
.B [suffix=<suffix> [...]]
|
||||
.B bindmethod=simple|sasl [binddn=<simple DN>] [credentials=<simple password>]
|
||||
.B [saslmech=<SASL mech>] [secprops=<properties>] [realm=<realm>]
|
||||
|
|
|
|||
|
|
@ -462,9 +462,16 @@ parse_replica_line(
|
|||
} else if ( !strncasecmp( cargv[ i ],
|
||||
SUFFIXSTR, sizeof( SUFFIXSTR ) - 1 ) ) {
|
||||
/* ignore it */ ;
|
||||
} else if ( !strncasecmp( cargv[i], STARTTLSSTR, sizeof(STARTTLSSTR)-1 )) {
|
||||
val = cargv[ i ] + sizeof( STARTTLSSTR );
|
||||
if( !strcasecmp( val, CRITICALSTR ) ) {
|
||||
ri->ri_tls = TLS_CRITICAL;
|
||||
} else {
|
||||
ri->ri_tls = TLS_ON;
|
||||
}
|
||||
} else if ( !strncasecmp( cargv[ i ], TLSSTR, sizeof( TLSSTR ) - 1 ) ) {
|
||||
val = cargv[ i ] + sizeof( TLSSTR );
|
||||
if( !strcasecmp( val, TLSCRITICALSTR ) ) {
|
||||
if( !strcasecmp( val, CRITICALSTR ) ) {
|
||||
ri->ri_tls = TLS_CRITICAL;
|
||||
} else {
|
||||
ri->ri_tls = TLS_ON;
|
||||
|
|
|
|||
|
|
@ -143,8 +143,9 @@
|
|||
#define SASLMECHSTR "saslmech"
|
||||
#define REALMSTR "realm"
|
||||
#define SECPROPSSTR "secprops"
|
||||
#define STARTTLSSTR "starttls"
|
||||
#define TLSSTR "tls"
|
||||
#define TLSCRITICALSTR "critical"
|
||||
#define CRITICALSTR "critical"
|
||||
|
||||
#define REPLICA_SLEEP_TIME ( 10 )
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue