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: Tom Zeller <>
  • To: Wallaert-Taquet Brigitte <>
  • Cc:
  • Subject: Re: [grouper-users] sources.xml ldap and script groupershell
  • Date: Wed, 5 Oct 2011 13:01:46 -0400

> 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

Are you using GrouperJndiSourceAdapter in sources.xml ?

<source
adapterClass="edu.internet2.middleware.grouper.subj.GrouperJndiSourceAdapter"
... >

Try increasing the log level in log4j.properties :

log4j.logger.edu.internet2.middleware.subject = DEBUG

and look for a log statement that looks like

searchType: <searchType> filter <filter> base: <base> scope: <scope>

to make sure that the correct search is being performed.



Archive powered by MHonArc 2.6.16.

Top of Page