Skip to Content.
Sympa Menu

grouper-users - [grouper-users] RE: LDAP_GROUP_LIST - Setting group name

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] RE: LDAP_GROUP_LIST - Setting group name


Chronological Thread 
  • From: "Black, Carey M." <>
  • To: "" <>
  • Cc: Bryan Wooten <>
  • Subject: [grouper-users] RE: LDAP_GROUP_LIST - Setting group name
  • Date: Tue, 1 May 2018 11:33:30 +0000
  • Accept-language: en-US
  • Authentication-results: spf=pass (sender IP is 128.146.138.8) smtp.mailfrom=osu.edu; internet2.edu; dkim=none (message not signed) header.d=none;internet2.edu; dmarc=pass action=none header.from=osu.edu;
  • Ironport-phdr: 9a23:Ok5CGhQlLGYvH0ZUwN0zUJOB6Npsv+yvbD5Q0YIujvd0So/mwa6zYhaN2/xhgRfzUJnB7Loc0qyK6/umATRIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSizexfb1/IA+qoQnNq8IbnZZsJqEtxxXTv3BGYf5WxWRmJVKSmxbz+MK994N9/ipTpvws6ddOXb31cKokQ7NYCi8mM30u683wqRbDVwqP6WACXWgQjxFFHhLK7BD+Xpf2ryv6qu9w0zSUMMHqUbw5Xymp4rx1QxH0ligIKz858HnWisNuiqJbvAmhrAF7z4LNfY2ZKOZycqbbcNgHR2ROQ9xRWjRBDI2icoUPE+QPM+VWr4b/plsBsRSxCBK2BO/zzjJFnGP60bEk3+knDArI3BYgH9ULsHnMotn4KaMSXvqpw6nL1TnIcu1b1i3n6IfWchEqvPaCUah+fcHMzkQgDAfFgU+MpozmJT+Zy/oBvmaA4upnTuKvlnQrpB9srTiy38ohjJTCiIwSylDB7yp5wYA1KMWiR05je9GrDJtQuD+AO4txWMMiTGdlszs5xL0eoZO3YTQGxZs9yxPQafGLaYeF7gz5WOqMPTt0mGppdbCwihqo7EStxfHwWtO63VpUtCZIlsfAumgD1xPN6cWLVv5w80Kh1DmTyw/T5ORJLV47mKfaNpEsx7E9m5oRvEnNGyL5hF75g7SMeUgi5+Om8f7oYq/8qZ+ZL4J0ih/xMqApmsGnGeo1Lg8AU3SV9OilybDs/1P1TKxNjvItjKbVqpfaJdkHpqGiBA9Vz4Aj5AulAze+ytQYmmUHI0xZdxKbjojpPFfOLOr/Dfein1SslDBrx/fFPrH7HprNKX3DnK/gfbZ79UFc1BI+wc1D659bEL0ML/D+VlX+udDGFBM1LhC4z/r/BNV4zIweWGaPAqGDMKPVtF+F/vkgI+2Wa4AJuzbxMeUp6+DggHIinl8dZrSp0YEJZ3+lA/RqO1+Zbmb0gtcdDWcKuRIzTOPwiF2FTD5Tf2i9X7gl6jEmE4KpE53DRpu2jbyF3Se7BYFWZntYBlyWEHfocZmEVOkWaCKUPMBhjiIIWaK/RIA8yBH9/DP9nvBoNO3J4iAC8I/42cJuz+zViRwo8zFoVYKQ33zHBzV7hGQVXzIsmb1krFZm4laFzaVihfFET5pe6+4fASkgMpuJhcZ+AtvxHkrqd82EWR6DBJ/uVTs1R9kyhYZUOG56AMjkgxzeiXn5S4QJnqCGUcRnupnX2GL8coMkky7L
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

Doh… I hate when I type an example wrong!  

 

Correction to my post:

 

 

NOTE: if there are some department values that you do (or do not) want to load, then also set Attribute filter _expression_ .

 

Examples:

${attributeValue == "LOAD ME"}

  OR

${attributeValue == 'LOAD ME' && attributeValue != 'DO NOT LOAD ME'}

 

There are even matching expressions that can be used with the =~ operator too. ( Examples [without my errors] are on the loader config page too. J )

 

Although the included examples don’t show the use of parentheses… I think that is valid in the JEXL _expression_.

   Maybe this is a valid reference? (not sure about what version is used in Grouper vs this ref URL.. YMMV)    https://commons.apache.org/proper/commons-jexl/reference/syntax.html

 

HTH.

--

Carey Matthew

 

From: <> On Behalf Of Black, Carey M.
Sent: Monday, April 30, 2018 9:35 PM
To:
Cc: Bryan Wooten <>
Subject: [grouper-users] RE: LDAP_GROUP_LIST - Setting group name

 

Bryan,

 

LDAP_GROUP_LIST : The filter should return one or more LDAP groups that are to be loaded into Grouper.

 

What you want is :

                LDAP_GROUPS_FROM_ATTRIBUTES : The filter should return a set of Users with attributes that will define the groups loaded into Grouper.

 

Also  Just a guess… but I think you want to set:

 

Group attribute name = department

And

Group name _expression_ = ${groupAttribute}

 

NOTE: if there are some department values that you do (or do not) want to load, then also set Attribute filter _expression_ .

 

Examples:

${attributeValue == "LOAD ME"}

  OR

${attributeValue == 'LOAD ME' || attributeValue == 'DO NOT LOAD ME'}

 

--

Carey Matthew

 

From: <> On Behalf Of Bryan Wooten
Sent: Monday, April 30, 2018 4:06 PM
To:
Subject: [grouper-users] LDAP_GROUP_LIST - Setting group name

 

All,

 

I am using the 2.3 UI to try and complete a proof of concept that creates a basis group for each department.

 

LDAP filter like this: (&(netid=*)(department=*))  Find all entries with department attribute set. I want the group name to be the department attribute value.

 

So in the Edit Loader Settings I think I want to set the fields Group name _expression_, Group display name _expression_ and Group description _expression_.

 

I have set Extra LDAP attributes to return department.

 

So I have set Group description _expression_ to be ${grouperAttributes('department')}.

 

I thought I was following the hint given on the page:

 

JEXL _expression_ language fragment that evaluates to the group name (relative to the stem of the group which has the loader definition). groupAttributes['dn'] is a variable in scope as is groupAttributes['cn'] etc

 

But when I run the Loader Diagnostics I get this:

 

NOTE: Original group name: 'groups:u0519980'

NOTE: Found attribute: 'department' with value 'UIT Information Security'

ERROR: Error evaluating group name _expression_: '${grouperAttributes('department')}'

 

I admit that I am having a hard time wrapping my head around JEXL…

 

Any hints or examples greatly appreciated.

 

Bryan Wooten

Tel: (801)585-9323

Email:

 

Identity & Access Management_combined centered

 

 




Archive powered by MHonArc 2.6.19.

Top of Page