cancel
Showing results for 
Search instead for 
Did you mean: 

ldap - multivalued attributes

stebans
Champ in-the-making
Champ in-the-making
Hi,

I would like to know how to configure Alfresco-2.0 CE to extract a value from ldap multivalued attributes. I tried modifying contentModel.xml file in which I added a new property, but I haven't been able to find which type to use, apart from "d:text". In this latter case, just the very first one ldap attribute is returned.

Thanks,
stephane
5 REPLIES 5

andy
Champ on-the-rise
Champ on-the-rise
Hi

Mutlivalued LDAP attributes are not supported at the moment.
I will add it to the list.

Andy

jonas
Champ in-the-making
Champ in-the-making
Attribute with mutli-value is not supported in Content model directly. But it can be supported by extension. It is simple.

1) define attribute as d:text in Content model
<property name="hu:act101">
                 <title>Act 101</title>
                <type>d:text</type>
           </property>

2) Configure it as multi-value property
<property name="cd:keywords" mutable="true" searchable="true" reportable="false" group="I" repeatable="true"/>

3) Configure separator for multi-value property
<web_editable_seperator>; </web_editable_seperator>

3) provide UI. For example,
see http://hoike.cignex.com by admin/admin
view properties - edit.

stebans
Champ in-the-making
Champ in-the-making
Hi,

thank you for your response Jonas.
But I cannot see where i can configure the "multi-value property", nor the <web_editable_seperator> that you mentionned:

2) Configure it as multi-value property
<property name="cd:keywords" mutable="true" searchable="true" reportable="false" group="I" repeatable="true"/>

3) Configure separator for multi-value property
<web_editable_seperator>; </web_editable_seperator>

Would you mind telling me which xml file it's in, or give me a pointer to the wiki.
Thanks
Regards
stebans

jonas
Champ in-the-making
Champ in-the-making
Hi,

We can not do it by Alfresco web-client. The solution is only for extended UI.

We use Alfresco foundation services plus ICEFace as UI. Thus, it is easy to extend content model.

Please check product

https://docs.cignex.com

If in need, I can provide details for the extension (Alfresco foundation services, extended services, extended content models, location system integration, LDAP and Kofax integration, etc.)

andy
Champ on-the-rise
Champ on-the-rise
Hi

The LDAP import only imports the first attribute. It would need extending to check the DD for the attribute type and if mutli-valued try pulling in all attributes.

Andy