48 Commits

Author SHA1 Message Date
paca70
e542033a19 Added selective user disable, activate and creation. 2004-10-10 07:54:42 +00:00
paca70
2be3872c88 Moved configuration defaults to new function auth_ldap_getdefaults()
Now the information can be used anywhere. config.html comes to mind at first.
2004-10-01 04:39:03 +00:00
paca70
8347b5628a Corrections to phpdoc comments. 2004-09-30 18:38:40 +00:00
paca70
13dcf22d39 Added phpdoc comments
Moved from ldap_get_entries to binarysafe auth_ldap_get_entries().

Added 'count'-attribute to auth_ldap_get_entries() result.
2004-09-30 11:34:38 +00:00
paca70
c72eac85d7 Added basic configuration for rfc2307bis 2004-09-28 12:50:33 +00:00
paca70
089b19f631 Fixed bug 2012
Started work with bug 2007
Bug 1969 is partacaly fixed. ldap-module supports now password expiration.
Some work with bugs 761 and 1730

Changes in login/index.php
Reordered some code to make variables reusable in multiple places.
Added redirection in case of expired password
2004-09-28 12:39:20 +00:00
paca70
d89430abdf Changes to configuration interface 2004-09-27 14:19:32 +00:00
paca70
65012195ef Fixed typo 2004-09-24 08:56:47 +00:00
paca70
686650dd3e Added easy interface to specify ldap-attribute types and objectclasses.
Just select ldap-server type and you are done. Old variables can still be used
to override builtin settings.
2004-09-24 06:49:57 +00:00
paca70
8dad1541a2 Added utf8_decode when reading info from ldap.
Thanks to stronk7 pointing this out.
2004-09-22 18:50:03 +00:00
paca70
026e8973a9 Fixed missed variable name 2004-09-22 11:33:41 +00:00
paca70
d43ced93fc Use only atrributes marked as "updateremote" when creating new ldap-users. 2004-09-22 11:06:42 +00:00
paca70
0b543a6508 Added support for multiiple ldap-servers.
When first server(s) are down there delay before connecting secondary servers.
	So you system feels slow if first server is down, but Moodle still authenticates to sedondary servers.

Other major change:
auth_ldap_bind fuction is removed.
	due phps ldap_connect() limitations auth_ldap_connect() does now also ldap_bind()
	to see if server is up.
2004-09-22 09:41:20 +00:00
paca70
8c9c0e8588 Cleaned config.html
Added configuration for expired passwords.
2004-09-22 08:28:56 +00:00
moodler
d35757eb25 Merged/cleaned changes from MOODLE_15_LDAP to HEAD ...
please don't use the MOODLE_15_LDAP branch any more.
2004-09-20 09:08:57 +00:00
gustav_delius
839f2456bb XHTML compliance
- fixed (hopefully) all <img> tags
- global replace on <br> to <br />
- &amp; in URLs
- got the forum module XHTML compliant
Julian Sedding
2004-09-16 17:13:57 +00:00
gustav_delius
7ef0797dea some fixes for XHTML compliance 2004-09-12 01:34:24 +00:00
moodler
9c945552fb Merged from stable 2004-09-02 18:13:50 +00:00
gustav_delius
ff9fe32584 removed some warnings from from fields, closing bug 1558 2004-08-20 20:32:38 +00:00
paca70
510ff12d14 Dont try to delete uses multiple times 2004-08-18 11:29:45 +00:00
paca70
a9fac242f2 Return auth type with userinfo 2004-08-18 11:11:39 +00:00
paca70
443398353c Added support for coursecreators in function auth_sync_users() 2004-08-16 04:56:47 +00:00
paca70
9566e4ce84 Moved groupmembership code from function auth_iscreator() to
generic private function auth_ldap_isgroupmember().
2004-08-16 04:41:51 +00:00
paca70
815002f07f while waiting that guid-field, I added two functions:
auth_get_users ()
        Returns all userobjects from external database, with userinformation
        like address, phone ...

