Hi Phil,

I had the same problem. Like you see in the Nuxeo config for group directory :
- for group schema the only two fields to describe the group are "groupname" 
and "description"
- idField is "groupname"
- you have to map at least CN attribute, because it's pretty for your user in 
the UI => you map it to "groupname"

By default in Nuxeo config example, you have ::
idField = groupname = CN = rdnAttribute
But idField implies unique identifier although rdnAttribute implies not unique 
(because "relative")

Like you say, to be able to distinguish 2 groups the best identifier is DN.


What I did :
- override Seam Bean "principalListManager" to add a method :
    public DocumentModel getGroupModel(String groupname) throws ClientException 
{
        return userManager.getGroupModel(groupname);
    }
- add a specific schema for groups (XSD + contrib EP TypeService.schema) which 
is the same than default group schema but with a groupnamelib field (for the UI)
then map DN to groupname and CN to groupnamelib
- modify directory configuration to use specific group schema
- adapt EP layouts for group layout : add groupnamelib field
- adapt UI to use groupname and groupnamelib fields : view groups, view group, 
manage rights, user suggestion, ... and I use nxu:userDisplayName(group.id, 
group[groupSchema].groupnamelib, '') and add a tooltip to display group.id => 
UI display the CN and on mouse over UI display DN (great for groups with the 
same name)


If needed for search groups view, in the directory config, set 
substringMatchType to subany.


You can send me a private message (in french) if you want more details or some 
code.
( I don't want to post code here because it contains some company informations 
and it's a ugly code )

Best regards,
Sébastien

PS: And sorry for my poor english
--
Posted by "sebastien.denef" at Nuxeo Discussions <http://nuxeo.org/discussions>
View the complete thread: 
<http://www.nuxeo.org/discussions/thread.jspa?threadID=3497#10694>
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to