From 514f9742bce6091f486757aa1d8c4162df390aa5 Mon Sep 17 00:00:00 2001 From: Martin Haase <martin.haase@daasi.de> Date: Thu, 15 Jul 2010 13:17:18 +0000 Subject: [PATCH] Removed a bug that caused the Lab to show ePPNs instead of clear text names for users that have mixed-case uids in RBAC; now getNames always returns lowercase eppns. git-svn-id: https://textgridlab.org/svn/textgrid/trunk/middleware/tgauth@6697 7c539038-3410-0410-b1ec-0f2a7bf1c452 --- info.textgrid.middleware.tgauth.rbac/rbacSoap/TgExtra.class.php | 2 +- .../rbacSoap/examples/tgCheckAccess.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/info.textgrid.middleware.tgauth.rbac/rbacSoap/TgExtra.class.php b/info.textgrid.middleware.tgauth.rbac/rbacSoap/TgExtra.class.php index e1819b2..0bb36d4 100755 --- a/info.textgrid.middleware.tgauth.rbac/rbacSoap/TgExtra.class.php +++ b/info.textgrid.middleware.tgauth.rbac/rbacSoap/TgExtra.class.php @@ -1028,7 +1028,7 @@ class TgExtra { $entry = $arrUserEntry[0]; $result[] = new userDetail ( - $entry['sn'][0], // ePPN, use sn which holds it too as uid is hidden in the dn + mb_strtolower( $entry['sn'][0]), // ePPN, use sn which holds it too as uid is hidden in the dn $entry['cn'][0], // name isset ($entry['mail'][0]) ? $entry['mail'][0] : null, isset ($entry['o'][0]) ? $entry['o'][0]: null, // organisation diff --git a/info.textgrid.middleware.tgauth.rbac/rbacSoap/examples/tgCheckAccess.php b/info.textgrid.middleware.tgauth.rbac/rbacSoap/examples/tgCheckAccess.php index 91f5512..62df32c 100755 --- a/info.textgrid.middleware.tgauth.rbac/rbacSoap/examples/tgCheckAccess.php +++ b/info.textgrid.middleware.tgauth.rbac/rbacSoap/examples/tgCheckAccess.php @@ -59,7 +59,7 @@ if( isset( $_POST['auth'] ) ) { } catch( SoapFault $f ) { - echo "SOAP FAULT!: " . $f->faultcode . " / " . $f->faultstring . " / " . $f->detail; + echo "SOAP FAULT!: " . serialize ($f); } -- GitLab