Skip to content

201911 #25

merged 104 commits into from Jan 5, 2020
Merged
Changes from 1 commit
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
52dd6e1
Update Jenkinsfile
chubing Apr 19, 2019
67961e2
Update common.bash
chubing Apr 19, 2019
f323fbf
Update Jenkinsfile
chubing Apr 19, 2019
9497c39
Update manualBuild.sh
chubing Apr 19, 2019
7729514
Update Dockerfile
chubing Apr 19, 2019
39aef68
Update Jenkinsfile
chubing Apr 19, 2019
97305d6
Update Jenkinsfile
chubing Apr 19, 2019
a442729
Update manualBuild.sh
chubing Apr 19, 2019
97fc4a9
fixed context for oddball builds. paths will stay the same.
wgthom Apr 20, 2019
2dc9ad8
added gte tag to base
wgthom Apr 20, 2019
22f216b
fixed tagging scheme for image builds
wgthom Apr 20, 2019
d53ec91
fixed typo
wgthom Apr 20, 2019
dc720ba
added version tag
wgthom Apr 20, 2019
acd82d5
added version tag
wgthom Apr 20, 2019
4fbf26a
Update Dockerfile
wgthom Apr 20, 2019
2d75fc1
Create buildVersion.sh
wgthom Apr 20, 2019
41162de
updated 101 build to use VERSION_TAG
wgthom Apr 20, 2019
26b8dde
updated to use VERSION_TAG
wgthom Apr 20, 2019
6076c4d
updated to use VERSION_TAG
wgthom Apr 20, 2019
14cdb62
updated to use VERSION_TAG
wgthom Apr 20, 2019
d06a8ed
added VERSION_TAG to jenkins build
wgthom Apr 20, 2019
05e30ea
Update manualBuild.sh
wgthom Apr 20, 2019
1c99a6c
Update Jenkinsfile
wgthom Apr 20, 2019
dd934df
add VERSION_TAG to rest of build
wgthom Apr 20, 2019
40d0ec6
Update Jenkinsfile
wgthom Apr 20, 2019
9326941
Update buildVersion.sh
wgthom Apr 20, 2019
f0a55ed
Update Jenkinsfile
wgthom Apr 23, 2019
d463a7d
updated USERTOKEN
wgthom Apr 23, 2019
d8d92ac
Update README
dima767 Apr 23, 2019
bcb35c2
Update to tier shib-idp 3.4 immage wip
dima767 Apr 23, 2019
3820f6d
polishing
dima767 Apr 24, 2019
7e1c4f2
Merge pull request #13 from docker/201906-shib-upgrade
wgthom Apr 26, 2019
4957de7
Reworked readme
wgthom Apr 26, 2019
387d0e0
markdown updates
wgthom Apr 26, 2019
3e3c897
minor updates
wgthom Apr 26, 2019
91d1ffa
polish
wgthom Apr 26, 2019
83a5bd3
minor update
wgthom Apr 26, 2019
bd00217
minor update
wgthom Apr 27, 2019
f41a015
ignore spell check
wgthom Apr 27, 2019
38bcfc9
spelling
wgthom Apr 27, 2019
4bd952c
minor update
wgthom Apr 27, 2019
b188372
disable docker HEALTHCHECK
wgthom Apr 27, 2019
9a9ba2d
Merge branch '201906' of https://github.internet2.edu/docker/grouper_…
wgthom Apr 27, 2019
d9c6ad7
ignore .vscode
wgthom Apr 27, 2019
eb28c50
updated pspng config to match new app template
wgthom May 23, 2019
e355a46
initial docs import
wgthom May 29, 2019
2622d85
ignore build
wgthom May 29, 2019
5ec39bf
Merge branch '201906' of https://github.internet2.edu/docker/grouper_…
wgthom May 29, 2019
3cbe7e5
content added to index.rst
wgthom May 29, 2019
7b7bb06
moved ref and basis groups up to 201.1.1
wgthom May 30, 2019
2893834
rabbitmq start script
wgthom May 30, 2019
cb58886
content updates for 201
wgthom May 30, 2019
f1e39d8
gte command
wgthom May 30, 2019
d74239e
Merge pull request #16 from docker/201906-201-updates
wgthom May 30, 2019
03f891f
fixed docker image tag
wgthom May 30, 2019
0a5206b
added ref and basis tags to class groups
wgthom May 30, 2019
698c393
typo fix
wgthom May 30, 2019
82a7cb3
updated content for 2.1.2
wgthom May 31, 2019
6b9c6d9
updated gte for 201.2
wgthom May 31, 2019
58e9a1f
Merge branch '201906-201-updates' of https://github.internet2.edu/doc…
wgthom May 31, 2019
14448df
added gte version folders
wgthom May 31, 2019
ef92a1f
content update for 201.3
wgthom May 31, 2019
9ef07c2
added gte version folder
wgthom May 31, 2019
7bb5970
gte update for 201.3
wgthom May 31, 2019
0535d6c
Merge pull request #17 from docker/201906-201-updates
wgthom May 31, 2019
15eadaa
update headings
wgthom Jun 1, 2019
b2a62bf
content and gte updates for 201.4
wgthom Jun 1, 2019
1b6e586
Merge pull request #18 from docker/201906-201-updates
wgthom Jun 1, 2019
a934c58
content and gte updates for 201.5
wgthom Jun 2, 2019
df4b2b5
Merge pull request #19 from docker/201906-201-updates
wgthom Jun 2, 2019
604dde4
401.1 updates WIP
wgthom Jun 3, 2019
686644c
401 updates
wgthom Jun 6, 2019
8c80828
updates for 401 gte
wgthom Jun 6, 2019
db80bcc
Merge pull request #20 from docker/201906-201-updates
wgthom Jun 6, 2019
5b7d16c
content and gte updates for 401.2
wgthom Jun 7, 2019
6241645
Merge pull request #21 from docker/201906-201-updates
wgthom Jun 7, 2019
95c7d3b
401.3 content and gte updates
wgthom Jun 8, 2019
cd4cb48
401.5.7 updates
wgthom Jun 8, 2019
6cefbad
updates for 401.3
wgthom Jun 8, 2019
2adc619
updates for 401.3
wgthom Jun 8, 2019
59f9271
Merge pull request #22 from docker/201906-201-updates
wgthom Jun 8, 2019
01335e7
gte and content updates for 401.4
wgthom Jun 8, 2019
42680ba
Merge pull request #23 from docker/201906-201-updates
wgthom Jun 8, 2019
6a86074
gte helper scripts
wgthom Jun 9, 2019
fdf8fec
shib idp branding
wgthom Jun 9, 2019
3df83f2
updates for 201.1 and 201.2
wgthom Jun 10, 2019
fa3e0d9
updates for 201.3
wgthom Jun 10, 2019
2538c22
updates for 201.4
wgthom Jun 10, 2019
88437a0
201.5 updates
wgthom Jun 10, 2019
cb1ff40
404.4 update
wgthom Jun 10, 2019
2b188dd
Merge pull request #24 from docker/201906-201-updates
wgthom Jun 10, 2019
caf0648
cleaned up readme a bit
wgthom Jun 10, 2019
a98f774
readme fix
wgthom Jun 10, 2019
dc80644
added gdg folders, groups, and subjects to 101.1.1
wgthom Jun 10, 2019
31e9d88
added gdg folders, ref/basis groups, subjects
wgthom Jun 10, 2019
7eb4a39
grouper version at 2.4.0-a47-u25-w5-p6-20190611
wgthom Jun 12, 2019
a5c7fdb
grouper 2.4a64 101/201 updates
wgthom Jun 13, 2019
9c33823
updates for 401
wgthom Jun 13, 2019
7d70be3
only build setup and end for each module
wgthom Jun 13, 2019
80b9a9f
update for 201911 build
wgthom Oct 5, 2019
aa25e9e
updates for 201911 build
wgthom Oct 5, 2019
7f58304
update to grouper:latest and fix mysql install
wgthom Oct 9, 2019
2741016
enable config in ui for any IP address
wgthom Oct 29, 2019
9314d1f
grouper build for temple
wgthom Nov 1, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Prev Previous commit
Next Next commit
401.1 updates WIP
wgthom committed Jun 3, 2019
commit 604dde469970803c5b05e21cfa50c2700467963c
260 changes: 167 additions & 93 deletions docs/401/401.1.rst
@@ -18,176 +18,248 @@ Lab Components
* Grouper
* PSPNG
* OpenLDAP
* `Grouper Deployment Guide <https://spaces.at.internet2.edu/display/Grouper/Grouper+Deployment+Guide+Work+-TIER+Program>`_
* `Grouper Deployment Guide`_

