<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 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-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;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        font-family:"Calibri","sans-serif";}
@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 class=MsoNormal>I&#8217;m trying to implement two Username/Password login handlers so I can have two different LDAP configurations. One LDAP supports one-time passwords and the other does not. I&#8217;ve successfully been able to implement two RemoteUser login handlers so I&#8217;m not sure where I&#8217;m failing with the UserPass ones.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>My configurations are:<o:p></o:p></p><p class=MsoNormal>handler.xml &#8211;<o:p></o:p></p><p class=MsoNormal>&nbsp; &nbsp;&nbsp;&lt;ph:LoginHandler xsi:type=&quot;ph:UsernamePassword&quot; <o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;jaasConfigurationLocation=&quot;<a href="file:///\\opt%20\shibboleth\conf\tplogin.config">file:///opt /shibboleth/conf/tplogin.config</a>&quot;&gt;<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ph:AuthenticationMethod&gt;urn:mace:rit.edu:Authn:TPPasswordProtectedTransport&lt;/ph:AuthenticationMethod&gt;<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp; &nbsp;&lt;/ph:LoginHandler&gt;<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>/opt /shibboleth/conf/tplogin.config exists with modifications based off the default login.config<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>web.xml - <o:p></o:p></p><p class=MsoNormal>&lt;servlet&gt;<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;servlet-name&gt;TPUsernamePasswordAuthHandler&lt;/servlet-name&gt;<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;servlet-class&gt;edu.internet2.middleware.shibboleth.idp.authn.provider.UsernamePasswordLoginServlet&lt;/servlet-class&gt;<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;load-on-startup&gt;3&lt;/load-on-startup&gt;<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp; &lt;/servlet&gt;<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp; &lt;servlet-mapping&gt;<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;servlet-name&gt;TPUsernamePasswordAuthHandler&lt;/servlet-name&gt;<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;url-pattern&gt;/Authn/TPUserPassword&lt;/url-pattern&gt;<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp; &lt;/servlet-mapping&gt;<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>relying-party.xml &#8211;<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp; &lt;rp:RelyingParty<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; id=&quot;<a href="https://sp.example.com">https://sp.example.com</a>&quot;<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; provider=&quot;<a href="https://%3cshib-idp%3e/idp/shibboleth">https://&lt;shib-idp&gt;/idp/shibboleth</a>&quot;<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; defaultSigningCredentialRef=&quot;IdPCredential&quot;<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; defaultAuthenticationMethod=&quot;urn:mace:rit.edu:Authn:TPPasswordProtectedTransport&quot;&gt;<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;rp:ProfileConfiguration xsi:type=&quot;saml:SAML2SSOProfile&quot;<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; encryptAssertions=&quot;never&quot;<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; encryptNameIds=&quot;never&quot; /&gt;<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp; &lt;/rp:RelyingParty&gt;<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>IdP is version 2.3.2 (I know it&#8217;s not the latest version.)<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>When trying to authenticate using IdP initiated SSO I get passed to /idp/Authn/UserPassword instead of /idp/Authn/TPUserPassword however /idp/Authn/TPUserPassword gives me the login form.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Another issue that might be related is that the wiki says that the LoginHandler element takes an optional parameter of authenticationServletURL however the IdP fails to start and gives the error:<o:p></o:p></p><p class=MsoNormal>12:50:50.006 - ERROR [edu.internet2.middleware.shibboleth.common.config.BaseService:188] - [] - [] - Configuration was not loaded for shibboleth.HandlerManager service, error creating components.&nbsp; The root cause of this error was: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'protectedServletPath' is not allowed to appear in element 'ph:LoginHandler'.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>My final thought is that I&#8217;m trying to implement this in the wrong way and gladly welcome anyone to tell me so.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'>Clay Cooper<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'>Systems Administrator<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'>Information Technology Services<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'>Rochester Institute of Technology <o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><b><span style='font-size:7.0pt'>CONFIDENTIALITY NOTE</span></b><span style='font-size:7.0pt'>: The information transmitted, including attachments, is intended only for the person(s) or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and destroy any copies of this information.<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>