Query list of users from LDAP

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

slight change in my approach here:
I would like to use welogic provider to connect to this LDAP
so... instead of MyProgram --> LDAP, it should now be MyProgram --> Weblogic/SecurityRealms/myrealm/Providers/myAuthenticator --> LDAP
in this guess, i wont be using LDAP connection details, instead the weblogic host/port and Authenticator name should be sufficient
How can I programatically query the list of users using this approach?

Similar Messages

  • How to I get list of Users from LDAP in a Task?

    Hi,
    Can any one tell me that how can I communicate with a LDAP Resource and get all the users from the LDAP as a list in an activity in the task?
    Can anyone tell me how can I do this?

    The "Stick Slidelet" option has been unchecked all the time, but the "X" button stayed.
    Meanwhile, on saving Captivate asked me for the umpteenth time if I wanted to convert my project from Captivate 7 to 8. It seems like I originally had a version 7 trial installed, but my licensed copy clearly states that it is version 8 now, and I have answered this dialog with "please convert" in this project every time before.
    Anyway. Now my original slidelets still have the unwanted "X" button. But when I create a new slidelet from scratch, it does not have the button anymore.

  • Problem with activesync provisioning user from  ldap to red hat

    hello,
    i am using activesync to provision the user from ldap to red hat linux . i am getting the following error message
    An error occurred adding user '#########' to resource 'Red Hat Linux'.
    Script failed waiting for " PASSWORD:" in response "passwd: Only one user name may be specified.
    _,)#+(:"
    Script processor timed out with nothing to read and the following unprocessed text: "passwd: Only one user name may be specified.
    _,)#+(:".
    when to try to assign redhat resource to a user from the idm the user is getting provisioned to redhat successfully .active sync form is working for all the other resource except the redhat.
    can anyone give me solution for the above problem
    thanks in advance.

    Have you set the xhost as ROOT (xhost +hostname), and then as the ORACLE user type "export DISPLAY:0.0" (without the quotes of course) ? This needs to be done prior to running the installer. Try this site for further information - http://www.puschitz.com/OracleOnLinux.shtml

  • Importing users from LDAP source

    Importing users from LDAP source, "first name"/"last name" are not imported.
    Is there a way to get those from LDAP source?

    Not currently. This is something we expect in a release late this year/early next as we introduce additional LDAP support enhancements.
    Jason
    >>> ZGajsak<[email protected]> 8/29/2012 3:16 PM >>>
    Importing users from LDAP source, "first name"/"last name" are not
    imported.
    Is there a way to get those from LDAP source?
    ZGajsak
    ZGajsak's Profile: http://forums.novell.com/member.php?userid=14389
    View this thread: http://forums.novell.com/showthread.php?t=459442

  • Hi am having issues with getting the list of users from the Active Director

    Hi am having issues with getting the list of users from the Active Directory, can anyone help me with this!

    Hi Jason,
    Try this:
    1.  In Ultiboard select Tools>>Netlist Editor>>Pins, press the Delete button
    2.  Select all nets in the Select the Net to Delete dialog and then press the Delete button.  This will clear all nets in the layout, don't worry all traces, parts are still on the design.
    3.  Go to Multisim and select Transfer>>Forward annotate to Ultiboard.    This will add all nets that you removed back and it should fix the pin problem
    Tien P.
    National Instruments

  • How do you import a list of users from a file? (BPC 7.5NW)

    In adding users from a network domain, the related personnel filter provides three choices.  One of the choices allows a BPC administrator to import a list of users from file.  For some reason, the radio button alongside that option is grey and the choice is inoperable.  Does anyone know what steps-configuration or later-must be taken to make this choice operable and to be able to import the list of users from a file?
    Edited by: Greg Tyrl on Jul 11, 2011 8:17 PM

    make a new addressbook and in that import Outlook's

  • LDAP query to fetch users from Two different OU

    I am looking for an AD query to get AD enabled users from two different OU Stores & ServiceOffice under root domain.
    Using below syntax to fetch it simultaneously but not succeeding. Please help me.
    (&(objectCategory=person)(|(ou=Stores)(ou=ServiceOffice)))

    Hi Thanks for the revert. Actly i am setting this syntax in application not running powershell script to fetch users.
    So i need query in Ldap filter format only...
    i.e.
    (&(objectCategory=person)(|(OU=Stores,DC=Mumbai,DC=Users,DC=ABC,DC=com)(ou=ServiceOffice,DC=Chennai,DC=users,DC=ABC,DC=com)))
    Please correct my above query.

  • Extracting List of Users from BO Server

    Hi All,
    As an administration requirement we have to extract list of users within our BO server. I looked upon the forum and found that we can use query builder for the purpose.
    I used query builder and ran query " Select SI_NAME from CI_SYSTEMOBJECTS where SI_NAMEDUSER=1 AND SI_KIND='User' " to list down the users. No issues till this point, the query ran fine and gave list of users in the server but I couldn't find a way to take export of this list. Then I thought of creating a webi report on top of CMS database pulling column "dbo.CMS_Aliases6.Alias" into report but that shows some ids for all enterprise users.
    Please let me know if there is any other method that I can implement to take export of user list from server. I know this can be achieved using SDK but I want to try it at last.
    Thanks,
    Chandra

    Hi
    After clicking the Export .
    1.Go folders>administration tools folder
    2.Right click on Administrator tools >Security query export >
    3.Click on History
    4 In the History tab ,you will see the program Object schedule(See screen shot2)
    5.Now clicking on the Instance Time link will open a .txt file and shows you the rights
    6. while saveing this file save as in CSV format.
    If you want to see only users after saveing the csv , Just apply the filter on Rights collections check only system . It will dis play only the users.
    Useing Query Builder also We can do
    After Genrated the Report go to file and save as html in your local .
    Select the HTML Page and Right click Open with Excel . The report will open in excel .

  • Deleting user from LDAP

    How to delete the user permanently from LDAP. I want to delete the user's mail and calendar services also.

    Hi,
    It is generally not a best practice to touch your directory server directly. If you're just playing around for learning purposes its ok. Otherwise, from an implementation perspective, do not try accessing DS directly.
    I will try giving u a solution if u use legacy mode of AM. I'm still learning about realm mode, but i guess such scenarios are mostly common between the two.
    You can use the amadmin command found in /opt/SUNWam/bin or in windows c:\program files\sun\javaes5\identity\bin. You have sample XML file pcDeleteRequests. You could use this to delete just one or few users.
    The sample is
    <Requests>
    <PeopleContainerRequests DN="ou=People1,dc=example,dc=com">
         <DeleteUsers>
         <DN>uid=dpUser,ou=People1,dc=example,dc=com</DN>
         </DeleteUsers>
    </PeopleContainerRequests>
    </Requests>
    Make an XML, run this command : amadmin -u "uid=amadmin,ou=people,dc=example,dc=com" -w <password> -t <your_file>

  • Problem importing users from LDAP (AD) server in administration tool.

    Hello,
    I have a problem integrating an LDAP server in the Security Manager of the Administration tool.
    When trying to import users from an LDAP Server, i receive this error>
    "53002 - LDAP server referral is not supported."
    [http://download.oracle.com/docs/cd/E05553_01/books/AnyMsg/AnyMsg_Messages22.html]
    The configuration of the LDAP server is correct because i receive this message after configuring the connection>
    "LDAP Server connected succesfully".
    The version of the Oracle Administration Tool is> 10.1.3.4.1.090414.1900
    The specifications of the LDAP server are> Active Directory service in Microsoft Windows 2003 Server R2 x64.
    Thank you for the Support.

    Hello,
    Please refer to the following KBAs, may be this can helps you:
    http://service.sap.com/sap/support/notes/1818711
    http://service.sap.com/sap/support/notes/1816595
    http://service.sap.com/sap/support/notes/1809036
    Regards,
    Asma CHAOUACHI

  • Query List of User-Inputed Values

    I would like the user to be able to type in a list of values in a textarea (or some similar control), then be able to run a query against the items in that control. Is this possible? If so, can someone point me in the right direction?
    For example, there is a textarea and the user types in 123, <Enter>, and 456. Then the following query is run:
    select ...
    from ...
    where field01 in (123, 456);

    Dear Ho we,
    There is no limitation of user define filed for document level and document row level.
    At present i think no budy use 1000 UDF at row level so its very difficult to say after creation of 1000 UDF what is impact on system performance.
    You have to work try basis.
    REGARDS
    MANGESH PAGDHARE.

  • Query listing primary user and the primary device

    Is there a query to list the primary device and the primary user associated with that device. Coming from a LANDesk environment I was able to create reports and queries that would list this information pretty easily. I can't seem to link the two in
    SCCM for reporting. Thanks 

    That's a SQL query that should be executed in SQL management studio. It can also be used to create a SRS report.
    Torsten Meringer | http://www.mssccmfaq.de
    Any hints, what it the query itself? And how it should be imported, that it will be created in SRS? Is there any instructions for this? Thanks.

  • Does OBIEE picks up Email Id of the user from LDAP?

    Hello All,
    As soon as I configured the iBot I want to send the reports output as email. I assigned them to the user. It is failing with the following errors.
    " No devices for user: xxxxxx"
    My understanding was LDAP where the user authentication happens would supply the email id to OBIEE I guess I'm wrong. Can some one put somelight on this.
    How do go further,..!
    Thanks,
    Vijay

    Ok, Lets say I have a user called "ABC" he logs in and wants to send it to a group of people. Created iBot and in delivery content he looks for the people and select's them but iBot error is something like this "No devices for user"
    Thanks
    Vijay

  • How to check list of users from OS level with type and validity AIX+DB2

    Hi,
    We have 40 clients in our ECC -PRD system. we do not have authorizations to login all clients , only we have 000 accessonly.
    we need to check all users type and validity in the system. can any one please help me this script.
    regards,
    balarami

    Hello,
    Yes you can check the user validity and tye from OS level with DB script.
    ORACLE SQL scripts : I assume that schema for your system as sapr3.
    First you check the table fields by desc sapr3.usr02;
    then can select these fields for user as select <field name1>, <field name2> from sapr3.user02 where uname=<required user name> and mandt=<client>;
    check exact details before you execute script @ ORA level*
    If you want to see logged on users - you can see them with your '000' ID for all 40 clients.
    Hope this helps.
    Thanks,
    Amit Thombare

  • Running MSOL commands against a list lof users from csv.

    Hi All, I was kindly helped here
    with a similar issue only the solution doesn't seem to work for the Get-MSolUser commands:
    What I am trying to achieve is to set the users -UsageLocation to GB and then to Set-MSolUserLicense to our Enterprise. So for example I have a list of UPN for our UK users in a csv:
    UserPrincipalName
    [email protected]
    [email protected]
    Here is what I have tried just to run a Get command first against the csv:
    Import-CSV "C:\emails.csv" | %{Get-MSolUser -identity $_.UserPrincipleName | fl}
    Which gives me this error:
    Import-CSV "C:\emails.csv" | %{Get-MSolUser -identity $_.UserPrincipleName | fl}
    +                                            
    ~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (:) [Get-MsolUser], ParameterBindingException
        + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.Online.Administration.Automation.GetUser
    I can confirm that if I run this command
    Get-MSolUser -All -UnlicensedUsersOnly | FT UserPrincipalName,DisplayName,IsLicensed,UsageLocation
    I do get a list of all users who are unlicensed.
    Any help on where I am going wrong would be greatly appreciated.

    Thanks Fred, that looks a lot better:
    Does this look correct to you?
    Import-CSV"C:\emails.csv"|%{Get-MSolUser-SearchString$_.UserPrincipleName
    |Set-MsolUser-UsageLocationGB
    Or do I need to define a ForEach -Object?

Maybe you are looking for