File: 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 (44 lines) | stat: -rw-r--r-- 1,251 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
40
41
42
43
44
<?php
/* 
 * Configuration for the LDAP authentication module.
 */

$config = array (

	/**
	 * LDAP configuration. This is only relevant if you use the LDAP authentication plugin.
	 *
	 * The attributes parameter is a list of attributes that should be retrieved.
	 * If the attributes parameter is set to null, all attributes will be retrieved.
	 */
	'auth.ldap.dnpattern'  => 'uid=%username%,dc=feide,dc=no,ou=feide,dc=uninett,dc=no',
	'auth.ldap.hostname'   => 'ldap.uninett.no',
	'auth.ldap.attributes' => null,
	'auth.ldap.enable_tls' => true,
	
	/*
	 * Searching the DN of the user.
	 */

	/* Set this to TRUE to enable searching. */
	'auth.ldap.search.enable' => FALSE,

	/* The base DN for the search. */
	'auth.ldap.search.base' => NULL,

	/* The attribute(s) to search for.
	 *
	 * This may be a single string, or an array of string. If this is an array, then any of the attributes
	 * in the array may match the value the user supplied as the username.
	 */
	'auth.ldap.search.attributes' => NULL,

	/* The username & password the simpleSAMLphp should bind as before searching. If this is left
	 * as NULL, no bind will be performed before searching.
	 */
	'auth.ldap.search.username' => NULL,
	'auth.ldap.search.password' => NULL,

);

?>