Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / March 2008



Tip: Looking for answers? Try searching our database.

LDAP returns an error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ravigehlot - 25 Mar 2008 19:19 GMT
I need someone to shed a light here...I have to retrieve all the members from a
LDAP directory using coldfusion. But I keep getting a 503 error message that
says: Request timed out waiting to execute. I can browse the LDAP directory
using a third-party software so it is working fine. I am on CF8.

Code:

<!--- This starts this script as an application --->
<cfapplication name="myapp" sessionmanagement="Yes"
sessiontimeout="#CreateTimeSpan(0,0,0,1)#" />

<!--- This tag retrieves all the object classes from the ldap directory--->
<cfldap server="127.0.0.1"
        port="1003"
        action="query"
        name="results"
        start="o=CompuSport"
        scope="subtree"
        filter="(objectclass=organizationalUnit)"
        attributes="ou"
        maxrows="1" />

<cfdump var="#results#">
Oguz.Demirkapi - 25 Mar 2008 19:22 GMT
I am not sure but as I remember error 503 is about LDAP authorization/authentication problems. You can check your credentials.
ravigehlot - 25 Mar 2008 20:05 GMT
I am not sure what the problem is but there is no username or password. I have tried Anonymous but no luck whatsoever and try and catch isn't giving me any valueble information. I am clueless.
Oguz.Demirkapi - 25 Mar 2008 20:24 GMT
I also do not know what would be the way of tracking the problem. But I feel
that you first need to learn your LDAP features before starting CF part.

Here are some resources that may give some ideas:

Using LDAP with ColdFusion
http://livedocs.adobe.com/coldfusion/8/htmldocs/LDAP_04.html

Integrating ColdFusion Applications with Microsoft Active Directory

http://www.adobe.com/devnet/server_archive/articles/integrating_cf_apps_w_ms_act
ive_directory.html

I hope these helps.
Ian Skinner - 25 Mar 2008 20:32 GMT
> I also do not know what would be the way of tracking the problem. But I feel
> that you first need to learn your LDAP features before starting CF part.
[quoted text clipped - 10 lines]
>
>  I hope these helps.

As well as those ColdFusion LDAP resource, a general and free LDAP
browser can be had from Softerra, which I find invaluable to exploring
and creating LDAP structure and queries.

http://www.ldapbrowser.com/
Oguz.Demirkapi - 25 Mar 2008 21:01 GMT
Ian, a great tool!  Thanks! :)
ravigehlot - 25 Mar 2008 20:52 GMT
We are not using Active Directory.

<!---
Description: Retrieves everything from the LDAP Directory
RG03252008: Created it.
--->

<!--- This starts this script as an application --->
<cfldap
 server="localhost"
 port="1003"
 action="query"
 name="results"
 start="o=CompuSport"
 scope="onelevel"
 attributes="dn"
 sort="ou"
 maxrows="10"
 timeout="20">

<table border="0" cellspacing=2 cellpadding=2>
<cfoutput query="results">
<tr>
    <td>#dn#<br></td>
</tr>
</cfoutput>
</table>
Oguz.Demirkapi - 25 Mar 2008 21:02 GMT
Ravi, you can first try this LDAP Administrator to connect your local LDAP server.

I think if you can connect to "your" LDAP server with any tool like that, it may give some more ideas.
ravigehlot - 25 Mar 2008 21:04 GMT
I use LDAP Administrator and it lets me connect to it Anonymously. I read the
articles your sent me and in them it says that by default all anonymous
connections are blocked. The question..how do I add an user/password then?
Oguz.Demirkapi - 25 Mar 2008 21:12 GMT
If there is no username is specified, the LDAP connection will be already anonymous.
travel-guy - 30 Mar 2008 00:07 GMT
Hey Ian thanks for that tool link. It's exactly something i've been desperate to find :)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.