LDAP Authentication on JBoss

The below post demonstrates a sample configuration of LDAP Server with JBoss Server Steps: 1. Install OpenDS Directory Server. 2. Import the following LDIF file *********************************** base.ldif dn: ou=People,dc=bea,dc=com objectclass: top objectclass: organizationalUnit ou: People dn: uid=faisal,ou=People,dc=bea,dc=com objectclass: top objectclass:

Continue reading

Configuring OpenDS with Weblogic Server

Download Install and Configure OpenDS. I used the following LDIF as BASE while installing OpenDS. dn: dc=oracle,dc=com dc: oracle objectClass: domain objectClass: top dn: ou=TEST, dc=oracle,dc=com ou: TEST objectClass: organizationalUnit objectClass: top dn: cn=faisal,ou=TEST, dc=oracle,dc=com uid: faisal userPassword:: e1NTSEF9dnhBYUZKRzBONmwzWTdRMHBQRmdiczZrRHd5VUNwWCtCQTdlaHc9PQ ==

Continue reading

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()

Continue reading