Try this
cfldap action="query" 
name="auth" 
start="cn=Scott Dowling, ou=users, ou=Taxes,ou=Accounting, dc=oag, dc=com" 
attributes="dn, cn" 
server="MyServer.Mine.gov" 
scope="subtree">

this is what I use to return all the users in our sub directory (we then have other 
containers to drill through, I am just starting higher up in the tree)

<CFLDAP NAME="GetSubEntries"
        ACTION="Query"
        SERVER="xxx.xxx.xxx.xxx"
        ATTRIBUTES="ou, givenname, sn, loginDisabled, telephoneNUMBER"
        SCOPE="SUBTREE"
        SORT = "#VARIABLES.SORTT#"
        SORTCONTROL="ASC"
        START="ou=surg,ou=com,ou=campus,o=osu_mc">



>>> [EMAIL PROTECTED] 02/12/03 03:13PM >>>
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
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to