9.2.2 Convert WebSphere Liberty LDAP to Connect Authentication

Delete LDAP Registry from Feature Manager

<featureManager>
<feature>ldapRegistry-3.0</feature>>
</featureManager>

Configure Authentication Provider

Define the JAAS setup for authentication and authorization.

<!-- Connect jar file -->
<library id="ConnectLoginModuleLib">
<fileset dir="${server.config.dir}/lib/bs_connect" includes="connect_auth.jar"/>
</library>
 
<!-- JAAS Login Module for connect -->
<jaasLoginModule id="myCustom"
className="com.kana.connect.auth.websphere.ConnectLoginModuleLiberty"
controlFlag="REQUIRED" libraryRef="ConnectLoginModuleLib">
<options myOption1="value1" myOption2="value2"/>
</jaasLoginModule>
 
<!-- JAAS Login Context -->
<jaasLoginContextEntry id="system.WEB_INBOUND" name="system.WEB_INBOUND"
loginModuleRef="myCustom, hashtable, userNameAndPassword, certificate, token" />

Place connect_auth.jar in ${SERVER.CONFIG.DIR}/lib/bs_connect


Change the authorization group name from LDAP group to Connect authentication name (CONNECT_ADMIN_GROUP).


<application contextRoot="brickst" location="brickst.war">
<application-bnd>
<security-role name="ADMINUSER">
<group name="CONNECT_ADMIN_GROUP"/>
</security-role>
</application-bnd>
<classloader commonLibraryRef="ConnectLoginModuleLib" />
</application>
 
<!-- Automatically expand WAR files and EAR files -->
<applicationManager autoExpand="true" startTimeout="240" />

Restart WebSphere Liberty and login using Connect Authentication