| Welcome to the Zimbra :: Forums! | |
Welcome, if you would like to post a comment please register.
We also encourage you to explore all things Zimbra with our team and members of the community.
|  | 
11-20-2008, 09:14 AM
| | | [SOLVED] Can I (really) authenticate .htaccess with ldap? I am using mod_authnz_ldap on an apache web server trying to authenticate with zimbra's LDAP I have read all the post and wiki's what am I doing wrong. when I enter my crendentials in the prompt I get the error below user id not configured. I turned ldap logging on and it doesn't log anything (like no attempt is being made).
AuthType Basic
AuthName Internal
AuthBasicProvider ldap
AuthLDAPURL ldap://75.XXX.XXX.XXX/ou=people,dc=midchurch,dc=com
require valid-user
error_log
[Wed Nov 19 11:07:35 2008] [error] [client 12.196.129.66] access to /members failed, reason: verification of user id 'goldie113' not configured | 
11-20-2008, 11:39 AM
| | Zimbra Employee | |
Posts: 580
| | What does the LDAP log show? You don't really give much detail in the way of configuration, so there's really not much feedback I can give, except that it probably should work if configured correctly.
__________________
Quanah Gibson-Mount
Sr. Member of Technical Staff
Zimbra, Inc
A Division of VMware, Inc.
--------------------
Zimbra :: the leader in open source messaging and collaboration
| 
11-20-2008, 12:37 PM
| | | Quote:
Originally Posted by quanah What does the LDAP log show? You don't really give much detail in the way of configuration, so there's really not much feedback I can give, except that it probably should work if configured correctly. |
the LDAP log doesn't show anything that's the problem it seems there is no attempt to authenticate to the LDAP. I can access the LDAP with LDAP admin so what is keeping me from getting to it? It is not a firewall issue for they (web and mail server) are on the private side of any firewall. What configuration info will you need?
Should there be entries made in the httpd.conf file? pertaining to allow/deny/override things along those lines?
Last edited by goldie113; 11-20-2008 at 12:45 PM..
| 
11-20-2008, 12:47 PM
| | Zimbra Employee | |
Posts: 580
| | Quote:
Originally Posted by goldie113 AuthLDAPURL ldap://75.XXX.XXX.XXX/ou=people,dc=midchurch,dc=com | This doesn't look quite right, actually. Have you read the page on how this is formed? authldapurl doc
I would guess it should be something more like: Code: AuthLDAPURL ldap://75.XXX.XXX.XXX:389/ou=people,dc=midchurch,dc=com?uid?sub?(objectClass=zimbraAccount)
__________________
Quanah Gibson-Mount
Sr. Member of Technical Staff
Zimbra, Inc
A Division of VMware, Inc.
--------------------
Zimbra :: the leader in open source messaging and collaboration
| 
11-21-2008, 08:36 AM
| | | I have tried that line and just about every different form with every different attribute on that line, It acts as though it doesn't know to access that LDAP | 
11-21-2008, 08:56 AM
| | Advanced Member | |
Posts: 213
| | Here is what seems to work for me.... you will have to test whether you need an actual account to login/bind with, or if anonymous bind is ok... I disremember, it has been awhile since I did this
AuthType Basic
Authname "Trac Login"
AuthBasicProvider "ldap"
AuthLDAPURL "ldap://10.0.0.5/ou=people,dc=OUR_DOMAIN,dc=com?uid?sub?(objectClas s=organizationalPerson)"
AuthLDAPBindDN uid=USERNAME,ou=people,dc=OUR_DOMAIN,dc=com
AuthLDAPBindPassword PASSWORDHERE
authzldapauthoritative Off
require valid-user
</Location>
Last edited by gnyce; 11-21-2008 at 09:01 AM..
Reason: fixed typo, missing ( and a space in the last s of objectClass
| 
11-21-2008, 09:01 AM
| | Advanced Member | |
Posts: 213
| | not sure why, but it is displaying a space in objectClas s... should be objectClass | 
11-24-2008, 06:17 AM
| | | gnyce Thanks so much your .htaccess also works for me! You have taken such a monkey off my back! | 
11-24-2008, 09:06 AM
| | Trained Alumni | |
Posts: 108
| | Quote:
Originally Posted by gnyce Here is what seems to work for me.... you will have to test whether you need an actual account to login/bind with, or if anonymous bind is ok... I disremember, it has been awhile since I did this
</Location> | Is there any way to also filter the approved users via LDAP?
Maybe something like "and is also a member of staff@example.org distribution list" ?
I played with this awhile ago using ldapsearch tool but couldn't figure it out. Here's what I had, but it's not correct: Code: ldapsearch -LLL -x -h zldap.example.org -D cn=config -w password -b '' '(&(zimbraMailForwardingAddress=$USERNAME@$DOMAIN)(zimbraMailAlias=staff@example.org)(objectClass=zimbraDistributionList)(zimbraMailStatus=enabled))' | | Thread Tools | Search this Thread | | | | | Display Modes | Linear Mode | | Why Join? Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.  |