Skip to Content.
Sympa Menu

grouper-users - RE: [grouper-users] sources.xml ldap and script groupershell

Subject: Grouper Users - Open Discussion List

List archive

RE: [grouper-users] sources.xml ldap and script groupershell


Chronological Thread 
  • From: Chris Hyzer <>
  • To: Wallaert-Taquet Brigitte <>, "" <>
  • Subject: RE: [grouper-users] sources.xml ldap and script groupershell
  • Date: Thu, 6 Oct 2011 03:34:36 +0000
  • Accept-language: en-US

Search is used in SubjectFinder.findAll e.g. on the UI when you do a search
for a subject...

Thanks,
Chris

-----Original Message-----
From:


[mailto:]
On Behalf Of Wallaert-Taquet Brigitte
Sent: Wednesday, October 05, 2011 5:32 AM
To:

Subject: [grouper-users] sources.xml ldap and script groupershell

Hello,

I make a script that have to populate a group (named "ustlroletemoin")
for people LDAP for whom attribute ldap "ustlRole" have a value.

So, I modify sources.xml for the search asks on ustlRole attribute (I
don't know exactly when this search is used ?):

<search>
<searchType>search</searchType>
<param>
<param-name>filter</param-name>
<param-value>
(ustlRole=%TERM%)
<--------------------------------------------------
</param-value>
</param>
<param>
<param-name>scope</param-name>
<param-value>
SUBTREE_SCOPE
</param-value>
</param>
<param>
<param-name>base</param-name>
<param-value>
ou=people,dc=univ-lille1,dc=fr
</param-value>
</param>
</search>

But I don't find a method that ask with this search ? It seems that
SubjectFinder.findAll asks only on searchSubject in sources.xml ?

Before to put "*" (!), I try this and I have no results although there
are persons who have ustlRole=IntranetTest-users :

for (Subject sujet : SubjectFinder.findAll("IntranetTest-users")) {
groupetemoin.addMember(sujet,false); nbreusersajoutes+=1; } }

result : entree and nbreuserajoutes=0

Thanks a lot !

--
Brigitte Wallaert-Taquet
Ingénieure d'études
Chargée d'étude
Espace collaboratif de Documents
Université Lille1
Sciences et Technologies




Archive powered by MHonArc 2.6.16.

Top of Page