...
Note |
---|
uPortal 3.1 introduces a new configuration which is different from all previous versions. You will NOT be able to copy and paste your previous configuration from any earlier version of uPortal. |
Step 1. Configure the ldap context in uportal-impl/src/main/resources/properties/contexts/ldapContext.xml
Code Block | ||||
---|---|---|---|---|
| ||||
<beans> ... <bean id="defaultLdapContext" class="org.springframework.ldap.core.support.LdapContextSource"> <property name="url" value="ldap://ldap.myuniv.edu:389"/> <property name="pooled" value="false"/> <property name="userName" value=""/> <property name="password" value=""/> </bean> ... </beans> |
...
Code Block | ||||
---|---|---|---|---|
| ||||
<property name="baseEnvironmentProperties"> <map> <entry> <key> <value>java.naming.security.authentication</value> </key> <value>simple</value> </entry> <entry key="java.naming.referral"> <value>follow</value> </entry> </map> </property> |
Step 2. Add an LDAP Attribute source to uportal-impl/src/main/resources/properties/contexts/personDirectoryContext.xml
Edit the cachingMergedPersonAttributeDao bean definition to add uPortalLdapAttributeSource under personAttributeDaos:
...
You may need to update the available attributes and query to match your server. Connections to Active Directory servers will most likely use a query of "(sAMAccountName={0})".
Step 3. Build and deploy the modifications
From the root of your uPortal source:
...