git push to https repository from Intranet application with kerberos authentication -
first of all, i'm new https, ssl , authentication in general.
i develop intranet application should realize "push" local git repository (hosted on web server) , remote repository (hosted on unix server).
the web server windows 2003 server iis installed. installed windows git extensions on machine. remote git url looks : "https://username@server.domain.fr/team_folder/project.git".
on web server, when want push on remote repository git bash, openssh popup displayed , windows password asked. if enter correct password, push performed. caused "askpass" configuration.
core.askpass = c:/program files (x86)/git/libexec/git-core/git-gui--askpass
if remove configuration's parameter, git prompt password in command window. normal...
my question : use kerberos authentication, possible realize push operation without asking password user ? , how ?. tried configure putty no success moment (like wrote, i'm not specialist of authentication).
for use git-credential-winstore modified not asking password (which not usable on iis server side). when git ask gcw password, returns empty password. git ends return code <> 0 , application ask user password, call gcw store , call git second time execute command. works i'm pretty sure not best solution.
though, off topic here, i'd answer anyway (unix server, client):
- install
mod_spnego
- configure
mod_spnego
- install git on windows, make sure supplied
libcurl
has been compiled against sspi (--with-sspi
) - install git on unix, make sure linked
libcurl
has been compiled against gss-api (--with-gssapi
)
the way libcurl
called git, anyauth
chosen default username+password (:
). that's it. libcurl
should rest.
works charm here against external repositories on spnego-protected proxy.
Comments
Post a Comment