Skip to content
Snippets Groups Projects
Commit 118b366d authored by Roger Feese's avatar Roger Feese
Browse files

Merge branch 'ldap-to-ad-modify-ldap' into 'master'

Modify search to use cn instead of uid.

See merge request !34
parents 605261a0 c290b7df
No related branches found
No related tags found
1 merge request!34Modify search to use cn instead of uid.
...@@ -37,8 +37,8 @@ unl.cas.module = auth ...@@ -37,8 +37,8 @@ unl.cas.module = auth
unl.cas.controller = index unl.cas.controller = index
unl.templates.options.version = 3 unl.templates.options.version = 3
unl.templates.options.templatedependentspath = APPLICATION_PATH "/../document_root" unl.templates.options.templatedependentspath = APPLICATION_PATH "/../document_root"
ldap.uri = "ldap://example.com" ldap.uri = "ldap://unl.edu"
ldap.dn = "uid=user,dc=example,dc=com" ldap.dn = "cn=service-account-name,ou=service,dc=example,dc=com"
ldap.password = "password" ldap.password = "password"
bulletin.github.username = USERNAME bulletin.github.username = USERNAME
bulletin.github.password = PASSWORD bulletin.github.password = PASSWORD
......
...@@ -206,7 +206,7 @@ class Auth_UserModel extends Unl_Model { ...@@ -206,7 +206,7 @@ class Auth_UserModel extends Unl_Model {
$person = self::fetchNew(); $person = self::fetchNew();
$filter = 'uid=' $filter = 'cn='
. strtr($userName, . strtr($userName,
array(',' => '', '=' => '', ' ' => '')); array(',' => '', '=' => '', ' ' => ''));
$userInfo = self::$_ldap->search('ou=people,dc=unl,dc=edu', $filter); $userInfo = self::$_ldap->search('ou=people,dc=unl,dc=edu', $filter);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment