<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>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.)</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Andy Kohler <<a href="mailto:akohler@ucla.edu">akohler@ucla.edu</a>><br>
<span style="font-weight:bold">Reply-To: </span>Drupal shib_auth module users <<a href="mailto:shib_auth@listserv.niif.hu">shib_auth@listserv.niif.hu</a>><br>
<span style="font-weight:bold">Date: </span>Friday, March 7, 2014 4:26 PM<br>
<span style="font-weight:bold">To: </span>Drupal shib_auth module users <<a href="mailto:shib_auth@listserv.niif.hu">shib_auth@listserv.niif.hu</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [shib_auth] help with a couple of error messages please<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">We use Shib with Drupal 7.  These are the 2 attributes we use:
<div><br>
</div>
<div>Server variable for username: HTTP_SHIBUCLAUNIVERSITYID<br>
Server variable for e-mail address: HTTP_MAIL <br>
<br>
I think that attribute names can vary depending on mappings in attributes.xml.  The SHIBUCLAUNIVERSITYID is the 9-digit UCLA UID.</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>Andy Kohler / UCLA Library IT</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Fri, Feb 28, 2014 at 11:37 AM, Patterson, Christina <span dir="ltr">
<<a href="mailto:chris@oit.ucla.edu" target="_blank">chris@oit.ucla.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;font-size:14px;font-family:Calibri,sans-serif">
<div>
<div style="">I have shib_auth 7.x-4.0 installed on a Drupal 7 site. I'm getting two errors.</div>
<div style=""><br>
</div>
<div style="">I have this configuration under Attribute Settings:</div>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div style="">Server variable for username: REMOTE_USER</div>
<div style="">Server variable for email address: [empty]</div>
<div style="">UNCHECKED - User-defined usernames</div>
<div style="">CHECKED - User-defined email addresses</div>
<div style="">UNCHECKED - Account linking</div>
</blockquote>
<div style=""><br>
</div>
<div style="">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.</div>
<div style=""><br>
</div>
<div style="">Error 1) With configuration settings as described above, user successfully authenticates via shibboleth and is directed to get_custom_data. It displays this error:</div>
<div style=""><br>
</div>
<blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">
<div><font color="#ff0000">Notice: Undefined index: in shib_auth_custom_data() (line 173 of /var/www/html/sites/all/modules/shib_auth/shib_auth_forms.inc).</font></div>
</blockquote>
<div style=""><br>
</div>
<div style="">To resolve this I entered REMOTE_USER for the email address, so now the configuration is:</div>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div style="">Server variable for username: REMOTE_USER</div>
<div style="">Server variable for email address: REMOTE_USER</div>
<div style="">UNCHECKED - User-defined usernames</div>
<div style="">CHECKED - User-defined email addresses</div>
<div style="">UNCHECKED - Account linking</div>
</blockquote>
<div style=""><br>
</div>
<div style="">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.</div>
<div style=""><br>
</div>
<div style="">Error 2) After submitting get_custom_data, it creates the user but returns this error:</div>
<div style=""><br>
</div>
<blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">
<div><font color="#ff0000">Notice: Undefined variable: custom_username in shib_auth_custom_form() (line 610 of /var/www/html/sites/all/modules/shib_auth/shib_auth.module).</font></div>
</blockquote>
</div>
<div style=""><br>
</div>
<div style="">Are these bugs? Should I submit issues to the issue queue? Or is it a misconfiguration on my part?</div>
<div style=""><br>
</div>
<div style="">Chris Patterson</div>
<div style="">UCLA</div>
<div style=""><br>
</div>
</div>
<br>
_______________________________________________<br>
shib_auth mailing list<br>
<a href="mailto:shib_auth@listserv.niif.hu">shib_auth@listserv.niif.hu</a><br>
<a href="https://listserv.niif.hu/mailman/listinfo/shib_auth" target="_blank">https://listserv.niif.hu/mailman/listinfo/shib_auth</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</span>
</body>
</html>