Hi guys -

I set up a Apache - DAV server (using LDAP for authentication) and I
am getting some weird errors when I do git push upload master.

I followed the guide to setting up DAV here:
http://www.kernel.org/pub/software/scm/git/docs/howto/setup-git-server-over-http.txt

except I made a couple changes so that I can use LDAP. Here is my full
conf file:

<VirtualHost *:9090>

DocumentRoot "C:/tools/git_server"
ServerName test.com
ErrorLog logs/git-error.log
CustomLog logs/git-access.log combined
DAVLockDB "C:/Program Files/Apache Software Foundation/Apache2.2/temp/
DAV.lock"

<Directory "C:/tools/git_server">
  Options +Indexes FollowSymLinks MultiViews
  AllowOverride None
  Order allow,deny
  allow from all
</Directory>

<Location />
  DAV On

  # Do basic password authentication in the clear
  AuthType basic
  AuthBasicProvider ldap
  # The name of the protected area or "realm"
  AuthName "ACP Git Repository"

  # Active Directory requires an authenticating DN to access records
  # This is the DN used to bind to the directory service
  # This is an Active Directory user account
  AuthLDAPBindDN "CN=<adlookupuser>,<connection-string>"

  # This is the password for the AuthLDAPBindDN user in Active
Directory
  AuthLDAPBindPassword <password>

  # The LDAP query URL
  # Format: scheme://host:port/basedn?attribute?scope?filter
  # The URL below will search for all objects recursively below the
basedn
  # and validate against the sAMAccountName attribute
  AuthLDAPURL "ldap://<ad-server>:389/<connection-string>?
sAMAccountName?sub?(objectClass=*)"

  # Require authentication for this Location
  Require valid-user

</Location>

#ALL Repo-Level Access Stuff should go here
<Location "/my-new-repo.git">
  Require user test_user
</Location>
</VirtualHost>

--------------------
When I do git push upload master, I get the following message:

Fetching remote heads...
refs/
refs/heads/
refs/tags/
updating 'refs/heads/master'
from 000000000000000000000000000000000000000
to    9af62431c9958d24c05a2c6040be15de3993275e
sending 4079 objects
MOVE <characters> failed, aborting (22/400)
MOVE <characters> failed, aborting (22/400)
MOVE <characters> failed, aborting (22/400)
MOVE <characters> failed, aborting (22/400)
MOVE <characters> failed, aborting (22/400)
error: failed to push some refs to 'http://
<user>:<pass>@<server>:<port>/my-new-repo.git/
---------------------

Here is the apache error log:

[Wed Jun 25 15:31:13 2008] [error] [client <ipaddress>] File does not
exist: C:/tools/git_server/my-new-repo.git/info/refs
[Wed Jun 25 15:31:13 2008] [error] [client <ipaddress>] File does not
exist: C:/tools/git_server/my-new-repo.git/objects/info/packs
[Wed Jun 25 15:31:13 2008] [error] [client <ipaddress>] Invalid syntax
in Destination URI.
[Wed Jun 25 15:31:13 2008] [error] [client <ipaddress>] Invalid syntax
in Destination URI.
[Wed Jun 25 15:31:13 2008] [error] [client <ipaddress>] Invalid syntax
in Destination URI.
[Wed Jun 25 15:31:13 2008] [error] [client <ipaddress>] Invalid syntax
in Destination URI.
[Wed Jun 25 15:31:13 2008] [error] [client <ipaddress>] Invalid syntax
in Destination URI.

----------------------

I am using git 1.5.6.1062.g7b17c
git 1.5.6 preview 062208

Any information would be very helpful. Thank you to everyone -

Jin Lee

Reply via email to