[shib_auth] help with a couple of error messages please

Andy Kohler akohler at ucla.edu
Sat Mar 8 01:26:22 CET 2014


We use Shib with Drupal 7.  These are the 2 attributes we use:

Server variable for username: HTTP_SHIBUCLAUNIVERSITYID
Server variable for e-mail address: HTTP_MAIL

I think that attribute names can vary depending on mappings in
attributes.xml.  The SHIBUCLAUNIVERSITYID is the 9-digit UCLA UID.

We don't let users enter a custom email address, instead relying on what
comes from Shibboleth, so we apparently don't use the custom_form or
custom_data in your error messages.

Andy Kohler / UCLA Library IT



On Fri, Feb 28, 2014 at 11:37 AM, Patterson, Christina
<chris at oit.ucla.edu>wrote:

>  I have shib_auth 7.x-4.0 installed on a Drupal 7 site. I'm getting two
> errors.
>
>  I have this configuration under Attribute Settings:
>
> Server variable for username: REMOTE_USER
> Server variable for email address: [empty]
> UNCHECKED - User-defined usernames
> CHECKED - User-defined email addresses
> UNCHECKED - Account linking
>
>
>  Basically I want to use an attribute acquired from IdP to generate the
> username and NOT let user change it. And I want to allow the user to enter
> the email address and NOT provide them with a default.
>
>  Error 1) With configuration settings as described above, user
> successfully authenticates via shibboleth and is directed to
> get_custom_data. It displays this error:
>
>  Notice: Undefined index: in shib_auth_custom_data() (line 173 of
> /var/www/html/sites/all/modules/shib_auth/shib_auth_forms.inc).
>
>
>  To resolve this I entered REMOTE_USER for the email address, so now the
> configuration is:
>
> Server variable for username: REMOTE_USER
> Server variable for email address: REMOTE_USER
> UNCHECKED - User-defined usernames
> CHECKED - User-defined email addresses
> UNCHECKED - Account linking
>
>
>  This gets rid of the error message. But I would prefer to have the email
> field be empty/blank when the user reaches the forum.
>
>  Error 2) After submitting get_custom_data, it creates the user but
> returns this error:
>
>  Notice: Undefined variable: custom_username in shib_auth_custom_form()
> (line 610 of /var/www/html/sites/all/modules/shib_auth/shib_auth.module).
>
>
>  Are these bugs? Should I submit issues to the issue queue? Or is it a
> misconfiguration on my part?
>
>  Chris Patterson
> UCLA
>
>
> _______________________________________________
> shib_auth mailing list
> shib_auth at listserv.niif.hu
> https://listserv.niif.hu/mailman/listinfo/shib_auth
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://listserv.niif.hu/pipermail/shib_auth/attachments/20140307/c9a8baf7/attachment.html>


More information about the shib_auth mailing list