Create Active Directory Authentication Provider from WLST

connect(‘weblogic’,’weblogic’,’t3://localhost:7001′)
edit()
startEdit(-1,-1,’false’)
cmo.getSecurityConfiguration().getDefaultRealm().createAuthenticationProvider(‘ADAuthenticator’, ‘weblogic.security.providers.authentication.ActiveDirectoryAuthenticator’)
cmo.getSecurityConfiguration().getDefaultRealm().lookupAuthenticationProvider(‘ADAuthenticator’).setControlFlag(‘OPTIONAL’)
cd(‘/SecurityConfiguration’)
cd(‘base_domain’)
cd(‘Realms/myrealm/AuthenticationProviders’)
cd(‘ADAuthenticator’)
cmo.setGroupBaseDN(‘CN=Users,DC=faisal,DC=bea,DC=com’)
cmo.setUserBaseDN(‘CN=Users,DC=faisal,DC=bea,DC=com’)
cmo.setAllGroupsFilter(‘(objectclass=group)’)
cmo.setPrincipal(‘CN=Administrator,CN=Users,DC=faisal,DC=bea,DC=com’)
cmo.setCredential(‘Passw0rd’)
cmo.setPort(389)
cmo.setHost(‘localhost’)
save()
activate()

Latest Comments

  1. gmajumdar May 17, 2010

Leave a Reply