|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi, I'm trying to make a filter that list out all students which are member of a given group:
base = "ou=student,ou=person,o=shcool" filter = "(groupMembership=group1)" The problem is that groupMembership is a multivalue (consists of an array) Example student: cn=username l=here groupMembership = group1, group2, group3 I am able to get all students which is a member of any groups with (groupMembership=*) but when I try to narrow the search I'm not getting any students. Anyone done something like this before? Thanks... ![]() |
|
#2
|
||||
|
||||
|
Is the field groupMembership indexed? If it's not indexed I don't think it'll return what you want. But once indexed then yes your query should work fine.
__________________
Miscellaneous Software Viper_SB Developershed E-Support Anyone else play chess? Challenge me |
|
#3
|
|||
|
|||
|
Tanks. I actually tried to search for group*, to get all the groups starting with certain characters, this did for some reason not work. But when I tried with the whole group name it did. Maybe it has something to do with the indexing.
Well, I got it working at last. Thanks for the help anyways. |
|
#4
|
||||
|
||||
|
What do you have the field indexed as? If I remember right, different types of indexs allow different types of searches. If you want to search on group* you have to set the index as one thing, otherwise you have to search the full thing.
|
|
#5
|
|||
|
|||
|
Frankly I don't know. It's an off site server, and my LDAP skills are a bit limited. I'm just happy I got it working, so now I can complete the integration to the system I'm making.
Thanks again for your help. ![]() |
![]() |
| Viewing: Dev Shed Forums > Databases > LDAP Programming > Search filter. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|