Alex, I assume you need the following condition
objectClass= zzlwsnobjlwsnRMRole And attribute "zzlwsnobjlwsnRMRole" is set The filter for this particular case would be "(&(objectClass= zzlwsnobjlwsnRMRole)(zzlwsnobjlwsnRMRole=*))" Regards, Yash -----Original Message----- From: Wolff, Alex [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 30, 2008 7:45 AM To: perl-ldap@perl.org Subject: LDAP Filters Hello, I need to query ldap for specific enries. I am looking for help in creating the filter string. the query should only return entries when attributes: objectclass=zzlwsnobjlwsnRMRole and zzlwsnobjlwsnRMRole<> null. I figured out the first part but I do not understand how to include the 'and' portion. this is what I have now: filter => '(objectClass=zzlwsnobjlwsnRMRole)' Any help is appreciated.