External System ID in jsp

In a jsp program, I use the IPerson attributes found in personDirectory.xml, like "urn:sungardhe:dir:loginId" and "urn:mace:dir:displayName". But, I don't see the external ID.

How can I get the "External Information System ID" from jsp? Is there a way to make it available in the IPerson data? Another way?

Thanks.

Terry

0
No votes yet

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

external id

In your personDirectory.xml file, just add the ldap attributes you want, and give them a value, which is the name you call in your jsp. Like

<entry key="sn"> 
	<set>
		<value>sn</value>
		<value>urn:mace:dir:sn</value>
	</set>        
</entry>
<entry key="pdsExternalSystemID"> 
	<set>   
		<value>pdsExternalSystemID</value>
	</set>        
</entry>

Make sure to leave all the "urn" values in place, but you can add additional values so you don't have to use the long urn names if you want.

entry key=ldap attribute
value=name of ldap attribute in iPerson/jsp code

Thanks.

Thanks a lot Jason. That worked!

Terry