Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
02-20-2008, 10:17 AM
|
#1
|
|
LQ Newbie
Registered: Jul 2004
Posts: 9
Rep:
|
LDAP binding error with Apache & Subversion
I'm trying to get Apache to authenticate Via LDAP in Active Directory (sigh). I'm getting the following error when someone attempts to commit a change in Subversion using an Eclipse client:
[emerg] [client xxx.xx.xx.xx] cannot bind to [13929] LDAP Server as CN=user name,CN=Users,DC=mydomain,DC=com/password: 49
[Wed Feb 20 10:49:19 2008] [crit] [client xxx.xx.xx.xx] [13929] no ldap connection
I've verified the username and password in Active directory. I have also verified that the combination can log in on the domain.
Any suggestions?
|
|
|
|
02-20-2008, 01:21 PM
|
#2
|
|
Member
Registered: Oct 2007
Location: New York City
Distribution: Gentoo, FC
Posts: 133
Rep:
|
Well this is a very complex problem. There are many things that could be effecting this. Let's start from the top.
1. Is your SVN server joined to the domain and are you able to send and receive tickets, users, and groups?
2. Is you Apache Configured Correctly?
Code:
APACHE2_OPTS="-D SSL -D PHP4 -D DAV -D DAV_FS -D SVN -D DAV_SVN -D LDAP -D AUTH_LDAP"
3. Does your SVN config look something like this?
Code:
<IfDefine SVN>
<Location /svn/repo>
DAV svn
SVNPath /var/svn/repo
AuthType Basic
Options Indexes FollowSymLinks
AllowOverride None
order allow,deny
allow from all
AuthName "Authorize Me"
AuthLDAPURL
ldap://domain.com:389/OU=IT,OU=MainOffice,OU=Locations,OU=Corporate,DC=domainname,DC=com?samAccountName?sub?(objectCategory=person)
AuthLDAPBindDN "CN=webuser,OU=Resources,OU=Corporate,OU=AOM,DC=domain,DC=com"
AuthLDAPBindPassword xxxxxxxxxxx
Require valid-user
</Location>
</IfDefine>
4.Is there any more information in the logs?
-weisso
|
|
|
|
02-20-2008, 01:38 PM
|
#3
|
|
LQ Newbie
Registered: Jul 2004
Posts: 9
Original Poster
Rep:
|
Yes=the system is on the domain and authenticates users against the domain for logins and SMB.
httpd version= 2.0.52
subversion = 1.1-4.2
(I neglected to provide the versions)
I'm configuring this on a RHEL4 system and the subversion configuration is being configured in /etc/httpd/conf.d/subversion.conf.
I reviewed your svn config and noted that there were a few items that I did not have in the configuration file. The URL and a few and the following lines:
Options Indexes FollowSymLinks
AllowOverride None
order allow,deny
allow from all
I'll add those suggestions and try again. As a side note we have another system using the same setup and it works without any problems. (The httpd version is the same, but the Subversion is 1.1-2.1.
Thanks for the quick reply.
|
|
|
|
02-20-2008, 01:49 PM
|
#4
|
|
Member
Registered: Oct 2007
Location: New York City
Distribution: Gentoo, FC
Posts: 133
Rep:
|
can you post your httpd.conf file?
Also do you have a special permission schemes?
Example:
Location "/useraccess">
AuthName "user permissions"
require user larry bill sam
</Location>
|
|
|
|
02-20-2008, 01:56 PM
|
#5
|
|
LQ Newbie
Registered: Jul 2004
Posts: 9
Original Poster
Rep:
|
I don't have the special permission. Here is what I have in the subversion.conf file:
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
#
# Example configuration to enable HTTP access for a directory
# containing Subversion repositories, "/var/www/svn". Each repository
# must be readable and writable by the 'apache' user. Note that if
# SELinux is enabled, the repositories must be labelled with a context
# which httpd can write to; this will happen by default for
# directories created in /var/www. Use "restorecon -R /var/www/svn"
# to label the repositories if upgrading from a previous release.
#
#
# To create a new repository "http://localhost/repos/stuff" using
# this configuration, run as root:
#
# # cd /var/www/svn
# # svnadmin create stuff
# # chown -R apache.apache stuff
#
<Location /svn>
DAV svn
SVNPath /work10/svn
AllowOverride None
order allow,deny
allow from all
# Limit write permission to list of valid users.
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
# Require SSL connection for password protection.
# SSLRequireSSL
AuthType Basic
AuthzLDAPServer domaincntrlrname.mydomain.com
AuthzLDAPBindDN "CN=adldapsvn ,CN=Users,DC=mydomain,DC=com"
AuthzLDAPBindPassword password
AuthzLDAPUserScope subtree
AuthzLDAPUserBase CN=Users,DC=mydomain,DC=com
AuthzLDAPUserKey sAMAccountName
AuthType basic
AuthName "Subversion Repository"
</LimitExcept>
This subversion.conf file is essentially the same (except for the 3 lines added at the left margin at your suggestion) as the config file on the system that works.
|
|
|
|
02-20-2008, 02:10 PM
|
#6
|
|
Member
Registered: Oct 2007
Location: New York City
Distribution: Gentoo, FC
Posts: 133
Rep:
|
Well a fews things:
1. you don't close out Location.
2. let's try an IFDefine.
3. Did you compile httpd with -mpm-worker mpm-prefork?
Try this config:
Code:
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
<IfDefine SVN>
<Location /svn>
DAV svn
SVNPath /work10/svn
AuthType Basic
Options Indexes FollowSymLinks
AllowOverride None
order allow,deny
allow from all
AuthName "Subversion Repository"
Require valid-user
AuthzLDAPServer domaincntrlrname.mydomain.com
AuthzLDAPBindDN "CN=adldapsvn,CN=Users,DC=mydomain,DC=com"
AuthzLDAPBindPassword password
AuthzLDAPUserScope subtree
AuthzLDAPUserBase CN=Users,DC=mydomain,DC=com
AuthzLDAPUserKey sAMAccountName
</Location>
</IfDefine>
|
|
|
|
02-21-2008, 07:31 AM
|
#7
|
|
LQ Newbie
Registered: Jul 2004
Posts: 9
Original Poster
Rep:
|
The <IfDefine> caused the repository to disappear from view when using the SVN client. httpd was compiled as follows:
Compiled in modules:
core.c
prefork.c
http_core.c
mod_so.c
|
|
|
|
02-21-2008, 08:41 AM
|
#8
|
|
Member
Registered: Oct 2007
Location: New York City
Distribution: Gentoo, FC
Posts: 133
Rep:
|
Try removing the IfDefine and see what happens.
|
|
|
|
02-21-2008, 10:07 AM
|
#9
|
|
LQ Newbie
Registered: Jul 2004
Posts: 9
Original Poster
Rep:
|
The repository returned after I removed the <IfDefine>.
|
|
|
|
02-21-2008, 10:14 AM
|
#10
|
|
Member
Registered: Oct 2007
Location: New York City
Distribution: Gentoo, FC
Posts: 133
Rep:
|
Can they Checkout?
|
|
|
|
02-21-2008, 11:37 AM
|
#11
|
|
LQ Newbie
Registered: Jul 2004
Posts: 9
Original Poster
Rep:
|
Yes. They can browse and checkout. We're getting this error:
[Thu Feb 21 12:27:55 2008] [crit] [client xxx.xxx.xxx.xxx] configuration error: couldn't check user. No user file?: /svn/!svn/act/b96572f8-7620-4345-a7e4-2e43e831776a
The subversion.conf contains the following at this point:
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
<Location /svn>
DAV svn
SVNPath /work10/svn
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
AuthType Basic
AuthzLDAPServer domaincntrlrname.mydomain.com
AuthzLDAPBindDN "CN=adldapsvn,CN=Users,DC=mydomain,DC=com"
AuthzLDAPBindPassword password
AuthzLDAPUserScope subtree
AuthzLDAPUserBase CN=Users,DC=mydomain,DC=com
AuthzLDAPUserKey sAMAccountName
AuthName "Subversion Repository"
</LimitExcept>
</Location>
|
|
|
|
02-21-2008, 01:16 PM
|
#12
|
|
Member
Registered: Oct 2007
Location: New York City
Distribution: Gentoo, FC
Posts: 133
Rep:
|
Interesting lets try something,
1. confirm that apache is the owner/user recursively throughout the repo:
in your case: chown -R apache:apache /work10/svn/
2. Try and commit
3. If you are still getting that error let's try this:
A. Add this line of code to config file
AuthzSVNAccessFile /var/svn/conf/svnpolicy
B. mkdir /var/svn/conf (if you don't have one already)
c. vim or nano /var/svn/conf/svnpolicy
d. Example File:
Quote:
[groups]
apache = tim,bob,sue,sarah
readgroup = phil,henry
[*:/]
@apache = rw
[repo1:/]
@apache = rw
[repo2:/]
@apache = rw
@readgroup = r
|
Please post back any results.
-weisso
|
|
|
|
02-25-2008, 09:59 AM
|
#13
|
|
LQ Newbie
Registered: Jul 2004
Posts: 9
Original Poster
Rep:
|
The config file check barked at the AuthzSVNAccessFile directive. All of the files in /work10/svn are owned by the apache and group.
|
|
|
|
02-26-2008, 09:16 AM
|
#14
|
|
Member
Registered: Oct 2007
Location: New York City
Distribution: Gentoo, FC
Posts: 133
Rep:
|
Just to confirm:
1. Every user can browse, commit, and checkout?
2. If so, then can you commit in Eclipse?
|
|
|
|
02-26-2008, 09:17 AM
|
#15
|
|
LQ Newbie
Registered: Jul 2004
Posts: 9
Original Poster
Rep:
|
Browsing and checkout works without a problem. It's the commit that is the problem.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:44 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|