Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Query list of users from LDAP

1030982Oct 1 2013 — edited Oct 3 2013

Hi Gurus,

I am trying to programatically query the list of users belonging to a particular user-group, from LDAP.

LDAP is deployed on Weblogic as a 'provider'.

I have the following details of the LDAP instance - host:port, security principal (CN=aaa,OU=bbb,OU=ccc,DC=ddd,DC=com), LDAP password (credential), User Base DN.

I tried the following using BPEL:

<sequence name="main">

    <!-- Receive input from requestor. (Note: This maps to operation defined in BPELProcess1.wsdl) -->

    <receive name="receiveInput" partnerLink="bpelprocess1_client" portType="client:BPELProcess1" operation="process" variable="inputVariable" createInstance="yes"/>

    <!-- Generate reply to synchronous request -->

    <assign name="Assign1">

      <copy>

        <from>ora:getContentAsString(ldap:listUsers('people','ou=people'))</from>

        <to>$outputVariable.payload/client:result</to>

      </copy>

    </assign>

    <reply name="replyOutput" partnerLink="bpelprocess1_client" portType="client:BPELProcess1" operation="process" variable="outputVariable"/>

  </sequence>

</process>

and following is the content of the directories.xml that I have created:

<?xml version="1.0" ?>

<directories>

<directory name='people'>

<property name="java.naming.provider.url">ldap://<host>:<port></property>

<property

name="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</property>

<property name="java.naming.security.principal">CN=aaa,OU=bbb,OU=ccc,DC=ddd,DC=com</property>

<property name="java.naming.security.authentication">simple</property>

<property name="java.naming.security.credentials">password</property>

<property name="entryDN">User Base DN</property>

</directory>

</directories>

When I run this BPEL process, I get a blank value on my output variable -

<outputVariable>
<part  name="payload">
<processResponse>
<result><users xmlns="http://schemas.oracle.com/bpel/ldap"/></result>

</processResponse>

</part>

</outputVariable>

Is there something I am missing here?

Regards,

Arindam

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 31 2013
Added on Oct 1 2013
2 comments
530 views