--------
Overview
--------

VPN access is currently controlled by an LDAP group. You are not exactly sure
who is in the group or what the policy is, but have a general notion of a
natural language policy as all active faculty and staff, plus exceptions.
natural language policy as all active faculty and staff, plus some exceptions.
However, people have been added to the VPN ldap group mostly by hand over many
years with little to no lifecycle management in place. There is no easy way to
determine who should or should not be in the group. We just had a major breach
which was facilitated by access to the VPN. The compromised account used in the
breach was given to a former consultant and was never deprovisioned. CISO is
coming down hard on us to clean up our act!

----------------
Exercise 401.1.1
----------------
------------------------------------------------------
Exercise 401.1.1 Analyze legacy VPN authoization group
------------------------------------------------------

*Gain insight into who exactly has access to the VPN based on the cohorts found
in the legacy VPN authorization group.*
Gain insight into who exactly has access to the VPN based on the cohorts found
in the legacy VPN authorization group. We'll do this by using well established
reference groups for faculty, staff, and students.

""""""""""""""""""""""
Import Legacy VPN Data
""""""""""""""""""""""
"""""""""""""""""""""""""""""""""""""
Import Legacy VPN authorization group
"""""""""""""""""""""""""""""""""""""

First review the legacy VPN authorization group in LDAP.

