Should be easy but how? --Getting objectClass

Bare with my simple question =). How do I get the schema listing of the objectClass types? I.E. I have the following:
cn=Brian Van,o=Home
objectClass=top
objectClass=person
objectClass=organizationalPerson
objectClass=inetOrgPerson
cn=Brian Van
sn=Van
How do I pull just the objectClasses of "top", "person", "organizationPerson", and "inetOrgPerson" to enum through or something? I've tried DirContext listObjClasses = ctx.getSchemaClassDefinition(dn); but am getting errors (i don't think this is the right way). Thanks!

Not sure about what you asked but...
        DirContext objClasses = m_Ctx.getSchemaClassDefinition("o=bar,cn=foo");
        NamingEnumeration enum = objClasses.search("", null);
        while (enum.hasMore()) {
            SearchResult r = (SearchResult)enum.next();           
            System.out.println(r.getName());
        }Should enumerate objectClass attributes of object "o=bar,cn=foo".
If you want to enumerate all possible objectClass definitions that exist in
your schema, just bind to schema object and list its attributes.
Kulervo

Similar Messages

  • This should be easy! How can I change the background colour of my fields?

    Apologies if this has already been posted but nothing has come up via Google nor the Forum search.
    I'm sure this should be easy but it's really doing my head in!
    I have a number of textboxes, dropdown lists, etc within my form - I have set Custom backgrounds on each which are visible within Design View. However, in Preview PDF all the fields have a default blue colour and only change to my Custom backgrounds when you enter the field.
    Is there a way of removing the default colouring of fields so that it's the same as my Custom backgrounds? My Custom backgrounds are 'linear to bottom' so I don't want to just set border.fill.color to one colour.
    Thanks for any help,

    Hi,
    If you include this Javascript in the docReady event of the root node (default "form1").
    app.runtimeHighlight = false;
    This will turn off the field highlight. It doesn't prevent the user from turning back on the highlight, but it will mean that your form opens with the highlight off.
    Hope that helps,
    Niall
    Assure Dynamics

  • Digital audio input via mini jack/toslink from ADA, monitored via USB audio output... is this do-able? I know digital audio input should be okay but how do I monitor it, apart from using the internal speakers?

    Digital audio input via mini jack/toslink from ADA converter, monitored via USB audio output to amplifier... is this do-able? I know digital audio input should be okay but how do I monitor it, apart from using the internal speakers?

    You can output audio thru HDMI, with appropriate adapter.
    You can use additional cheap external usb audio for monitoring.

  • How do i make business cards...making 1 is easy, but how do i duplicate it onto the rest of the template?

    how do i make business cards...making 1 is easy, but duplicating it on the rest of the template?

    See iworktipsntricks.

  • I should be ready, but how do I start it?

    I should be ready, but can't find an icon for starting it!

    And what specifically are you trying to start? On what system?
    Mylenium

  • The browser and search bar has disappeared.... including the entire menu. How can I get it to show up again? Should be easy but I can't figure it out. Can anyone help?

    The only thing that appears at the top is...
    Latest Headlines
    Most Visited
    Getting Started
    No menu above it.

    You can drag '''Search Bar''' from '''Customize Toolbars''' window which is accessible either from
    '''menu bar''': '''View>Toolbars>Customize...''' or
    '''Firefox menu''': '''Options>Toolbar Layout...
    firefox 7.01

  • How to pair an apple TV with an Apple key board ?? Should be easy but ???

    Hi out there...
    Ive just bought an Apple TV and because I already have a Mac needed to buy a new key board to pair them up...but it's not happening !
    So have a wasted $89.00 Aus for nothing because it should be fairly straight forward
    Cheer Sal

    If you have a recent model Apple wireless keyboard you should be able to pair it with the ATV very easily. Apple's Apple TV: Using the Apple Wireless Keyboard provides step by step instructions for doing this & a troubleshooting section if you encounter any problems.
    In particular, note the "not paired or connected to another device" troubleshooting item. That was a "gotcha" for me because I had forgotten that I had paired my wireless keyboard with my iPhone to show someone how that works. Oops!
    If you need to unpair your keyboard, you do that from the device it is currently paired with.

  • This should be easy ;O) How do I read the exif info in a JPG file?

    Hey all...
    I have been googling this for awhile now with not much luck.
    !st... Hi... I am a Flex AS3 newbie....  but... not a programming newbie...
    My learning project is to create my photoart gallery as a Before and After gallery. Part one is a Flex/Air app to gather the images, scale them to consistant display and thumbnail sizes and build and edit XML data files for the images and galleies. I have actually gotten most of that done..
    I am currently working on editing the XML files for the image information (photographer info, copywrite info, descriptions, gallery...etc.) and pulling in as much information that I can find in the image file itself. That being EXIF data.
    I have found a couple of examples but for the XResolution and Yresolution I just keep getting 72dpi... now the Jpg files that I am using from my camera.. when I look at the properties with Windows XP... it say 300dpi... when I load the image in Photoshop and look at image size it says 300dpi.. in Photoshop if I look at file information the EXIF says 300dpi....
    How can I access that data with Flex/AS3????? After all this is "Adobe" Flex Builder...
    This just seems like it should have been solved ages ago... Please.. point to the right path  ;O)
    I have searched this forum and have found one or two EXIF references, but no answers.
    Thanks for any guidance on the subject.
    Bob Galka

    Jean-Pierre
    Thanks very much for your quick response.
    One last point and we should drop this in favor of other more urgent issues we both ahve to deal with.
    The data is coming from a comma delimited (CSV) file using a comma ',' and optional quotes (") as field separators.
    The first column of 'good' data is read as an INTEGER EXTERNAL because of course it is a number. However, the 'bad' rows I want to eliminate have character text in them where I would normally find numbers and they all start with 'D','M' or 'S'.
    I don't have an actual column in the data file or resulting table definition that represents that first character that I'm trying to test on. Hence my use of (1) to reporesent the 1st character of data on the line regardless of whether its numeric or character.
    As I stated, the syntax works fine in SQL*Loader when I typed the WHEN clause in manually.
    I guess if there was a way to define a pseudo column that could be defined using the POSITION notation and everything else using the variable length delimited notation I could test on that psuedo column. I don't want the pseudo column to appear in my resulting table so that seems to be an issue. Enough.
    Since I've worked around it using external tables for this issue I'm not going to spend any more time on it today.
    As usual, many thanks for your help.
    Have a great day! I'll be back soon with another issue :-)>
    Gary

  • Routine 62 should be extended but how?

    The following
    description is from a FS,
    A new invoice printout routine is needed. If an invoicing calendar is used for a customer then invoice output entry should not be automatically created.
    Bill-to-party customer master data need to be checked for invoicing calendar. If calendar is found, then output entry should not be created.
    Standard output routine (invoice released to accounting) applies in addition to the new logic.
    Invoice print routine:
    A new routine needs to be created for invoice output determination procedure. If invoice lists are used for a customer, the output for the invoice should not be automatically created.
    Standard routine 62 (BillDoc:ReleasePost.) is valid and should be used as the basis for creating the new logic.
    Customizing menu path:
    Sales and Distribution à Basic Functions à Output Control à Output Determination à Maintain Output Determination for Billing Documents à Maintain Output Determination Procedure
    Routine 62 should be extended to included the following:
    Check if invoicing calendar is maintained for the bill-to-party (if entry exists in KNVV – PERRL) for the same sales area as in the invoice created.
    Customer sales area data in KNVV – VKORG; KNVV – VTWEG; KNVV – SPART.
    Partner number for the bill-to-party via invoice number from VBPA with PARVW BP. Sales area of the invoice VBRK – VKORG; VBRK – VTWEG; VBRK – SPART.
    It is an enhancement to process Routine i can't understand it will u plz help out with corresponding
    1. transactions 
    2.
    Action required
    plz very urgent help me out.
    Thank you.
    Vishnu.

    Not sure about what you asked but...
            DirContext objClasses = m_Ctx.getSchemaClassDefinition("o=bar,cn=foo");
            NamingEnumeration enum = objClasses.search("", null);
            while (enum.hasMore()) {
                SearchResult r = (SearchResult)enum.next();           
                System.out.println(r.getName());
            }Should enumerate objectClass attributes of object "o=bar,cn=foo".
    If you want to enumerate all possible objectClass definitions that exist in
    your schema, just bind to schema object and list its attributes.
    Kulervo

  • Install Adobe Reader fails; says I should check javascript but how do I do it?

    Windows 7
    I attempted to load Adobe Reader but it failed at the end, saying "There was an error installing Adobe Reader
    [Error 1321. There was insufficient privileges to modify the file C\Program Files(x86)\Adobe\Reader11.0\Reader\Browser\nppdf32.dll]".
    The trouble shooting site asked that I make sure that javaScript was enabled, saying that I should go to tools/options/Content Tab and make sure it is enabled. Well, no such tab with javaScript content exists. Maybe Firefox updated something. But I can't do this check, and - where did the javaScript enabled control go? Didn't bother to go further with trouble shooting since I couldn't satisfy this directive.
    thanks

    hi jhohn1190, this problem won't be related to javascript which is enabled in firefox by default - this would only apply if you're not able to download the setup file at all.
    since the error message is referencing missing privileges, please try right-clicking and running the setup as administrator. in case this doesn't help, please contact adobe's support in order to get their product working.

  • I know this should be easy, BUT IT'S NOT!!  help!

    Hey everyone,
    I decided to swallow some pride and find some solution to my situation that should be simple. I've looked on many of the threads and still can't seem to find the solution.
    I am just trying to set up my Airport Express to my Powermac G5. Very simple... just want to run the ethernet through the Express from another room.
    I started by plugging in my Express. That was fine, I got a green light. Then when to Setup Assistant... it cannot find a network. After many attempts, still no network. I tried to reset my Express. No luck. I also configured my Express directly to my Powermac, all settings seemed just fine... except when I try to use it how it is supposed to be used, I get nothing. My G5 is reading my Extreme Card okay. So... what in the world am I doing wrong?
    Admittedly, I am no tech whiz when it comes to networking, so naturally, I assumed that this would be a simple and quick installation... that has seemed to last for hours and hours...
    Powermac Dual 2Gh G5, 4G RAM   Mac OS X (10.3.9)  

    Hi
    I had the same or similar problem when I first hooked up my airport. I took my computer to the Apple store to be sure my airport setup was correct. When they turned on my computer it immediately connected to their network. They had no idea why it wouldn't work at home. I was lucky that a person was standing there that had an idea what was wrong. He said it was possible that there was some interference in my home. So, the apple people suggested that I change from automatic to a specific channel. That was fine, except I asked them how could I do that if the computer didn't recognize the base station? So, we then tried hooking the base station up directly to the computer using an ethernet cable, and it worked (they had never tried this). When I got home I did this and changed the channel to 2 (you have about 10 or so channels you can try). I then put the base station back to the room where my cable is. The computer immediately recognized it. I now have three airport extremes in various rooms and they all work great, as long as I set them to a specific channel. You can try each channel and then check the strength of the signal to determine which is the best for your environment.
    Hope this helps.
    Larry

  • Want to upgrade my existing iPhoto 6 to version 9. Have Snow Leopard 10.6.8 so it should be possible, but how?

    want to upgrade existing iPhoto 6.0.6 to version 9 so that I can download photos from my smartphone.  apple info says if iPhoto came preloaded on my Mac (it did) that it should automatically tell me about upgrades... but here I sit.....  it directs me to buy iLife11! any ideas?

    That update won’t install onto iPhoto 6. It requires that an earlier version of iPhoto 9 be present and in its original location.
    (113519)

  • I want to convert two image files into strings and than to compare them. This is easy, but how to mention where the difference exist?

    I have two image file in bmp file format. How to convert them into string and to check if they are differnt or same. If different how to mention or find that where the difference exists. This idea have to be extented with video application as well.

    Hi,
    if you have vision, you could use the functin IMAQ Image to Array to have a 2D array of the pixel values.
    You can then compare pixel by pixel; if your images come from a camera, I would recommend to set a treshold of acceptance.
    This is a time consuming solution anyway.
    Alternative methods:
    1) Make a subtraction of the two images, the resulting image will be the difference of them
    2 ) Use IMAQ LogDiff function (operators palette)
    3) Calculate the histogram of both image and compare the histogram reports
    Good luck,
    Alberto

  • Percentile in a collection. This should be easy but....

    I want to find the 80th percentile in the list of numbers in a collection.
    I have loaded data into a nested table:
    Type type_NumTable is TABLE OF Number;
    tbl_LocalScores type_numTable := type_numTable();
    I thought I could use Table() to accomplish this; however, the following comand
    select trunc(PERCENTILE_CONT(.80)) WITHIN GROUP (ORDER BY column_value DESC))
    into LocalTolerance
    from Table(tbl_LocalScores);
    gives me an error of
    320/52 PLS-00642: local collection types not allowed in SQL statements
    320/46 PL/SQL: ORA-22905: cannot access rows from a non-nested table item
    320/5 PL/SQL: SQL Statement ignored
    Can someone give me a hint as to what I'm missing or a suggestion on how to accomplish finding the 80th percentile within a collection.
    Thanks
    Larry

    user6282899 wrote:
    Can someone give me a hint as to what I'm missing or a suggestion on how to accomplish finding the 80th percentile within a collection.Well, hint is in the error message - do not use local collection types. Use SQL types. For example:
    CREATE OR REPLACE Type type_NumTable is TABLE OF Number;Or better use oracle defined type sys.OdciNumberList:
    declare
        tbl_LocalScores sys.OdciNumberList := sys.OdciNumberList(1,3,17,22,25,99,56);
        LocalTolerance number;
    begin
        select  trunc(PERCENTILE_CONT(.80) WITHIN GROUP (ORDER BY column_value DESC))
          into  LocalTolerance
          from  table(tbl_LocalScores);
          dbms_output.put_line(LocalTolerance);
    end;
    5
    PL/SQL procedure successfully completed.SY.

  • I cannot move my photos from my mac to my new ipad. It should be easy but it is not working. Help!  GB

    I am not able to move my photos from my desk top mac to my new ipad. I have my photos stored in iphoto on my mac.  What do I have to do to move these photos to the new ipad?  GB

    Connect the iPad to your Mac
    Launch iTunes.
    Click on the iPad name on the left side of the iTunes window under the devices heading
    Click on the Photos tab in the iTunes window on the right.
    Click on Sync photos from - and select iPhoto from the menu.
    Click on the albums, events, faces - whatever you want to select to sync. 
    Click on Apply in the lower right corner of iTunes.
    This kb article may help as well.
    iOS and iPod: Syncing photos with iTunes

Maybe you are looking for