Probelm seaching an attribute

Hi,
I am trying to search for an user in the LDAP and ended with the following error
Problem getting attribute: javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object];No Such Object]; remaining name 'ou=people'
I have given the following
ctx.search("ou=people","(cn=*)", ctls);
But im able to see the ou attribute ..
Can anyone point out the error Please
Thanks,
VS

ctx.search takes 3 parameters
1) searchBase - "OU=<OUName>,DC=<DomainName>,DC=<DomainExtn> E.g : "OU=test,DC=hotmail,DC=com"
2) searchFilter- (CN=*)
3) SearchControls - searchCtls.setSearchScope(SearchControls.SUBTREE_SCOPE);
Change the first parameter

Similar Messages

  • Probelm in Sending Parameters/Attributes in JSP

    I have the following two file and i want to send parameters for index.jsp to middle.jsp and print them. But when i run the files there print "null" value at <%= request.getAttribute("myparameter")%> in midle.jsp.
    Index.jsp
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
    </head>
    <body>
    <h1>Hi, I am Zaid from Karachi and My hobby is Cricket</h1>
    <h1>Whats Your Name, Hobby and where you belong</h1>
    <form method="GET" action="middle.jsp">
    <input type="text" name="username" size="25">
    <input type="text" name="hobby" size="25"><p></p>
    <input type="text" name="city" size="25"><p></p>
    <input type="submit" value="Submit">
    <input type="reset" value="Reset">
    </form>
    <%
    request.setAttribute("myparameter", "Passion");
    %>
    </body>
    </html>
    middle.jsp
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
    </head>
    <body>
    <h1>Hello World---!</h1>
    <%= request.getAttribute("myparameter")%>
    <%= request.getParameter("username")%>
    </body>
    </html>

    Consider the lifecycle.
    You request page "index.jsp" It runs index.jsp and produces html. It sets the request attribute "myparameter"
    You request page middle.jsp. It runs middle.jsp.
    Note that this progression requires two seperate requests - one for "index.jsp" and then another for "middle.jsp", which sends the request parameters from the form from your browser to middle.jsp.
    Request attributes only last the life of one request - so when you request "middle.jsp" the request attribute set when running "index.jsp" is not available.
    cheers,
    evnafets

  • How to search XML file for specific attributes ...

    Hi, Im trying to design a XML driven billboard. Is there an easy way to seach attributes of all elements using DOM parser and return the element with attribute that matched search criteria?

    Yes. Are you using jsdk1.4? If true then look at the XPathAPI.
    I wrote a package for working with XML vocabularies. If you are interested on it, here is an example that uses amic-util.jar to find nodes with the id-user attribute:
    XmlReader xr = new XmlReader("vocabulary.xml");
    NodeSet ns = new XPathFinder(xr).findNodes("*[@id-user]");
    while(ns.hasNextNode()) {
      XmlReader node = ns.nextNode();
    }Send me an e-mail and I will send you back the amic-util.jar and the javadocs.

  • Attribute out of range error with Dalsa Spyder camera

    I have a Dalsa Spyder camera SG-11 which seems to work fine in NI MAX. I've also had this camera working successfully in a LabView vi but now, for some reason, I am getting an error message "Attribute out of range  (-1074360302)". 
    I've tried using different gain values (since MAX sometimes gives an attribute out of range error relating to gain) but am not having much success.
    Has anyone else experienced this problem and found a work around?
    Lightworker 

    Hi LightWorker,
    I've not seen this probelm specifically with Dalsa Spyder SG-11 cameras but there are several KnowLedge Base Articles on the error for various differnt models of camera. It may be that one of these fixes will apply to your camera as well.
    How Do I Resolve "Error: 0xBFF69012 Attribute value is out of range” When Connecting to a GigE Camer...
    Why do I get Error 0xBFF69012 "Attribute Value is Out of Range" with my Basler GigE Camera?
    Stingray Camera & NI LabView / Vision Builder Error -1074360302 "Attribute is out of range"
    Please let us know if any of these solve your issue.
    Kind regards,
    James W
    Controls Systems Engineer
    STFC

  • Problems in setting user attributes using amclientsdk

    Hi,
    I am trying to set user attributes using amclientsdk. I am using the below mentioned piece of code for the same:
    AMIdentity idn = new AMIdentity(auth1.getSSOToken());
    Set s = new HashSet();
    s.add("cn=adviser,dc=axa,dc=au");
    Map roleMap = new HashMap();
    String userRoleKey = "nsRole";
    roleMap.put(userRoleKey,s);
    amIdObj.setAttributes(roleMap);
    amIdObj.store();
    The AMIdentity type is USER. The environment is Linux and I have amclientsdk.jar in my classpath. When I run the above piece of code then I get the following exception:
    Exception in thread "main" java.lang.ExceptionInInitializerError
    at com.sun.identity.idm.plugins.ldapv3.LDAPv3Repo.checkConnPool(LDAPv3Repo.java:4516)
    at com.sun.identity.idm.plugins.ldapv3.LDAPv3Repo.addListener(LDAPv3Repo.java:1051)
    at com.sun.identity.idm.server.IdServicesImpl.getAllConfiguredPlugins(IdServicesImpl.java:2490)
    at com.sun.identity.idm.server.IdServicesImpl.getFullyQualifiedNames(IdServicesImpl.java:209)
    at com.sun.identity.idm.server.IdCachedServicesImpl.getFullyQualifiedNames(IdCachedServicesImpl.java:588)
    at com.sun.identity.idm.AMIdentity.getFullyQualifiedNames(AMIdentity.java:1162)
    at com.sun.identity.idm.AMIdentity.equals(AMIdentity.java:1091)
    at com.sun.identity.delegation.DelegationEvaluator.isAllowed(DelegationEvaluator.java:140)
    at com.sun.identity.idm.server.IdServicesImpl.checkPermission(IdServicesImpl.java:2906)
    at com.sun.identity.idm.server.IdServicesImpl.setAttributes(IdServicesImpl.java:1402)
    at com.sun.identity.idm.server.IdCachedServicesImpl.setAttributes(IdCachedServicesImpl.java:467)
    at com.sun.identity.idm.AMIdentity.store(AMIdentity.java:457)
    at ProcessAuth.main(ProcessAuth.java:131)
    Caused by: java.util.MissingResourceException: Can't find bundle for base name amLDAPv3Repo, locale en_US
    at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:836)
    at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:805)
    at java.util.ResourceBundle.getBundle(ResourceBundle.java:576)
    at com.iplanet.am.util.Locale.getInstallResourceBundle(Locale.java:255)
    at com.sun.identity.idm.plugins.ldapv3.LDAPv3Bundle.<clinit>(LDAPv3Bundle.java:56)
    ... 13 more
    Any help on this would be greatly appreciated !

    Thanks for a response Aaron !
    Probelm is I am not even able to set nsroledn attribute using amIdentity's store() method. I am able to set other attributes using store() but not these role related attributes.

  • AC 5.3 - CUP - initiator attributes - conditional logic

    Is there a trick to making the conditional logic work correctly in CUP when trying to define/select the initiator attributes?   Even when I specify to use AND, it seems to still be adding the attribute with an OR condition.
    For our non-production provisioning,  I have a role that needs to be approved by different people depending on which system (i.e. Dev, IT, QA) it is being requested.  I am trying to set up the 2 initiators as follows:
    Initiator 1:  Application/System = DEV and  Role = Role 1
    Initiator 2:  Application/System = IT or QA    and    Role = Role1
    Edited by: Jane Yap on Oct 22, 2009 5:12 PM

    After playing around with this more,  it appears that if I am selecting Role as the attribute and use the search functionality (i.e. click on the magnifying glass) to specify/select the actual role/role name,  the conditional logic does not get set accordingly.   In order to get the correct conditional logic set (i.e. populate the one I actually selected),  I need to type the role name or pattern of the role name instead of selecting the role using the search functionality.  
    I guess everywhere else within GRC AC it's always best to use the seach functionality when setting/selecting field values  (as opposed to manually typing/entering the values) EXCEPT for when creating/changing CUP initiators.   Documented feature? Perhaps...
    Thank you to those who responded to my post.

  • Problem in compounding attributes

    I need to add compounding attributes to the bw systems from sap R/3. do i need to delete the data in cubes and masterdata and all and start from the scratch, how to solve it, i have seached forum which i couldnt found out.

    Hi Radha,
    Yes you can for the enhancement of the data source. you have to include the new characteristic in the attributes data source and you have to do the mappings and everything upto the object and you can start the loading the transaction and masterdata aswell. but you have to make sure that you have compounded correctly and the compounded object length must be less than or equal to 60(including the added object). and you have to select the option compounding local to the source system.
    Hope its clear,..if you have still any doubts plz let us know.
    also please have a glance at this link: http://help.sap.com/saphelp_nw70/helpdata/en/80/1a63b3e07211d2acb80000e829fbfe/frameset.htm
    Thanks,
    Ashok

  • Transportation probelms with objects

    Hi
    most of objects we installed bsuiness content, and migrated to 7.0 and amde some enhancements and moving quality each time request is getting failed like some objects are inactive for each module.  its defficult to check each object ( char and its contain attributes are active ior not)
    is theer any process i can check while collecting what are objects are inactive?
    2nd probelm is
    i replicated all datasource from ecc quality to BI quality
    then i am sending migration an dactive version of datasource to BI quality
    i am collecting all flow. why while transportating again data source is going source system for replication process?
    any setting we need to adjust, bec its taking long time
    ple let em know

    Hi,
    1. First you check all master data InfoObjects are Active or not?. Eg: take 0MATERIAL and check all Objects with in that i.e. Attributes, NaviGational...are active or not?. In this way you collect all InfoObejcts Information in one Excel sheet and then Transport all Ativated InfoOBjects to BI Qty.Then you send all Cubes/DSO's and so on....
    2. First you Transport the datasources from ECC Dev to ECC Qty and then Replicate all DS'S in BI Qty system and then You transport the Transfer/Update/Tranformations/DTPS from BI Dev to BI Qty.
    Thanks
    Reddy

  • Use TDMS attributes in DIAdem VBscript

    Greetings,
    I've written data set properties as TDMS attribtutes and now wish to call said attributes as variables in DIAdem VBscript.  I've seached the help yet can't figure out the proper syntax to call a TDMS attribute.
    Thanks!
    Solved!
    Go to Solution.

    Hello Space_Fligh,
    This should hopefully help:
    I created a property called "Test" on the root level (file property), and the value of the property can be accessed through this variable: Data.Root.Properties("Test").Value
    I also created a property called "Test" on the channel level for a channel called "Temp", and the value can be accessed through this variable: Data.GetChannel("[1]/Temp").Properties("Test").Value
    Does that help with your question?
    Otmar D. Foehner
    Business Development Manager
    DIAdem and Test Data Management
    National Instruments
    Austin, TX - USA
    "For an optimist the glass is half full, for a pessimist it's half empty, and for an engineer is twice bigger than necessary."

  • Never ending Probelms with JSF

    Hi,
    I was just wondering if JSF is all hype but has no real value in it.
    I have been using for about 3 months. I have faced problems with it at almost every stage.
    1. Validators / Converters are not mature ( Why there is no attempt to integrate mature stuff like Commons-Validator which is already available. I am sure that every one of us agrees that vadation is very important for all web applications. I am aware that it possible to implement custom validators with JSF. But I feel the most comonly used ones should be available off the shelf.
    2. Consider
    <h:inputText id="text2" value="Please enter your text" rendered="false"/>
    If the rendered attribute cannot take a runtime expression value ... what is good for or what is the prupose behind having such an attribute ..... !!!!. This is just one instance there are many situations like this.
    I need to be able to choose whether a text field is rendered or not based on boolean value that is available as request attribute.
    3. There are innumerable probelms when we Tiles with JSF components.. For example if we have html content interleaved between JSF component tags. ... The Layout inspite of having proper definitions does not get rendered properly....The implementation of JSF Panel Grid is too restritced...
    4. There are many people out there implementing JSF components but they are buggy / incomatible with other implementations.... take for example ourfaces , myfaces , JSF reference implementation and Oracle's ADF are NOT compatible with each other... so what is this all about...
    Does anybody here have an idea as to how much time it would take for JSF to become stable enough to be used for Production applications...
    Any comments / suggestions are welcome
    Thanks in advance,
    Ram Kishore.

    Hi,
    I was just wondering if JSF is all hype but has no
    real value in it.
    I have been using for about 3 months. I have faced
    problems with it at almost every stage.
    1. Validators / Converters are not mature ( Why there
    is no attempt to integrate mature stuff like
    Commons-Validator which is already available. I am
    sure that every one of us agrees that vadation is very
    important for all web applications. I am aware that it
    possible to implement custom validators with JSF. But
    I feel the most comonly used ones should be available
    off the shelf.More off-the-shelf validators would be good, I agree.
    2. Consider
    <h:inputText id="text2" value="Please enter your text"
    rendered="false"/>
    If the rendered attribute cannot take a runtime
    expression value ... what is good for or what is the
    prupose behind having such an attribute ..... !!!!.
    This is just one instance there are many situations
    like this."rendered" does support dynamic values; just use #{} EL expressions.
    I need to be able to choose whether a text field is
    rendered or not based on boolean value that is
    available as request attribute.
    3. There are innumerable probelms when we Tiles with
    JSF components.. For example if we have html content
    interleaved between JSF component tags. ... The Layout
    inspite of having proper definitions does not get
    rendered properly....The implementation of JSF Panel
    Grid is too restritced...I think you're describing two separate problems here:
    (1) Needing <f:verbatim> is annoying. We (the EG) know; we're working on it.
    (2) More panel renderers would be good; you can look to component libraries (ADF Faces as one) for additional layouts.
    4. There are many people out there implementing JSF
    components but they are buggy / incomatible with other
    implementations.... take for example ourfaces ,
    myfaces , JSF reference implementation and Oracle's
    ADF are NOT compatible with each other... so what is
    this all about...OK, hold up here. There's some lump of claims here, and I don't know what you're specifically saying. It sounds as though you're saying component developers are writing buggy code, and therefore don't work with every implementation. With regards to Oracle's ADF Faces, we of course work with the JSF RI. We're close to working with MyFaces, but there's some issues remaining in MyFaces (perhaps already resolved) that block this. These aren't ADF Faces bugs. Expecting MyFaces to be perfectly compatible when it is not yet certified or described as production level is infeasible.
    (I can't speak for ourfaces.)
    -- Adam Winer (JSF EG, and ADF Faces)
    Does anybody here have an idea as to how much time it
    would take for JSF to become stable enough to be used
    for Production applications...
    Any comments / suggestions are welcome
    Thanks in advance,
    Ram Kishore.

  • How remove the values which are entered in filter attributes of VO

    Hi,
    On top of one VO we are performing search using bind variables.
    To refine the search we have added filterable="true".
    Now when we perform seach and then we have filtered using one column we got result and we proceeded.
    When we come to this screen again when i perform search with the bindvariable and click on search then the previously applied filter is also getting applied
    becuase the value in that filter is still there.
    So How can i remove the value which is entered in filter attribute of the VO programatically.
    Please help me.
    Regards
    Gayaz

    would this help you:
    http://adfscopes.blogspot.com/2011/03/programatically-clearing-filter.html

  • Get Attribute values from a page and procedure exception handling?

    Hi All,
    I have created new page with two input attributes not based on any VO. This page is created to capture two values and pass these to an AM method upon pressing OK button. The method in AM will call a procedure with two in parameter expecting the two values captured from the above said page.
    I have two questions, first one how to capture the values entered by the page in the controller class and advises me how to handle exceptions when my procedure fails.
    I can not use something like this since this page is not based on a VO
    String fromName = (String)vo.getCurrentRow().getAttribute("FromName");
    Do I have to create a dummy VO like select '' name1, '' name2 from dual?
    Thanks for the help.

    Hi,
    Actually you can capture the parameters on the page like this way
    String test = (String)pageContext.getParameter("id of the text input bean");
    Now in procedure you can take an out parameter which stores the error messages on exception
    and return that out parameter in java.
    and then you can throw exception on page using OAException class.
    Thanks
    Gaurav Sharma

  • Encrypted="true" does not encrypt MBean attribute

    Hi,
    I have developed a Custom Weblogic Security Service Provider. I have also created
    an MBean
    to manage my provider. One of my MBean attributes is as follows:
    <MBeanAttribute
    Name = "JdbcPassword"
    DisplayMessage = "The JDBC Password to the security database"
    Type = "java.lang.String"
    Writeable = "true"
    Encrypted = "true"
    Default = ""password""
    />
    I have specified Encryped="true" above, however, the value I put in the Weblogic
    Console
    is still seen in cleartext in the config.xml. Why isnt it being encrypted? Or
    do I misunderstand
    the purpose of the Encrypted attribute?
    Thanks,
    Proneel.

    "Proneel Guptan" <[email protected]> wrote:
    >
    Hi,
    I have developed a Custom Weblogic Security Service Provider. I have
    also created
    an MBean
    to manage my provider. One of my MBean attributes is as follows:
    <MBeanAttribute
    Name = "JdbcPassword"
    DisplayMessage = "The JDBC Password to the security database"
    Type = "java.lang.String"
    Writeable = "true"
    Encrypted = "true"
    Default = ""password""
    />
    I have specified Encryped="true" above, however, the value I put in the
    Weblogic
    Console
    is still seen in cleartext in the config.xml. Why isnt it being encrypted?
    Or
    do I misunderstand
    the purpose of the Encrypted attribute?
    Thanks,
    Proneel.Hi Proneel,
    Could you please tell me what version of Weblogic are you using?
    Thanks,
    Carmen

  • Not able to open Modal Page through a report attribute link

    Dear All,
         Not able to open Modal Page through a report attribute link, kindly help me...
      I am using skill builders modal page plugin ...
    Thanks and Regards,
    Madonna

    Here's what you have to do.
    You set up your column link like this:
    Link text: whatever you like
    Link attributes: onclick="return false;" class="open_modal"
    Target: Page in this application
    Page: number of the page you want to open in your modal window
    You set up your dynamic action like this:
    Event: Click
    Selection type: jQuery selector
    jQuery selector: .open_modal
    (notice the dot at the beginning!)
    Action: SkillBuilders Modal Page (2.0.0) [Plug-in]
    Event Scope: Dynamic
    And finally, in your True Action (SkillBuilders Modal Page (2.0.0)), URL Location should be set as Attribute of Triggering Element.
    And that's pretty much all it takes.
    Hope this helps.

  • How to use attributes from different context nodes in one view?

    I am VERY new to the concept of CRM and currently working on creating an alternate version of the BP_HEAD_SEARCH. With help from SAPPRESSs book 'SAP CRM Web Client' i was ble to create my own simple Z-component.
    However after going back and forth the book and the forum (including this [article|https://wiki.sdn.sap.com/wiki/display/CRM/Howtoaddanexistingfieldtoasearchpageofadifferent+component]) i was not able to find a solution to my problem. My current search uses BuilHeaderAdvancedSearch as context node for searching. But the search should also be able to use attributes from BuilActivity, which is directly related to BuilHeader. I can't seem to find a way to get attributes from BuilActivity into the search window of my component without having to change SAP-Standard.
    Is this really the only way? Please advise on possible code and insertion point.

    Any suggestions?

Maybe you are looking for

  • Need to turn off imessage

    Hi i got a samsung 4s after my iphone stop working it would not turn on but i am not able to recive messages from an iphone since my i message is on in my previous phone. I am not able to turn it off since it does not turn on. Could you help me i was

  • Error Code (-50) when downloading from iTunes

    Im curious to know if anyone else has received this type of error message before? I have never had any problems downloading season pass stuff from iTunes so this is the first time I've ever seen this.  Ive double and triple checked all of my connecti

  • CM Repository using content server.

    Hi Experts,           I am currently setting up KM in SAP EP 7.0. I have installed both Trex 7.1 and Content Server 6.40. Would like to check with you guys on how to create a CM repository that points to content server 6.40? Thanks.

  • G4 to G5 UPGRADE-LOST LIVETYPE ETC

    Hi All. Have just upgraded from a G4 to a dual G5. Reinstalled FCE2.03, all perfect. Reinstalled DVD Studio Pro 2.05, it works ok. I cannot get livetype or compressor etc to activate despite trying the codes supplied with the software, the ok just re

  • Label printing during notification creation

    Hello Gurus - We are using an interface with a legacy system & when the users record the defects in Legacy, the interface will automatically create a defect notification in SAP. There is a requirement to print a label from SAP at the time of notifica