<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Oct 1, 2015 at 4:18 PM, Nate Klingenstein <span dir="ltr"><<a href="mailto:ndk@internet2.edu" target="_blank">ndk@internet2.edu</a>></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">1) Is there a reason why the attribute filter for resolution doesn’t depend on the authentication filter like the other properties do, and is there a difference between requestContext.principalName and {user}? e.g.<br>
<br>
idp.authn.LDAP.bindDN = uid=myservice,ou=system<br>
idp.attribute.resolver.LDAP.bindDN = %{idp.authn.LDAP.bindDN}<br>
<br>
…<br>
<br>
idp.authn.LDAP.userFilter = (uid={user})<br>
idp.attribute.resolver.LDAP.searchFilter = (uid=$requestContext.principalName)<br>
<br></blockquote><div><br></div><div>The filters are different because the source of that data is fundamentally different and we don't support velocity in LDAP authentication config. If we did support it, the filter would look something like this: (uid=$usernamePasswordContext.username), so they still couldn't depend on each other. But I suppose we could support some velocity syntax there if people thought that was valuable.</div>
<div> </div><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">
2) What is the meaning of the “true” built into the Spring property for useStartTLS? Is there a reason why it’s not just “true” or a pointer to the property?<br>
<br>
idp.attribute.resolver.LDAP.useStartTLS = %{idp.authn.LDAP.useStartTLS:true}<br>
<br>
<resolver:DataConnector id="myLDAP" xsi:type="dc:LDAPDirectory"<br>
ldapURL="%{idp.attribute.resolver.LDAP.ldapURL}"<br>
baseDN="%{idp.attribute.resolver.LDAP.baseDN}"<br>
principal="%{idp.attribute.resolver.LDAP.bindDN}"<br>
principalCredential="%{idp.attribute.resolver.LDAP.bindDNCredential}"<br>
useStartTLS="%{idp.attribute.resolver.LDAP.useStartTLS:true}”><br>
<br></blockquote><div><br></div><div>The team made a decision to use startTLS by default for all LDAP integration. The support for this feature is pretty broad at this point. The ':true' spring syntax is just defaulting the value if that property isn't set.</div><div><br></div><div>--Daniel Fisher</div><div><br></div></div></div></div>