Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] RE: GrouperJndiSourceAdapter questions...

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] RE: GrouperJndiSourceAdapter questions...


Chronological Thread 
  • From: Shilen Patel <>
  • To: "Black, Carey M." <>
  • Cc: "Hyzer, Chris" <>, "" <>, "Redman, Chad Eric" <>
  • Subject: Re: [grouper-users] RE: GrouperJndiSourceAdapter questions...
  • Date: Wed, 5 Apr 2017 20:18:15 +0000
  • Accept-language: en-US
  • Authentication-results: oit.duke.edu; spf=none
  • Authentication-results: osu.edu; dkim=none (message not signed) header.d=none;osu.edu; dmarc=none action=none header.from=duke.edu;
  • Ironport-phdr: 9a23:lThnDhcBnaAZVi5cElSX73hklGMj4u6mDksu8pMizoh2WeGdxc2yYR2N2/xhgRfzUJnB7Loc0qyN4v6mATZLuMrR+Fk5M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aFRrwLxd6KfroEYDOkcu3y/qy+5rOaAlUmTaxe71/IRG3oAnLqsUan4RuJrs+xxbKv3BFZ/lYyWR0KFyJgh3y/N2w/Jlt8yRRv/Iu6ctNWrjkcqo7ULJVEi0oP3g668P3uxbDSxCP5mYHXWUNjhVIGQnF4wrkUZr3ryD3q/By2CiePc3xULA0RTGv5LplRRP0lCsKMSMy/XrJgcJskq1UvBOhpwR+w4HKZoGVKOF+db7Zcd8DWGZNQtpdWylHD4ihbYUAEvABMP5YoYfjulUOsRWwCwqiC+Pu1jBHiWT70rcm3+k7CwzKwBYtEtIIvX/JrNv1LqASUeWtwafVzTXDbvdW1in76IPVaB4uu+2MUqx0ccHMzkQvDAPFjlSUqYP7OTOYzfkCs3WY7+V+T+6glXMoqxxorzWp28wihI7JhocPxVDF8yV02IQ1KsemSEFheNKoDppduDyAOItqWMwuWm9ltzsmxrEboJK3YigHxZY7yBLDdvCLapaE7xLhWemNPTh4hGhqd6+mixuy/0ig0PPzWdSx0FlQ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EFBfrH8AUHcehMPQlm0O1bh0eIO9S96k0P924ePuc1q6rOOFgnTy8gWtb54B911qD+DBkReLV3psIw/+V0heIWjr9klutqtv3mZxeaj4OHWq/zjbkC5BLZq18eYYLDmmvL9erydV5gp7hQ2ZY9ESkB1MB1s+pYR2Sb1373Q1Mz0gYvXunmS6+wjdpkD8ptrKS0DHOzuj8bhYKNHRHSHRhgFroO4S4kc4WUUqwYwQ0lBap+1z2yqZBqKlxIGTfW0lFczDoI21+UKa8rLWPbs9V5J81sChaXv6wbU2HRrP/pRYRzjntEHFExD8hcjGnopX5kAJ+iGKaNHtzqWDWecB0xRvG69zdS+dd0iQbSCVijjnXB0S8M8O08tWJlJfMrPqyWHy8WZ1OaSXrzIWAuzWn5WByHBGyn+6/lsfpHAQgzCP21N1nWT/WoBriYITnz6G6PvhmfklsCl/88c16GoRmn4srhJEQ2HwaiYuT/XccjGjzLNZb1rzkYHUTWDEL3sbZ4BL51017MnKJ24X5W22Swst7YNm6f3sW1Twn78xTFaeU96JLnTFuolejqQLRYON9nisGyfcw8nIagucJuBYzwSWHBLAdA1VYMTL2mxuW8t++sfYfWGH6O5K03UF92ZiKBauPs0l5HjyxLp0mFCRzqJwla3rLy2C15435Lor+d9UW4yaUkhPNiaBtIY48krJenipmPW/7lXE4yON9gBBzi8Lp9LObInlgqfrqSiVTMSf4MoZKomng
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

Carey,

Just curious, what is the name of this attribute?  Is it part of some standard object class or custom developed?

Thanks!

- Shilen

From: <Redman>, Chad Eric <>
Date: Wednesday, April 5, 2017 at 3:37 PM
To: "Black, Carey M." <>, "Hyzer, Chris" <>, "" <>
Subject: [grouper-users] RE: GrouperJndiSourceAdapter questions...

I realized later that your IDs may be binary and not necessarily unicode. This would be less likely to work without customization.

 

