mellin has asked for the wisdom of the Perl Monks concerning the following question:
I have a strange behaviour of applied filter on my program. It uses Net::LDAP to fetch object information from Microsoft Active Directory. Group and Computer objects can have "managedBy" attribute set on them, this attribute, if set, uses object distinguished name (DN) as its syntax. When i try to search all computer objects with managedBy attribute against string *Administrator*, i don't get any returned objects, altough i can verify otherwise that this user is found on managedBy attribute on several computer objects. Same thing when trying to search group objects where Administrator is found in managedBy
Note that i use wildcards, as they are supported on LDAP filters, far as i know. I'm also using user Administrator just as an example here. If i replace *Administrator* string with the complete user DN, i get the expected results, but i'm aiming to simplify things here.
Administrator DN:
CN=Administrator,CN=Users,DC=domain,DC=ad,DC=localApplied filter:
(&(objectClass=computer)(managedBy=*Administrator*))
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::LDAP problem with wildcard on applied filter
by g0n (Priest) on Feb 10, 2006 at 09:55 UTC | |
by mellin (Scribe) on Feb 10, 2006 at 10:01 UTC | |
by mellin (Scribe) on Feb 10, 2006 at 13:58 UTC |