Issues (762)

config/ldap.example.php (1 issue)

Severity
1
<?php
2
3
/**
4
 * LDAP configuration (optional)
5
 *
6
 * CMS doesnt require ldap, but you can use it to integrate ldap authorization
7
 */
8
9
$ldap_config = array(
10
	'enabled' => false,
11
12
	// active directory server
13
	'host' => "localhost",
14
	'port' => 389,
15
16
	'use_uri' => true,
17
	'user_prefix' => "uid=",
18
19
	'ssl' => false,
20
21
	'auth' => true,
22
	'user' => "uname",//ldap rdn or dn,
23
	'password' => "admin",
24
25
	// domain, for purposes of constructing $user
26
	'ldap_usr_dom' => "",//e.q. @college.school.edu --> user "user1" => [email protected]
27
28
	// active directory DN (base location of ldap search)
29
	'dn' => "",//$dn = "OU=Departments,DC=college,DC=school,DC=edu";
30
31
	'readonly' => true,//only readonly access
32
33
	//https://www.forumsys.com/tutorials/integration-how-to/ldap/api-identity-management-ldap-server/
34
35
	//https://www.forumsys.com/tutorials/integration-how-to/ldap/online-ldap-test-server/
36
37
	//ldap params
38
	'params' => array(
39
		LDAP_OPT_PROTOCOL_VERSION => 3,
40
		LDAP_OPT_REFERRALS => 0
41
	),
42
);
43
44
?>
0 ignored issues
show
It is not recommended to use PHP's closing tag ?> in files other than templates.

Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.

A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.

Loading history...
45