I’m setting up a mercurial server with LDAP auth where I want to allow access per repo so I’m creating a hgrc under .hg for each repo.
[web]
allow_push = user1
My problem is that If I use these hgrc files I cannot push with any user (abort: authorization failed). If I just use hgweb.config I can do it with no problem
Any help?
Thanks
When you put those lines in your
hgweb.configfile can you push with any user or only the ones you list? My guess would be that your LDAP is providing user names formatted differently than you expect (perhaps as email addresses, etc.) and so they’re not matching.Check your apache error logs for anything interesting, and consider changing the log format to log the
$REMOTE_USERenvironment user to see what’s being matched. Also, make sure yourpush_sslvalue is set to false if you’re not using SSL connections (though you should).