Skip to Content.
Sympa Menu

grouper-users - [grouper-users] RE: LDAP Loader and AD ranged attributes

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] RE: LDAP Loader and AD ranged attributes


Chronological Thread 
  • From: "Hyzer, Chris" <>
  • To: "Redman, Chad Eric" <>, grouper-users <>
  • Subject: [grouper-users] RE: LDAP Loader and AD ranged attributes
  • Date: Tue, 24 Jan 2017 21:05:56 +0000
  • Accept-language: en-US
  • Authentication-results: spf=none (sender IP is ) ;
  • Ironport-phdr: 9a23:kRV0eB25v29WRWgysmDT+DRfVm0co7zxezQtwd8ZsesWKvjxwZ3uMQTl6Ol3ixeRBMOAuq4C1rOd6vy8EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQtFiT6ybL9oLBi6sArdutQZjIZtN6081gbHrnxUdupM2GhmP0iTnxHy5sex+J5s7SFdsO8/+sBDTKv3Yb02QaRXAzo6PW814tbrtQTYQguU+nQcSGQWnQFWDAXD8Rr3Q43+sir+tup6xSmaIcj7Rq06VDi+86tmTgLjhTwZPDAl7m7Yls1wjLpaoB2/oRx/35XUa5yROPZnY6/RYc8WSW9HU81MVSJOH5m8YpMPAeQfIOhYs4fzqVgArRS8BAmjGOzgxyRSiXPqwaE3yfgtHR3Y0AEmAtkAsG7UrNLwNKoKX+y7zqnJzDTdYPNMwTv29ZbFchA7ofGNRrJ8f9faxE4qFwzZjlWRqY3kMC2P1ukWsmib9PZvWfiyi24/tQ5xpD6vyt0yhYbUm4IY01bJ/jh3zoYyIN23Uk97Ydi8HZtfsCGaMIR2Qsc8TG1ypCk6zbgGtJimdyYJ0JQq3wDTZOabf4SV5x/vSfudLSp9iXJrd7+zmwq+/E2ix+LiWcS7ylNHoy9bntXQt30BzwHf58abRvdn+kqtxCyD2x7O5uxAO0w4iKjWJp8nz7UtjJQcq17DETXzmEjujK+ZaEEk+u+w5ur/frjooYOQOoFthgzjMKsihNWzAeMjPQcQRWSb/vm81KH48k3+XbVKiOA5nrPBsJDAIsQburC2DBNJ0oYi7Ba/CS2q0NMFnXkbKFJFfxWHj4vzN17SJ/D4CO+zg1WqkDh12/DLJqPtDY/RInTelbrtYKtx51NZxQo9wt1T+45YB7QDLf3tVUL+rtnVAxonPwCowuvrENB92ZkfWWKLDK+ZKqTSsVqQ6+IqP+aMZI8UuTfjJPg//PPujGQ5lkMHcam0xZsYdna4HvJ8L0qHfHXsn88NEX0WsQomUOzqlFqCXCZcZ3aoWKI8+yk7B5y8DYvaW4Ctm6KO3D2gHpBNYmBGC0uMEWvzd4maQfsMaSSSItN/nTweU7iuVZMh2Q+0uADk1rVnM7mcxipN/6ju2N184ambvhE7+XRZFcWWmSnZRGF9klQSSjMz1aZXvEp2jFqPzP48y/NCEsFL6ukMTxw3L4WUm+NgDM3qVxiEY8yEUk2OQ9O6DCs3Q85rhdICfhAuNc+li0WJ/zu4DqVR35eLHp0vuOqI2nPxNtRw0V7Hz6JnkkErRM0JOGG70P0svzPPDpLExh3K352hcr4RiWuUrD+O
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

Yes please for pull request

 

From: [mailto:] On Behalf Of Redman, Chad Eric
Sent: Tuesday, January 24, 2017 3:34 PM
To: grouper-users <>
Subject: [grouper-users] LDAP Loader and AD ranged attributes

 

Hi,

 

We have some LDAP loader jobs that query AD for subjects. An issue we found when going to production was that our AD source returns a ranged attribute for a membership fields when there are over 1500 members. What this means is that the attribute returned from the query is not "member" but "member;range=0-1499". The client is then expected to do further queries to get the rest of the members, e.g. "member;range=1500-*" and so on.

 

The closest mention I could find for this problem was a 2009 post mentioning a custom result handler for LDAPPC that could handle ranged results. We applied a similar solution to the LDAP Loader. We created a custom RangeSearchResultHandler class (based on the one from https://code.google.com/archive/p/vt-middleware/wikis/vtldapAD.wiki#Range_Attributes) to handle the non-standard attribute label and the loop to get the results. The vt-ldap config has an option (searchResultHandlers) for a multi-valued list of search result handler classes. However, we needed to patch the Grouper code so that it could handle a new ldap.*.searchResultHandlers property in the grouper-loader.properties file and pass it on the LDAP config.

 

Has anyone come across the same issue in getting large result sets from AD? Has this already been solved? I tried the other recommended methods of setting pagedResultsSize, referral, and/or batchSize, with no success. From a debug session, it looks like they all fail to account for "member;range=0-1499" really being the member field.

 

I can put a pull request together, if this is something useful outside of our own installation.

 

-Chad

 




Archive powered by MHonArc 2.6.19.

Top of Page