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

Need help on LDAP

New Here ,
Oct 10, 2006 Oct 10, 2006

Copy link to clipboard

Copied

Does anyone know why these two queries would not return any record?....

<cfldap
username="#UserID#"
port="#portNo#"
password="#UserPwd#"
SERVER="#MailServer#"
ACTION="QUERY"
name="results"
START="DC=doti,DC=com"
attributes="givename, mail"
filter="(&(MemberOf=MANAGERS_GROUP))"
scope="SUBTREE"
rebind ="Yes"
>

<cfldap
username="#UserID#"
port="#portNo#"
password="#UserPwd#"
SERVER="#MailServer#"
ACTION="QUERY"
name="results3"
START="DC=doti,DC=com"
attributes="givename, mail"
filter="(&(Category=Group)(Member=MANAGERS_GROUP))"
scope="SUBTREE"
rebind ="Yes"
>

What I want to get is all the users under "MANAGERS_GROUP" in exchange server.

Thanks
TOPICS
Advanced techniques

Views

212

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 ,
Oct 10, 2006 Oct 10, 2006

Copy link to clipboard

Copied

LATEST
Many possible reasons!

1) Username and password do not validate user or user does not have
permission to this level of the LDAP directory.

2) Server is not an LDAP server

3) You need to use the fully qualified CN of the Managers_Group. Such
as this for an application I recent developed.
filter="(&(!(mail=*))(!(MemberOf=CN=All Mail Users EX,OU=Security
Groups,OU=Groups,OU=BloodSource,DC=smfbc,DC=org)))"


<cfldap
username="#UserID#"
port="#portNo#"
password="#UserPwd#"
SERVER="#MailServer#"
ACTION="QUERY"
name="results"
START="DC=doti,DC=com"
attributes="givename, mail"
filter="(&(MemberOf=MANAGERS_GROUP))"
scope="SUBTREE"
rebind ="Yes"
>

<cfldap
username="#UserID#"
port="#portNo#"
password="#UserPwd#"
SERVER="#MailServer#"
ACTION="QUERY"
name="results3"
START="DC=doti,DC=com"
attributes="givename, mail"
filter="(&(Category=Group)(Member=MANAGERS_GROUP))"
scope="SUBTREE"
rebind ="Yes"
>

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