<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hm. Ok, a couple of things that are worth a look:</p>
<p><br>
</p>
<p>1. In login.config I don't think you want to have binddn or usercredentials. I'm also not sure that the trailing slash on the ldapUrl is a good idea, so:</p>
<p><br>
</p>
&nbsp;&nbsp; edu.vt.middleware.ldap.jaas.LdapLoginModule required<br>
<div>&nbsp; &nbsp; &nbsp; ldapUrl=&quot;ldap://<a href="http://XXXXXX.bucknell.edu:389/">XXXXXX.bucknell.edu:389</a>&quot;</div>
<div>&nbsp; &nbsp; &nbsp; ssl=&quot;false&quot;</div>
<div>&nbsp; &nbsp; &nbsp; tls=&quot;false&quot;</div>
<div>&nbsp; &nbsp; &nbsp; baseDN=&quot;cn=Users,dc=bucknell,dc=edu&quot;</div>
<div>&nbsp; &nbsp; &nbsp; subtreeSearch=&quot;false&quot;</div>
<div>&nbsp; &nbsp; &nbsp; userFilter=&quot;cn={0}&quot;;</div>
<p><br>
</p>
<p>I'm not even sure I'd bother with the :389 on the ldapUrl line. That you're telling it to use ldap:// should be suffficient, I think. Mine are &quot;ldaps://192.168.1.1&quot; and &quot;ssl=true&quot; here, so I'm guessing on that.<br>
</p>
<p><br>
</p>
<p>2. In attribute-resolver.xml, you probably need to specify a DN for &quot;principal&quot;, not a UPN. And same as above, I don't think you want the trailing slash, so:</p>
<p><br>
</p>
&nbsp; &nbsp; &lt;resolver:DataConnector id=&quot;myLDAP&quot; xsi:type=&quot;dc:LDAPDirectory&quot;
<div>&nbsp; &nbsp; &nbsp; &nbsp; ldapURL=&quot;ldap://<a href="http://XXXXXX.bucknell.edu/">XXXXXX.bucknell.edu</a>&quot;&nbsp;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; baseDN=&quot;cn=Users,dc=bucknell,dc=edu&quot;&nbsp;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; principal=&quot;cn=<a href="mailto:servicename@bucknell.edu">servicename</a>,cn=users,dc=bucknell,dc=edu&quot;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; principalCredential=&quot;XXXXXXXX&quot;&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;dc:FilterTemplate&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;![CDATA[</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (sAMAccountName=$requestContext.principalName)</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ]]&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/dc:FilterTemplate&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;dc:ReturnAttributes&gt;employeeType uid cn sn displayName givenName mail bucknellEmployeeType memberOf bucknelleduPersonEntitlement&lt;/dc:ReturnAttributes&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;dc:LDAPProperty name=&quot;java.naming.referral&quot; value=&quot;follow&quot;/&gt;</div>
<div>&nbsp; &nbsp; &lt;/resolver:DataConnector&gt;</div>
<p><br>
</p>
<p>Probably. An equivalent ldapsearch for testing would be something like:</p>
<p><br>
</p>
<p>ldapsearch -x -LLL -H ldap://<a title="Ctrl&#43;Click or tap to follow the link" href="http://XXXXXX.bucknell.edu/">XXXXXX.bucknell.edu/</a> -D cn=<a href="mailto:servicename@bucknell.edu">servicename</a>,cn=users,dc=bucknell,dc=edu -W -b cn=Users,dc=bucknell,dc=edu
 '(samaccountname=bob)' employeeType uid cn sn displayName givenName mail bucknellEmployeeType memberOf bucknelleduPersonEntitlement</p>
