grouper-users - [grouper-users] RE: Problem resolving subjects
Subject: Grouper Users - Open Discussion List
List archive
- From: "Hyzer, Chris" <>
- To: "Guenther, Dean R." <>, "" <>
- Cc: "" <>
- Subject: [grouper-users] RE: Problem resolving subjects
- Date: Wed, 9 May 2018 18:10:22 +0000
- Accept-language: en-US
- Authentication-results: spf=none (sender IP is ) ;
- Ironport-phdr: 9a23:9IO1gxReEQQVfNImxBiw2FcIWtpsv+yvbD5Q0YIujvd0So/mwa67ZRCCt8tkgFKBZ4jH8fUM07OQ7/i7HzRYqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjWwba98IRmssQndqtQdjJd/JKo21hbHuGZDdf5MxWNvK1KTnhL86dm18ZV+7SleuO8v+tBZX6nicKs2UbJXDDI9M2Ao/8LrrgXMTRGO5nQHTGoblAdDDhXf4xH7WpfxtTb6tvZ41SKHM8D6Uaw4VDK/5KpwVhTmlDkIOCI48GHPi8x/kqRboA66pxdix4LYeZyZOOZicq/Ye94RWGhPUdtLVyFZAo2ycZYBD/YPM+hboYnypVoOogexCgS3Huzj1iNEi2Xq0aEm0eksFxzN0gw6H9IJtXTZtNv5OqUSUOG00qbI1y3PZO5I1Df98ojIcwshrf+RVr93dMre1UkvFgPEj1qOs4zoJDKV1v8RvGSB8upgTfygi2ghqw1rvDeg29osh5DPi4kIxF7E8iB5z5w0Jd2+UEN7Y8OrH4BMuC2AMYt5WMYiTH9wtCYi0LIGo4S0fC0QxJQh3RHfbuKIf5CK4h3+T+mePS10hHN4d76nnBay9lWgyvfgWcaqylpKrzdKnsHXtnAK0hzc9NSISvx7/kev2DaP2AHT5fxeLUA1iKXWLYMqzL0olpcLr0jMBDP6lFjzgaOLa0ko5+2l6+rob7n6upORMo15hR/xP6khn8GyBPo0PhQQU2SD5Oix2qHv8Vf9TblXlPE6jLTVvZTAKcgGpKO0AhdZ0og95Bu8Ezur1dEVkH0DIV9LZR2KipblN0zAIP36CPqwmEmgnCpqyv3DJLLsAYnCImXFnbz8Z7hy8VRcxxA2zd1H55JbFLUBIPXrV0HpqNHWCQM1PxKtz+j6ENtxy5oSWWWUDaCHKq/StkKI5v40LOmLeY8VvivyJ+I95/70in85hUEScrW13ZsWb3C4GO5qI0KEYXrwhtcBFmAKvgkkQOP2j12CVCZfZ3e0X60i+jE2EJyqAp3fSoywhbGNwTq3EoBTa2BIBV2ADWvkeoCGVvgSZy+fLcpsnzkaWbS9VYMtzRSuuxX7y7pjIOrU4CoYtZf72dhw++LTlREz9D1qAMSHyGyNTnp0kX8SSz8rxKBwv0p9ylGZ3admnvNYCMRf5+lVXQciKZ7c0+t6Bsj9WgLbedeJVU6mTcu8AT0oU9Ix2MEBY1xmG9i5ihDD3jGqA6MOl7CVHpA086Tc32TvKMZnzXbJyrUhg0c8TsRRKGKmm/03yw+GTaHUnkOFl6uwMeww0SfLvF3FhyLas1xVVhJwXL/tQmsCIEbasIK9rgnNVbizEbk9dxZaxNSZAqpMdtDzi1haHrHuNMmUKza+gWCtHRuSg66XYZDxU2QbwCjHDkUYyUYe8WvQZiYkASL06ULPHjF0URrEY1nt6qM2/HawTl4mwhuiblZqkaet9xgTw/GQVqVAjfo/pC49pmAsTx6G1NXMBo/F/lI5cQ==
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
Do you have your sources.xml copied to all envs and restart your loader/ui? all your config files need to be in sync. Thanks Chris From: [mailto:]
On Behalf Of Guenther, Dean R. I’ve been having trouble setting up subjects to be mapped from my PersonRegistry, which resides on the same Oracle DB as Grouper. When I setup a new loader task to create an employee group called
“hourly” it runs and finds all 7461 people who are to belong in the group. But then it gives an error that each person’s subject is not found. I’ve checked the archives and Grouper Deployement Guide and most references I found about this error refer to a problem
with the sources.xml or subject.properties. But even after getting those setup the way I think they should be, it still doesn’t find a subject for these people.
Here is what I’m seeing in the grouperUi for building this group “hourly”
######## CONFIGURATION ########
SUCCESS: grouperLoaderType is: SQL_SIMPLE
SUCCESS: This is a SQL job
SUCCESS: grouperLoaderType SQL_SIMPLE is a SQL type
SUCCESS: SQL database name is 'grouper' which uses the Grouper database connection: jdbc:oracle:thin:@localhost.wsu.edu:1521:MIM
NOTE: SQL query is set to 'select EXTERNALSYSTEMID as subject_id from grouperpersonregistry where employeerole like '%Hourly%'
'
SUCCESS: 'and groups' is not set
SUCCESS: Schedule type correctly set to: CRON
SUCCESS: Cron '0 42 15 * * ?' is set to: 'At 3:42 PM'
SUCCESS: Schedule interval is not set and schedule type is CRON
SUCCESS: SQL group query is not set!
SUCCESS: 'groups like' SQL config is not set
SUCCESS: Group types are not set
SUCCESS: Scheduling priority is a valid integer: 5
######## CHECKING QUERIES ########
SUCCESS: Found DB profile for: 'grouper'
SUCCESS: Ran query, got 7461 results in 323ms
SUCCESS: Found SUBJECT_ID col
WARNING: Did not find col: SUBJECT_SOURCE_ID, this column improves performance
ERROR: Could not find subject by id ‘9809109029’!
edu.internet2.middleware.subject.SubjectNotFoundException: subject not found:
9809109029 Here is what I see from gsh: groovy:000> subj=SubjectFinder.findByIdOrIdentifier("9809109029",false) ===> Subject id: 9809109029, sourceId: GrouperPersonRegistry, name: Something, Zack Matthew groovy:000> subj.getAttributes() ===> [loginid:[zack.something]] This is what I have in the grouper-loader.properties: db.grouperpersonregistry.url = "jdbc:oracle:thin:@localhost.wsu.edu:1521:MIM default.subject.source.id = grouperpersonregistry This is what I have in the sources.xml (trimming some config lines to make it shorter) <source adapterClass="edu.internet2.middleware.grouper.subj.GrouperJdbcSourceAdapter2"> <id>GrouperPersonRegistry</id> <name>Grouper Person Registry: JDBC Source Adapter</name> <type>person</type> <init-param> <param-name>jdbcConnectionProvider</param-name> <param-value>edu.internet2.middleware.grouper.subj.GrouperJdbcConnectionProvider</param-value> </init-param> … <init-param> <param-name>dbTableOrView</param-name> <param-value>GrouperPersonRegistry</param-value> </init-param> <init-param> <param-name>subjectIdCol</param-name> <!-- immutable ID which can never be changed --> <param-value>EXTERNALSYSTEMID</param-value> </init-param> … skipping nameCol, descriptionCol, lowerSearchCol,
<init-param> <param-name>subjectIdentifierCol0</param-name> <param-value>LOGINID</param-value> </init-param> <init-param> <param-name>subjectAttributeCol0</param-name> <param-value>LOGINID</param-value> </init-param> <init-param> <param-name>subjectAttributeName0</param-name> <param-value>LOGINID</param-value> </init-param> <init-param> <param-name>sortAttribute0</param-name> <param-value>LOGINID</param-value> </init-param> <init-param> <param-name>searchAttribute0</param-name> <param-value>LOGINID</param-value> </init-param> </source> This is from subject.properties (trimmed version): subjectApi.source.someConfigId.id = GrouperPersonRegistry
subjectApi.source.jdbc.id = GrouperPersonRegistry subjectApi.source.jdbc.name = Grouper Person Registry
subjectApi.source.jdbc.types = person
subjectApi.source.jdbc.adapterClass = edu.internet2.middleware.grouper.subj.GrouperJdbcSourceAdapter2
subjectApi.source.jdbc.param.jdbcConnectionProvider.value = edu.internet2.middleware.grouper.subj.GrouperJdbcConnectionProvider subjectApi.source.jdbc.param.emailAttributeName.value = USERPRINCIPALNAME …
subjectApi.source.jdbc.param.dbDriver.value = oracle.jdbc.driver.OracleDriver
subjectApi.source.jdbc.param.dbUrl.value = jdbc:oracle:thin:@localhost.wsu.edu:1521:MIM
subjectApi.source.jdbc.param.SubjectID_AttributeType.value = EXTERNALSYSTEMID
subjectApi.source.jdbc.param.Name_AttributeType.value = DISPLAYNAME
subjectApi.source.jdbc.param.Description_AttributeType.value = DESCRIPTION
subjectApi.source.jdbc.param.subjectVirtualAttribute_0_searchAttribute0.value = ${subject.displayname},${subjectUtils.defaultIfBlank(subject.getAttributeValue('LASTNAME'), "")},${subjectUtils.defaultIfBlank(subject.getAttributeValue('LOGINID'),
"")},${subjectUtils.defaultIfBlank(subject.description, "")},${subjectUtils.defaultIfBlank(subject.getAttributeValue('USERPRINCIPALNAME'), "")} subjectApi.source.jdbc.param.sortAttribute0.value = LASTNAME
subjectApi.source.jdbc.param.sortAttribute1.value = LOGINID subjectApi.source.jdbc.param.searchAttribute0.value = searchAttribute0 subjectApi.source.jdbc.param.useInClauseForIdAndIdentifier.value = true subjectApi.source.jdbc.param.identifierAttributes.value = LOGINID
subjectApi.source.jdbc.param.subjectIdentifierAttribute0.value = LOGINID
subjectApi.source.jdbc.internalAttributes = searchAttribute0 So my question is, what am I missing in my subject.properties so that the loader can find the subjects for each person it finds?
thanks – dean Dean Guenther |
- [grouper-users] Problem resolving subjects, Guenther, Dean R., 05/07/2018
- [grouper-users] RE: Problem resolving subjects, Hyzer, Chris, 05/09/2018
- [grouper-users] Re: Problem resolving subjects, Guenther, Dean R., 05/09/2018
- [grouper-users] RE: Problem resolving subjects, Hyzer, Chris, 05/09/2018
Archive powered by MHonArc 2.6.19.