added support for list users from ldap.
[moodle.git] / auth / ldap / README-LDAP
80f4bff3 1LDAP-module README
207.10.2002 Version 0.1, Petri Asikainen <>
4Ldap-authetication module is work in progress.
5Right now we are building config-interface to use also with all other auth-modules,
6but it will take sometime.
8If you like to try ldap-authentication now , create following $CFG->variables to
9/moodle/config.php or directly to config-table and activate ldap authentication
10from admin-configuration page.
12Variable Description
13$CFG->ldap_bind_dn "If your like to use bind-user to search
14 users, specify it here. Something like
15 'cn=ldapuser,ou=public,o=org'"
16$CFG->ldap_bind_pw "Password for bind-user."
17$CFG->ldap_contexts "List of contexts where users are located.
18 Separate different contexts with ';'.
19 Something like
20 'ou=users,o=org; ou=other,o=org'"
21$CFG->ldap_host_url "Specify LDAP host in URL-form, like
22 'ldap://' or
23 'ldaps//' "
24$CFG->ldap_search_sub "Put value <> 0 if you like to
25 search users from subcontexts.
26 (Subsearching is sometimes slow)"
27$CFG->ldap_user_attribute "What attribute is used to name/search
28 users. Usually 'cn' when using
29 Novell e-directory
05da6502 30$CFG->ldap_objectclass When filtering objects from ldap this filter is used
31 defaults to "objectClass=*"
80f4bff3 32
33And if you like to _very_ experimental:
34Edit /auth/ldap/lib.php function auth_get_userinfo() attribute-mappings and
35set $CFG->auth_update_userinfo = 1
36Then moodle will get user first-, lastname and other information from ldap
37when user is login first time.