Hallvard B Furuseth wrote:
kalyanasundaram S writes:
The following both are same? or else i have to make it reverse.

ldap_search(ld, 'ou=A,ou=B,ou=C,ou=D,cn=obj', LDAP_SCOPE_BASE,
'objectclass=*', NULL, 0)

LDAP DNs are written with the root to the right.  So I don't suppose
that's the one you want.

Sorry to be so sloppy. It was late and fermented beverages were involved.

- LDAP uses '(objectClass=*)' as the "match everything" filter since
  every object has an objectClass attribute.  That's not quite right
  though, since access controls in the server can prevent search access
  to the objectClass attribute.  So an extension exists where you can
  use '(&)' as a "true" filter.  You can use that if both server and
  library supports it, and do not worry about moving to some other
  implementation which doesn't support it.

Good point.

BTW, I'm wondering which language this is.  Looks like C, but
C uses double quotes for strings.

It's what a Java programmer does out of habit when he writes some C pseudocode :) It's been a *long* time since I've written anything in C. Thanks for setting me straight.

Jon Roberts
www.mentata.com

---
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.

Reply via email to