grouper-users - [grouper-users] RE: LDAP Loader and AD ranged attributes
Subject: Grouper Users - Open Discussion List
List archive
- From: "Redman, Chad Eric" <>
- To: "Hyzer, Chris" <>, grouper-users <>
- Subject: [grouper-users] RE: LDAP Loader and AD ranged attributes
- Date: Thu, 26 Jan 2017 15:11:41 +0000
- Accept-language: en-US
- Authentication-results: spf=none (sender IP is ) ;
- Ironport-phdr: 9a23:fKh5UxXf/6zV1aIgNqU4NZ3jhIXV8LGtZVwlr6E/grcLSJyIuqrYbRyFt8tkgFKBZ4jH8fUM07OQ6PG8HzFdqsnY+Fk5M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aFRrwLxd6KfroEYDOkcu3y/qy+5rOaAlUmTaxe71/IRG5oAnLtsQbgYRuJ6QsxhDUvnZGZuNayH9yK1mOhRj8/MCw/JBi8yRUpf0s8tNLXLv5caolU7FWFSwqPG8p6sLlsxnDVhaP6WAHUmoKiBpIAhPK4w/8U5zsryb1rOt92C2dPc3rUbA5XCmp4ql3RBP0jioMKjg0+3zVhMNtlqJWuBKvqQJizY7Ibo+bN/R+caHcfdwGSmVMRdxeWzBdDo6mc4cDE/QNMOBFpIf9vVsOqh6+CBGiCO3z1DBHm3r20rc80+g5DArLwgwgEMgTv3/Jo9v1LqYSXvy7wKLVyjjMc/NW1i3g54fQaBAuv+yDXbdqfsrX0kQvCgXFgUmKpYP7IjyVy/0Avm6G5ORuUuKvjnQoqwB3ojW3yccsjY7Jho0Ryl/a7yl23IE1JdigRE58fN6kDJ9QtyadN4t1WM8tX2ZouCM8x7YbupC7ZDAHxIo9yBLDdvCKdpWE7g/+WOuULzd1i25pdK66iha870etxfDwW8yx3VtLsiZKj8HAum0N2hDN8MSLVPVw8l2j1DuMzQze6PxILEYpnqTBMZEh2KQ/lp8LvETDACD2nEL2gbeOeEg4/eak9/nrbqz7q5GEOYJ4kwb+Pb8wlcClBuQ4LxQOUHOc+eSh0r3s4Ff1QK1Qjv0xjqnWrozVJdgapq6+BQ9ZyIEj6wujDzei19QYmnoHIEhZdxKAiojlI1DOIPbmAvejm1mgji1ky+zbMrDkH5nBM2XPnbLvfbty90JQ1A8+zd5B6J9bF70MJff+V07tuNPFFhM5Nha7w+fjCNVzzIMeXmePD7eFP6PSq1CH+/ogI/OSa4AIvTbyMf4l6uXzjX8/hVARZ7em0oYKaHygBPRpP12ZYWbwgtcGCWoKsRA+TOv3iF2aTzFTfW++X78n5j4lEoKmFpzORoSsgLyawCe7BYNaanpHClCKDXfnaZ+EW/ESZyKOPMNtiCILWqW8S9xp6Rb7/i/r2bd9aqL/+jcZrtirgN1+5/zBmAsa9Cd/SdmF3meLCWx4gzVMDzAs271nrFY410yOy7Mw1/NCEsFL6ukMTxw3L4X0zupmBsr0Vx6bONqFVQD1bM+hBGR7dN89xtYIJw5WG9yuxj3Z3iHgS+sel7WHM4Y5/qfV2VDsIc07xnrbgvpyx2I6S9dCYDX1zpV08BLeUtbE
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
Thanks! Your change looks a lot cleaner, and I'll try it out when I can. I'll try how it handles an invalid class name in the field; it should be non-functional either way, but leaving the exception uncaught
may be a harder stop. In the ticket, I wondered if using the property readers directly from vt-ldap would be a better long-term fix, since it would allow all its properties to be set, instead of passing a partial set through Grouper
translations of them. Right after that, I noticed there is an ldap.*.configFileFromClasspath property that can nearly do this already -- it's just the validator that would still need a custom handling. Is this something supported? I didn't see it documented
in the wiki or mentioned on the mailing lists. -Chad From: Hyzer, Chris [mailto:] Thanks for the contribution Chad. I modified it slightly (please review), and put it in patch api 2.3.0 #50 Regards Chris From: []
On Behalf Of Hyzer, Chris Yes please for pull request From: []
On Behalf Of Redman, Chad Eric 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 |
- [grouper-users] LDAP Loader and AD ranged attributes, Redman, Chad Eric, 01/24/2017
- Re: [grouper-users] LDAP Loader and AD ranged attributes, Rob Gorrell, 01/24/2017
- [grouper-users] RE: LDAP Loader and AD ranged attributes, Hyzer, Chris, 01/24/2017
- [grouper-users] RE: LDAP Loader and AD ranged attributes, Hyzer, Chris, 01/26/2017
- [grouper-users] RE: LDAP Loader and AD ranged attributes, Redman, Chad Eric, 01/26/2017
- [grouper-users] RE: LDAP Loader and AD ranged attributes, Redman, Chad Eric, 01/26/2017
- [grouper-users] RE: LDAP Loader and AD ranged attributes, Hyzer, Chris, 01/26/2017
- [grouper-users] RE: LDAP Loader and AD ranged attributes, Redman, Chad Eric, 01/26/2017
- [grouper-users] RE: LDAP Loader and AD ranged attributes, Hyzer, Chris, 01/26/2017
Archive powered by MHonArc 2.6.19.