File: cas-ldap.php

package info (click to toggle)
simplesamlphp 1.13.1-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 11,092 kB
  • sloc: php: 65,106; xml: 629; python: 376; sh: 193; perl: 185; makefile: 43
file content (39 lines) | stat: -rw-r--r-- 1,036 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/* 
 * The configuration of simpleSAMLphp
 * 
 * 
 */

$casldapconfig = array (
	'idpentityid.example.org' => array(
		'cas' => array(
			'login' => 'https://idpentityid.example.org/cas/login',
			'validate' => 'https://idpentityid.example.org/cas/validate',
		),
		'ldap' => array(
			'servers' => 'idpentityid.example.org',
			'enable_tls' => true,
			'searchbase' => 'dc=example,dc=org',
			'searchattributes' => 'uid',
			'attributes' => array('cn', 'mail'),
		),
	),
	'idpentityid2.example.org' => array(
		'cas' => array(
			'login' => 'https://idpentityid2.example.org/login',
			'validate' => 'https://idpentityid2.example.org/validate',
		),
		'ldap' => array(
			'servers' => 'ldap://idpentityid2.example.org',
			'enable_tls' => true,
			'searchbase' => 'ou=users,dc=example,dc=org',
			'searchattributes' => array('uid', 'mail'), # array for being able to login with either uid or mail.
			'attributes' => null,
			'priv_user_dn' => 'uid=admin,ou=users,dc=example,dc=org',
			'priv_user_pw' => 'xxxxx',
		),
	),

);
?>