author mapping by ssh login

49 views
Skip to first unread message

Sergey Prasolov

unread,
May 8, 2013, 7:06:57 AM5/8/13
to scmma...@googlegroups.com
Hi all,

I have installed SSH plugin and am thinking about mapping ssh login to author. I.e. I want name and email be set on server, in some table, mapped to user name (ssh login), and these name and email should be used instead of those which provided be a user's git client. Are there any plugins available for this? authormapping plugin maps not ssh login, but a name provided by the client, this is not what I want.

I tried to update authormapping plugin for this purpose, but preprocessing seems to know nothing about ssh login.

Can anybody advise?

Sebastian Sdorra

unread,
May 13, 2013, 2:00:53 AM5/13/13
to scmma...@googlegroups.com
HI,
I don't know the ssh plugin very well, but as far as i understand a ssh login is a normal user in scm-manager and the authormapping plugin is able to map a author to a user. You can also define custom mappings with the authormapping plugin.

Sebastian


2013/5/8 Sergey Prasolov <ci....@gmail.com>

--
You received this message because you are subscribed to the Google Groups "scmmanager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scmmanager+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Sergey Prasolov

unread,
May 13, 2013, 8:36:34 AM5/13/13
to scmma...@googlegroups.com
I did some debug and it seems that authormapping, when it is called, does not receive Event object, which really contains ssh login info, but it knows only about name and email which are provided by GIT client.
So, it could map GIT-username to something, not SSH-login to something...

Probably there are several ways to call hooks? Is there any spec on this?



понедельник, 13 мая 2013 г., 10:00:53 UTC+4 пользователь Sebastian Sdorra написал:

Sebastian Sdorra

unread,
May 13, 2013, 8:57:10 AM5/13/13
to scmma...@googlegroups.com
Hi,
I'm not sure what you exactly want to do. Could you please describe what you are trying? The authormapping-plugin has not informations about the person who pushed the changesets, because this must not be the author of the changeset. The authormapping-plugin use the values from changeset.author (git client informations) and does a lookup in the user database of scm-manager.

Sebastian


2013/5/13 Sergey Prasolov <ci....@gmail.com>

Andrea Fumagalli

unread,
May 18, 2013, 6:41:28 AM5/18/13
to scmma...@googlegroups.com


Hello, I have the same need, I want to match author and user who pushed.

If this is not possible, there is a way to add the userename of the person who pushed in the commits view?



AF

Sebastian Sdorra

unread,
May 21, 2013, 4:11:57 AM5/21/13
to scmma...@googlegroups.com
Hi,
I've created a new plugin, which tracks the information who pushed which changeset to which repository and shows this information in the commits view. The plugin is called scm-pushlog-plugin.

Sebastian


2013/5/18 Andrea Fumagalli <smo...@gmail.com>

Andrea Fumagalli

unread,
May 21, 2013, 7:40:36 AM5/21/13
to scmma...@googlegroups.com
It's exactly what I needed!

Thank you Sebastian!

AF
Reply all
Reply to author
Forward
0 new messages