Improve hg-ssh script, give it some acl support
kiorky
kiorky at cryptelium.net
Sun Apr 13 17:41:47 UTC 2008
I would like to have svn's like acls support against posix accounts AND groups.
I cannot go with the acl extension as i would like too to give users the right
to clone "none already existing repos" on the server side.
And, of course; giving wide ssh access is excluded.
So i rewrote hg-ssh to take a configuration file as input to know
which acls the user has (read, readwrite, recursive access)
The code is living on a personnal hg repository that you can find there :
https://hg.cryptelium.net/hg/system/config/hg
and clone with:
hg clone https://hg.cryptelium.net/hg/system/config/hg
The interresting files are in the hg-ssh directory.
You will find in there the configuration sample and the python ssh wrapper.
For easy reading, i join them to that mail.
(I sent on -devel by error.)
--
--
Cordialement,
KiOrKY
GPG Key FingerPrint: 0x1A1194B7681112AF
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hg-ssh
Type: application/x-python
Size: 8076 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20080413/5edcb3b4/attachment-0003.bin>
-------------- next part --------------
[/foo]:
r= someUser @someGroup
rw = toto @toto
options=recursive
[/bar]:
r= someUser @someGroup
rw = toto @toto
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20080413/5edcb3b4/attachment-0001.asc>
More information about the Mercurial
mailing list