grouper-users - Re: [grouper-users] Search for people or groups: no attributes shown for LDAP subjects
Subject: Grouper Users - Open Discussion List
List archive
Re: [grouper-users] Search for people or groups: no attributes shown for LDAP subjects
Chronological Thread
- From: "GW Brown, Information Systems and Computing" <>
- To:
- Cc: Grouper Users Mailing List <>
- Subject: Re: [grouper-users] Search for people or groups: no attributes shown for LDAP subjects
- Date: Mon, 30 Mar 2009 13:36:13 +0100
Hi Loris,
There is no straightforward way to do this - as far as I'm aware you can't configure the JNDISourceAdapter to have composite attributes, though, in principle, you could subclass it and add extra behaviour.
The UI has a template mechanism but you have to create a JSP i.e. in media.properties add a property like:
<source id>.subject.view.default=/WEB-INF/jsp/custom/jndiSubjectView.jsp
and add a template based of that name based on subjectView.jsp:
<c:if test="${empty inLink}">
<span class="<c:out value="${viewObject.subjectType}"/>Subject">
</c:if>
<c:out value="${viewObject['cn']" /> [<c:out value="${viewObject['uidNumber']" />]
<c:if test="${empty inLink}"></span></c:if>
There may be places that the subject doesn't display as you expect but I'm sure we could figure those out.
Gary
--On 30 March 2009 13:04 +0200 Loris Bennett <> wrote:
Hi Gary,
Is it possible to combine information or add multiple fields? For my DB
subjects I had name and uid, e.g.
Smith, John [jsmith]
How would I do this with LDAP subjects?
Cheers
Loris
On Mon, 2009-03-30 at 08:57 +0100, GW Brown, Information Systems and
Computing wrote:
Hi Loris,--
The subject API tries not to impose specific attribute names on
implementors. For the UI you can configure the attribute to display in
media.properties. Default is:
subject.display.default=description
but you can add
subject.display.<source id>=cn
Gary
--On 30 March 2009 08:25 +0200 Loris Bennett
<>
wrote:
> Hi,
>
> I have just switched over from DB-based subject IDs to LDAP-based ones.
> However, when I search for members to add to groups, subjects are
> found, but no attributes are displayed, just the checkbox.
>
> In my sources.xml I have specified
>
> <attribute>cn</attribute>
> <attribute>uidNumber</attribute>
>
> with in the source-tag.
>
> Any ideas?
>
> Loris
> --
> Dr. Loris Bennett (Mr.)
> Freie Universität Berlin
> ZEDAT - Zentraleinrichtung für Datenverarbeitung / Computer Center
> Compute & Media Service
> Fabeckstr. 32, Room 221
> D-14195 Berlin
> Tel ++49 30 838 51024
> Fax ++49 30 838 56721
> Web www.zedat.fu-berlin.de
>
----------------------
GW Brown, Information Systems and Computing
Dr. Loris Bennett (Mr.)
Freie Universität Berlin
ZEDAT - Zentraleinrichtung für Datenverarbeitung / Computer Center
Compute & Media Service
Fabeckstr. 32, Room 221
D-14195 Berlin
Tel ++49 30 838 51024
Fax ++49 30 838 56721
Web www.zedat.fu-berlin.de
----------------------
GW Brown, Information Systems and Computing
- Search for people or groups: no attributes shown for LDAP subjects, Loris Bennett, 03/30/2009
- Re: [grouper-users] Search for people or groups: no attributes shown for LDAP subjects, GW Brown, Information Systems and Computing, 03/30/2009
- Re: [grouper-users] Search for people or groups: no attributes shown for LDAP subjects, Loris Bennett, 03/30/2009
- Re: [grouper-users] Search for people or groups: no attributes shown for LDAP subjects, GW Brown, Information Systems and Computing, 03/30/2009
- Re: [grouper-users] Search for people or groups: no attributes shown for LDAP subjects, Loris Bennett, 03/30/2009
- Re: [grouper-users] Search for people or groups: no attributes shown for LDAP subjects, GW Brown, Information Systems and Computing, 03/30/2009
Archive powered by MHonArc 2.6.16.