1 The LDAP Authentication plugin allows for StatusNet to handle authentication
6 add "addPlugin('ldapAuthentication',
7 array('setting'=>'value', 'setting2'=>'value2', ...);"
8 to the bottom of your config.php
12 provider_name*: This is a identifier designated to the connection.
13 It's how StatusNet will refer to the authentication source.
14 For the most part, any name can be used, so long as each authentication source has a different identifier.
15 In most cases there will be only one authentication source used.
16 authoritative (false): Set to true if LDAP's responses are authoritative
17 (if authorative and LDAP fails, no other password checking will be done).
18 autoregistration (false): Set to true if users should be automatically created
19 when they attempt to login.
20 email_changeable (true): Are users allowed to change their email address?
22 password_changeable (true): Are users allowed to change their passwords?
24 password_encoding: required if users are to be able to change their passwords
25 Possible values are: crypt, ext_des, md5crypt, blowfish, md5, sha, ssha,
28 host*: LDAP server name to connect to. You can provide several hosts in an
29 array in which case the hosts are tried from left to right.
30 See http://pear.php.net/manual/en/package.networking.net-ldap2.connecting.php
31 port: Port on the server.
32 See http://pear.php.net/manual/en/package.networking.net-ldap2.connecting.php
33 version: LDAP version.
34 See http://pear.php.net/manual/en/package.networking.net-ldap2.connecting.php
35 starttls: TLS is started after connecting.
36 See http://pear.php.net/manual/en/package.networking.net-ldap2.connecting.php
37 binddn: The distinguished name to bind as (username).
38 See http://pear.php.net/manual/en/package.networking.net-ldap2.connecting.php
39 bindpw: Password for the binddn.
40 See http://pear.php.net/manual/en/package.networking.net-ldap2.connecting.php
41 basedn*: LDAP base name (root directory).
42 See http://pear.php.net/manual/en/package.networking.net-ldap2.connecting.php
43 options: See http://pear.php.net/manual/en/package.networking.net-ldap2.connecting.php
44 filter: Default search filter.
45 See http://pear.php.net/manual/en/package.networking.net-ldap2.connecting.php
46 scope: Default search scope.
47 See http://pear.php.net/manual/en/package.networking.net-ldap2.connecting.php
48 schema_cachefile: File location to store ldap schema.
49 schema_maxage: TTL for cache file.
51 attributes: an array that relates StatusNet user attributes to LDAP ones
52 username*: LDAP attribute value entered when authenticating to StatusNet
53 nickname*: LDAP attribute value shown as the user's nickname
58 password: required if users are to be able to change their passwords
61 default values are in (parenthesis)
63 For most LDAP installations, the "nickname" and "username" attributes should
68 Here's an example of an LDAP plugin configuration that connects to
69 Microsoft Active Directory.
71 addPlugin('ldapAuthentication', array(
72 'provider_name'=>'Example',
73 'authoritative'=>true,
74 'autoregistration'=>true,
77 'basedn'=>'OU=Users,OU=StatusNet,OU=US,DC=americas,DC=global,DC=loc',
78 'host'=>array('server1', 'server2'),
79 'password_encoding'=>'ad',
81 'username'=>'sAMAccountName',
82 'nickname'=>'sAMAccountName',
84 'fullname'=>'displayName',
85 'password'=>'unicodePwd')