How to configure “Cross-cell single sign-on” in WebSphere with Jython

To configure "Cross-cell single sign-on" in the WebSphere 6.1 admin console with a Jython script, you can use the script below. This assumes that you've exported the keys from the server you are going to connect to. [sourcecode language="python"] import java.lang.String as jstr import java.util.Properties as jprops import java.io as jio import javax.management as jmgmt …

Continue reading How to configure “Cross-cell single sign-on” in WebSphere with Jython

How to configure a Shared Library in WebSphere with Jython

Here's a script that I used to configure a Shared Library in WebSphere 6.1 using Jython. [sourcecode language="python"] from string import whitespace sharedLibName = "APPLICATION_SHARED_LIB" # See if library already exists. cellId = AdminConfig.list("Cell") sharedLibraryId = AdminConfig.list("Library") if (sharedLibraryId.find(sharedLibName) < 0): # Library does not exist. print "Creating Shared Library" params = []; params.append(["name", sharedLibName]); …

Continue reading How to configure a Shared Library in WebSphere with Jython

How to configure WebSphere Global Security to use LDAP with Jython

Here's a script that I used to configure the WebSphere 6.1 global security setting to use LDAP using Jython. [sourcecode language="python"] # Properties username = "user" password = "pass" ldapServer = "somecompany.com" ldapPort = "389" # Configure the LDAP authentication AdminConfig.save(); # This needs to happen so you can write to the Security file. ltpa …

Continue reading How to configure WebSphere Global Security to use LDAP with Jython