auth_sync_users ()
        1. Adds users from externaldatabase to moodle.
        2. renamed user in moodles db if renamed in externaldb
        3. "Delete" user in moodles db if removed from externaldb

and configuration interface for guid. ;)
2004-08-15 17:46:30 +00:00
paca70
4b9c337598 Added configuration interface for value LDAP_objectclass 2004-08-15 16:12:19 +00:00
moodler
d8627a477e Thanks to Dave Lopata <Dave@Lopata.Net>, Moodle now supports LDAP 3 2004-04-15 15:57:32 +00:00
moodler
16b8fe5b7f Fixed some short tags 2003-09-09 05:37:39 +00:00
paca70
c46b0a23db Corrected some typos 2003-08-18 08:12:31 +00:00
paca70
0c70f81c0d To fix authentication issue when same ldap-attribute is used multiple fields in Moodle. 2003-08-04 19:34:32 +00:00
paca70
fdc60fd20d Ask only naminattribute when searching for user. 2003-08-03 09:20:05 +00:00
paca70
da7b210a75 Fix from Martin Wwellard to fix PHPs case issue with attribute names. 2003-08-03 09:07:42 +00:00
paca70
978704f095 More comments 2003-04-20 18:15:03 +00:00
paca70
44996d00f9 Fixed some typos 2003-02-25 10:31:59 +00:00
paca70
38620c460b One strange 'o' jumped in.. 2003-02-25 07:24:48 +00:00
paca70
ea81ca5f6d README updates 2003-02-24 21:09:53 +00:00
paca70
1924074c76 Added support for nonadmin course creation.
Course creators are managed by /admin/creator.php , same way that admins.
Or if authetication module have 'auth_iscreator'-function (right now only ldap-module have) ,
users are added to creators at login time.
2003-02-24 18:48:55 +00:00
paca70
5f2c35db18 Added support for usercreation from Moodle to authentication module.
Works currently only with ldap-module (tested with e-directory), but
 other modules could be extended too by
adding following functions:

function auth_user_exists ($username) {
//returns true if given username  already exists on authetication database
}

function auth_user_create ($userobject,$plainpass) {
//create new user to authentication database
//in inactive state (if posible)
//returns true if user is created
}
function auth_user_activate ($username) {
//activate external user  after email-address is confirmed
//returns true if user is activated
}
2003-02-20 21:39:51 +00:00
moodler
50c4bd4145 More robustness, and some little bug fixes.
Also, database module now supports md5 passwords
2002-12-31 08:45:37 +00:00
moodler
2f99e65049 Slight changes to auth_user_login ... don't accept blank username/passwords
and some minor logic changes
2002-12-12 02:37:35 +00:00
moodler
9c645ce06c I was looking for bugs and reformatted as I went to make the layout
a little more consistent (with Moodle)
2002-12-10 12:08:57 +00:00
paca70
ef62651f02 Fixed some typos 2002-11-21 18:40:33 +00:00
moodler
7c58aee6c7 Added full configuration to LDAP (ie transferrable fields etc) 2002-11-21 11:27:44 +00:00
moodler
34daec9b3b Tweaks to authentication system. Database method now allows other
fields to be specified so that things like email, names etc can be
pulled in from external database when new Moodle accounts are created
2002-11-21 07:37:21 +00:00
moodler
35a48c9ae4 A significant new system for authentication configuration that
exposes the wide array of authentication possibilities.

Authentication now has it's own page separate from other variables.

Most of this work was done by Petri Asikainen <paca@sci.fi>, who started
these changes off.

I've done some cleanups and additions which is why I'm checking it in.

It's all working pretty well at the moment but could use some testing.

Thanks, Petri!  :-)
2002-11-19 08:51:33 +00:00
paca70
05da6502ba added support for list users from ldap. 2002-11-12 12:10:08 +00:00
paca70
80f4bff33e Initial version 2002-10-07 17:17:33 +00:00
paca70
68605943ae Corrected some comments. 2002-10-03 15:55:45 +00:00
paca70
fcad13730e 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.
2002-10-03 13:45:19 +00:00