I'm confused. LDAP doesn't really have the concept of domains as such. It's just a directory of entries. If multiple domains (ie - web servers) are utilizing the same LDAP directory/server,
all the entries will be available to
all domains. And, obviously, if there's one LDAP directory per domain, then you would need to access the correct directory as your
parameter.
Or do you mean you have your domains set up as
o's or
ou's?
We have some of our domains set up as our
o's, and I can log onto the server as
Code:
<CFLDAP username="uid=adminaccount,o=domainname.com" ...>
and the connection only has access to entries in that domain.
If you have domains set up as groups or
ou's, well, that would have to be part of the parameters in your call...
Code:
<cfldap action="MODIFY" DN="cn=groupname,ou=subsite,o=domainname.com" ...>
<cfldap action="QUERY" scope="SUBTREE" start="ou=subsite,o=mentor.com" ...>
It just all depends on the structure of your LDAP directory and what you've defined as an
o or
ou.
Maybe if you state the command you'd enter at the LDAP console to get the same functionality, someone would be able to help translate it to CFLDAP. But as it stands, without having intimate knowledge of how your LDAP is built, it's difficult to help.
Hope it helps,
-Carl