It's all about Weblogic..!!

May 31, 2010

Configure Active Directory using WLST :

Filed under: * Security — streethawkz @ 8:14 pm
.
Below are the steps to configure Active Directory with WLS using WLST tool :
.
.
– Start the server and run wlst.cmd in another command prompt ( located in “C:\bea10.3\wlserver_10.3\common\bin “ ).
.
– Now run the following WLST commands :
.
–          connect(‘username’,’password’,’t3://localhost:7001′)
–          edit()
–          startEdit(-1,-1,’false’)
–          cmo.getSecurityConfiguration().getDefaultRealm().createAuthenticationProvider(‘AD_Authenticator’, ‘weblogic.security.providers.authentication.ActiveDirectoryAuthenticator’)
( expected O/p : [MBeanServerInvocationHandler]Security:Name=myrealmAD_Authenticator )
–         cmo.getSecurityConfiguration().getDefaultRealm().lookupAuthenticationProvider(‘AD_Authenticator’).setControlFlag(‘OPTIONAL’)
–         cd(‘/SecurityConfiguration’)
–         cd(‘domain_name’)
–         cd(‘Realms/myrealm/AuthenticationProviders’)
–         cd(‘AD_Authenticator’)
–         cmo.setGroupBaseDN(‘cn=Users,dc=slab,dc=bea,dc=com’)
–         cmo.setUserBaseDN(‘cn=Users,dc=slab,dc=bea,dc=com’)
–         cmo.setAllGroupsFilter(‘(objectclass=group)’)
–         cmo.setPrincipal(‘puneeth3’)
–         cmo.setCredential(‘**********’)
–         cmo.setPort(389)
–         cmo.setHost(’10.xxx.xxx.xxx’)
–         save()
–         activate()

.

Now restart the server.

After logging into the console –> Security Realms –> myrealm –> Providers –> AD_Authenticator –> Provider Specific ( expected o/p is as shown below ) :

.

.

Now check if all the users are listed.

myrealm –> Users and Groups ( all users from Active Directory and the default authenticator must be listed here )

.

.

Active Directory successfully configured with WLS🙂

1 Comment »

  1. Thanks, found cmo.setCredential here what helped me a lot.

    Comment by Ha — June 6, 2013 @ 1:45 pm


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: