stephdl
(Stéphane de Labrusse)
May 4, 2016, 5:38pm
1
Looking for a sudo access in the panel of user…I’m not sure that this feature exist even by a db command. The only way I know is to drop a file in ‘/etc/sudoers.d/’ but I want to use the mouse Like this we could have a checkbox in the user Tab.
Since I want to delegate the administrator permissions, I would have a text area to write the public ssh keys of users in the panel.
1 Like
stephdl
(Stéphane de Labrusse)
February 14, 2017, 5:33pm
2
@dev_team does this feature request is now compatible with the remote account provider ?
giacomo
(Giacomo Sanchietti)
February 14, 2017, 5:39pm
3
I don’t see any problem as long the target users exists somewhere
I think that the SSH key part is much more simple to implement.
stephdl
(Stéphane de Labrusse)
February 14, 2017, 5:52pm
4
where is the upload plugin of nethgui, do we can test it, I don’t see it :-?
giacomo
(Giacomo Sanchietti)
February 15, 2017, 8:10am
5
You should find an example here:
<?php
/* @var $view \Nethgui\Renderer\Xhtml */
$view->requireFlag($view::FORM_ENC_MULTIPART);
echo $view->header()->setAttribute('template', $T('Upload_Header'));
$idCrt = $view->getUniqueId('crt');
$idKey = $view->getUniqueId('key');
$idChain = $view->getUniqueId('chain');
echo $view->fileUpload('UploadCrt')->setAttribute('htmlName', 'crt');
echo $view->fileUpload('UploadKey')->setAttribute('htmlName', 'key');
echo $view->fileUpload('UploadChain')->setAttribute('htmlName', 'chain');
echo $view->textInput('UploadName');
echo $view->buttonList()
->insert($view->button('Upload', $view::BUTTON_SUBMIT))
->insert($view->button('Cancel', $view::BUTTON_CANCEL))
->insert($view->button('Help', $view::BUTTON_HELP))
;
This file has been truncated. show original
<?php
namespace NethServer\Module\Pki;
/*
* Copyright (C) 2016 Nethesis Srl
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
This file has been truncated. show original
I don’t know how it works (and for sure I don’t want to ).
If you have some problems, Davide will surely help.
1 Like