example for ldap authentification
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@635 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
parent
928ab39333
commit
f44df83db5
1 changed files with 22 additions and 0 deletions
|
@ -173,3 +173,25 @@ function md5_mediawiki($password) {
|
||||||
return ':A:' . md5($password);
|
return ':A:' . md5($password);
|
||||||
}
|
}
|
||||||
-8<------------------
|
-8<------------------
|
||||||
|
|
||||||
|
|
||||||
|
Active Directory / LDAP
|
||||||
|
-----------------------
|
||||||
|
Here we authenticate against an active directory server.
|
||||||
|
|
||||||
|
config.php settings:
|
||||||
|
-8<------------------
|
||||||
|
$serviceoverrides['User'] = 'SemanticScuttle_Service_AuthUser';
|
||||||
|
$authType = 'LDAP';
|
||||||
|
$authOptions = array(
|
||||||
|
'host' => '192.168.1.4',
|
||||||
|
'version' => 3,
|
||||||
|
'basedn' => 'DC=EXAMPLE,DC=ORG',
|
||||||
|
'binddn' => 'readuser',
|
||||||
|
'bindpw' => 'readuser',
|
||||||
|
'userattr' => 'sAMAccountName',
|
||||||
|
'userfilter' => '(objectClass=user)',
|
||||||
|
'attributes' => array(''),
|
||||||
|
);
|
||||||
|
$authEmailSuffix = '@example.org';
|
||||||
|
-8<------------------
|
||||||
|
|
Loading…
Reference in a new issue