• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

LDAP returns an error

Guest
Mar 25, 2008 Mar 25, 2008

Copy link to clipboard

Copied

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#">
TOPICS
Advanced techniques

Views

830

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 25, 2008 Mar 25, 2008

Copy link to clipboard

Copied

I am not sure but as I remember error 503 is about LDAP authorization/authentication problems. You can check your credentials.


Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Mar 25, 2008 Mar 25, 2008

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 25, 2008 Mar 25, 2008

Copy link to clipboard

Copied

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

I hope these helps.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Mar 25, 2008 Mar 25, 2008

Copy link to clipboard

Copied

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>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 25, 2008 Mar 25, 2008

Copy link to clipboard

Copied

Oguz.Demirkapi wrote:
> 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.
>

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/

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 25, 2008 Mar 25, 2008

Copy link to clipboard

Copied

Ian, a great tool! Thanks! 🙂

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 25, 2008 Mar 25, 2008

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Mar 25, 2008 Mar 25, 2008

Copy link to clipboard

Copied

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 25, 2008 Mar 25, 2008

Copy link to clipboard

Copied

If there is no username is specified, the LDAP connection will be already anonymous.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 29, 2008 Mar 29, 2008

Copy link to clipboard

Copied

LATEST
Hey Ian thanks for that tool link. It's exactly something i've been desperate to find 🙂

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation