summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nslcd/cfg.c6
-rw-r--r--nslcd/myldap.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/nslcd/cfg.c b/nslcd/cfg.c
index 9b26093..a8b05ef 100644
--- a/nslcd/cfg.c
+++ b/nslcd/cfg.c
@@ -924,14 +924,14 @@ void cfg_init(const char *fname)
log_log(LOG_ERR,"no URIs defined in config");
exit(EXIT_FAILURE);
}
- /* if ssl is on each URI should start with https */
+ /* if ssl is on each URI should start with ldaps */
#ifdef LDAP_OPT_X_TLS
if (nslcd_cfg->ldc_ssl_on==SSL_LDAPS)
{
for (i=0;nslcd_cfg->ldc_uris[i].uri!=NULL;i++)
{
- if (strncasecmp(nslcd_cfg->ldc_uris[i].uri,"https://",8)!=0)
- log_log(LOG_WARNING,"%s doesn't start with https:// and \"ssl on\" is specified",
+ if (strncasecmp(nslcd_cfg->ldc_uris[i].uri,"ldaps://",8)!=0)
+ log_log(LOG_WARNING,"%s doesn't start with ldaps:// and \"ssl on\" is specified",
nslcd_cfg->ldc_uris[i].uri);
}
}
diff --git a/nslcd/myldap.c b/nslcd/myldap.c
index 6a05b53..cfd24fd 100644
--- a/nslcd/myldap.c
+++ b/nslcd/myldap.c
@@ -495,7 +495,7 @@ static int do_set_options(MYLDAP_SESSION *session)
#ifdef LDAP_OPT_X_TLS
/* if SSL is desired, then enable it */
if ( (nslcd_cfg->ldc_ssl_on==SSL_LDAPS) ||
- (strncasecmp(nslcd_cfg->ldc_uris[session->current_uri].uri,"https://",8)==0) )
+ (strncasecmp(nslcd_cfg->ldc_uris[session->current_uri].uri,"ldaps://",8)==0) )
{
/* use tls */
tls=LDAP_OPT_X_TLS_HARD;