[Building Sakai] Sakai 2.9.2/JLDAP Issue

Niebel, William (wdn5e) wdn5e at eservices.virginia.edu
Tue Aug 6 10:28:12 PDT 2013


Sorry to have forgotten the patch earlier.  Here it is.

________________________________
From: sakai-dev-bounces at collab.sakaiproject.org [sakai-dev-bounces at collab.sakaiproject.org] on behalf of Niebel, William (wdn5e) [wdn5e at eservices.virginia.edu]
Sent: Tuesday, August 06, 2013 12:14 PM
To: McCarty, Matthew C; Sam Ottenhoff
Cc: sakai-dev at collab.sakaiproject.org
Subject: Re: [Building Sakai] Sakai 2.9.2/JLDAP Issue

Since from the log trace it's a RuntimeException, looking at the source at 2.9.2 JLDAPDirectoryProvider.java:700, in method getUsers(),
it was an Exception thrown, not an LDAPException.  That suggests that it may be a coding error, like NPE, and not the sakai logic explicitly throwing an LDAPException.

Following back in the log to
2013-08-06 09:48:24,212 DEBUG http-bio-8080-exec-8 edu.amc.sakai.user.JLDAPDirectoryProvider - mapUserDataOntoUserEdit() [cache record = . . .   eid=Zinskid
, that's from line 1113 in mapUserDataOntoUserEdit() of the same source file.
The next code line there is 1118 and reads
ldapAttributeMapper.mapUserDataOntoUserEdit(userData, userEdit);

The exception then is probably from your ldapAttributeMapper implementation,
in its mapUserDataOntoUserEdit() method.

At University of Virginia, we use the EntryAttributeToUserTypeMapper.java implementation
and have a local patch to that code to force our user type mapping to use lowercase user id.
(Because, like you, we have mixed case user id issues to deal with.)

That doesn't sound like it's exactly what's going on for you, but suggestively close.

I'll attach that patch as-is as we applied to for our 2.9.1 but I don't have time right now to adapt it to the sakai distribution 2.9.1 or 2.9.2 source.
(It may have been later in our patching, after some other local patches, and so not match the distribution.  I'm guessing the java code is a close match, but the configuration code further astray.)

If you tell us which AttributeToUserTypeMapper implementation you're using, I may be able to tell something from that code.

________________________________
From: McCarty, Matthew C [McCartM2 at mail.amc.edu]
Sent: Tuesday, August 06, 2013 11:46 AM
To: Niebel, William (wdn5e); Sam Ottenhoff
Cc: sakai-dev at collab.sakaiproject.org
Subject: RE: [Building Sakai] Sakai 2.9.2/JLDAP Issue

Nope, this is set to false.

From: Niebel, William (wdn5e) [mailto:wdn5e at eservices.virginia.edu]
Sent: Tuesday, August 06, 2013 11:36 AM
To: McCarty, Matthew C; Sam Ottenhoff
Cc: sakai-dev at collab.sakaiproject.org
Subject: RE: [Building Sakai] Sakai 2.9.2/JLDAP Issue

I would make certain that sakai property caseSensitiveCacheKeys isn't inadvertently set to true in your 2.9.2 test instance.  (I doubt that's it, but it's very much worth looking.)
________________________________
From: sakai-dev-bounces at collab.sakaiproject.org<mailto:sakai-dev-bounces at collab.sakaiproject.org> [sakai-dev-bounces at collab.sakaiproject.org] on behalf of McCarty, Matthew C [McCartM2 at mail.amc.edu]
Sent: Tuesday, August 06, 2013 11:33 AM
To: Sam Ottenhoff
Cc: sakai-dev at collab.sakaiproject.org<mailto:sakai-dev at collab.sakaiproject.org>
Subject: Re: [Building Sakai] Sakai 2.9.2/JLDAP Issue
Bear with me, as I’m a newbie to the backend of Sakai. It looks like the JLDAPDirectoryProvider file.

From: Sam Ottenhoff [mailto:ottenhoff at longsight.com]<mailto:[mailto:ottenhoff at longsight.com]>
Sent: Tuesday, August 06, 2013 10:57 AM
To: McCarty, Matthew C
Cc: Steve Swinsburg; sakai-dev at collab.sakaiproject.org<mailto:sakai-dev at collab.sakaiproject.org>
Subject: Re: [Building Sakai] Sakai 2.9.2/JLDAP Issue

And what code does that correspond to in your custom JLDAP source?

On Tue, Aug 6, 2013 at 10:56 AM, McCarty, Matthew C <McCartM2 at mail.amc.edu<mailto:McCartM2 at mail.amc.edu>> wrote:
I do, it’s the same as before.  RuntimeException during search eid =username

From: Sam Ottenhoff [mailto:ottenhoff at longsight.com<mailto:ottenhoff at longsight.com>]
Sent: Tuesday, August 06, 2013 10:37 AM
To: McCarty, Matthew C
Cc: Steve Swinsburg; sakai-dev at collab.sakaiproject.org<mailto:sakai-dev at collab.sakaiproject.org>

Subject: Re: [Building Sakai] Sakai 2.9.2/JLDAP Issue


Sam, I tried to merge those patches in, and it did not solve my issue.


Okay, do you still get a stacktrace in your catalina.out after restarting and testing again?  What code does the stacktrace correspond to?
________________________________

CONFIDENTIALITY NOTICE: This email and any attachments may contain confidential information that is protected by law and is for the sole use of the individuals or entities to which it is addressed. If you are not the intended recipient, please notify the sender by replying to this email and destroying all copies of the communication and attachments. Further use, disclosure, copying, distribution of, or reliance upon the contents of this email and attachments is strictly prohibited. To contact Albany Medical Center, or for a copy of our privacy practices, please visit us on the Internet at www.amc.edu<http://www.amc.edu>.

________________________________

CONFIDENTIALITY NOTICE: This email and any attachments may contain confidential information that is protected by law and is for the sole use of the individuals or entities to which it is addressed. If you are not the intended recipient, please notify the sender by replying to this email and destroying all copies of the communication and attachments. Further use, disclosure, copying, distribution of, or reliance upon the contents of this email and attachments is strictly prohibited. To contact Albany Medical Center, or for a copy of our privacy practices, please visit us on the Internet at www.amc.edu<http://www.amc.edu>.

________________________________

CONFIDENTIALITY NOTICE: This email and any attachments may contain confidential information that is protected by law and is for the sole use of the individuals or entities to which it is addressed. If you are not the intended recipient, please notify the sender by replying to this email and destroying all copies of the communication and attachments. Further use, disclosure, copying, distribution of, or reliance upon the contents of this email and attachments is strictly prohibited. To contact Albany Medical Center, or for a copy of our privacy practices, please visit us on the Internet at www.amc.edu.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130806/ed33697e/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 050_SAK-2585_mapLowercaseLdapAttrToUserType.patch
Type: application/octet-stream
Size: 2457 bytes
Desc: 050_SAK-2585_mapLowercaseLdapAttrToUserType.patch
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130806/ed33697e/attachment.obj 


More information about the sakai-dev mailing list