Commit Graph
73 Commits
Author SHA1 Message Date
Andrew McMillan 4a934c57b0 Remove password from LDAP log messages. 2011-11-25 08:18:44 +13:00
Andrew McMillan 3cc3396d67 Careless typos in code I can't execute :-( 2011-10-29 00:52:54 +13:00
Andrew McMillan 6dcdc9442f Fix missing bracket typo. 2011-10-29 00:48:23 +13:00
Andrew McMillan 384eabdff3 Allow LDAP sync to work if the date is reasonable and no 'format_updated' is set. 2011-10-28 14:30:55 +13:00
Andrew McMillan 1148f0cbc8 Catch more instances of deprecated mapping names. 2011-10-28 14:25:32 +13:00
Andrew McMillan 7cee724a87 Switch out deprecated LDAP mappings before we use them anywhere.
Otherwise the new ones aren't going to work properly!
2011-10-28 14:01:55 +13:00
Andrew McMillan 113a974799 Make sure the default relationships are created. 2011-10-18 16:39:54 +13:00
Andrew McMillan 70015d7c83 Working on fixing LDAP mappings. 2011-10-18 11:05:45 +13:00
Andrew McMillan f0c609f169 We should map fields regardless of whether there are defaults set for anything.
They might all be mapped!
2011-10-18 10:53:03 +13:00
Andrew McMillan 3105b0a62d Fix handling of superseded defaults in LDAP field mapping. 2011-10-18 10:42:58 +13:00
Andrew McMillan d7bd5cb7d1 Fix to not use deprecated call. 2011-10-10 13:47:56 +02:00
Andrew McMillan 963f23110d Hopefully nail that last LDAP niggle. 2011-09-24 12:57:14 +12:00
Andrew McMillan df3a901c91 Rather than fixing in drivers_ldap, fix properly in Principal class.
This fixes a bug in the Principal class when updating where
fields are set on the principal, but are not being updated and
end up getting set to NULL as a result.
2011-09-22 09:40:10 +12:00
Andrew McMillan fe659b4aaa Set 'active' and 'default_privileges' fallback values. 2011-09-22 07:53:04 +12:00
Andrew McMillan 1a35a111e7 Ensure username is initialised to something appropriate.
Per:
http://sourceforge.net/tracker/?func=detail&atid=890787&aid=3409180&group_id=179845
2011-09-14 23:03:44 +12:00
Andrew McMillan f71859792b Handle empty groups better. 2011-09-13 08:09:50 +12:00
Andrew McMillan 997650ce79 Call method correctly. 2011-09-12 19:48:46 +12:00
Andrew McMillan 42690f8b5c A more complete fix for weird passwords with LDAP.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-03-13 05:05:19 +13:00
Andrew McMillan ad061af4ed Apparently an attempt to bind with an empty password will return TRUE!
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-03-13 04:28:14 +13:00
Andrew McMillan 02182cf087 Remove duplicate constructor thinko.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-11 10:10:59 +13:00
Andrew McMillan 20ee255898 Refactor fetching of Principal records from database.
This is a significant refactoring, replacing the old getUserBy*()
functions with a new Principal class, and replacing the old
CalDAVPrincipal class with a new DAVPrincipal class which extends
the Principal class.

At this point all regression tests pass (again) but there could
well be issues for people who use alternative authenticators
such as LDAP, although I have endeavoured to resolve those
potential issues.

Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-03 10:16:43 +13:00
Andrew McMillan 77de9a024e Fix SQL for group handling from Michael Braun. 2010-11-21 00:57:14 +13:00
Jens Zahner f6fd2d39aa Fixes to LDAP group handling by Jens Zahner 2010-08-14 13:11:04 +12:00
Andrew McMillan 22755fc766 Remove uninitialised variable possibility. 2010-06-29 23:48:43 +12:00
Rob Ostensen 34c1fee3c6 first run at ldap group support 2010-03-21 20:42:03 +13:00
Rob Ostensen ca04a4a42e warn if there are no active admin users 2010-03-18 23:52:40 +13:00
Andrew McMillan be7e713c69 Fix deactivation of users no longer in LDAP. 2010-03-18 23:12:31 +13:00
Andrew McMillan a577a44a51 Siwtch to use an object for the updated users row. 2010-03-18 23:08:00 +13:00
Andrew McMillan c4917a7e6e A more readable fix that might even be faster... 2010-03-18 22:45:30 +13:00
Andrew McMillan eb77858c5b D'oh! 2010-03-18 22:30:56 +13:00
Andrew McMillan 390bc17209 Switching to AwlQuery. 2010-03-17 11:51:35 +13:00
Andrew McMillan c90faa12ba No dependence on DAViCalUser.php is needed any longer. 2010-03-16 10:13:21 +13:00
Andrew McMillan 41766218a5 Add a config item to exclude some users from LDAP sync. 2010-02-25 21:19:08 +13:00
Andrew McMillan e02514cd46 Reset the $row array each time through. 2009-10-30 19:06:00 +13:00
Matthias Mohr 526d4dce6f Translatability improvements from Matthias Mohr. 2009-10-30 09:00:41 +13:00
Andrew McMillan 0ad37c01d5 Revert to require_once(). 2009-10-27 09:13:43 +13:00
Andrew McMillan 11951a09cd Fix tabs. 2009-09-26 21:47:04 +12:00
Andrew McMillan 3fdbd17d3d Patch to support Kerberos from Benedikt Elser. 2009-09-26 21:06:20 +12:00
Andrew McMillan 49795c5cbb Rename RSCDSUser (.php) to DAViCalUser (.php) 2009-06-30 15:21:14 +12:00
Andrew McMillan 33d222bb61 If LDAP filterUsers is not set, or is empty, don't bracket it. 2009-06-09 10:34:09 +12:00
Andrew McMillan 9b069af2a9 Remove another warning possibility. 2009-05-12 23:57:19 +12:00
Andrew McMillan f4c3292b62 Try and get rid of warnings. 2009-05-12 13:01:51 +12:00
Andrew McMillan 51b684bb7a Fix typo. 2008-05-12 20:12:57 +12:00
Andrew McMillan 4d85525e24 Tweak error messages so LDAP password is not logged. 2008-02-28 13:51:18 +13:00
Andrew Ruthven 049fc6ef03 Remove leak of password information, improve grammer and fix a typo. 2008-02-28 13:43:39 +13:00
Andrew Ruthven 8c561313e7 Fix a minor bug and add more debugging output. 2008-02-18 10:50:11 +13:00
Andrew Ruthven 3c0cb7a264 Allow multiple trees for baseDN (closes 1876287). 2008-02-15 13:57:05 +13:00
Aiko Barz a4df7abe9f Add Active Directory support (closes 1876288).
This is slightly modified from Aiko's patch to apply cleanly and add
a few more comments to the example config.
2008-02-15 13:57:04 +13:00
Andrew Ruthven 256bf9d328 Handle the case where sync_LDAP doesn't find any users in LDAP. 2008-02-13 12:46:20 +13:00
Andrew Ruthven 0bc51a9e39 Work on "Sync LDAP with RSCDS" feature.
* Use an ugly hack so that users that are updated using the Sync
  LDAP feature retain their user_no.  Otherwise a new user_no
  was selected, and the insert failed since the username already
  existed.
* Tidy up the output messages to be more consistent.
* Only display "updating user records" if users were updated.
2008-02-13 12:33:27 +13:00