[shib_auth] help with a couple of error messages please
Patterson, Christina
chris at oit.ucla.edu
Sat Mar 8 01:56:19 CET 2014
Thanks Andy. Yes, it appears your requirements are different than ours. We'd prefer to allow users to set their email address rather than taking official UCLA mail from the shib attributes. (Our experience is that quite a few users prefer receiving mail at an address OTHER THAN what is recorded in the enterprise attributes and we're OK with that.)
From: Andy Kohler <akohler at ucla.edu<mailto:akohler at ucla.edu>>
Reply-To: Drupal shib_auth module users <shib_auth at listserv.niif.hu<mailto:shib_auth at listserv.niif.hu>>
Date: Friday, March 7, 2014 4:26 PM
To: Drupal shib_auth module users <shib_auth at listserv.niif.hu<mailto:shib_auth at listserv.niif.hu>>
Subject: Re: [shib_auth] help with a couple of error messages please
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<mailto: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<mailto: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/20140308/38c810c5/attachment.html>
More information about the shib_auth
mailing list