Skip to Content.
Sympa Menu

grouper-users - [grouper-users] How to get all LDAP subjects from AD

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] How to get all LDAP subjects from AD


Chronological Thread 
  • From: Gagné Sébastien <>
  • To: <>
  • Subject: [grouper-users] How to get all LDAP subjects from AD
  • Date: Mon, 17 Sep 2012 15:36:25 -0400

Hi,

I’m trying to get all the subject from my LDAP source to warm up a cache to avoid calling the LDAP multiple thousand times.

 

So far I’ve tried :

1- Set<Subject> allSubjects =  SourceManager.getInstance().getSource("ldap").search(filter);

2- SearchPageResult spr =  SourceManager.getInstance().getSource("ldap").searchPage(filter);

3- Set<Subject> allSubjects  = SubjectFinder.findAll(filter, "ldap")

 

With filters that returned nothing :

-"*"

-"\\*"

-"\\\\*"

- ""

 

And some that returned part of the subjects

-" "   (a space)

-"p"

 

My search filter in sources.xml is "(&amp; (|(displayName=*%TERM%*) (sAMAccountName=*%TERM%*))  (objectclass=person))"

 

Filters “space” and “p” should return almost everybody (all our display name should have a space in them and all our student IDs start with “p”), but I only get 988 or 991 Subjects. Using these filters in our AD console returns more than 10 000 results for each of them. Looking at the LdapSourceAdapter code I should get a full unpaged result for 1 and 3, but I don’t, I get the same amount of subjets when using the paged result.

 

Did anyone do something similar ? How do you suggest I do it ?

 

Thank you

 

 

Sébastien Gagné,     | Analyste en informatique

514-343-6111 x33844  | Université de Montréal,

                     | Pavillon Roger-Gaudry, local X-100-11

 



  • [grouper-users] How to get all LDAP subjects from AD, Gagné Sébastien, 09/17/2012

Archive powered by MHonArc 2.6.16.

Top of Page