#. Log in to https://localhost:8443/phpldapadmin/ with username
`cn=root,dc=internet2,dc=edu` and password `password`

#. Set the Search Filter to
"memberOf=cn=vpn_users,ou=groups,dc=internet2,dc=edu"
and Search Results to 5000. How many subjects are in `vpn_users`?

.. figure:: ../figures/401-legacy-ldap-vpn.png

* Create a loader job from the existing ldap vpn authorization group.
* Make sure grouper group counts matches ldap group counts.
* First thing to notice is you can eyeball the types of subjects in Grouper UI.
3. Create a `vpn` folder under the `test` folder
4. Create a `vpn_legacy` group to load the ldap group
5. Added Loader settings to the `vpn_legacy` group
(vpn_legacy -> More -> Loader -> Loader actions -> Edit loader
configuration)

* Loader: Yes, has loader configuration
* Source Type: LDAP
* Loader type: LDAP_SIMPLE
* Server ID: demo
* LDAP filter: (cn=vpn_users)
* Subject attribute name: member
* Search base DN: dc=internet2,dc=edu
* Schedule: 0 * * * * ?
* Subject source ID: ldap - EDU Ldap
* Subject lookup type: subjectid
* Search scope: SUBTREE_SCOPE
* Priority:
* Subject expression:${loaderLdapElUtils.convertDnToSpecificValue(subjectId)}
* Require members in other group(s):

6. Run Loader diagnostics (Loader actions -> Loader diagnostics -> Run loader
diagnostics)

.. figure:: ../figures/401-ldap-loader-diag.png

7. Run loader (Loader actions -> Run loader process to sync group)
8. Review loader logs. How many subject added?
(Loader actions -> View loader logs)

.. figure:: ../figures/401-ldap-loader-logs.png

9. Review `vpn_legacy` members

.. figure:: ../figures/401-vpn-legacy-members.png

.. note::
For small enough groups this might be sufficient, but our VPN group has
hundreds of subjects.
The first thing to notice is you can eyeball the types of subjects in the
Grouper UI. For small groups this might be sufficient, but our VPN group
has hundreds of subjects.

"""""""""""""""""""""""""""""""
Use Set Operations for Analysis
"""""""""""""""""""""""""""""""
""""""""""""""""""""""""""""""""""""""""""""""
Use group math to gain insight into vpn_legacy
""""""""""""""""""""""""""""""""""""""""""""""

Use intersect composite groups to gain insight into types of cohorts
We will use test composite groups to gain insight into the types of cohorts in
`vpn_legacy` by intersecting it with well known reference groups for faculy,
staff, and student.

* `test:vpn:vpn_faculty`: Intersect `ref:faculty` with `test:vpn:vpn_legacy`.
This yields faculty count (almost) - aha! This explains help desk calls!
1. Create `test:vpn:vpn_faculty` group, and make it a composite intersection of
`ref:faculty` with `test:vpn:vpn_legacy`. This yields faculty count (almost) -
aha! This explains those help desk calls! All faculty should automatically have
access to VPN by policy, but they don't.

* `test:vpn:vpn_employees`: Intersect `ref:staff` with `test:vpn:vpn_legacy`.
This yields staff count (again almost!)
2. Create `test:vpn:vpn_staff` group, and make it a composite intersection of
`ref:staff` with `test:vpn:vpn_legacy`. This yields staff count (again
almost!). We're also
missing some staff.

* `test:vpn:vpn_students`: Intersect `ref:students` with `test:vpn:vpn_legacy`.
This yields a small count - aha!
3. Create `test:vpn:vpn_students` group, and make it a composite intersect
`ref:students` with `test:vpn:vpn_legacy`. This yields a small count. As we
expected some students have been added to the vpn access control group as
exceptions, but we don't
know why, when, or by whom.

* Totals don’t add up...so we have other cohorts too. Who are they?
Hmm, the totals member counts don’t add up...so we have other cohorts too.
Who are they? Set up a composite group to filter out "other cohorts".

* Set up composite group to filter out "other cohorts".
4. Create a `test:vpn:other_cohorts` group.

* `test:vpn:other_cohorts` = `...:vpn_legacy` - (`...:vpn_faculty` +
`...:vpn_employees` + `...:vpn_students`)
5. Create `vpn_facstaffstudent` and add `vpn_faculty`,
`vpn_staff`, `vpn_students` as members.

* create `...:vpn_facstaffstudent` (include `...:vpn_faculty`,
`...:vpn_employees`, `...:vpn_students`)
* `...:other_cohorts` = `...:vpn_legacy` - `...:vpn_facstaffstudent`
6. Make `other_cohorts` a composite of `vpn_legacy` - `vpn_facstaffstudent`

* "Other cohorts" is a relatively small number ... can now eyeball those.
`Other cohorts` is a relatively small number. We can now eyeball those.

* fac/staff that are now longer active
* Contractors, sponsored accounts, etc
* Others
.. figure:: ../figures/401-other-cohorts.png

----------------
Exercise 401.1.2
----------------
--------------------------------------------------------------------
Exercise 401.1.2 Translate natural language policy to digital policy
--------------------------------------------------------------------

*State the natural language policy and create VPN application group and digital
policy.*
The natural language policy is "Faculty, staff and exceptions (some students,
contractors, etc.)"

#. Natural language policy: "Faculty, staff and exceptions (some students,
contractors, etc.)"
#. Construct `app:vpn:vpn_authorized|allow|deny` policy groups from appropriate
reference groups.
#. Use the application template and the policy group template to create a new
`vpn` application folder and policy group called `vpn_authorized`

* `ref:faculty`
* `ref:employees`
* `app:vpn:ref:vpn_adhoc`
#. Create a new application specific reference group
`app:vpn:service:ref:vpn_adhoc`.

#. Compare counts between ldap vpn group and `app:vpn:vpn_authorized`.
`vpn_authorized` should be different from the legacy group in the following
ways:
#. Add `faculty`, `staff`, and `vpn_adhoc` to `vpn_authorized_allow`

* only active accounts
* only current exceptions (none!)
.. figure:: ../figures/401-vpn-policy.png

----------------
Exercise 401.1.3
----------------
#. Compare counts between `vpn_legacy` and `vpn_authorized`.
`vpn_authorized`. Why are they different?

*Export `vpn_authorized` to LDAP for use with new VPN config.*

----------------------------------------------------
Exercise 401.1.3 Export `vpn_authorized` to OpenLDAP
----------------------------------------------------

#. Mark/config `vpn_authorized` to export to LDAP. The PSPNG needs to be
configured to provision group members.
#. Configure `PSPNG`_ to provision group members to OpenLDAP groupOfNames

.. literalinclude:: examples/401.1.3-pspng-config.properties
:language: properties
:lines: 72-
:caption: grouper-loader.properties
:caption: /opt/grouper/grouper.apiBinary/conf/grouper-loader.properties
:name: 401.1.3-pspng-groupofnames
:linenos:

#. Open a ticket to switch VPN config to use vpn_authorized.
#. Bask in the glow of TIER IAM goodness...
2. Mark `vpn_authorized` with the PSPNG `provision_to` attribute with a value
of `pspng_groupOfNames`.

* Automatic provisioning/deprovisioning for faculty and staff.
* Natural language policy - clear and visible.
* Exceptions management:
.. figure:: ../figures/401-vpn-provision-to.png

* Still dealing with tickets to add and remove subjects (well at least to add!).
* No way to distinguish different exceptions.
* Who is responsible for lifecycle, attestation, etc.?
3. Run the CHANGLE_LOG_consumer_pspng_groupOfNames
(Miscellaneous -> All deamon jobs -> Job Actions -> Run job now)

----------------
Exercise 401.1.4
----------------
4. Log in to https://localhost:8443/phpldapadmin and navigate to ou=groups.
Review your new Grouper managed vpn access control group!

.. figure:: ../figures/401-vpn-authorized-ldap.png

5. Open a service ticket to have the network team switch the VPN
config to use vpn_authorized.

*Implement distributed exception management.*
6. Bask in the glow of IAM greatness... :)

* Automatic provisioning/deprovisioning of VPN access for faculty and staff.
* Natural language policy - clear and visible.
* Exceptions management

This is a huge improvement! However, we are still dealing with tickets to
add and remove subjects (well at least to add!) to `vpn_adhoc` group.
There is no way to distinguish different exceptions, and it is not
clear who is responsible for lifecycle and attestation.

------------------------------------------------------------
Exercise 401.1.4 Implement distributed exception management.
------------------------------------------------------------

We initially added exceptions to single application reference group. This a
good step, but we still lack an easy way to know the "who and why" of
exceptions. IAM still also getting tickets to add people. In some case, the
exceptions. IAM is still getting tickets to add people. In some case, the
expiration is known and added, but most are a one way street-- back to old
practices. How can we do better?

"""""""""""""""""""""""""""""
Organize Exceptions to Policy
"""""""""""""""""""""""""""""

Each policy exception is represented by an application specific reference group.
Each policy exception is represented by an application specific reference
group.

#. Create `app:vpn:ref:vpn_consultants`. This ACL will be managed by the IAM
team.
#. Create `app:vpn:ref:vpn_ajohnson409`. Management of this ACL will be
delegated to a professor.
#. Add each of these ACLs to `vpn_adhoc`


+++++++++++++++++++++++++++++++++++
Professor Johnson's Special Project
+++++++++++++++++++++++++++++++++++

Professor Johnson (**ajohnson409**) runs a special project that includes various online
resources that can only be accessed from the VPN. The professor should be able to
control who is allowed to have VPN access for the purpose of accessing his
project's resources.
Professor Johnson (**ajohnson409**) runs a special project that includes
various online resources that can only be accessed from the VPN. The professor
should be able to control who is allowed to have VPN access for the purpose of
accessing his project's resources.

We will create an access control list (ACL) `app:vpn:ref:vpn_ajohnson409` to
represent subjects that will access resources related to Professor Johnson's
special project. In order to delegate management of this ACL to the professor,
we must create a security group and grant it appropriate permissions:

#. Create `app:vpn:security:vpn_ajohnson409_mgr`.
#. Grant `vpn_ajohnson_mgr` *UPDATE* and *READ* to `vpn_ajohnson409`
#. Add subject `ajohnson409` to this security group.
#. Review the privileges on `vpn_johnson409`

.. figure:: ../figures/401-vpn-ajohnson409-privs.png

5. In a private browser window, log in to http://localhost:8443/grouper with
username `ajohnson409` and password `password`. You should be able to add
and remove members from the `vpn_ajohnson409` ACL.
6. Add student `bsmith458` to `vpn_ajohnson409`
7. Find `bsmith458` in `vpn_authorized` and trace membership

