projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ad7aa2
)
checks for start_tls were accidentally deleted
author
Alan T. DeKok
<aland@freeradius.org>
Mon, 26 Jan 2015 22:11:22 +0000
(17:11 -0500)
committer
Alan T. DeKok
<aland@freeradius.org>
Mon, 26 Jan 2015 22:11:55 +0000
(17:11 -0500)
src/modules/rlm_ldap/rlm_ldap.c
patch
|
blob
|
history
diff --git
a/src/modules/rlm_ldap/rlm_ldap.c
b/src/modules/rlm_ldap/rlm_ldap.c
index
702ec8e
..
0363f98
100644
(file)
--- a/
src/modules/rlm_ldap/rlm_ldap.c
+++ b/
src/modules/rlm_ldap/rlm_ldap.c
@@
-759,6
+759,12
@@
static int mod_instantiate(CONF_SECTION *conf, void *instance)
*/
if (ldap_url->lud_scheme) {
if (strcmp(ldap_url->lud_scheme, "ldaps") == 0) {
+ if (inst->start_tls == true) {
+ cf_log_err_cs(conf, "ldaps:// scheme is not compatible "
+ "with 'start_tls'");
+ return -1;
+ }
+
port = inst->port ? inst->port : LDAPS_PORT;
} else if (strcmp(ldap_url->lud_scheme, "ldapi") == 0) {