[BEGINNER] How interrogate the groupOfNames for a Member?

Hi all!
I need programming ROLE authentication on a server of the OID.
I have two branch: one for individuals and one for the roles.
There are two roles: Admin and user.

DN: uid = Admin or = People, OU = NMS
objectClass: top
objectClass: person
objectClass: organizationalperson
objectClass: inetorgperson
UID: administrator
CN: theboss
SN: theboss
userPassword: secretpassword1

DN: uid = guest, or People, UO = = NMS
objectClass: top
objectClass: person
objectClass: organizationalperson
objectClass: inetorgperson
UID: comments
CN: guestname
SN: guestsurname
userPassword: secretpassword1

DN: cn = Admin, OU = roles, OU = NMS
objectClass: top
objectClass: groupOfNames
CN: Admin
Member: uid = Admin, ou = People, OU = NMS

DN: cn = users, or roles, OU = NMS =
objectClass: top
objectClass: groupOfNames
CN: user
Member: uid = guest, ou = People, OU = NMS

What I try to do, is a search that returns to the role of a uid.
For example, given the uid = comments how can I know that the user belongs to the user role?

The following search (in Java) returns nothing...

SearchControls CTL = new SearchControls();
Filter string = "(uid=guest)"; "
NamingEnumeration results = ldapContext.search ("ou = roles, OU = NEM", filter, CTL);

Any help?
Thank you
Frank

You can create a ldap query "and" as follows:

(&(objectclass=groupofuniquenames) (uid = 982374923874))

-Kevin

Tags: Fusion Middleware

