Reading multivalued attribute

Hi,
I have a multivalued attribute defined in LDAP and was synchronized to plumtree. After synchroinzation, the attribute with multiple values came in to plumtree and I am able to see the values of the attribute by clicking on user profile. But when I try to read the attribute using the following query only the last value is coming up.
Here is the query I am using.
IPortletContext portletContext = PortletContextFactory.createPortletContext(request, response);IPortletRequest portletRequest = portletContext.getRequest(); out.write("locationString = " + portletRequest.getSettingValue(SettingType.UserInfo,"ttcmytlocation"));
In the profile of the user ttcmytlocation attribute has multiple values, but reading returns only the last value. Is there any other way to query the values? Please help!!
Thanks.

Use LDAP is ticked but no server specified
Tried Selecting the server but no effect
Every where I look in POA, Domain setting its set to the SERVER's IP address
not DNS name!!
Copied NAMED.NLM (just the NLM) from SP5 server - error gone but still get
the LDAP error 81 when a
user tries to login to GW.
I also POA > Security - I tried setting security to LOW (which unticks LDAP)
but still can't login
"Anders Gustafsson" <[email protected]> wrote in message
news:[email protected]..
> Eric,
>> "Starting eDirectory integrated Novell DNS Server...
>> error:NWDSRead Failed while reading a multivalued attribute: -603
>> Loading the configuration and zone data completed .
>> DNS Server running "
>>
> OK. I assume that you have configured your POA to use the same server for
> LDAP. If so, did you use the DNS name or IP address? If DNS name, I
> suggest you try IP address as this takes DNS out of the picture.
>
> The error you are seeing indicates that you are not current on servicer
> packs:
> http://www.novell.com/support/search...200%2043955231
>
> I suggest you apply SP6 plus the post SP6 fixes after resolving your POA
> issue and reading this:
> http://wiki.novell.com/index.php/Nw65sp6
>
> - Anders Gustafsson, Engineer, CNE6, ASE
> NSC Volunteer Sysop
> Pedago, The Aaland Islands (N60 E20)
>
> Novell does not monitor these forums officially.
> Enhancement requests for all Novell products may be made at
> http://support.novell.com/enhancement
>
> Using VA 5.51 build 315 on Windows 2000 build 2600
>

