Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] Select LDAP filter for auto-completion

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] Select LDAP filter for auto-completion


Chronological Thread 
  • From: Pascal Rigaux <>
  • To:
  • Subject: Re: [grouper-users] Select LDAP filter for auto-completion
  • Date: Wed, 16 Dec 2015 10:40:08 +0100


Hi,

After double checking, the new UI is really doing a searchSubjectByIdentifier (?!).

More precisely, when entering "rigaux" in autocomplete (see screenshot, but in french):
- an ajax call to "addMemberFilter" is done with name "rigaux*"
- in serviceLogic/UiV2Group.java, method "lookup" in "addMemberFilter" is calling SubjectFinder.findByIdOrIdentifier
- our "searchSubjectByIdentifier" is doing (uid=%TERM%) which triggers (uid=rigaux*) whereas uid is indexed only EQ here.

AFAIK we have mostly vanilla grouper & grouper.ui 2.2.1 on all this stuff.

Am I missing something??

Thanks,
Pascal Rigaux.

Chris Hyzer
<>
a écrit :

The UI does a "search" when doing autocomplete on subjects... see the demo server. You can search on id, name, etc.

You will have to give a screenshot and a lot more details. It is currently not possible to change the filter for the autocompletes... but since search is what you want, and it is what it does, we should be good.

More details... the autocomplete UI control have a display label, and a value label. When the auto complete displays results, it does a "search", but then it returns the label as the subject description, and the value is the sourceId and subjectId. When the selected item is submitted, then it looks up that subject by the subjectId (or identifier), which is why you might be seeing that query on the LDAP server. You might want to use GSH to figure out your subject source before checking the UI

Thanks,
Chris

-----Original Message-----
From: [mailto:] On Behalf Of Guillaume Fay
Sent: Friday, November 20, 2015 9:00 AM
To:

Subject: [grouper-users] Select LDAP filter for auto-completion

Hi everyone,

I would like to configure Grouper UI 2 to use a specific LDAP filter for
auto-completion (for example when adding a member to a group).
Apparently, my current configuration is using the searchType
"searchSubjectByIdentifier" in source.xml but I would like to use the
searchType "search" instead. Is it possible to change it?

Thank you
--

Guillaume Fay

Attachment: add-member.png
Description: PNG image




Archive powered by MHonArc 2.6.16.

Top of Page