--On Tuesday, April 04, 2006 10:11 AM +1000 Dave Horsfall <[EMAIL PROTECTED]> wrote:
Funny, I thought I was subscribed; I thought it had gone quiet lately... This is actually OpenLDAP 2.3.20, but I suspect it's a general question. Can the DN be used in a filter, like any attribute? In other words, something like "(dn=dc=au*)"? Yes, I know there's a better way to do that particular search, but I'm asking whether "dn:" can be treated like an attribute; my tests so far suggest that it cannot. Here's an actual example: % ldapsearch -LLL -b "dc=coreng,dc=com,dc=au" -H "ldap://ldap.ci.com.au" \ "(&(objectclass=posixaccount)(dn=dc=coreng,dc=com,dc=au))" uid
In OpenLDAP, you can use the generalized matching rules in filters to do what you want to accomplish. See the "slapcat" man page for an example.
--Quanah -- Quanah Gibson-Mount Principal Software Developer ITS/Shared Application Services Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html --- You are currently subscribed to [email protected] as: [EMAIL PROTECTED] To unsubscribe send email to [EMAIL PROTECTED] with the word UNSUBSCRIBE as the SUBJECT of the message.
