grouper-users - RE: [grouper-users] UI Error: Subject [*] is unresolvable [...]
Subject: Grouper Users - Open Discussion List
List archive
- From: Chris Hyzer <>
- To: Baron Fujimoto <>, "" <>
- Subject: RE: [grouper-users] UI Error: Subject [*] is unresolvable [...]
- Date: Tue, 21 Aug 2012 04:20:46 +0000
- Accept-language: en-US
Can you find by that ID correctly from GSH?
GrouperSession.startRootSession();
SubjectFinder.findById("12345678"); [the uhuuid number]
Try running GSH from the UI WEB-INF/bin directory, does it work there too?
Is the sources.xml in the UI /WEB-INF/classes dir up to date?
Thanks,
Chris
________________________________________
From:
[]
on behalf of Baron Fujimoto
[]
Sent: Monday, August 20, 2012 10:36 PM
To:
Subject: [grouper-users] UI Error: Subject [*] is unresolvable [...]
I still appear to have some unresolved issues with our sources.xml:
We're using the GrouperJndiSourceAdapter, and I've defined our SubjectID
to be the attribute "uhuuid" in our LDAP. Using the UI, if I search by
either uhuuid or uid values, it finds the person entity in LDAP, and
displays the associated cn for the returned result. However, if I click
on that link (tooltip = "Click to show entity details for: ..."), I get
the following error:
Error: Subject [12345678] is unresolvable i.e. unavailable from the
registered source [UH test LDAP].
where "12345678" is the uhuuid value for the returned entity.
These are the entries I find in grouper_debug.log:
2012-08-20 16:20:11,628: [http-0.0.0.0-8443-1] DEBUG
CachingResolver.getFromFindPageCache(721) - < baron
01DB0727635ACCF0FA35EFFFA2A2CDE9-0010 192e0d5e48484188b8f8fd80f36f93e9
99999999 UH test LDAP > - query: testfacu, multiKey: MultiKey[UH test LDAP,
99999999, null, testfacu, null], searchPageResult: null
2012-08-20 16:20:11,636: [http-0.0.0.0-8443-1] DEBUG
SourcesXmlResolver$LogLabelCallable.call(175) - < baron
01DB0727635ACCF0FA35EFFFA2A2CDE9-0010 192e0d5e48484188b8f8fd80f36f93e9
99999999 UH test LDAP > - findPage on source: UH test LDAP, 'testfacu', time
in millis: 7
2012-08-20 16:20:11,636: [http-0.0.0.0-8443-1] DEBUG
GrouperSourceAdapter.searchPage(591) - < baron
01DB0727635ACCF0FA35EFFFA2A2CDE9-0010 192e0d5e48484188b8f8fd80f36f93e9
99999999 UH test LDAP > - searchPaging for: testfacu
2012-08-20 16:20:11,684: [http-0.0.0.0-8443-1] DEBUG
SourcesXmlResolver$LogLabelCallable.call(175) - < baron
01DB0727635ACCF0FA35EFFFA2A2CDE9-0010 192e0d5e48484188b8f8fd80f36f93e9
99999999 UH test LDAP > - findPage on source: g:gsa, 'testfacu', time in
millis: 48
2012-08-20 16:20:11,685: [http-0.0.0.0-8443-1] DEBUG
GrouperSourceAdapter.searchPage(591) - < baron
01DB0727635ACCF0FA35EFFFA2A2CDE9-0010 192e0d5e48484188b8f8fd80f36f93e9
99999999 UH test LDAP > - searchPaging for: testfacu
2012-08-20 16:20:11,720: [http-0.0.0.0-8443-1] DEBUG
SourcesXmlResolver$LogLabelCallable.call(175) - < baron
01DB0727635ACCF0FA35EFFFA2A2CDE9-0010 192e0d5e48484188b8f8fd80f36f93e9
99999999 UH test LDAP > - findPage on source: grouperEntities, 'testfacu',
time in millis: 34
2012-08-20 16:20:11,720: [http-0.0.0.0-8443-1] DEBUG
SourcesXmlResolver$LogLabelCallable.call(175) - < baron
01DB0727635ACCF0FA35EFFFA2A2CDE9-0010 192e0d5e48484188b8f8fd80f36f93e9
99999999 UH test LDAP > - findPage on source: g:isa, 'testfacu', time in
millis: 0
2012-08-20 16:20:11,720: [http-0.0.0.0-8443-1] DEBUG
SourcesXmlResolver.executeCallables(290) - < baron
01DB0727635ACCF0FA35EFFFA2A2CDE9-0010 192e0d5e48484188b8f8fd80f36f93e9
99999999 UH test LDAP > - SourcesXmlResolver: Using threads: false, time in
millis: 91
2012-08-20 16:20:11,723: [http-0.0.0.0-8443-1] DEBUG
CachingResolver.putInFindPageCache(759) - < baron
01DB0727635ACCF0FA35EFFFA2A2CDE9-0010 192e0d5e48484188b8f8fd80f36f93e9
99999999 UH test LDAP > - query: testfacu, multiKey: MultiKey[UH test LDAP,
99999999, null, testfacu, null], isTooManyResults: false, firstResult:
Faculty M Testfaculty
sources.xml:
<source
adapterClass="edu.internet2.middleware.grouper.subj.GrouperJndiSourceAdapter">
<id>UH test LDAP</id>
<name>UH LDAP test</name>
<type>person</type>
<init-param>
<param-name>INITIAL_CONTEXT_FACTORY</param-name>
<param-value>com.sun.jndi.ldap.LdapCtxFactory</param-value>
</init-param>
<init-param>
<param-name>PROVIDER_URL</param-name>
<param-value>ldaps://***.hawaii.edu:636</param-value>
</init-param>
<init-param>
<param-name>SECURITY_AUTHENTICATION</param-name>
<param-value>simple</param-value>
</init-param>
<init-param>
<param-name>SECURITY_PRINCIPAL</param-name>
<param-value>***,dc=hawaii,dc=edu</param-value>
</init-param>
<init-param>
<param-name>SECURITY_CREDENTIALS</param-name>
<param-value>***</param-value>
</init-param>
<init-param>
<param-name>SubjectID_AttributeType</param-name>
<param-value>uhuuid</param-value>
</init-param>
<init-param>
<param-name>SubjectID_formatToLowerCase</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>Name_AttributeType</param-name>
<param-value>cn</param-value>
</init-param>
<init-param>
<param-name>Description_AttributeType</param-name>
<param-value>cn</param-value>
</init-param>
/// Scope Values can be: OBJECT_SCOPE, ONELEVEL_SCOPE, SUBTREE_SCOPE
/// For filter use
<search>
<searchType>searchSubject</searchType>
<param>
<param-name>filter</param-name>
<param-value>
(& (uhuuid=%TERM%) (objectclass=uhEduPerson))
</param-value>
</param>
<param>
<param-name>scope</param-name>
<param-value>
SUBTREE_SCOPE
</param-value>
</param>
<param>
<param-name>base</param-name>
<param-value>
dc=hawaii,dc=edu
</param-value>
</param>
</search>
<search>
<searchType>searchSubjectByIdentifier</searchType>
<param>
<param-name>filter</param-name>
<param-value>
(& (uid=%TERM%) (objectclass=uhEduPerson))
</param-value>
</param>
<param>
<param-name>scope</param-name>
<param-value>
SUBTREE_SCOPE
</param-value>
</param>
<param>
<param-name>base</param-name>
<param-value>
dc=hawaii,dc=edu
</param-value>
</param>
</search>
<search>
<searchType>search</searchType>
<param>
<param-name>filter</param-name>
<param-value>
(&
(|(uhuuid=%TERM%)(uid=%TERM%)(cn=*%TERM%*))(objectclass=uhEduPerson))
</param-value>
</param>
<param>
<param-name>scope</param-name>
<param-value>
SUBTREE_SCOPE
</param-value>
</param>
<param>
<param-name>base</param-name>
<param-value>
dc=hawaii,dc=edu
</param-value>
</param>
</search>
<init-param>
<param-name>subjectVirtualAttribute_0_searchAttribute0</param-name>
<param-value>
${subjectUtils.defaultIfBlank(subject.getAttributeValueOrCommaSeparated('uid'),
"")},${subjectUtils.defaultIfBlank(subject.getAttributeValueOrCommaSeparated('cn'),
"")},${subjectUtils.defaultIfBlank(subject.getAttributeValueOrCommaSeparated('uhuuid'),
"")}
</param-value>
</init-param>
<init-param>
<param-name>sortAttribute0</param-name>
<param-value>
cn
</param-value>
</init-param>
<init-param>
<param-name>searchAttribute0</param-name>
<param-value>
searchAttribute0
</param-value>
</init-param>
<internal-attribute>searchAttribute0</internal-attribute>
///Attributes you would like to display when doing a search
<attribute>uid</attribute>
<attribute>uhuuid</attribute>
<attribute>cn</attribute>
</source>
--
Baron Fujimoto
<>
:: UH Information Technology Services
minutas cantorum, minutas balorum, minutas carboratum desendus pantorum
- [grouper-users] UI Error: Subject [*] is unresolvable [...], Baron Fujimoto, 08/20/2012
- RE: [grouper-users] UI Error: Subject [*] is unresolvable [...], Chris Hyzer, 08/21/2012
- Re: [grouper-users] UI Error: Subject [*] is unresolvable [...], Baron Fujimoto, 08/21/2012
- RE: [grouper-users] UI Error: Subject [*] is unresolvable [...], Chris Hyzer, 08/21/2012
Archive powered by MHonArc 2.6.16.