1 Reply Latest reply on Oct 10, 2006 9:20 AM by Newsgroup_User

    Need help on LDAP

    cfm_101
      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
        • 1. Re: Need help on LDAP
          Level 7
          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"
          >