|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Filter Question - Wildcard search in memberOf
Hello All
I'm stuck with a filter search problem. I need to be able to write a simple LDAP filter that will search through groups on wildcard match? For instance, if the group has 'VPN' in the dn, I'll want to get that user? Basically, I want to do something like: Code:
(memberOf=cn=*VPN*) This obviously doesn't work. I'm guessing since it's not a really a string like cn=bob*. Any ideas? Thanks! hanji
__________________
>> DevSnips.com -- my programming blog >> Uno-Code.com -- my server adminstration blog |
|
#2
|
||||
|
||||
|
to use * in your filter, that field must be indexed, by default I don't think memberOf is, if you can index it then it should work fine.
__________________
Miscellaneous Software Viper_SB Developershed E-Support Anyone else play chess? Challenge me Challenge me |
|
#3
|
|||
|
|||
|
Quote:
So indexing memberOf is possible? I'll start looking on the procedure. Thanks! hanji |
|
#4
|
||||
|
||||
|
are you using Active directory? if so I have no idea how to do it there, but in Open LDAP yes you can index it
|
|
#5
|
|||
|
|||
|
$filter="cn=VPN*";
USE THIS CODE IT WOULD SURELY WORK |
|
#6
|
|||
|
|||
|
Quote:
Hello Thanks for the reply. This does not work. This will return the group containers.. but I need to know the members that are members of these groups. We're going to be working on indexing memberOf on the test AD server this week.. hopefully. Thanks! hanji |
![]() |
| Viewing: Dev Shed Forums > Databases > LDAP Programming > Filter Question - Wildcard search in memberOf |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|