Similar Messages

  • Help with target filter in an ACI and editing multivalue attributes

    Here is the ACI I tried to use:
    (targetattr = "*")
    (target = "ldap:///ou=xyz,dc=company,dc=com")
    (targetfilter=(objectclass=groupofuniquenames)||(objectclass=extendedobjectclass1)||(objectclass=extendedobjectcla ss2))
    (version 3.0;acl "xyzadmin privileges";
    allow (selfwrite,write,delete,add)
    (userdn = ldap:///uid=xyzadmin,ou=people,dc=company,dc=com");)
    1. Is the targetfilter syntax above correct? This does not work even when I tried the other notation
    " (|(|(objectclass=X)(objectclass=Y))(objectclass=Z)) "
    2. xyzadmin needs to update (another system creates a value initially) an 'extendedattribute' in either of the 'extendedobjectclass1/2'. This works if I set seperate ACIs. If I combine them (as above) does not work. Any solutions?
    3. Not exactly related to this. The 'extendedattribute' is a multi-value attribute. Say it has two values,
    (extendedattribute: ID1=222|ID2=333, ID1=444|ID2=-1). If I want to use ldapmodify and replace the
    'ID1=444|ID2=-1' to 'ID1=444|ID2=555', how can it be done?
    The same question can be rephrased as 'how can I replace a value amongst a set of values in a multivalued attribute with ldapmodify'? Is it possible?
    p.s.: Please don't ask to split the ID1, ID2 into 2 attributes as one of the products using the directory requires it to be that way (ID1=<vale>|ID2=<value>).

    My answer will concerne only your first query.
    Firstly, the target syntax must include the target keywork in the first portion of rule.
    Have you try these syntax ===>
    (targetfilter="(|(objectClass=groupofuniquenames)(|(objectClass=extendedobjectclass1)(objectClass=extendedobjectclass2)))")
    or
    (targetfilter="(|(objectclass=groupofuniquenames)(objectclass=extendedobjectclass1)(objectclass=extendedobjectclass2))"
    The first syntax works correctly for me.
    I hope this is help you and good luck for the rest.

  • Modifying Multivalued Attribute - Error?

    Hi All,
    Im able to update the LDAP Attributes by using modifyAttributes method, But i want to update a multivalued Attribute in the Active Directory.
    I tried using array its not working help me out...
    Jagan Thanks.....

    Just iterate through the array members and add them to the attribute. Something like:String phoneNumbers[] = {"123 456 7890","456 789 0123", "789012 3456"};
    ModificationItem[] mods = new ModificationItem[phoneNumbers.length];
    for (int i = 0;i<phoneNumbers.length;i++) {
      mods[i] = new ModificationItem(DirContext.ADD_ATTRIBUTE, new BasicAttribute("otherTelephone",phoneNumbers));
    Just be aware of the different operations that can be performed against a multi-valued attribute, clearing all of the values, replacing or deleting a single value and  appending values.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Updating MultiValued Attribute in AD

    Hi,
    Is there any way to update an multivalued attribute in AD using AD Connector?.Thanks in advance

    What do you mean by that ? ? AD Groups for a user is a multivalued attribute and we can update it, by editing the Resource Profile associated with any user. See memberOf attribute in AD target. Is there something else you wanted to ask ? ?

  • Fetch a multivalued attribute using Data Bean

    Hello,
    I am trying to fetch employee user related information using Data Bean.
    Here employee has position as a multivalued attribute.
    Currently when I fetch record for an employee I get information only for one position.
    I want to fetch the whole list of position's assigned to this employee.
    Can any one please help me on how to achieve this?
    Thanks,
    Harshal

    Please read the Bookshelf on GetMVGBusComp.
    http://docs.oracle.com/cd/E14004_01/books/OIRef/OIRef_Interfaces_Reference11.html#wp1185173

  • How to read an attribute of an xml tag in jsp.

    hi guys,
    This is murali krishna. i have a small problem,
    i have one xml file (books.xml)
    <?xml version="1.0" encoding="iso-8859-1"?>
    <library>
    <book id="1">
    <name>Head First Java, 2nd Edition</name>
    <author>Kathy Sierra and Bert Bates</author>
    <publication-date>09-Feb-2005</publication-date>
    </book>
    <book id="2">
    <name>Effective Java</name>
    <author>Joshua Bloch</author>
    <publication-date>28-May-2008</publication-date>
    </book>
    <book id="3">
    <name>Java How to Program, 7th Edition</name>
    <author>Harvey M. Deitel and Paul J. Deitel</author>
    <publication-date>6-Jan-2007</publication-date>
    </book>
    </library>
    I tried to read this xml file in jsp as shown below
    <%@ page language="java" %>
    <%@ page import="org.w3c.dom.*" %>
    <%@ page import="javax.xml.parsers.DocumentBuilder" %>
    <%@ page import="javax.xml.parsers.DocumentBuilderFactory" %>
    <%
    DocumentBuilderFactory dbf=DocumentBuilderFactory.newInstance();
    DocumentBuilder db =dbf.newDocumentBuilder();
    Document doc=db.parse("c:\\books.xml");
    NodeList nl = doc.getElementsByTagName("book");
    %>
    <html>
    <head>
    <title>How to read XML file in JAVA</title>
    </head>
    <body>
    <%
    for(int i=0;i<nl.getLength();i++)
    NodeList nameNlc= doc.getElementsByTagName("name");
    Element nameElements=(Element)nameNlc.item(i);
    String nameTagValue=nameElements.getChildNodes().item(0).getNodeValue();
    NodeList authorNlc= doc.getElementsByTagName("author");
    Element authorElements=(Element)authorNlc.item(i);
    String authorTagValue=authorElements.getChildNodes().item(0).getNodeValue();
    NodeList dateNlc= doc.getElementsByTagName("publication-date");
    Element dateElements=(Element)dateNlc.item(i);
    String dateTagValue=dateElements.getChildNodes().item(0).getNodeValue();
    out.println("name :"+nameTagValue+"<br>");
    out.println("author :"+authorTagValue+"<br>");
    out.println("publication-date :"+dateTagValue+"<br><br>");
    %>
    </body>
    </html>
    so, my problem is I was unable to read the attribute of the tag book , that is "id".
    can any one tell me how to read this "id" attribute.
    Murali Krishna
    [email protected]

    hi,
    U r retriving the elements by tag name.So it just chks the tag name ie.<book> & gives u array of elements.But u need retrive d attribute of <book> tag itself.
    =Solution =====
    Add one more statement ----> var[]= doc.getElementsByName("book");
    Now u hav book elements as an array & can retrive id in for loop
    for(var; var.length;var++)
    doc.element[var].id.value

  • How to read the attribute of the xml file using jaxb

    Thanks,
    Buddy as i have a issue i have to read the xml file using jaxb and xml file contains this data and i have read the attribute like name , desc and action for a particular menu name pls tell the code how to do this it will be a great favour to me
    thanx in advance
    Rasool
    <contextmenu>
    <menu name='Lead' >
    <menuitem name='newlead' desc='New Lead' action='/leads.do?dispatch=insert' />
    <menuitem name='editlead' desc='Edit Lead' action='' />
    <menuitem name='leadinfo' desc='Lead Information' action='' />
    </menu>
    <menu name='Cases' >
    <menuitem name='' desc='' action='' />
    <menuitem name='' desc='' action='' />
    <menuitem name='' desc='' action='' />
    </menu>
    <menu name='Contact' >
    <menuitem name='' desc='' action='' />
    <menuitem name='' desc='' action='' />
    <menuitem name='' desc='' action='' />
    </menu>
    </contextmenu>

    What my program do is to get the encoding of XML files and convert them to UTF-8 encoding files, while I need this "encoding" information of the original XML document thus I can convert...
    After reading specifications and JDOM docs, the truth turns to be disappointed, no function is provided to get this information in JDOM level 2(the current released one), while it's promissed that this function will be provided in JDOM level API....
    Thanx all for your help and attention!!!

  • How to read the attribute in mapping..

    Hi,
    My source XML looks like this
    <GLDEBITACCT>
                <VALUE>0545-K-2006605-5500001</VALUE>
                <GLCOMP glorder="0">0545</GLCOMP>
                <GLCOMP glorder="1">K</GLCOMP>
                <GLCOMP glorder="2">2006605</GLCOMP>
                <GLCOMP glorder="3">5500001</GLCOMP>
      </GLDEBITACCT>
    Where glorder is the attribute of GLCOMP. Now I have requirement to read the attribute ( atleast 2 of them)
    I have to map to target field checking the value in glorder="1
    For e.g. with above XML, if the value in glorder="1 is K than map value from glorder="2 (2006605) to Target 1.
    IF the glorder="1 is P map the value in glorder="2 to Target 2 and goes on for another one
    How can i acheive this mapping. When I tried putting the value of glorder, i am not getting anything.
    Regards,

    Hi,
    You can use below UDF. Please make sure to select context parameter while creating UDF. There will be 3 input arguments for this function:
    1. GLCOMP (a)
    2 @glorder   (b)
    3 Constant   (c)  --depending upon the target node
    Also conext of attribute @glorder should be same as that of GLCOMP.
    //write your code here
    for(int i=0;i<a.length;i++)
        if(b<i>.equals("1")&&c[0].equals(a<i>))
        for(int j=0;j<a.length;j++)
              if(b[j].equals("2"))
         result.addValue(a[j].toString());
                            break;
    For target node target1 use K as 3rd argument, for target node target2 use P and so on.
    Let me know how it works.
    Regards,
    Anirudh.

  • Provision a multivalued attribute from OIM to OID

    Hi,
    I have a requirement to provision a new multivalued attribute from OIM to OID.
    Steps followed:
    Created a child form
    Attached child form to the OID Parent form
    Created a process task adapter.
    Created a task in process definition and the attached the adapter
    Adapter code.
    public String addChildData(tcDataProvider ioDatabase, long procInstKey, long childDefKey){
              try{
                   tcFormInstanceOperationsIntf formInstOper = (tcFormInstanceOperationsIntf)tcUtilityFactory.getUtility(ioDatabase, "Thor.API.Operations.tcFormInstanceOperationsIntf");
                   HashMap testval = new HashMap();
                   testval.put("UD_TESTCHIL_TESTGROUP","abcd2134");
                   System.out.println("testval..."+testval);
                   long formreturn = formInstOper.addProcessFormChildData(childDefKey,procInstKey,testval);
                   System.out.println("formreturn" +formreturn);
              catch(Exception e){
                   System.out.println("exce" +e);
              return "Success";
    After attaching while provisioning I am seeing both parent and child forms. I have provided the values and its successfully provisioning.
    But how I can provision the new OID multivalued attribute. We have to do any setting in the lookup?
    Regards,
    KK

    Just create your new adapter for add and delete from this new child table just like the other triggered tasks. If it's a multi value on the user profile, use the adapter for Add Multi Value Attribute that comes with the connector. In the property name, put in your multi value attribute name, and map the value from the child table.
    -Kevin

  • How to remove "Read Only" attribute on folders

    Hi
    I am logged in with my User account which has full control over my folders.<o:p></o:p>
    I have a folder that I tried to add modifications to, however i could not do so because the folder was classified as read only. I have full permissions to this folder. Previously the app that
    uses this folder could write to it quite happily, but today it fails. <o:p></o:p>
    The 'attributes' for the folder shows a solid square in the read-only box. If I 'un-box' the read-only and apply > ok, when I look at the attributes again the box is still checked.<o:p></o:p>
    So my question is, if it's not (which it shouldn't be) some sort of protected Windows folder, and I have full permissions on the folder (supposedly), why does Windows not respect my wishes,
    get out of the way, and let me set it to what I want it to be?<o:p></o:p>
    I have tried the following methods to fix this issue, but none of them work:<o:p></o:p>
    -Adjusting permissions and control, and changing security options<o:p></o:p>
    -Using a third party application such as "clear read only" to remove the check on the box<o:p></o:p>
    -Using the "attrib" function on the CMD prompt<o:p></o:p>
    -Boot Scan for virus/malware that is affecting folder attributes<o:p></o:p>
    -Running applications and CMD as administrator<o:p></o:p>
    I have heard that if using a NTFS harddrive, then all folders will be automatically “Read Only” and that it is impossible to change that attribute. I find this hard to believe, as all folders
    should have some way of being modified, regardless of what HDD I’m using. I obviously cannot change to FAT32, so how else can I get my folders to get rid of this ridiculous error!
    <o:p>I have also noticed that this problem is very common amongst Windows users. If this problem has been around for a while, how is it possible that no solution has presented itself.
    Regardless, we need a solution to it, because i can't do the things i need to while the Read Only attribute remains a constant on my folders. I thought it may be a virus, but my avast anti-virus did not pick up any infected areas when the scan was done. I
    have searched the internet, and no "fix" has solved this issue. The only fix i have not found is a reg edit that could completely remove this read only attribute from all folders. Though i feel this is not neccesary, as i only need the attribute
    to be removed from certain folders. Please kindly assist me with this issue, hopefully it will help many others too...</o:p>
    Many thanks.

    Have you taken ownership of the folder? Please first take ownership of the folder, then change the security options
    Take Ownership of a File or Folder
    http://technet.microsoft.com/en-us/library/cc753659.aspx
    If you have already did this, then run a scan with this tool,
    Malicious Software Removal Tool
    http://www.microsoft.com/en-in/download/malicious-software-removal-tool-details.aspx
    or copy this folder to another location, test again.
    Regards
    Yolanda
    TechNet Community Support

  • FIM multivalue attribute export to SQL - error 0x80230808

    Hi,
    Running FIM Synchronization Service v 4.0.3531.2 - Update1.
    This instance is a simple setup, import from AD, export to SQL. I'm trying to export two multivalue attributes, one is a normal multivalue string, second is a reference attribute (member). My anchor is the GUID from AD in string format, perfectly fitting
    into uniqueidentifier sql datatype.
    Since I wanted to have the member values in the multivalue table also stored in a uniqueidentifier column (for further linking) I had to create two columns, one as "uniqueidentifier" and second as "text". FIM configuration went smoothly,
    I defined a member multivalue reference attribute and selected the uniqueidentifier column as "String attribute column", and the other multivalue string attribute had to be linked as "Large string attribute column" and I pointed it to the
    text datatype column.
    Synchronization completed without errors, export step properly exported all multivalue string attributes to the text column, BUT when it came to exporting the GUID reference attribute to the uniqueidentifier column it exported only the first value showing
    a "dn-attribute-failure" error. From the FIM GUI it was only showing the error number = 0x80230808.
    I did a SQL trace to see what's going on. I re-run the export and saw FIM trying to delete all the values for this attribute multiple times with:
    DELETE from [tblAD_Multivalue]  WHERE [objectGUID] = N'{B011B424-5B2F-43A9-84C5-8605A570487B}' AND [attributeName] = N'member'
    followed by doing cursor magic with the first value that was already added:
    exec sp_cursor 180150007,4,0,N'tblAD_Multivalue',@objectGUID='B011B424-5B2F-43A9-84C5-8605A570487B',@attributeName='member',@guidValue='2E52A484-C7F6-49C0-AAC8-0A30C732A385'
    After repeating the above for over 10 times it added a export_error_detail:
    update [mms_connectorspace] set [export_error_detail] = N'<export-status>
    <cd-error>
    <error-code>0x80230808</error-code><error-literal>[Modify] Failed operation</error-literal>
    </cd-error>
    </export-status>
    ',[count_export_error_retries] = 0,[is_export_error] = 1,[initial_export_error_date] = '2011-02-12 21:36:08.995',[last_export_error_date] = '2011-02-12 21:36:08.995',[export_error_code] = -2145189885,[unapplied_export_batch_number] = 1,[unapplied_export_sequencer_number] = 2162572,[original_export_batch_number] = 1,[original_export_sequencer_number] = 2162572,[current_export_batch_number] = 4,[current_export_sequence_number] = 2216213 where ([object_id] = '6F5C98E3-38FF-4F32-95F6-B5A315B71D7A')
    I tried manually adding one of the following values directly to SQL and it worked, so I'm not really sure what's wrong here.
    Any ideas?
    Piotr

    Hi Markus,
    yes, I know all about the architecture to allow multi-value attributes to be exported to SQL.
    Everything works when I have just one string value column in my tblAD_Multivalue. The problem is that my anchor in the primary table is a GUID in a uniqueidentifier SQL column type (in FIM MV it's a string), so when I'm exporting multivalue reference attributes
    to SQL I would like the GUID values also to go to a uniqueidentifier type column. That's why I set up the secondary column in the multi-value table with text datatype, so FIM recognizes it as a "large string column". I think I did everything within
    the guidelines, so I was puzzled when I saw that error.
    Consider this simple example, you're exporting users and groups from AD, you're anchor data type is uniqueidentifier, and you need to export the member attribute and the proxyAddresses attribute. What would you do to allow future SQL joins to calculate membership?
    hope this explains a bit more this scenario, would appreciate any suggestions.
    Piotr

  • How to define a  multivalued attribute in spml2.xml(spml2PersonForm)?

    I need to define a multivalued attribute in spml2.xml for modifying security answers and adding resources during add request. I tried by giving multivalued="true" during the attribute definition.
    <spmldsml:attributeDefinition name="questions" description="Secret questions" multivalued ="true"/>
    but still the lookup response shows the value as a single attribute
    <dsml:attr xmlns:dsml='urn:oasis:names:tc:DSML:2:0:core' name='questions'>
    <dsml:value>[What is your mother's maiden name?, asrfasdhfgjk, adsggfjhgkjhl]</dsml:value>
    </dsml:attr>
    Kindly suggest if i missed out anything during the configuration.

    Hi!
    I was unable to post any message. It was displaying that "Message blocked".
    Please help me in this issue.
    Regards
    Mourya

  • Updating read only attributes of class/method

    Hi,
    I have this standard class CL_QNAO_OBJECT, with MS_DATA as read only attribute.I have written my own class in an enhancement within this class and now trying to edit this MS_DATA within my own class. but I get an error sayng "write access to the READ only attribute is not allowed", is there any way I can change it?
    The attribute MT_STACK is changing attribute/parameter to my class, which in turn has this ms_data structure.
    Note - I did search sdn before I put it here, I got couple of threads which I dont find suitable for me.
    Thanks in advance,

    Since MT_STACK is also type ref to CL_QNAO_OBJECT, my earlier guidance still hold true.
    Step 1 - When you enhance the class, you would see empty table lines in the class editor. Create a new method in that.
    Public Instance Method name Z_SET_MS_DATA
    Importing parameter IS_DATA TYPE QNAOD_AOBJECT
    Method implementation:
      ME->MS_DATA = IS_DATA
    Step 2 - In you enhancement in the class, call the method to set the data
      Data: ls_Data type QNAOD_AOBJECT
      Ls_data-field1 = ‘xyz’.
      core_object->mt_stack->z_set_ms_data( ls_Data ).
    Regards,
    Naimesh Patel

  • Multivalue Attributes

    We are implementing Portal, and one of the requirements we have is to load multiple values into a single attribute. For example, a document might have an attribute for Manufacturer. We want to be able to assign GM, FORD, or both values. I know we can use a multivalue attribute, but there doesn't appear to be a way to validate the contents or select values from a predefined list. What is the best way to address this problem?
    Any help is greatly appreciated.
    Kevin

    hi kevin,
    you could use the perspectives attribute to implement this. the perspective is our only multi-value attribute that we have in portal.
    regards,
    christian

  • Read dynamic attributes

    hi
    i m created a dynamic alv   and user entry value on alv.
       how can i read this value ?
    this is normaly alv.
    DATA: lr_element TYPE REF TO if_wd_context_element  ,
             lr_node type ref to if_wd_context_node     ,
             lr_node2 TYPE REF TO if_wd_context_node    .
    DATA :gt_tab1 TYPE  wd_this->elements_MALV_      ,
          gs_tab1 TYPE LINE OF wd_this->elements_MALV,
          lt_param TYPE  SALV_WD_T_TABLE_MOD_CELL       .
    DATA ls_param TYPE LINE OF SALV_WD_T_TABLE_MOD_CELL .
    read  alv----
        lr_node = wd_context->get_child_node(
            name    = wd_this->wdctx_MALV ).
            lr_node->get_static_attributes_table(
            IMPORTING
             table = gt_tab1  "al value in this int.tabel
    i do
    data: lr_noded   TYPE REF TO if_wd_context_node_info  ,
             lr_node2   TYPE REF TO if_wd_context_node       ,
             WX_DYNAMIC TYPE REF TO if_wd_context_node_info  ,
           wx_attribute TYPE REF TO WDR_CONTEXT_ATTRIBUTE_INFO.
    WX_DYNAMIC = wd_context->get_node_info( ).
        CALL METHOD WX_DYNAMIC->GET_CHILD_NODE
          EXPORTING
            NAME       =  wd_this->wdctx_GT_MASTER
          RECEIVING
            CHILD_NODE = LR_NODED
    attributes is in LR_NODED but i don't know read this attributes
    how can i do ?
    Thanks
    Joshua.

    Hi Joshua,
    Try go through Suman's comments in [here|Read data from a dynamic Context;.
    Regards,
    Uday

Maybe you are looking for

  • How to catch accounting Document Number in SE37 for  BAPI_ACC_DOCUMENT_POST

    HI Frds, My ReQ is i have to post Customer Invoice from Legacy to ECC through PI interface. So i am using one BAPI , ' BAPI_ACC_DOCUMENT_POST''. I had customized this BAPI by adding 2 fields (1.zstatus, 2.zsaprefno) as i have to send the status(1. Su

  • How do i resize windows partition?

    I am sorry if this sounds like a question that has been answered numerous times, but the answers I have read thus far have not helped me at all. I am more confused than ever and would appreciate anyone who can dumb this down so that I can spend the n

  • Java Server Faces on BEA

    Hi Is it possible to perform Java Server Faces (Sun) on Bea 8.1 Sp4? I can't get this started. Do you have any hints/experiences?

  • Problem while trying to get task payload in java client.

    Hi, I am working on worklist application in 10.1.3 and trying to get task payload in java client. In BPEL proces, assigning a XML as following: <copy> <from expression="bpws:getVariableData('inputVariable','payload','/client:ErrorHandlerBPELProcessRe

  • PS CS4 and 64 bit Win7, RAW problem???  Help!

    My old system up and died last week, so I ended up with a new computer.  I have the fastest AMD Phenom processor, 4mg fast RAM, an ATI video card with 1mg RAM, and a complete new install of Windows 7 64-Bit.  I installed PS Elements 8 and PS CS4 this