Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Wild cards in LDAP filters fail for AD esp *
Dist,

While working with Net::LDAP and AD I noticed that wild card 

filter

 ((objectclass=user)(l=yokohama)(deptment
=marketing)(c=jp)(!(memberOF:
CN=JAP_EMP_Mktg_SEC,OU=Users&Groups,OU=JAP,DC=ALNIPPOE,DC=com)))

returns me right results

how ever below filter fails

 ((objectclass=user)(l=yokohama)(deptment
=marketing)(c=jp)(!(memberOF:
*JAP_EMP_Mktg*)))

Fails 

The wild cards work well with other directories , except for Active
Directory , have others noticed this?

Yash Vartak
System Engineer 
Neptune Orient Lines Ltd 
Company Registration Number: 196800632D 
Direct Tel: (65) 6371 4483 
Fax: (65) 6371 6161
e-mail: Yash_Vartak@apl.com 
Website: http://www.nol.com.sg <http://www.nol.com.sg>  

This message is intended for the recipient(s) named above.  It may
contain confidential or privileged information.  If you are not the
intended recipient, please notify the sender immediately by replying to
this message and then delete it from your system.  Do not copy, use or
circulate this communication.  Thank you.

 



Report this thread to moderator Post Follow-up to this message
Old Post
Vartak, Yash V
05-08-08 03:36 AM


Re: Wild cards in LDAP filters fail for AD esp *
Vartak, Yash V a écrit :
> Dist,
>
> While working with Net::LDAP and AD I noticed that wild card
>
> filter
>
>  ((objectclass=user)(l=yokohama)(deptment
=marketing)(c=jp)(!(memberOF:
> CN=JAP_EMP_Mktg_SEC,OU=Users&Groups,OU=JAP,DC=ALNIPPOE,DC=com)))
>
> returns me right results
>
> how ever below filter fails
>
>  ((objectclass=user)(l=yokohama)(deptment
=marketing)(c=jp)(!(memberOF:
> *JAP_EMP_Mktg*)))
>
> Fails
>
> The wild cards work well with other directories , except for Active
> Directory , have others noticed this?
>

Filter rules are schema dependent. To use wildcard, you shoud have a
substring matching rule for your attribute. Maybe Active Directory does
not have it on 'memberOf'.

--
Clément OUDOT
http://coudot.blogs.linagora.com/

Report this thread to moderator Post Follow-up to this message
Old Post
Clément OUDOT
05-08-08 10:35 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

LDAP archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 10:31 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.