Skip to content
Snippets Groups Projects
Commit 3207229b authored by Olav Morken's avatar Olav Morken
Browse files

Change the configuration examples to use STARTTLS when connecting to LDAP servers.

Thanks to Thijs Kinkhorst for providing this patch!

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@3178 44740490-163a-0410-bde0-09ae8108e29a
parent f9a158ef
No related branches found
No related tags found
No related merge requests found
...@@ -228,7 +228,7 @@ $config = array( ...@@ -228,7 +228,7 @@ $config = array(
'hostname' => 'ldap.example.org', 'hostname' => 'ldap.example.org',
// Whether SSL/TLS should be used when contacting the LDAP server. // Whether SSL/TLS should be used when contacting the LDAP server.
'enable_tls' => FALSE, 'enable_tls' => TRUE,
// Whether debug output from the LDAP library should be enabled. // Whether debug output from the LDAP library should be enabled.
// Default is FALSE. // Default is FALSE.
......
...@@ -13,7 +13,7 @@ $casldapconfig = array ( ...@@ -13,7 +13,7 @@ $casldapconfig = array (
), ),
'ldap' => array( 'ldap' => array(
'servers' => 'idpentityid.example.org', 'servers' => 'idpentityid.example.org',
'enable_tls' => false, 'enable_tls' => true,
'searchbase' => 'dc=example,dc=org', 'searchbase' => 'dc=example,dc=org',
'searchattributes' => 'uid', 'searchattributes' => 'uid',
'attributes' => array('cn', 'mail'), 'attributes' => array('cn', 'mail'),
...@@ -26,7 +26,7 @@ $casldapconfig = array ( ...@@ -26,7 +26,7 @@ $casldapconfig = array (
), ),
'ldap' => array( 'ldap' => array(
'servers' => 'ldap://idpentityid2.example.org', 'servers' => 'ldap://idpentityid2.example.org',
'enable_tls' => false, 'enable_tls' => true,
'searchbase' => 'ou=users,dc=example,dc=org', 'searchbase' => 'ou=users,dc=example,dc=org',
'searchattributes' => array('uid', 'mail'), # array for being able to login with either uid or mail. 'searchattributes' => array('uid', 'mail'), # array for being able to login with either uid or mail.
'attributes' => null, 'attributes' => null,
......
...@@ -16,7 +16,7 @@ $config = array ( ...@@ -16,7 +16,7 @@ $config = array (
'auth.ldap.dnpattern' => 'uid=%username%,dc=feide,dc=no,ou=feide,dc=uninett,dc=no', 'auth.ldap.dnpattern' => 'uid=%username%,dc=feide,dc=no,ou=feide,dc=uninett,dc=no',
'auth.ldap.hostname' => 'ldap.uninett.no', 'auth.ldap.hostname' => 'ldap.uninett.no',
'auth.ldap.attributes' => null, 'auth.ldap.attributes' => null,
'auth.ldap.enable_tls' => false, 'auth.ldap.enable_tls' => true,
/* /*
* Searching the DN of the user. * Searching the DN of the user.
......
...@@ -14,7 +14,7 @@ $ldapmulti = array ( ...@@ -14,7 +14,7 @@ $ldapmulti = array (
'dnpattern' => 'uid=%username%,dc=feide,dc=no,ou=feide,dc=uninett,dc=no', 'dnpattern' => 'uid=%username%,dc=feide,dc=no,ou=feide,dc=uninett,dc=no',
'hostname' => 'ldap.uninett.no', 'hostname' => 'ldap.uninett.no',
'attributes' => NULL, 'attributes' => NULL,
'enable_tls' => FALSE, 'enable_tls' => TRUE,
'search.enable' => FALSE, 'search.enable' => FALSE,
'search.base' => NULL, 'search.base' => NULL,
'search.attributes' => NULL, 'search.attributes' => NULL,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment