Setup grouper25
Vai alla navigazione
Vai alla ricerca
Steps to have grouper25 online
Web welcome page
$ sudo apt-get install nodejs build-essentials $ sudo corepack enable
$ cd /var/www $ git clone ssh://devel.unimore.it/var/lib/svn/git/js/grouper/ $ cd grouper $ yarn install $ yarn run build
Problems?
- check README for compatible node version;
- delete node_modules dir before trying again.
Concepts
apache2
Apache2 is reverse proxy: mod_proxy_ajp is required.
RequestHeader set AJP_UID "%{uid}e"
shibd
[Authentication to the Grouper UI]
Make sure REMOTE_USER is uid
Install
$ sudo docker build -t grouper-2.5.63 /opt/grouperContainer
Update db
Web Services
Read documentation.
Status page:
https://grouper.unimore.it:8443/grouper-ws/status?diagnosticType=all
You need to setup a principal: navigate to the stme in the ui and add a 'local-entity'. Set the password in gsh with:
new GrouperPasswordSave().assignApplication(GrouperPassword.Application.WS).assignUsername("a1342...").assignPassword("the_password").save();
give the local entity the correct privileges on the group.
After the auth bypass bug:
- add the user to the etc:webServiceClientUsers grouper;
- open the firewall (from apache2).
List members:
https://grouper.unimore.it:8443/grouper-ws/servicesRest/2_6_000/groups/unimore%3Aplains%3Aahab%3Amy_group/members
$ curl -u a1342[...]:the_password https://grouper.unimore.it:8443/grouper-ws/servicesRest/2_6_000/groups/unimore%3Aplains%3Aahab%3Amy_group/members
Add member / delete meber
$ curl -X PUT -u a1342[...]:the_password https://grouper.unimore.it:8443/grouper-ws/servicesRest/2_6_000/groups/unimore%3Aplains%3Aahab%3Amy_group/members/my_uid $ curl -X DELETE -u a1342[...]:the_password https://grouper.unimore.it:8443/grouper-ws/servicesRest/2_6_000/groups/unimore%3Aplains%3Aahab%3Amy_group/members/my_uid