<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
ok. That’s the problem in our AD when using uid in&nbsp;<font face="Menlo"><span style="font-size: 11px;">FilterTemplate. But I can’t figure out why I got runtime exception when using cn in FilterTemplate.</span></font>
<div><br>
</div>
<div>Thanks, Hong<br>
<div>
<div>On Jan 16, 2015, at 12:20 PM, hy93 &lt;<a href="mailto:hy93@cornell.edu">hy93@cornell.edu</a>&gt; wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">Thanks Scott. Another problem:</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">Now the data connector to AD doesn’t work. If cn is used in FilterTemplate, I got runtime exception when ran aacli.sh. If I replaced cn with UID, I didn’t see any error in the log, but I didn’t
 get requested data back.</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">2015-01-16 11:48:41,260 - ERROR [net.shibboleth.idp.profile:-2] - Uncaught runtime exception</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">net.shibboleth.utilities.java.support.logic.ConstraintViolationException: Attribute value cannot be null or empty</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp; &nbsp; &nbsp; &nbsp; at net.shibboleth.utilities.java.support.logic.Constraint.isNotNull(Constraint.java:210)</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">Attribute-resolver.xml</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">
<div style="margin: 0px;">&nbsp; &nbsp;&lt;resolver:AttributeDefinition id=&quot;mail&quot; xmlns=&quot;urn:mace:shibboleth:2.0:resolver:ad&quot;</div>
<div style="margin: 0px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xsi:type=&quot;Simple&quot;</div>
<div style="margin: 0px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sourceAttributeID=&quot;mail&quot;&gt;</div>
<div style="margin: 0px; min-height: 13px;"><br>
</div>
<div style="margin: 0px;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;resolver:Dependency ref=&quot;myAD&quot; /&gt;</div>
<div style="margin: 0px;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;resolver:AttributeEncoder xsi:type=&quot;SAML2String&quot; xmlns=&quot;urn:mace:shibboleth:2.0:attribute:encoder&quot;</div>
<div style="margin: 0px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; name=&quot;urn:oid:0.9.2342.19200300.100.1.3&quot;</div>
<div style="margin: 0px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; friendlyName=&quot;mail&quot; /&gt;</div>
<div style="margin: 0px; min-height: 13px;"><br>
</div>
<div style="margin: 0px;">&nbsp; &nbsp; &lt;/resolver:AttributeDefinition&gt;</div>
<div style="margin: 0px;"><br>
</div>
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">
<div style="margin: 0px;">&nbsp;&lt;resolver:DataConnector id=&quot;myAD&quot; xsi:type=&quot;LDAPDirectory&quot; xmlns=&quot;urn:mace:shibboleth:2.0:resolver:dc&quot;</div>
<div style="margin: 0px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ldapURL=&quot;<a href="ldap://query.ad.cornell.edu:3268">ldap://query.ad.cornell.edu:3268</a>&quot;</div>
<div style="margin: 0px; min-height: 13px;"><br>
</div>
<div style="margin: 0px;">&nbsp; &nbsp; &nbsp; &nbsp; baseDN=&quot;DC=cornell,DC=edu&quot;</div>
<div style="margin: 0px;">&nbsp; &nbsp; &nbsp; &nbsp; principal=“xxxxx&quot;</div>
<div style="margin: 0px;">&nbsp; &nbsp; &nbsp; &nbsp; principalCredential=“xxx&quot; &gt;</div>
<div style="margin: 0px;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;FilterTemplate&gt;</div>
<div style="margin: 0px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;![CDATA[</div>
<div style="margin: 0px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (cn=$requestContext.principalName)</div>
<div style="margin: 0px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ]]&gt;</div>
<div style="margin: 0px;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/FilterTemplate&gt;</div>
<div style="margin: 0px;">&nbsp;&nbsp; &nbsp; &nbsp; &lt;LDAPProperty name=&quot;java.naming.referral&quot; value=&quot;follow&quot;/&gt;</div>
<div style="margin: 0px;">&nbsp; &lt;/resolver:DataConnector&gt;</div>
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">Thanks,</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">Hong</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</div>
<div>
<div>On Jan 14, 2015, at 2:25 PM, Cantor, Scott &lt;<a href="mailto:cantor.2@osu.edu">cantor.2@osu.edu</a>&gt; wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">On 1/14/15, 7:12 PM, &quot;Hong Ye&quot; &lt;<a href="mailto:hy93@cornell.edu">hy93@cornell.edu</a>&gt; wrote:<br>
<br>
<br>
<blockquote type="cite"><br>
I also see this warning in the log. The warning was generated when I <br>
restarted Tomcat. I don’t understand what it mean.<br>
</blockquote>
<br>
<a href="https://wiki.shibboleth.net/confluence/display/SHIB2/IdPJava1.8">https://wiki.shibboleth.net/confluence/display/SHIB2/IdPJava1.8</a><br>
<br>
Has nothing to do with the IdP version.<br>
<br>
-- Scott<br>
<br>
-- <br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net">
users-unsubscribe@shibboleth.net</a></blockquote>
</div>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</body>
</html>