From 256732f2ce2e085d00ace57e48e7c9e961eaafa4 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Tue, 10 Jun 2003 18:32:36 +0000 Subject: [PATCH] s/tls/starttls/ --- doc/man/man5/slapd.conf.5 | 2 +- servers/slurpd/config.c | 9 ++++++++- servers/slurpd/slurp.h | 3 ++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/doc/man/man5/slapd.conf.5 b/doc/man/man5/slapd.conf.5 index 9a84f3dc07..6b73297730 100644 --- a/doc/man/man5/slapd.conf.5 +++ b/doc/man/man5/slapd.conf.5 @@ -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=[:port] [tls=yes|critical] +.B replica host=[:port] [starttls=yes|critical] .B [suffix= [...]] .B bindmethod=simple|sasl [binddn=] [credentials=] .B [saslmech=] [secprops=] [realm=] diff --git a/servers/slurpd/config.c b/servers/slurpd/config.c index 4c3a285347..4f0ee3b53f 100644 --- a/servers/slurpd/config.c +++ b/servers/slurpd/config.c @@ -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; diff --git a/servers/slurpd/slurp.h b/servers/slurpd/slurp.h index 43f310dc62..54b7df03aa 100644 --- a/servers/slurpd/slurp.h +++ b/servers/slurpd/slurp.h @@ -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 ) -- 2.39.5