From: Ralph Ewig <ralph.phd@protonmail.com>
To: "brian m. carlson" <sandals@crustytoothpaste.net>, git@vger.kernel.org
Subject: Re: git smart http + apache mod_auth_openidc
Date: Thu, 17 Oct 2019 03:00:58 +0000 [thread overview]
Message-ID: <1320f616-ddcc-0eed-22f2-e28eb0abf039@protonmail.com> (raw)
In-Reply-To: <20191016233319.3rhmekasi5csytyl@camp.crustytoothpaste.net>
Thanks for the reply. I was hoping the Git GUI
might be able to handle the OpenID authentication
flow, but it makes sense that it would be
inconsistent with other git clients.
Azure AD does support both LDAP and Kerberos, but
unfortunately only as an extra cost add-on called
"Domain Services". I might try to hack up a script
to just sync the Azure AD password hashes to the
htpassword file. Otherwise I guess I'll have to
bite the bullet and pay the extra bill.
Nonetheless, thank you for the suggestion!
Ralph
On 10/16/2019 4:33 PM, brian m. carlson wrote:
> On 2019-10-15 at 15:59:03, Ralph Ewig wrote:
>> Hi Everyone, hoping you might have a solution for
>> this problem:
>>
>> CONTEXT
>>
>> * I'm serving git repos using "smart https" via
>> apache and basic authentication; everything works
>> fine.
>> * We're moving to SSO via Azure AD and apache
>> mod_auth_openidc; this works fine for gitweb (on
>> the same server as git).
>>
>> PROBLEM
>>
>> When trying to clone a repo with the OIDC setup,
>> git breaks on the redirect for user authentication
>> with the following error message (replaced server
>> ids etc with xxx):
>>
>> C:\Users\void>git clone --progress -v
>> "https://git.xxx.xxx/WebApps.git"
>> Cloning into 'WebApps'...
>> fatal: unable to update url base from
>> redirection:
>> asked for:
>> https://git.xxx.xxx/WebApps.git/info/refs?service=git-upload-pack
>> redirect:
>> https://login.microsoftonline.com/xxx/oauth2/authorize?response_type=code&scope=openid&client_id=xxx&state=xxx&redirect_uri=https%3A%2F%2Fgit.xxx.xxx%2Fredirect&nonce=xxx
>>
>>
>> Can the git client just not handle a web based
>> redirect for login, or is this a configuration
>> issue? Any ideas would be greatly appreciated. Thanks!
> The Git client doesn't handle any sort of web-based login. In general,
> in order to do web-based login, you have to provide a fully functional
> graphical web browser, and Git operates in many environments that don't
> have one (such as servers, containers, and headless systems).
>
> You should treat your Git server like you would treat any API you may
> access, since essentially it is one. That means that you would need to
> provide a way to use some sort of external credential.
>
> I know next to nothing about Azure AD, but it claims to support
> Kerberos, so you may be able to use that in conjunction with libcurl's
> GSS-Negotiate support and Apache's mod_auth_kerb (which is shipped in
> Debian). I use Kerberos-based authentication for my personal server
> (which is Linux, not AD) and it does work, so it is possible to set up.
next prev parent reply other threads:[~2019-10-17 3:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-15 15:59 git smart http + apache mod_auth_openidc Ralph Ewig
2019-10-16 23:33 ` brian m. carlson
2019-10-17 3:00 ` Ralph Ewig [this message]
2019-10-17 6:03 ` Jeff King
2019-10-17 14:21 ` Ralph Ewig
2019-10-17 14:33 ` Ralph Ewig
2019-10-17 22:55 ` brian m. carlson
2019-10-18 1:18 ` Ralph Ewig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1320f616-ddcc-0eed-22f2-e28eb0abf039@protonmail.com \
--to=ralph.phd@protonmail.com \
--cc=git@vger.kernel.org \
--cc=sandals@crustytoothpaste.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).