Similar Questions

  • Can I reset the password for a member of the team as an administrator?

    I can't find a place to reset the password for a member of the creative team cloud who is no longer employed by us.  Can I reset the password as an administrator?

    The reset password Email should be sent to the registered Email, so the rest of the password by you to another seat is not a viable solution.

    However, you can revoke invite it & assign it to one of the existing employee.

    To activate the headquarters, this Adobe ID must accept the invitation & then log out of the application of office of CC & journal again the new Adobe ID assigned.

    Concerning

    Baudier

  • How are the angles for Satellite A100-847?

    How are the angles of view for this laptop?
    It is very important for me to have the right angles.

    And, as a secondary issue, I want to use this laptop occasionally for digital photography postprocesing. Is this reliable LCD for that matter? (precision colors, Posibility to calibration, brightness, less looks brilliant...)

    Thanks for your comments!

    It was a long search, but I found something interesting:
    "The display which was delivered with this laptop is a Samsung LTN154X3-L06 - H0A15.4" 1280 x 800 display broad CSVI TFT color display.

    View angles:
    horizontal-45 ~ + 45 degree
    vertical - 30 ~ + 15 degree
    contrast 400
    typical nits brightness: 150nit

    Hopefully this bit of information can help you for later handling.

    Good bye

  • How does the license for CS6?

    Looking to start learning about website coding, and I've heard a lot of Dreamweaver.  I'm not subscribe through CC, I'm looking to buy a license for life CS6 outright.

    But how does the license work?  If I have to reinstall my OS because my hard drive dies, I can reinstall DW using the same product key?  Is it related to my Adobe account, which means that I have to log in to activate it?

    Any help would be appreciated, live chat is down so I thought it would be the next best place.

    If you are unable to disable advance, you can contact Adobe customer for help.  But as I said, you can install up to 2 devices.  I think if you try to install on a 3rd device, your other 2 get automatically turned off.  So even if you need to format C, you will always be able to get up and running quickly.

    Is meant by perpetual license "to use for as long as your operating system can run it."   CS6 is almost 3 years old and is no longer updated.  It is what it is.  Currently, 4 versions of the currently available version of creative cloud.

    Nancy O.

  • How interrogate the EM repository for a list of targets that have no targets defined properties and therefore will not be members of groups identified by the hierarchy of administration.

    Hello

    Asked me to do in control cloud 12 c,

    ""Repository queries EM to get the list of targets that did not target defined properties and therefore will not be members of groups identified by the hierarchy of administration.".

    and I was looking for more information on how to do it but I can't find anything on the repository tables, and I can't find how to get this cloud control options.

    Thank you

    Matt

    Management Group page, go to the Associations tab and click the target report unassigned

  • How do the program for RS - 232

    Hi all.

    I'm a newbie to the Labview, and I need to create a program that can send commands via RS - 232.

    The RS-232 is connected to the PC and the PSP INSEK-603.

    I tried to use "Basic writing and read.vi" which is already installed in Labview for example.

    But I don't know how to use it especially the meanings of "data bits" and "bytes read".

    If someone can explain it or can provide a vi, I will appreciate it.

    Thank you.

    If you sendthen you do not send return transport correctly. In LabVIEW, the easiest way to proceed is to have '-' Codes view turned on for the control channel / constant and sending \r. The default endpoint in the series base characters write and read have \r\n (CR\LF) and if you remove those, it was a mistake. Also, you want to allow to stop character is your instrument sends one with a response.

    Serial communication is a common problem for beginners, and there are thousands of messages related to the topic. Watched one of these ealrier posts?

  • HP15 smart touch note 15-r136: how past the password for administrator on touch smart computer hp laptop power 15-r136

    I had for my power on password. I had to reset the password to put in a new, so he asked an administrator password, I put the same one as my power on. I did upgrade to the sign on screen my password wrong one after awhile he ask my administrator password it will not be considered.

    Hi @ds1218 ,

    Thank you for visiting the Forums HP's Support and welcome. I looked in your question about your laptop 15-r136 HP computer and issues with passwords. Here is a link to a thread you might want to look at.

    Please let me know how it goes.

    Thank you.

  • How change the font for a particular word in RichTextFiled?

    Hi all

    I use RichtextField to display information on the screen.

    The problem is that I want to put fonts for a particular word without splitting the string.

    for example: if it is the string "I'm a Blackberry developer.

    Now, I want to define "BOLD" police "Developer of Blackberry"

    How do I do that?

    If someone of you can give me the solution.

    Would be a great help.

    Thank you

    Sumit

    You can do this mark as resolved then?

    You might also be interested in this:

    http://supportforums.BlackBerry.com/T5/Java-development/simple-HTMLTextField-implementation/TD-p/454...

  • How change the layout for the site Arabic/Hebrew?

    Hello

    I am using one of the models of BC and need to change the layout of the RTL direction. I want to place the Logo on the right side and the search field to be on the left side.

    TIA

    You will need to find how each element (such as the logo) is positioned by the styles that apply to it and its parent elements. Then, you can change these styles based on the layout you need.

    For example, if the logo element (or one of its parents) had float: left; applied, you can change it to float: right; .

    Here is a very complete guide to find styles applied using the Chrome browser: editing Styles and the DOM - Google Chrome

  • How do the drivers for the CIF single chip (FREE) web

    I need a download a driver for CIF single for my web cam (FREE) if possible and compatible with XP

    Download the driver from HERE.

  • How interrogate the Spec of Formulation of the hardware specs?

    Hello

    I am building an application that animates its data from the specification of trade that connects to the specification of equipment and material for formulated related specifications.  I'm stuck trying to find the table that links between specifications of formulated material to the specification (tab: "Related Spec"-> Section: "Produced By").  Can someone help me identify the tables that I need?  I went through the document DatabaseAndObjectSchema for PLM4P Agile and have exhausted my resources.

    -Here's a sample of my incomplete request

    Select ms.specid, ms.specnumber, s.specid

    of s agile.specsummary-trade Spec

    Agile.gsmtradematerialspecrelation gts,-trade material connection

    Agile.specsummary ms - Hardware Spec

    where s.specid = gts.fktradespec

    and gts.fkmaterialspec = ms.specid

    Thank you.

    Yoko

    The query I gave above should work the specification of trade, assuming that the value of context of Formulation is selected to choose what Formulation technique produces this material specified on the specification of trade. However, if you do not choose the specification of the formulation, or you simply want to get the specifications of possible Formulation that produces this material specification, try the following:

    SELECT formSpecSum.SpecNumber
      FROM MaterialSpec matSpec
        INNER JOIN gsmFormulationOutput formOutputs on matSpec.pkid = formoutputs.fkReferencedMaterial
        INNER JOIN gsmFormulationSteps  formSteps on formOutputs.fkFormulationStep = formSteps.pkid
        INNER JOIN dwbSpecifications dwbSpec on formSteps.fkParent = dwbSpec.pkid
        INNER JOIN dwbSpecificationRoots dwbroots on dwbroots.pkid = dwbSpec.fkWorkingVersionParent
      INNER JOIN formulationSpecification formSpec ON dwbroots.fkOWner = formSpec.pkid
      INNER JOIN SpecSummary formSpecSum on formSpec.pkid = formSpecSum.specID
    WHERE matSpec.pkid = 'YOUR PKID HERE';
    

    I would like to know if it works for you.

    Thank you

    Ron

  • Unalterable RCLI in U4, how do the backup for my virtual machine

    Hi, in the update of this week, my esxi U4 servers build 153875, but now have a problem, my script php to backup virtual machines do not work, orders rcli is unable to connect to the esxi Server

    Search error:

    root@backuplinux script# /usr/lib/vmware-viperl/apps/vm/vminfo.pl--serveur virtual7

    Enter the user name: root

    Enter the password:

    Error to connect to the server " " https://virtual7/sdk/webService': Maybe host isn't a Virtual Center or ESX Server.

    I use:

    VI Perl Toolkit version: 1.6

    'Vminfo.pl' script version: 1.0

    You can take a look at ghettoVCB that use the console SSH not supported for download and execution of the backup script. You can also take a look at Veeam Backup If you are looking for a basic GUI solution, among others.

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    http://Twitter.com/lamw

  • How interrogate the error of flow

    How to find the error generated by oracle streams and where I can the found

    You can see DBA_APPLY_ERROR. But other views have information about the error, such as:

    SELECT THE FUNCTION ERROR_MESSAGE, ERROR_NUMBER, STATUS_CHANGE_TIME, CAPTURE_NAME
    FROM DBA_CAPTURE WHERE STATUS = 'LEFT ';

    Capture, propagate and apply all have versions of this type of information.

    You can also view the status of the workflow through OEM (Database Control or Grid control).

  • How interrogate the tablespace size increment speed?

    Hello

    Do you have information or ideas on how to know the history of tablespace size slices. or how to know the frequency of the increase in size of the tablespace.

    When I walked into the new database, I never managed this database before, I want to know the size tabelspace increments range from speed to make reasonable space.

    so could you please give us a guide thanks!

    Hi RLUO,

    You can use DBMS_SPACE. OBJECT_GROWTH_TREND to find the trend in the growth of a segment.

    Please refer to:

    http://www.Oracle-training.cc/t_oracle_segment_growth_prediction.htm
    Space - DBMS_SPACE management. OBJECT_GROWTH_TREND - how to run

    Concerning
    Rajesh

  • BlackBerry Z10 how reset the voice for hearing loss

    I connected to the BB link and noticed a message regarding the hearing impaired. Don't know what I did, but my phone does not respond to my command, but rather talk to me which icon I touch rather than the execution of my instructions.

    I don't want to not reset to factory setting otherwise I will lose a lot.

    Can anyone help?

    THX,

    Chafe

    • Unplug your link Z10.
    • On the Z10, go to your main settings by sliding down from senior management.
    • Tap accessibility.
    • Press the screen BETA reader.
    • Disable the screen reader by activating / deactivating off.

Maybe you are looking for