grouper-users - [grouper-users] Problem resolving subjects
Subject: Grouper Users - Open Discussion List
List archive
- From: "Guenther, Dean R." <>
- To: "" <>
- Cc: "" <>
- Subject: [grouper-users] Problem resolving subjects
- Date: Mon, 7 May 2018 22:40:05 +0000
- Accept-language: en-US
- Authentication-results: spf=none (sender IP is ) ;
- Ironport-phdr: 9a23:HRz8ZRY4Dgpe5ouIjjbZVYf/LSx+4OfEezUN459isYplN5qZpsy+bB7h7PlgxGXEQZ/co6odzbaO6Oa4ASQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9HiTahb75+Ngm6oRnMvcQKnIVuLbo8xAHUqXVSYeRWwm1oJVOXnxni48q74YBu/SdNtf8/7sBMSar1cbg2QrxeFzQmLns65Nb3uhnZTAuA/WUTX2MLmRdVGQfF7RX6XpDssivms+d2xSeXMdHqQb0yRD+v6bpgRh31hycdLzM38H/ZhNFsjKxVoxyuqR1/zJLbb4yOLvVyYqbdcMkGSWdbXMtcUTFKDIOmb4sICuoMJehUoYjgp1QQqxu+GQmsC/31yjNQm3T407M13P4nEQrbwAIsBdwCu2nTodX6KacdT+a1zLXIzTrddfNbwjn86JPVchw7v/6DQK9wfNPXxEIyGQ3FiVCQppbkPzOTzukNsXWU4PF8Wu61jW4osQRxrSa3ysc0kIbJnJgaylXe+SV/2ok1IMO3RFZ5YdG5C5RfqzuWN4prTc86WGFovzs6yqcatpGlZiQKyYkoywbEa/yAdoiH/A7sVOGXITd2hXJld7O/iAuo/Uih1+LxUNS/3lVSriddjNXDrGwB2wHW58SaV/dx40Ks2TiA2gzP9u1JJE40mrTUJpI/x7M9k5sevVnHEyPumUj7iLWaelgl9+Wp8ejqbbTrqoWBO4J6lg3yKqouldK8DOgkNwUDWmmW9fih2LDi+ED2XbVHgeczn6XErpzVOMcWq6u3DgBOzooj5RCyBCq83tsCh3kINldFdQqHj4f3P1HOJ+j1A++jjlqrjDtn2unKM6DjDZnTN3TDl6zucqhn505b1Qoz0ctQ55VJCrEHPf3/QFfxtMbfDh8lLQO73/rnCNR61oMYQ26PBbKZML/WsV+P4eIvIPOAa5MSuDb4M/Ql5vjugmElmVIFY6Wmx4cbZG29E/h7PkmVfH/hgtkOHGsWogYzSeLqh0ONXDJNYnu/WqMx6iw/BY6+CIfMXIGtgLiP3CehGZ1WY3hLCl+REXj2cYWER/cMZzyIIsJ6nD0ETqWhR5U/2h6zqQ/206BnIfbM+i0EqZLj08B45+LJlRE16Dx0F9qS03uUQ2FphWMHWSU23LtkrEx5y1eDyrR4g+dGGdBJ5vNJVBs6OoDGz+x8Fd/yRhzNcs2XR1m7X9X1SQ02G5g+2dgTe0tnXsi5gwrY9yusH7IPkbGXXto5/r+Wlyz+PcFg03vckbQ6gkM9aspJKWC8gKNjrU7eC5OfwGuDkKP/P4sB0SjR9GqZiSKisUheGDQ2G+2RUm0SYFfWoM7R+VjfCbKiFOJ0YUN61ceeJ/4SOZXShlJcSaK7NQ==
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
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.