]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - plugins/LdapAuthentication/README
Merge branch 'testing' of gitorious.org:statusnet/mainline into 0.9.x
[quix0rs-gnu-social.git] / plugins / LdapAuthentication / README
1 The LDAP Authentication plugin allows for StatusNet to handle authentication
2 through LDAP.
3
4 Installation
5 ============
6 add "addPlugin('ldapAuthentication',
7     array('setting'=>'value', 'setting2'=>'value2', ...);"
8 to the bottom of your config.php
9
10 Settings
11 ========
12 provider_name*: a unique name for this authentication provider.
13 authoritative (false): Set to true if LDAP's responses are authoritative
14     (if authorative and LDAP fails, no other password checking will be done).
15 autoregistration (false): Set to true if users should be automatically created
16     when they attempt to login.
17 email_changeable (true): Are users allowed to change their email address?
18     (true or false)
19 password_changeable (true): Are users allowed to change their passwords?
20     (true or false)
21 password_encoding: required if users are to be able to change their passwords
22     Possible values are: crypt, ext_des, md5crypt, blowfish, md5, sha, ssha,
23         smd5, ad, clear
24
25 host*: LDAP server name to connect to. You can provide several hosts in an
26     array in which case the hosts are tried from left to right.
27     See http://pear.php.net/manual/en/package.networking.net-ldap2.connecting.php
28 port: Port on the server.
29     See http://pear.php.net/manual/en/package.networking.net-ldap2.connecting.php
30 version: LDAP version.
31     See http://pear.php.net/manual/en/package.networking.net-ldap2.connecting.php
32 starttls: TLS is started after connecting.
33     See http://pear.php.net/manual/en/package.networking.net-ldap2.connecting.php
34 binddn: The distinguished name to bind as (username).
35     See http://pear.php.net/manual/en/package.networking.net-ldap2.connecting.php
36 bindpw: Password for the binddn.
37     See http://pear.php.net/manual/en/package.networking.net-ldap2.connecting.php
38 basedn*: LDAP base name (root directory).
39     See http://pear.php.net/manual/en/package.networking.net-ldap2.connecting.php
40 options: See http://pear.php.net/manual/en/package.networking.net-ldap2.connecting.php
41 filter: Default search filter.
42     See http://pear.php.net/manual/en/package.networking.net-ldap2.connecting.php
43 scope: Default search scope.
44     See http://pear.php.net/manual/en/package.networking.net-ldap2.connecting.php
45 schema_cachefile: File location to store ldap schema.
46 schema_maxage: TTL for cache file.
47
48 attributes: an array that relates StatusNet user attributes to LDAP ones
49     username*: LDAP attribute value entered when authenticating to StatusNet
50     nickname*: LDAP attribute value shown as the user's nickname
51     email
52     fullname
53     homepage
54     location
55     password: required if users are to be able to change their passwords
56
57 * required
58 default values are in (parenthesis)
59
60 For most LDAP installations, the "nickname" and "username" attributes should
61     be the same.
62
63 Example
64 =======
65 Here's an example of an LDAP plugin configuration that connects to
66     Microsoft Active Directory.
67
68 addPlugin('ldapAuthentication', array(
69     'provider_name'=>'Example',
70     'authoritative'=>true,
71     'autoregistration'=>true,
72     'binddn'=>'username',
73     'bindpw'=>'password',
74     'basedn'=>'OU=Users,OU=StatusNet,OU=US,DC=americas,DC=global,DC=loc',
75     'host'=>array('server1', 'server2'),
76     'password_encoding'=>'ad',
77     'attributes'=>array(
78         'username'=>'sAMAccountName',
79         'nickname'=>'sAMAccountName',
80         'email'=>'mail',
81         'fullname'=>'displayName',
82         'password'=>'unicodePwd')
83 ));
84