Look up MQ Details using LDAP

41 views
Skip to first unread message

kiran nelapatla

unread,
Mar 25, 2024, 12:52:32 PM3/25/24
to WildFly
I am migrating my application from the Weblogic 12.1.2 server to the Wildlfy 21.0.2 server. The application is using/connecting IBM MQ server 9.2. The application will get Queumanager,Host,Queue name, and channel from the Active directory using LDAP authentication ,remote JNDI names. 

Weblogic configuration 


<weblogic-jms xmlns="http://xmlns.oracle.com/weblogic/weblogic-jms" xmlns:sec="http://xmlns.oracle.com/weblogic/security" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wls="http://xmlns.oracle.com/weblogic/security/wls" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-jms http://xmlns.oracle.com/weblogic/weblogic-jms/1.1/weblogic-jms.xsd">
  <foreign-server name="MQSeries LDAP Server">
    <default-targeting-enabled>true</default-targeting-enabled>
    <foreign-destination name="name">
      <local-jndi-name>JNDIname</local-jndi-name>
      <remote-jndi-name>JNDI Name</remote-jndi-name>
    </foreign-destination>
   
    <initial-context-factory>com.sun.jndi.ldap.LdapCtxFactory</initial-context-factory>
    <connection-url>URL</connection-url>
    <jndi-properties-credential-encrypted>password</jndi-properties-credential-encrypted>
    <jndi-property>
      <key>java.naming.security.authentication</key>
      <value>simple</value>
    </jndi-property>
    <jndi-property>
      <key>java.naming.security.principal</key>
      <value>value</value>
    </jndi-property>
  </foreign-server>
</weblogic-jms>

As part of the migration I ma using the IBM adapter to connect IBM MQ server which is working fine,but I have to connect Active directory server to locate MQ details .

is there any way to get this implemented in Wildfly server 21.01. 

Emmanuel Hugonnet

unread,
Mar 27, 2024, 3:39:24 AM3/27/24
to wil...@googlegroups.com
My understanding is that you need to configure an external JNDI context to your LDAP server alongside this:

<external-context name="java:global/federation/ldap/example" class="javax.naming.directory.InitialDirContext" cache="true">
    <environment>
        <property name="java.naming.factory.initial" value="com.sun.jndi.ldap.LdapCtxFactory" />
        <property name="java.naming.provider.url" value="ldap://ldap.example.com:389" />
        <property name="java.naming.security.authentication" value="simple" />
        <property name="java.naming.security.principal" value="uid=admin,ou=system" />
        <property name="java.naming.security.credentials" value="secret" />
    </environment>
</external-context>

The following doumentation https://docs.wildfly.org/31/Admin_Guide.html#Naming might be clearer.
Emmanuel
> --
> You received this message because you are subscribed to the Google Groups "WildFly" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/wildfly/208da7ee-e4bb-4f7c-94ff-1d09377d165fn%40googlegroups.com
> <https://groups.google.com/d/msgid/wildfly/208da7ee-e4bb-4f7c-94ff-1d09377d165fn%40googlegroups.com?utm_medium=email&utm_source=footer>.

Reply all
Reply to author
Forward
0 new messages