<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Book Antiqua";
panose-1:2 4 6 2 5 3 5 3 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p style="background:white"><span style="font-family:"Book Antiqua",serif;color:#1F497D">>></span><span style="font-family:"Book Antiqua",serif;color:black">We are currently running Shibboleth IDP 3 using ldap for authentication. We would like to be able
to have users login with both their username (ex: jdoe) as well as their numerical username</span><span style="font-family:"Book Antiqua",serif;color:#1F497D">
</span><span style="font-family:"Book Antiqua",serif;color:black"> (ex: 1111111) but resolving that value back to their regular username (jdoe). Has anyone using shibboleth dealt with authenticating different usernames for a user?</span><span style="font-family:"Book Antiqua",serif;color:#1F497D"><o:p></o:p></span></p>
<p style="background:white"><b><i><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">[Raymond Gardner]
<o:p></o:p></span></i></b></p>
<p style="background:white"><b><i><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">I’m working on something similar. User logs in with username1, we take that and lookup in the database a mapped username2. Then, we use username2
to authenticate against LDAP.<o:p></o:p></span></i></b></p>
<p style="background:white"><b><i><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></i></b></p>
<p style="background:white"><b><i><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Sounds like both your usernames are already in LDAP. For us, I have to go to a database. You might have more flexibility.<o:p></o:p></span></i></b></p>
<p style="background:white"><b><i><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></i></b></p>
<p style="background:white"><b><i><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">To do this, I’m using JAAS authentication. It is more flexible and allows multiple sources.<o:p></o:p></span></i></b></p>
<p style="background:white"><b><i><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></i></b></p>
<p style="background:white"><b><i><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">I’m still working on my implementation. I plan to extend the LDAPLoginModule from the ldaptive library so I may modify the incoming JAAS options.<o:p></o:p></span></i></b></p>
<p style="background:white"><b><i><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></i></b></p>
<p style="background:white"><b><i><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">I recommend looking into Ldaptive and the Shibboleth JAAS examples. I believe their wiki for IDP2 has better JAAS documentation examples, but it
is the same setup for IDP3.<o:p></o:p></span></i></b></p>
<p style="background:white"><b><i><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">For JAAS, the main configuration is in conf/authn/password-authn-config.xml. This plus the JAAS config files.<o:p></o:p></span></i></b></p>
</div>
<p>****************************************************************
This email message is intended for the use of the person to whom it has been sent, and may contain information that is confidential or legally protected. If you are not the intended recipient or have received this message in error, you are not authorized to copy, distribute, or otherwise use this message or its attachments. Please notify the sender immediately by return e-mail and permanently delete this message and any attachments. NTT America makes no warranty that this email is error or virus free. Thank you.
****************************************************************
</p>
</body>
</html>