Hi guys. Having a minor problem accessing the active directory using
LDAP. I can connect ok and I can even get the info I need. Problem is
because our directory is broken up and divided into many containers such
as for each division and each section within a division.
For instance, Im in accounting and within accounting im in taxes. And I
have a container for accounting and within that container I have 4 more
containers for each section one of which is taxes. Well right now I need
my LDAP query to go all the way into both accounting and taxes to find
me. Whereas I need it to be able to look in all the containers in
accounting so anyone in accounting can log in.
<cftry>
<cfldap action="query"
name="auth"
start="cn=Scott Dowling, ou=users, ou=Taxes,
ou=Accounting, dc=oag, dc=com"
attributes="userPrincipalName"
server="MyServer.Mine.gov"
username="Scott Dowling"
password="MyPass"
scope="subtree">
<cfoutput> #Auth.Recordcount# </cfoutput>
See in the above query I need to drill down right to my name in the
containers to get a recordcount of 1(meaning a match) If I try to go and
look into just the accounting container it wont find me. How do I get it
to search all the containers in our dc and look for a match? Thanks!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4