How to Disallow Anonymous Access to Aphelion LDAP?
DescriptionThis TPI addresses Aphelion vulnerabilities for disallowing anonymous Aphelion LDAP access. The access control on Aphelion LDAP directory can be set with various ways. For additional detail, please refer to Access control section in the Aphelion Admin Guide. Starting with a functional working Windchill solution with Apache and Aphelion LDAP installed. In the example below two users are defined, one user can read/write in the directory i.e aphelionadmin and other one has only read access i.e. windchilluser. When the directory is accessed on behalf of the Windchill system or as an Administrator the write user is used. Otherwise, the read only user is used. ResolutionFor Windchill 7.0 solutions see Additional Information below.
For Windchill 8.0 solutions refer to the section "Restricting Access to Aphelion" found in the Info*Engine Installation and Configuration Guide. Additional InformationThe following are the main steps:
Step 1-> Use the Windchill Principal Administrator to define two users or use the LDAP Browser to
define two users. Create users:
uid=aphelionadmin,ou=people,cn=mymachine,cn=application services,o=mycompany and uid=windchilluser,ou=people,cn= mymachine,cn=application services,o=mycompany
<% if ( isAdmin ) { %> <!------------------------------ Create a credentials map for users with administrative privileges ------------------------------> <ie:param name="element" data="INSTANCE=com.ptc.ptcnet.Ldap:DBUSER=uid=aphelionadmin,ou=people,cn=mymach ine,cn=application services,o=mycompany:PASSWD=admin"/> <!------------------------------ PendingUserAdapter ------------------------------> <ie:param name="element" data="INSTANCE=com.ptc.ptcnet.Ldap-pending:DBUSER=uid=aphelionadmin,ou=people,c n=mymachine,cn=application services,o=mycompany:PASSWD=admin"/> <!------------------------------ ------------------------------> <% } else { %> <!------------------------------ Create a credentials map for non-privileged users ------------------------------> <ie:param name="element" data="INSTANCE=com.ptc.ptcnet.Ldap:DBUSER=uid=windchilluser,ou=people,cn=mymach ine,cn=application services,o=mycompany:PASSWD=user"/> <% } %><ie:param name="delimiter" data=":"/> <ie:param name="group_out" data="map"/>
xconfmanager -t "codebase/WEB-INF/ieStructProperties.txt" -s "ie.ldap.managerDn=uid= aphelionadmin,ou=people,cn=mymachine,cn=application services,o=mycompany" -s "ie.ld ap.managerPw=admin" -p