Configuring SQL Authenticator with Weblogic Server.

Weblogic Server, by default stores the user and group information in an Embedded LDAP Server. If we want to store the user and group information in a database, Weblogic Server provides an Out of the Box Provider, SQL Authenticator. The SQL Authenticator uses a default schema, which can be modified.

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 == objectClass: person objectClass: inetOrgPerson objectClass: organizationalPerson objectClass: top givenName: Faisal

Continue reading »

Using Canned Policy with Weblogic Server.

SimpleWS.java package demo; import weblogic.jws.WLHttpTransport; import weblogic.jws.Policies; import weblogic.jws.Policy; import javax.jws.WebService; import javax.jws.WebMethod; import javax.jws.soap.SOAPBinding; @WebService(name=”SimpleWSPortType”, serviceName=”SimpleWSService”, targetNamespace=”http://www.oracle.com”) @SOAPBinding(style=SOAPBinding.Style.DOCUMENT, use=SOAPBinding.Use.LITERAL, parameterStyle=SOAPBinding.ParameterStyle.WRAPPED) @WLHttpTransport(contextPath=”SimpleWSService”, serviceUri=”SimpleWSService”, portName=”SimpleWSServicePort”) @Policy(uri=”policy:Sign.xml”) public class SimpleWS { @WebMethod() public String sayHello(String s) { return “Hello ” + s; } } Client.java package demo; import demo.*; import java.security.cert.X509Certificate; import

Continue reading »

Configure JCE Provider with Weblogic Server

Download any JCE Provider. These JCE providers provide additional cryptographic algorithms to secure the communication. Bouncy castle is one such freely available JCE provider. To configure it place the provider jar file in the java-home/jre/lib/ext/ folder and add the following line in java.security file in the jre\lib\security folder. security.provider.n=org.bouncycastle.jce.provider.BouncyCastleProvider Where

Continue reading »

BASIC Authentication with Apache

Create user.txt with the username and password separated by colon user.txt testuser:testuser Then use the htpasswd to encrypt the password Apache2\bin>htpasswd.exe -b user.txt testuser testuser Automatically using MD5 format. Updating password for user testuser Add the following in the httpd.conf file present in C:\Program Files\Apache Group\Apache2\bin LoadModule weblogic_module modules/mod_wl128_20.so <Location

Continue reading »