Ticket #991 (assigned defect)
Uploading images fails using the SSO module
| Reported by: | amessina | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 3.1 |
| Version: | 3.0 Beta 3 | Keywords: | |
| Cc: |
Description
I am able to successfully use the SSO module to authenticate users over and login via HTTP/HTTPS. However, when using authentication, I am not able to upload photos and I get a 401 error.
As soon as I remove SSO, I am able to upload photos again.
In addition, the sso module is "almost ready" to use Kerberos/mod_auth_kerb" if it gets the following to strip the "@DOMAIN.COM" from the username:
diff --git a/modules/sso/helpers/sso_event.php b/modules/sso/helpers/sso_event.php
index 67d81a7..c086f91 100644
--- a/modules/sso/helpers/sso_event.php
+++ b/modules/sso/helpers/sso_event.php
@@ -19,6 +19,8 @@
class sso_event {
static function gallery_ready() {
$sso_username = Input::instance()->server("REMOTE_USER");
+ $stripped = explode('@', $sso_username, -1);
+ $sso_username = $stripped[0];
$user = Session::instance()->get("user");
if (empty($user) || $user->name != $sso_username) {
try {
I did not use the Kerberos version while testing -- just Basic auth.
This is as of:
commit 68b290be514106d1b95e63db72caa14da3e02a67 Author: Tim Almdal <tnalmdal@shaw.ca> Date: Fri Jan 22 12:30:53 2010 -0800
Attachments
Change History
Note: See
TracTickets for help on using
tickets.