grouper-users - [grouper-users] RE: Grouper Shell and AddSubject
Subject: Grouper Users - Open Discussion List
List archive
- From: "Black, Carey M." <>
- To: "Crawford, Jeffrey" <>, Grouper-Users <>
- Subject: [grouper-users] RE: Grouper Shell and AddSubject
- Date: Thu, 6 Dec 2018 04:31:05 +0000
- Accept-language: en-US
- Authentication-results-original: spf=none (sender IP is ) ;
- Ironport-phdr: 9a23:q5424RZ4tEbMkyjr1I+hDfj/LSx+4OfEezUN459isYplN5qZpsy5Yx7h7PlgxGXEQZ/co6odzbaO4+a4ASQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9HiTahYr5+Ngm6oRnMvcQKnIVuLbo8xAHUqXVSYeRWwm1oJVOXnxni48q74YBu/SdNtf8/7sBMSar1cbg2QrxeFzQmLns65Nb3uhnZTAuA/WUTX2MLmRdVGQfF7RX6XpDssivms+d2xSeXMdHqQb0yRD+v9LlgRgP2hygbNj456GDXhdJ2jKJHuxKquhhzz5fJbI2JKPZye6XQds4YS2VcRMZcTyxPDJ2hYYsTAeQPPuhYoIv8p1QSohSzHhOjCP/zxjJSmnP6wa833uI8Gg/GxgwgGNcOvWzaoNjoMKcdS/y6zKrQwT7ecf5Zwy3955bIcxs8pv+AR7x8etfWxEY0EwPKlEmfqY//Mz+IyOgAvXOW7+17VeKykWIotRx+oiW2y8oql4LHiIUVylXe+iV4xoY4PdK4SFR8Yd65CJtfqTuaO5FsTcM6W2FlvjsxxL4euZOjYiQF0ogrywPaZvCaboSE/xfuVOieLDtkmH5ofby/iAi9/Ee9z+DxU8u53EhXoiZdjNXBuWoB2wLP5sWEUPdx4Fmt1DiV2wzO6OxJIlg4laTFJJMi3rI9k58evVreEiDrmkj7iaGbelsk9+ey7unqYrfrq5+AO4JxhQzxKKAjlda5DO8lKAYBRXKb9v651LD7/U32XrFKjvoun6fBrJ3UItgXq6GgDwJLy4gv9g+zDzC939sGh3UHK09FeA6cgIjuJlHOJu33Ae2ng1S2lzdr2+7JMaH9ApXMKXjDlq3tfbFg605AzAozytdf55FOBr4dJ/LzX1f9tN3eDhAnLwy52/jrB89h2o8DXG+DH7KVPL7XvF+G6e8jP/WAaYobuDnjJPUq+vvjgHo7lFMDYKWlxZ4XZ2q5HvRiLUWZe33sgtIZHGgRugoxVvDliF6YXTJOeXq/Ubkx5jYgCIK7F4vMWJ2igKGZ0CehApJWfnxGCkyLEXrweIWEQfAMaD+KIsB/iDwITKWhS5Q/2hG0rw/30L5nLuvP+i0ErpLvysJ55+zVlREu6zN0FcKd3H+RT21qhG8HWSI53L0s6XB6nx2oy6FnjftCGZgbxf5HXB03JNSUm+5xEdntVAXbcv+IVBC7SdGvRzw9U4R1i/AUZFtlFs/nswvOxTHiV7APkKGTCYZx77nRxWPZJsBhxmzA2bV7yVQqX50cG3ehg/s13QzaDI2N226Qjau7PYFalmaZ/mOKxmnI5RsDeAlrTOPIUW1JNRielsjw+k6XF+zmMr8gKAYUjJfacqY=
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
Jeffrey, I got to say that I don’t know why grouper is doing what it is doing for either of us on this one. And that is different, maybe, than what it is doing for you. And given that I am doing what you are doing for WebService accounts, I am very interested in understanding what is not working.
L
( I am using v 2.3. You did not say what version your using. Maybe your upgraded from 2.3 to 2.4? ) But maybe this will help. groovy:000> findSubject("grouper-testUser2"); ERROR edu.internet2.middleware.subject.SubjectNotFoundException: subject not found: grouper-testUser2 at edu.internet2.middleware.grouper.subj.SourcesXmlResolver.thereCanOnlyBeOne (SourcesXmlResolver.java:486) at edu.internet2.middleware.grouper.subj.SourcesXmlResolver.findByIdOrIdentifier (SourcesXmlResolver.java:527) at edu.internet2.middleware.grouper.subj.CachingResolver.findByIdOrIdentifier (CachingResolver.java:377) at edu.internet2.middleware.grouper.subj.ValidatingResolver.findByIdOrIdentifier (ValidatingResolver.java:203) at edu.internet2.middleware.grouper.SubjectFinder.findByIdOrIdentifier (SubjectFinder.java:316) at edu.internet2.middleware.grouper.app.gsh.findSubject.invoke (findSubject.java:154) at edu.internet2.middleware.grouper.app.gsh.findSubject$invoke.call (Unknown Source) at groovysh_evaluate.findSubject (groovysh_evaluate:4) at groovysh_evaluate.findSubject (groovysh_evaluate) groovy:000> addSubject("grouper-testUser2", "application", "grouper-testUser2"); ===> Subject id: grouper-testUser2, sourceId: null, name: grouper-testUser2 groovy:000> findSubject("grouper-testUser2"); ===> Subject id: grouper-testUser2, sourceId: jdbc, name: grouper-testUser2 I note that the addSubject returns “sourceId: null”. Yet it appears to have stuffed the user into “sourceId: jdbc”. And when I go look in the Subject table in the DB… yep. There it is. Just a wag: Maybe you did something to your jdbc source? Maybe the jdbc source was not converted/upgraded properly? And while we are on the “subject”, ( Ugh… bad puns are everywhere ) can anyone point at a Grouper API to “removeSubject()” ?
Yea.. SQL should get the job done, but their could be application caches, details, and quarks Oh my. If you can add then you should be able to remove too. IMHO [ In my hopeful opinion] -- Carey Matthew From: <>
On Behalf Of Crawford, Jeffrey Greetings, We’ve been having issue with the grouper Web Service finding the service accounts since we upgraded. Originally the web service accounts were created as groups, and the web service basic auth seemed to work
fine. My guess is that over time it was no longer possible to bind a basic auth REMOTE_USER to a group entity. So I thought I would create an application local identity and just make it a member of the original group we created as a migration step. However I was trying to create a local entity. I used the Grouper shell to create a service account, but after creating it and trying to access it via findSubject, It doesn’t find the account I just created: groovy:000> addSubject("grouper-wsuser", "application", "grouper-wsuser"); ===> Subject id: grouper-wsuser-iamucla, sourceId: null, name: grouper-wsuser groovy:000> findSubject("grouper-wsuser"); ERROR edu.internet2.middleware.subject.SubjectNotFoundException: subject not found: grouper-wsuser at edu.internet2.middleware.grouper.subj.SourcesXmlResolver.thereCanOnlyBeOne (SourcesXmlResolver.java:486) at edu.internet2.middleware.grouper.subj.SourcesXmlResolver.findByIdOrIdentifier (SourcesXmlResolver.java:527) at edu.internet2.middleware.grouper.subj.CachingResolver.findByIdOrIdentifier (CachingResolver.java:406) at edu.internet2.middleware.grouper.subj.ValidatingResolver.findByIdOrIdentifier (ValidatingResolver.java:203) at edu.internet2.middleware.grouper.SubjectFinder.findByIdOrIdentifier (SubjectFinder.java:316) at edu.internet2.middleware.grouper.app.gsh.findSubject.invoke (findSubject.java:154) at edu.internet2.middleware.grouper.app.gsh.findSubject$invoke.call (Unknown Source) at groovysh_evaluate.findSubject (groovysh_evaluate:4) at groovysh_evaluate.findSubject (groovysh_evaluate) |
- [grouper-users] Grouper Shell and AddSubject, Crawford, Jeffrey, 12/05/2018
- [grouper-users] RE: Grouper Shell and AddSubject, Black, Carey M., 12/06/2018
- [grouper-users] RE: Grouper Shell and AddSubject, Hyzer, Chris, 12/06/2018
- [grouper-users] RE: Grouper Shell and AddSubject, Redman, Chad, 12/06/2018
- [grouper-users] RE: Grouper Shell and AddSubject, Hyzer, Chris, 12/06/2018
- [grouper-users] RE: Grouper Shell and AddSubject, Black, Carey M., 12/06/2018
Archive powered by MHonArc 2.6.19.