390 Commits

Author SHA1 Message Date
Andrew McMillan
e7940eef32 Add a bit more debugging. 2007-11-04 21:35:22 +13:00
Andrew McMillan
99248f42dd Fix debugging. 2007-11-04 21:22:55 +13:00
Andrew McMillan
acca66e4d8 $c needs to be global. 2007-11-04 21:20:05 +13:00
Andrew Ruthven
2744a62c28 Slight code tidy up and add some debug statements. 2007-11-04 20:09:14 +13:00
Andrew McMillan
2e64a4fc8e Tidy up the response. 2007-11-04 13:49:22 +13:00
Andrew McMillan
bdc9c1a875 Restrict the OPTIONS response on the root. 2007-11-04 13:48:56 +13:00
Andrew McMillan
ee43bf9b9b Add not_found / denied to item response. 2007-11-04 13:28:13 +13:00
Andrew McMillan
1436dbc88e Now works with iCal 3.0. Most notably because we replace ' ' with '_'
in the response to requests for the displayname property.
2007-11-04 12:39:22 +13:00
Andrew McMillan
4d0dc4fe78 Add the user-agent string into the request object. 2007-11-04 12:14:26 +13:00
Andrew McMillan
541de9650a Handle '/' as script path. Some commented changes reflect future plans. 2007-11-04 12:13:58 +13:00
Andrew McMillan
f7a3bf6f8d Revert some of that last change. 2007-11-04 11:30:25 +13:00
Andrew McMillan
c3943f3687 Slightly tweak the protocol_server_port to account for / 2007-11-04 11:25:45 +13:00
Andrew McMillan
10e02c5e76 Add getUserByID and caching by ID. 2007-11-03 20:52:54 +13:00
Andrew McMillan
adc44b0e39 Handle the null path case. 2007-11-03 20:45:54 +13:00
Andrew McMillan
7736e01a0a If we can't split the path then default the username from the session. 2007-11-03 20:45:33 +13:00
Andrew McMillan
2d456cadd5 Handle the case where we are called with a null path. 2007-11-03 20:44:59 +13:00
Andrew McMillan
13e9f6f4b5 Fix cut and paste error. currval => nextval 2007-11-03 20:43:56 +13:00
Andrew Ruthven
5ee58e34b3 Rename one more occurance on attributs to attributes, I can login with LDAP now. 2007-11-03 12:17:21 +13:00
Andrew Ruthven
ad712e9c25 Fix PHP syntax. 2007-11-03 12:12:13 +13:00
Andrew McMillan
f02a8e3ebc Fix UsernameFromPath when the path is an e-mail address. 2007-11-03 11:50:12 +13:00
Andrew McMillan
ee1ea4c950 Refactoring of the principal into an object class. 2007-11-03 10:14:05 +13:00
Andrew McMillan
5e47b74ccf Provide example config snippet for docs. 2007-11-01 22:29:08 +13:00
Andrew McMillan
b373f73ca1 Add a 'where' clause to the auth_other_awl method. 2007-11-01 22:21:33 +13:00
Andrew McMillan
00fb075f22 Some of the principal properties are available anywhere. 2007-11-01 14:49:34 +13:00
Andrew McMillan
e34807cc17 More consistently do the ldap timestamp munding. Probably this
should really be done in a separate 'munge_ldap_timestamp()' function.
2007-11-01 14:48:50 +13:00
Andrew McMillan
13f915ee1b Substantial refactoring of drivers_ldap for efficiency and code reuse.
Also switched to using the auth-functions for user create/update.
2007-10-30 14:51:06 +13:00
Andrew McMillan
7c05f9c189 Pulling out the User create/update so other drivers can use it as well. 2007-10-30 14:48:46 +13:00
Andrew McMillan
91b4570997 Some changes to PROPFIND handling for iCal 3 support (not yet). 2007-10-30 12:07:50 +13:00
Andrew McMillan
5ad40f969a Change the CALENDAR-HOME-SET property to be the parent of any calendars. 2007-10-30 10:22:33 +13:00
Andrew McMillan
48dc44eba7 Fleshing out the 'principal' object slightly. 2007-10-29 18:14:52 +13:00
Andrew McMillan
ca10fb50c1 Move the DAV: header to caldav.php, rather than only sending it for
the OPTIONS request.
2007-10-29 18:14:10 +13:00
Maxime Delorme
c0a00fd419 Fix some comments. 2007-10-29 18:13:17 +13:00
Andrew McMillan
973a8235b4 Remove extraneous bracket. 2007-10-29 18:12:20 +13:00
Andrew McMillan
1083970df8 Some vague changes in the hope that it might work better with
iCal.  I really need to spend some time with a Mac to make this
work, I think...
2007-10-28 20:40:39 +13:00
Andrew McMillan
c2794db775 Maxime Delorme suggested that we should do this differently now that
the iCalendar class is more functional.  I agree.
2007-10-28 18:19:14 +13:00
Andrew McMillan
a79967dfa8 This should now use the auth functions to create default
relationships & calendar.
2007-10-28 18:18:06 +13:00
Andrew McMillan
b27b0d4c7b Added auth functions to implement creation of home calendar and
addition of default relationships, and write replacement for
auth_other_awl which uses these.
2007-10-28 10:27:16 +13:00
Andrew McMillan
e49987b069 Remove erroneous messages when you just hi 'Enter' instead of clicking
submit.
2007-10-28 10:25:23 +13:00
Andrew McMillan
2b9b5634c8 Removing closing tags which are not required. 2007-10-27 20:31:42 +13:00
Andrew McMillan
fc66ea3bd0 Only display the relationships menu for Admin users. 2007-10-27 15:24:55 +13:00
Andrew McMillan
82410d39fc Automatically create some relationships when the user is added. 2007-10-27 15:19:13 +13:00
Andrew McMillan
e8369c91fc Make the code work with or without upgrading the DB to 1.1.10. 2007-10-27 00:29:59 +13:00
Andrew McMillan
04656674f7 Make puck's patches for PUBLIC events actually work. 2007-10-27 00:11:44 +13:00
Andrew McMillan
ae3e35d036 Update the URL of the scheduling extensions draft. 2007-10-26 21:14:12 +13:00
Andrew McMillan
9623b216b2 Get rid of a couple more unassigned variable warnings. 2007-10-26 21:13:42 +13:00
Andrew McMillan
f8b0f0383e Initial support for DAV::PRINCIPAL-URL and CalDAV calendar-home-set 2007-10-26 21:12:26 +13:00
Andrew McMillan
9bb9141f56 Introduce a rudimentary 'principal' attribute to the request object. 2007-10-26 21:11:19 +13:00
Andrew McMillan
56ce8b230e Merge branch 'rscds' of git+ssh://git.catalyst.net.nz/git/public/rscds into rscds 2007-10-26 12:00:58 +13:00
Andrew McMillan
e64db0fae4 If an event is public, we should show it! 2007-10-26 12:00:47 +13:00
Andrew Ruthven
e725590612 Rewrite force events to public logic to be PUBLIC only, not general. 2007-10-26 11:35:19 +13:00