ACL `app:vpn:ref:vpn_ajohnson409` represents subjects that will access resources
related to Professor Johnson's special project. In order to delegate management
of this ACL to the professor, we must create a security group and grant it
appropriate permissions:
.. figure:: ../figures/401-bsmith458-trace-membership.png

#. Create `app:vpn:etc:vpn_ajohnson409_mgr`.
#. Add subject `ajohnson409` to this security group.
#. Grant *UPDATE* and *READ* access on the `...:ajohnson409` access control
list to this security group.
#. In a private browser window, log into the GTE was account `ajohnson409`,
password "password". You should be able to add and remove members from the
`vpn_ajohnson409` ACL.
.. figure:: ../figures/401-bsmith458-trace.png

""""""""""""""""""""""
Put Limits on Policies
""""""""""""""""""""""

It is the IAM team's responsibility to make sure that VPN access is granted to the
correct subjects. Putting some limits in place can help make sure improper
access is not granted. Attestation makes sure that access which was granted
in the past is still appropriate.
It is the IAM team's responsibility to make sure that VPN access is granted to
the correct subjects. Putting some limits in place can help make sure improper
access is not granted. Attestation makes sure that access which was granted in
the past is still appropriate.

#. Create `ref:iam:global_deny`. This reference group represents a broad cohort
of subjects that should not be granted access to most policies. Subjects
@@ -247,3 +319,5 @@ why?*
#. Intersect with `vpn_authorized`.
#. Trace membership to determine what level of access and why.

.. _Grouper Deployment Guide: https://spaces.at.internet2.edu/display/Grouper/Grouper+Deployment+Guide+Work+-TIER+Program
.. _`PSPNG`: https://spaces.at.internet2.edu/x/iwfSBQ
Binary file added docs/figures/401-bsmith458-trace-membership.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figures/401-bsmith458-trace.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figures/401-ldap-loader-diag.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figures/401-ldap-loader-logs.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figures/401-legacy-ldap-vpn.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figures/401-other-cohorts.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figures/401-vpn-ajohnson409-privs.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figures/401-vpn-authorized-ldap.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figures/401-vpn-legacy-members.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figures/401-vpn-policy.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figures/401-vpn-provision-to.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 9 additions & 2 deletions ex401/ex401.1.1/container_files/seed-data/bootstrap.gsh
@@ -6,14 +6,20 @@ addRootStem("app", "app");
addRootStem("org", "org");
addRootStem("test", "test");

addGroup("etc","rolesLoader", "Roles Loader");
//delStem("401.1.end")
addRootStem("401.4.1", "401.4.1")

addStem("ref", "iam", "iam");
addGroup("ref:iam", "global_deny", "global_deny");

group = addGroup("etc","rolesLoader", "Roles Loader");
groupAddType("etc:rolesLoader", "grouperLoader");
setGroupAttr("etc:rolesLoader", "grouperLoaderDbName", "grouper");
setGroupAttr("etc:rolesLoader", "grouperLoaderType", "SQL_GROUP_LIST");
setGroupAttr("etc:rolesLoader", "grouperLoaderScheduleType", "CRON");
setGroupAttr("etc:rolesLoader", "grouperLoaderQuartzCron", "0 * * * * ?");
setGroupAttr("etc:rolesLoader", "grouperLoaderQuartzCron", "0 * * * * ?");
setGroupAttr("etc:rolesLoader", "grouperLoaderQuery", "select distinct id as SUBJECT_IDENTIFIER, 'ldap' as SUBJECT_SOURCE_ID, CONCAT('ref:', role) as GROUP_NAME from HR_PEOPLE_ROLES");
loaderRunOneJob(group);

group = new GroupSave(gs).assignName("etc:deptLoader").assignCreateParentStemsIfNotExist(true).save();
group.getAttributeDelegate().assignAttribute(LoaderLdapUtils.grouperLoaderLdapAttributeDefName()).getAttributeAssign();
@@ -29,3 +35,4 @@ attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperL
attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapSubjectExpressionName(), '${subjectAttributes["subjectId"]}');
attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapGroupNameExpressionName(), 'ref:dept:${groupAttribute}');
attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapGroupDisplayNameExpressionName(), '${groupAttribute}');
loaderRunOneJob(group);