Skip to content
Snippets Groups Projects
Commit 29c16fb3 authored by David Yang's avatar David Yang
Browse files

- Added documentation to modules/ldap/docs/ldap.txt

parent ff5497e9
No related branches found
No related tags found
No related merge requests found
......@@ -303,15 +303,15 @@ $config = array(
// array of strings, in which case they will be searched in the order given.
'search.base' => 'ou=people,dc=example,dc=org',
// Additional LDAP filters appended to the default search
'search.filter' => '(objectclass=inetorgperson)',
// The attribute(s) the username should match against.
//
// This is an array with one or more attribute names. Any of the attributes in
// the array may match the value the username.
'search.attributes' => array('uid', 'mail'),
// Additional LDAP filters appended to the search attributes
'search.filter' => '(objectclass=inetorgperson)',
// The username & password the SimpleSAMLphp should bind to before searching. If
// this is left as NULL, no bind will be performed before searching.
'search.username' => NULL,
......
......@@ -71,6 +71,14 @@ authentication source:
*/
'search.attributes' => array('uid', 'mail'),
/*
* Additional filters that must match for the entire LDAP search to be TRUE
*
* This should be a single string conforming to (RFC 1960, 2544)
* The string is appended to the search attributes
*/
'search.filter' => '(&(objectClass=Person)(|(sn=Doe)(cn=John *)))',
/*
* The username & password where SimpleSAMLphp should bind to before searching. If
* this is left NULL, no bind will be performed before searching.
......@@ -103,6 +111,10 @@ options. The `search.base`-option must be the `dn` which should be used
as the base/root of the search. The `search.attributes`-option is an
array with attributes the username should be matched against.
You can also append the `search.filter` option to further limit your search.
The `search.filter` field is optional and need not be included in your
configuration file.
The `dnpattern` option will not be used if searching is enabled.
Some LDAP servers may require authentication before a search can be
......
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