<p><br>
</p>
<p>You'll need to specify a valid samaccountname, of course, unless you have something named &quot;bob&quot; to search for.</p>
<p><br>
</p>
<p><br>
</p>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> users-bounces@shibboleth.net &lt;users-bounces@shibboleth.net&gt; on behalf of Michael Dahlberg &lt;olgamirth@gmail.com&gt;<br>
<b>Sent:</b> Thursday, March 05, 2015 3:33 PM<br>
<b>To:</b> Shib Users<br>
<b>Subject:</b> Re: Active Directory as Authentication Source</font>
<div>&nbsp;</div>
</div>
<div>
<div dir="ltr"><br>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Mar 5, 2015 at 4:03 PM, David Gersic <span dir="ltr">
&lt;<a href="mailto:dgersic@niu.edu" target="_blank">dgersic@niu.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left-width:1px; border-left-color:rgb(204,204,204); border-left-style:solid; padding-left:1ex">
<div dir="ltr">
<div style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">
<p><span style="font-size:12pt">It might help to post the actual configuration file you're using. Mask out the sensitive bits before posting, of course.</span></p>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>David:</div>
<div><br>
</div>
<div>No problem.&nbsp; Just didn't think anybody would want to see that.&nbsp; The entire non-commented-out part of login.conf is as follows:</div>
<div><br>
</div>
<div>ShibUserPassAuth {</div>
<div><br>
</div>
<div>&nbsp; &nbsp;edu.vt.middleware.ldap.jaas.LdapLoginModule required<br>
</div>
<div>&nbsp; &nbsp; &nbsp; ldapUrl=&quot;ldap://<a href="http://XXXXXX.bucknell.edu:389/">XXXXXX.bucknell.edu:389/</a>&quot;</div>
<div>&nbsp; &nbsp; &nbsp; ssl=&quot;false&quot;</div>
<div>&nbsp; &nbsp; &nbsp; tls=&quot;false&quot;</div>
<div>&nbsp; &nbsp; &nbsp; baseDN=&quot;cn=Users,dc=bucknell,dc=edu&quot;</div>
<div>&nbsp; &nbsp; &nbsp; subtreeSearch=&quot;false&quot;</div>
<div>&nbsp; &nbsp; &nbsp; bindDn=&quot;<a href="mailto:servicename@bucknell.edu">servicename@bucknell.edu</a>&quot;</div>
<div>&nbsp; &nbsp; &nbsp; bindCredential=&quot;XXXXXXX&quot;</div>
<div>&nbsp; &nbsp; &nbsp; userFilter=&quot;cn={0}&quot;;</div>
<div><br>
</div>
<div>};<br>
</div>
<div><br>
</div>
<div>The LDAP connector in the attribute-resolver.xml file:</div>
<div><br>
</div>
<div>
<div>&nbsp; &nbsp; &lt;resolver:DataConnector id=&quot;myLDAP&quot; xsi:type=&quot;dc:LDAPDirectory&quot;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; ldapURL=&quot;ldap://<a href="http://XXXXXX.bucknell.edu/">XXXXXX.bucknell.edu/</a>&quot;&nbsp;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; baseDN=&quot;cn=Users,dc=bucknell,dc=edu&quot;&nbsp;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; principal=&quot;<a href="mailto:servicename@bucknell.edu">servicename@bucknell.edu</a>&quot;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; principalCredential=&quot;XXXXXXXX&quot;&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;dc:FilterTemplate&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;![CDATA[</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (sAMAccountName=$requestContext.principalName)</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ]]&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/dc:FilterTemplate&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;dc:ReturnAttributes&gt;employeeType uid cn sn displayName givenName mail bucknellEmployeeType memberOf bucknelleduPersonEntitlement&lt;/dc:ReturnAttributes&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;dc:LDAPProperty name=&quot;java.naming.referral&quot; value=&quot;follow&quot;/&gt;</div>
<div>&nbsp; &nbsp; &lt;/resolver:DataConnector&gt;</div>
<div><br>
</div>
</div>
<div><br>
</div>
<div>And this is the login handler portion of handler.xml</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>&nbsp; &nbsp; &lt;ph:LoginHandler xsi:type=&quot;ph:UsernamePassword&quot;&nbsp;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jaasConfigurationLocation=&quot;file:///usr/local/idp/conf/login.config&quot;&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;ph:AuthenticationMethod&gt;urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport&lt;/ph:AuthenticationMethod&gt;</div>
<div>&nbsp; &nbsp; &lt;/ph:LoginHandler&gt;</div>
<div><br>
</div>
<div>&nbsp; &nbsp; &lt;ph:LoginHandler xsi:type=&quot;ph:PreviousSession&quot;&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;ph:AuthenticationMethod&gt;urn:oasis:names:tc:SAML:2.0:ac:classes:PreviousSession&lt;/ph:AuthenticationMethod&gt;</div>
<div>&nbsp; &nbsp; &lt;/ph:LoginHandler&gt;</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>It all seems pretty standard which is why I am so confused as to why it's not working.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Mike</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>