<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; font-size: 14px; font-family: Calibri, sans-serif; ">
<div>
<div style="color: rgb(0, 0, 0); ">I have shib_auth 7.x-4.0 installed on a Drupal 7 site. I'm getting two errors.</div>
<div style="color: rgb(0, 0, 0); "><br>
</div>
<div style="color: rgb(0, 0, 0); ">I have this configuration under Attribute Settings:</div>
<blockquote style="margin:0 0 0 40px; border:none; padding:0px;">
<div style="color: rgb(0, 0, 0); ">Server variable for username: REMOTE_USER</div>
<div style="color: rgb(0, 0, 0); ">Server variable for email address: [empty]</div>
<div style="color: rgb(0, 0, 0); ">UNCHECKED - User-defined usernames</div>
<div style="color: rgb(0, 0, 0); ">CHECKED - User-defined email addresses</div>
<div style="color: rgb(0, 0, 0); ">UNCHECKED - Account linking</div>
</blockquote>
<div style="color: rgb(0, 0, 0); "><br>
</div>
<div style="color: rgb(0, 0, 0); ">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="color: rgb(0, 0, 0); "><br>
</div>
<div style="color: rgb(0, 0, 0); ">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="color: rgb(0, 0, 0); "><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="color: rgb(0, 0, 0); "><br>
</div>
<div style="color: rgb(0, 0, 0); ">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="color: rgb(0, 0, 0); ">Server variable for username: REMOTE_USER</div>
<div style="color: rgb(0, 0, 0); ">Server variable for email address: REMOTE_USER</div>
<div style="color: rgb(0, 0, 0); ">UNCHECKED - User-defined usernames</div>
<div style="color: rgb(0, 0, 0); ">CHECKED - User-defined email addresses</div>
<div style="color: rgb(0, 0, 0); ">UNCHECKED - Account linking</div>
</blockquote>
<div style="color: rgb(0, 0, 0); "><br>
</div>
<div style="color: rgb(0, 0, 0); ">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="color: rgb(0, 0, 0); "><br>
</div>
<div style="color: rgb(0, 0, 0); ">Error 2) After submitting get_custom_data, it creates the user but returns this error:</div>
<div style="color: rgb(0, 0, 0); "><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="color: rgb(0, 0, 0); "><br>
</div>
<div style="color: rgb(0, 0, 0); ">Are these bugs? Should I submit issues to the issue queue? Or is it a misconfiguration on my part?</div>
<div style="color: rgb(0, 0, 0); "><br>
</div>
<div style="color: rgb(0, 0, 0); ">Chris Patterson</div>
<div style="color: rgb(0, 0, 0); ">UCLA</div>
<div style="color: rgb(0, 0, 0); "><br>
</div>
</body>
</html>