GWME-7.1.1-1 - LDAP Patch

You are viewing an old version of this page. View the current version. Compare with Current  |   View Page History

Problem

When groundwork is connected to ldap, there are 30-35 ldap calls made out to the LDAP servers.  This was causing slowness, sometimes up to 5 minutes connection time when opening cacti web interface, and other applications that are not part of the core groundwork product.

Solution

Caching was developed into the code to catch any ldap objects after initial call, this stops any additional calls out to ldap that are not necessary after the initial load.  After putting this change in place, user permission changes will not be affected until a browser session times out or is closed.

Automated Installation Instructions:

WARNING: DO NOT REMOVE THE CONTENTS OF THE FILE WHEN RUNNING THE SH FILE.

Step 1: Download patch

[^ldap-speedfix_v7.1.x.tar.gz] 

Step 2: Unzip the tar to a location that is accessible

Step 3: Elevate terminal to root

Step 4: Run the sh file inside the folder.

Step 5: Follow the prompts.

Manual Installation Instructions:

Step 1: Stop Groundwork

/usr/local/groundwork/ctlscript.sh stop gwservices

Step 2: Create backup folder in a location that is accessible.

mkdir /usr/temp/gwbackupconfig

Step 3: Copy module.xml into backup folder

cp -f /usr/local/groundwork/foundation/container/jpp/modules/org/gatein/sso/main/module.xml /usr/temp/gwbackupconfig

Step 4: Copy josso-ldap-identitystore-gwpatch-7.1.0.jar into backup folder

cp -f /usr/local/groundwork/foundation/container/josso-1.8.4/webapps/josso/WEB-INF/lib/josso-ldap-identitystore-gwpatch-7.1.0.jar /usr/temp/gwbackupconfig

Step 5: Replace string content in /usr/local/groundwork/foundation/container/jpp/modules/org/gatein/sso/main/module.xml to reflect reference to latest jar file josso-ldap-identitystore-7.1.1-1.jar.

sed -i -e 's/josso-ldap-identitystore-gwpatch-7.1.0.jar/josso-ldap-identitystore-7.1.1-1.jar/g' '/usr/local/groundwork/foundation/container/jpp/modules/org/gatein/sso/main/module.xml'

Step 6: Remove old jar file and virtual link.'

rm -rf /usr/local/groundwork/foundation/container/josso-1.8.4/webapps/josso/WEB-INF/lib/josso-ldap-identitystore-gwpatch-7.1.0.jar

Step 7: Copying new jar file into proper location.

cp -f josso-ldap-identitystore-7.1.1-1.jar  /usr/local/groundwork/foundation/container/josso-1.8.4/webapps/josso/WEB-INF/lib

Step 8:  Create virtual link to jar.

ln -s -f /usr/local/groundwork/foundation/container/josso-1.8.4/webapps/josso/WEB-INF/lib/josso-ldap-identitystore-7.1.1-1.jar /usr/local/groundwork/jpp/modules/org/gatein/sso/main/

Step 9:   Start GW services

/usr/local/groundwork/ctlscript.sh start gwservices

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.