]> git.mjollnir.org Git - moodle.git/commit
Initial version of ldap authentication module. It have no config-interface yet. ...
authorpaca70 <paca70>
Thu, 3 Oct 2002 13:45:19 +0000 (13:45 +0000)
committerpaca70 <paca70>
Thu, 3 Oct 2002 13:45:19 +0000 (13:45 +0000)
commitfcad13730e308696c895e5636a91c10cfedc16b7
tree83a03f089e7971604f87decee08bfabfa9ccb83e
parentabf59b15bd400a0c965270ae0dd1740d410debcd
Initial version of ldap authentication module. It have no config-interface yet. (But it's coming)
It contains also experimental auth_get_userinfo() function, what is not used by moodle yet.
If you like to try it, create following $CFG variables to /config.php or directly to config-table and activate
ldap authentication from admin-configuration page.

$CFG->ldap_bind_dn       "If your like to use bind-user to search users, specify it here. Someting like 'cn=ldapuser,ou=public,o=org'"
$CFG->ldap_bind_pw       "Password for bind-user."
$CFG->ldap_contexts     "List of contexts where users are located.
  Separate different contexts with ';'. Something like 'ou=users,o=org; ou=other,o=org'"
$CFG->ldap_host_url       "Specify LDAP host in URL-form like 'ldap://ldap.myorg.com/' or 'ldaps//ldap.myorg.com/' ";
$CFG->ldap_search_sub    "Put value <> 0 if  you like to search users from subcontexts.";
$CFG->ldap_user_attribute  "What attribute is used to name/search users. Usually 'cn'. ";

More configuration optios are coming. This version is tested against Novell E-Directory without SSL and it works fine.
auth/ldap/lib.php [new file with mode: 0644]