Configure Apache Webserver to authenticate from LDAP Server

1. Connect to the LDAP Server from an LDAP Browser 2. Uncomment these two modules in httpd.conf LoadModule ldap_module modules/mod_ldap.so LoadModule authnz_ldap_module modules/mod_authnz_ldap.so 3. Add the following Location directive <Location /> AuthType Basic Require valid-user AuthName   “Enter Your ldap Username/Password” AuthBasicProvider   ldap AuthzLDAPAuthoritative   off AuthLDAPURL    ldap://localhost:444

Continue reading »

Starting a specific JBOSS server profile and a specific ip-address

 A. Starting a specific JBOSS server profile : 1. Navigate to the path …\jboss-eap-5.1\jboss-as\server 2. The server folder has different profile. Create a duplicate copy of the default folder and rename it to server1. We can  customize this profile and start it. 3. To start server1 , navigate to the path …\jboss-eap-5.1\jboss-as\bin\ and open the command prompt. 4. Enter the command  run

Continue reading »

Installing JBoss EAP as a windows service

1. Copy …\jboss-ep-5.1\native\sbin to …\jboss-eap-5.1\jboss-as\bin 2.  Locate the cmd.exe file in the path  C:\Windows\System32\ and right click to Run as administrator. The following command prompt is displayed: 3.  Navigate to the path  …\jboss-eap-5.1\jboss-as\bin\ in the command prompt and execute the command service.bat install The service JBEAP5SVC -SERVER1 has been created. 4. We can start and

Continue reading »

Managing Password in JBOSS EAP

1. Navigate to …\jboss-eap-5.1\jboss-as\server\server1\conf\props . 2.  Open the jmx-console-roles.properties file and add roles as required.  I added the role saky , which I use to  login to jmx-console. Refer the sample file # A sample roles.properties file for use with the UsersRolesLoginModule admin=JBossAdmin,HttpInvoker saky=JBossAdmin,HttpInvoker 3. Similarly, Open the jmx-console-users.properties file and edit passwords for the users.  # A

Continue reading »

Starting the default JBOSS server

1. Navigate to the path …\jboss-eap-5.1\jboss-as\bin\ and open the command prompt. 2. Enter the command run.bat to start the JBOSS server Once, the command is executed the  default profile for  JBOSS server starts   3. To check the console, go to http://localhost:8080/admin-console 4. Enter the Username and Password (I have used Admin credentials to log in, we will

Continue reading »

NodeManager issues during oracle weblogic server environment setup

I/O error while reading domain directory: java.io.FileNotFoundException: Domain directory ‘D:\bea\wlserver_10.3\common\nodemanager’ invalid (domain salt file not found We need to to nmEnroll and restart the nodemanager to fix this error. weblogic.nodemanager.common.ConfigException: Native version is enabled but node manager native library could not be loaded You need to set the LD_LIBRARY_PATH for

Continue reading »

common database related issues with Weblogic Server

<BEA-001112> <Test “SELECT 1 FROM DUAL” set up for pool “Test” failed with exception: “java.sql.SQLException: Io exception: Connection reset by peer: socket write error”.> Network or the DBMS is killing the connection, you need to check with the Database Admin and the network Admin.   java.lang.ClassCastException: oracle.jdbc.driver.LogicalConnection incompatible with oracle.jdbc.OracleCo

Continue reading »

Changing default session timeout Jboss 7

JBoss Enterprise Application Platform 6 has a default session bean timeout of 30 minutes, which is configured in standalone/configuration/standalone.xml The default HTTP session timeout can’t be modified in EAP 6. To override default value for your own application, follow the below approaches: Add an entry in the application web.xml file:

Continue reading »

Simple Sample Custom Database Authenticator for Oracle Weblogic Server 11g

To create a custom database authenticator for oracle weblogic server, you will have to implement the AuthenticationProviderV2, create an MBean definition file and create a class that implements LoginModule. I am providing the sample code below and also the steps to create and install it on your server. DBAuthenticationProviderImpl  

Continue reading »

Simple Sample Custom Identity Asserter for Weblogic Server 12c

To implement a custom identity asserter for Weblogic Server we need to write a provide that implements AuthenticationProviderV2 and IdentityAsserterV2. We need to write and Mbean definition file and a callback handler. SimpleSampleIdentityAsserterProviderImpl   package examples.security.providers.identityassertion.simple; import javax.security.auth.callback.CallbackHandler; import javax.security.auth.login.AppConfigurationEntry; import weblogic.management.security.ProviderMBean; import weblogic.security.service.ContextHandler; import weblogic.security.spi.AuthenticationProviderV2; import weblogic.security.spi.IdentityAsserterV2; import weblogic.security.spi.IdentityAssertionException;

Continue reading »