diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2008-06-17 23:35:08 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2008-06-17 23:35:08 +0200 |
commit | 4da92e26078cf33e133ff1654c8f878693b639ef (patch) | |
tree | 4d68335eeee0f897ae93406b71cb2e3bf7b5503a /nslcd | |
parent | 91a2dd7d6f6488bf77d1a584b09626ff3ab2ff88 (diff) |
replace https:// by ldaps:// (stupid typo)
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@770 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd')
-rw-r--r-- | nslcd/cfg.c | 6 | ||||
-rw-r--r-- | nslcd/myldap.c | 2 |
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; |