So maybe moot, but if anyone is interested, the issue with various pages not working with a unicode subject ID has to do with URI parsing not defaulting to unicode. The fixes are (a) set the Tomcat URI decoding (http://stackoverflow.com/a/16530462); or (b) decode specific parameters as needed in the Java classes that use them.

 

-Chad

 

 

From: [] On Behalf Of Redman, Chad Eric
Sent: Wednesday, April 05, 2017 1:59 PM
To: Black, Carey M. <>; Hyzer, Chris <>;
Subject: [grouper-users] RE: GrouperJndiSourceAdapter questions...

 

Carey,

 

I had thought that LDAP had built-in base64 translation which was transparent at the application level, so I did some testing on a demo database. I created an LDAP entry with an accent in the uid field (the subject ID in this demo db). Indeed, an LDAP search will display a base64 string as the value for the field. However, you can't search for that base64 value, only the original value with escaped unicode (e.g., uid=jlop\c3\a9z).  The Grouper UI was able to search on the unicode string (but only certain search forms work), display it correctly, and add that subject to a group. The subject is stored in the database correctly as the unicode string. What doesn't work is displaying the subject detail page. The error is "Cannot find subject". I network traced the LDAP call and that's fine. I turned on SQL debugging, and Grouper is able to query the subject in its subject table and get the attributes, as if it's about to display the subject page. So somewhere between there and the page generation there is some issue.

 

Anyway, I was just curious if binary subject IDs would work with no additional work, and the answer is, almost.

 

-Chad

 

 

 

From: [] On Behalf Of Black, Carey M.
Sent: Tuesday, April 04, 2017 6:57 PM
To: Hyzer, Chris <>;
Subject: [grouper-users] RE: GrouperJndiSourceAdapter questions...

 

Chris,

 

>> Does this adapter support using Base64 encoded attributes as the SubjectID attribute?

> 

> I don’t think that is currently possible, if you need it please open a descriptive jira about it.  I assume that when searching the ID will need to be encoded before running the filter?

 

It is actually more “odd” than that… but yes, the value needs decoded  (from Base64) before it is stored then “encoded” before the search can work.

                If you take the value in HEX then escape all of the digits then the ldap filter works.

 

                Example: (HEX form of the value)  4e99cb365b5dfc4998b74e99cb365b5d

                                  (valid filter )   (attribute=\4e\99\cb\36\5b\5d\fc\49\98\b7\4e\99\cb\36\5b\5d)

 

 

My motivation is to use a “system generated” value that I have never seen the LDAP system allow to have a duplicate. All other values are “mostly unique”, but I suspect that the system generated attribute that is stored in this “odd way” is system protected from being “non-unique” and is a very opaque value too. J

 

The only issue is that grouper does not appear read to deal with this type of data from an LDAP source. L

 

 

 

 

 

RE: setting email value

 

I already have this in my config. (But it is not working) Any other ideas of what I might be doing wrong?

<init-param>

       <param-name>emailAttributeName</param-name>

       <param-value>mail</param-value>

</init-param>

 

The LDAP source has a value for the attribute “mail” that is an email address. (example: )

 

When I use the Subject API diagnostics page I see this in the output for my Subject ID:

Subject attribute 'mail' has 1 value: '

  - with subject.getAttributeValue("mail")

 

REF: https://github.com/Internet2/grouper/blob/master/subject/conf/ldap.sources.xml.example

 

I do not see a sample for “emailAttributeName” and the format looks more like “Name_AttributeType”…..

 

REF: https://github.com/Internet2/grouper/blob/GROUPER_2_3_0-branch/subject/tests/edu/internet2/middleware/subject/provider/JNDISourceAdapterTest.java

                Only test for “SubjectID_AttributeType”, “Name_AttributeType” and “Description_AttributeTyp”.

                No email attribute looking value.

 

Is this just a “miss” in this API? (Or am I not seeing something?)

 

--

Carey Matthew

 

From: Hyzer, Chris []
Sent: Tuesday, April 4, 2017 3:17 PM
To: Black, Carey M. <>;
Subject: RE: GrouperJndiSourceAdapter questions...

 

> Does this adapter support using Base64 encoded attributes as the SubjectID attribute?

 

I don’t think that is currently possible, if you need it please open a descriptive jira about it.  I assume that when searching the ID will need to be encoded before running the filter?

 

> How do I map an attribute from this SourceAdaptor to the email value for the subject?

 

Just make an attribute, e.g. “emailAddress”, and then set this:

 

     <!-- If using emails and need email addresses in sources, set which attribute has the email address in this source -->

     <init-param>

       <param-name>emailAttributeName</param-name>

       <param-value>emailAddress</param-value>

     </init-param>

 

Thanks

Chris

 

From: [] On Behalf Of Black, Carey M.
Sent: Tuesday, April 04, 2017 2:26 AM
To:
Subject: [grouper-users] GrouperJndiSourceAdapter questions...

 

Hello,

 

First a bit about how I am currently configuring this subject API. ( in case it matters.)

  I am altering the sources.xml file.

 

 

Does this adapter support using Base64 encoded attributes as the SubjectID attribute?

                I am trying to tie to our IDM system and would like to use an operational attribute that is base64 encoded as the Subject ID for this data set.

                However, the system does not appear to “automatically know” that it needs to decode the value being returned from our ldap server.

                Is there a way to “give it a clue” so that it will do that for the attribute?

                If in include the attribute in the list of “attribute” to display when doing a search I see

 

How do I map an attribute from this SourceAdaptor to the email value for the subject? (or is intended to be dealt with some other way than the subject API?

                I was expecting something like, but I am not finding it in any of the docs.

<init-param>

       <param-name>Mail_AttributeType</param-name>

       <param-value>mail</param-value>

     </init-param>

 

--

Carey Matthew

 



  • Re: [grouper-users] RE: GrouperJndiSourceAdapter questions..., Shilen Patel, 04/05/2017

Archive powered by MHonArc 2.6.19.

Top of Page