<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>