Author: jfthomps
Date: Wed Jan 20 20:38:05 2010
New Revision: 901369

URL: http://svn.apache.org/viewvc?rev=901369&view=rev
Log:
(no issue associated with this)
modified updateShibUser to set firstname to be the first name from displayName 
if displayName exists and has no commas in it
added example to updateShibGroups for adding all users from a specific 
affiliation to a single user group

Modified:
    incubator/vcl/trunk/web/.ht-inc/authmethods/shibauth.php

Modified: incubator/vcl/trunk/web/.ht-inc/authmethods/shibauth.php
URL: 
http://svn.apache.org/viewvc/incubator/vcl/trunk/web/.ht-inc/authmethods/shibauth.php?rev=901369&r1=901368&r2=901369&view=diff
==============================================================================
--- incubator/vcl/trunk/web/.ht-inc/authmethods/shibauth.php (original)
+++ incubator/vcl/trunk/web/.ht-inc/authmethods/shibauth.php Wed Jan 20 
20:38:05 2010
@@ -55,7 +55,7 @@
                else {
                        $names = explode(' ', $_SERVER['displayName']);
                        $displast = array_pop($names);
-                       $user['firstname'] = implode(' ', $names);
+                       $user['firstname'] = array_shift($names);
                }
        }
        else
@@ -177,6 +177,13 @@
                $grp = mysql_escape_string("shib-" . $name);
                array_push($newusergroups, getUserGroupID($grp, $affilid));
        }
+       /*if($shibaffil == 'example1.edu') {
+               $query = "SELECT id FROM affiliation WHERE shibname = 
'$shibaffil'";
+               $qh = doQuery($query, 101);
+               $row = mysql_fetch_assoc($qh);
+               $affilid = $row['id'];
+               array_push($newusergroups, getUserGroupID('All Example1 users', 
$affilid));
+       }*/
        $newusergroups = array_unique($newusergroups);
        if(! empty($newusergroups))
                updateGroups($newusergroups, $usernid);


Reply via email to