git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Few Questions

From
Matthieu Moy <matthieu.moy@imag.fr>
Date
Jan 20, 2009, 11:04 UTC
Message-ID
<vpqljt6jl1p.fsf@bauges.imag.fr>
In-Reply-To
<726600.29783.qm@web35708.mail.mud.yahoo.com>
"Arya, Manish Kumar" <m.arya@yahoo.com> writes:
Show 7 quoted lines
> Hi,
>
>    I am new to Git. Earlier I have configured svn with LDAP auth and svnwebclient.
>
> I want to have following with Git
>
> - LDAP and ssh authentication.

AFAIK, there isn't any authentication mechanism built into Git. Instead, Git relies on existing (proven, reliable, ...) mechanisms. SSH authentication is what you get when accessing a repository with e.g. git clone ssh://host.com/path/to/repo (either you have a full ssh shell access on the server, or you can restrict the access with git-shell to allow only basic git operations on the server).

There's probably a way to let your server use LDAP for authentication when using SSH, but that's independant from Git (and I'm helpless here).

> - checkin and checkout using web interface and ssh

Gitweb for the web interface. "checkin" and "checkout" have different meanings depending on the tool, so I'm not sure I understand the question correctly.

In Git, the equivalent of "checkout" for centralized VCS would be "clone" (i.e. get a local working tree for a remote repository, but Git also duplicates the history), see above, it works straigtforwardly through SSH. I don't think you can do it from a web interface, but I don't understand what would be the point in doing it.

> - when ever someone checkin something then a email should be send to
> a email address (a mailing list)

With a hook. You probably don't want to have this as the commit hook, since the advantage of Git is to make "commit" a local, somehow private operation, and to distinguish it from "push" (which somehow means "publish", "show to the rest of the world"). So sending email when some server receives the new revisions is sensible, this is the post-receive hook.

These can help:

http://git.kernel.org/?p=git/git.git;a=blob;f=contrib/hooks/post-receive-email;h=28a3c0e46ecf9951f3f42a025a288a65c70e0424;hb=HEAD http://source.winehq.org/git/tools.git/?a=blob;f=git-notify;hb=HEAD

-- 
Matthieu
Previous: Arya, Manish KumarNext: Jakub Narebski
Message 2 of 5 in “Few Questions”
  1. Arya, Manish KumarJan 20, 2009
  2. Matthieu MoyJan 20, 2009
  3. Jakub NarebskiJan 20, 2009
  4. Shawn O. PearceJan 20, 2009
  5. R. Tyler BallanceJan 21, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.