]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
example for ldap authentification
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Sat, 6 Feb 2010 14:37:03 +0000 (14:37 +0000)
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Sat, 6 Feb 2010 14:37:03 +0000 (14:37 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@635 b3834d28-1941-0410-a4f8-b48e95affb8f

doc/authentication.txt

index fb29c82242949267447af12781340bf7ddb5119e..da49e5ae543438ef2ace2021c2a5ae5efe808ff9 100644 (file)
@@ -173,3 +173,25 @@ function md5_mediawiki($password) {
     return ':A:' . md5($password);
 }
 -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<------------------