Results 1 to 6 of 6

Thread: Stuck while trying to use ZCS LDAP for external authentication

  1. #1
    Join Date
    Jun 2006
    Posts
    8
    Rep Power
    9

    Default Stuck while trying to use ZCS LDAP for external authentication

    Hi,

    First off, I'm an OpenLDAP newbie. I'm test-running zimbra 3.1.4 on FC4. Zimbra itself is running nicely. Having said that I tried using the following link - http://wiki.zimbra.com/index.php?title=LDAP_Apache.
    I was successful in applying having .htaccess authentication against my ZCS Directory

    So, excited with the initial success, I tried my hand at another webapp (using php_ldap) that has the provision of authentication against an LDAP server.

    This app is asking for the following fields:

    1. LDAP Host (this is in my case meghnad.wbut.ac.in)
    2. LDAP Port (default=389)
    3. Basedn
    4. rootdn (for non anonymous binds)
    5. Pass (for non-anonymous binds)
    5. Connection filter
    6. Login Field
    7. Use TLS

    in case of the .htaccess file (incidentally) I had simply specified the AuthLDAPURL as ldap://meghnad.wbut.ac.in/dc=wbut,dc=ac,dc=in
    and that had worked.

    I'n the other case, my trails have led me to errors like "invalid credentials" and "too many users found". What am I missing here???

    -indra

  2. #2
    Join Date
    Jun 2006
    Posts
    8
    Rep Power
    9

    Default Issue closed!

    err... the solution was amazing simple! all I needed to do was to point to the host, the basedn *and* the "Login Field" parameter as "uid" and it worked!!

  3. #3
    Join Date
    Nov 2005
    Posts
    108
    Rep Power
    10

    Default

    I'm having problems with apache authentication with ldap myself...

    So what did your .htaccess file end up looking like?

  4. #4
    Join Date
    Jun 2006
    Posts
    8
    Rep Power
    9

    Default

    hi,
    Quote Originally Posted by jimbo
    So what did your .htaccess file end up looking like?
    my .htaccess looks like -
    Code:
       
    AuthType Basic
    AuthName DDInternal
    AuthLDAPURL ldap://meghnad.wbut.ac.in/dc=wbut,dc=ac,dc=in
    require valid-user
    In my installation the Zimbra was originally installed with the domain "meghnad.wbut.ac.in" which is really the MX for the domain wbut.ac.in, I added "wbut.ac.in as the second domain and then set as the default.

    FWIW, the .htaccess file is deployed on another server (http://phpmyadmin.wbut.ac.in ) where I needed to restrict the Login Screen access to my phpmyadmin installation.

  5. #5
    Join Date
    Nov 2005
    Posts
    108
    Rep Power
    10

    Smile

    indradg,

    Thank you! I modified my AuthLDAPURL string to be:
    Code:
    AuthLDAPURL ldap://mail.example.com/dc=example,dc=com
    and it worked!

    Thank you so much... have been scratching my head on this one for a while.

    jimbo

  6. #6
    Join Date
    Apr 2006
    Location
    Williamsburg, VA
    Posts
    451
    Rep Power
    9

    Default

    Quote Originally Posted by jimbo
    indradg,

    Thank you! I modified my AuthLDAPURL string to be:
    Code:
    AuthLDAPURL ldap://mail.example.com/dc=example,dc=com
    and it worked!

    Thank you so much... have been scratching my head on this one for a while.

    jimbo
    Anyway to search multiple domains at one time?

Similar Threads

  1. Trouble Sending mail - All Messages deferred!
    By SiteDiscovery in forum Administrators
    Replies: 7
    Last Post: 09-03-2009, 05:52 AM
  2. Zimbra Install Problem - getDirectContext
    By bsimzer in forum Installation
    Replies: 27
    Last Post: 07-19-2007, 11:12 AM
  3. 3 testing: LDAP: 389 Failed when restore zimbra
    By victorLeong in forum Administrators
    Replies: 15
    Last Post: 05-24-2007, 07:45 AM
  4. Authentication to external ldap stop working.
    By jahaj in forum Installation
    Replies: 3
    Last Post: 12-05-2006, 03:17 PM
  5. ZCS 3.2 Beta Available
    By KevinH in forum Announcements
    Replies: 31
    Last Post: 07-07-2006, 04:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •