mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 06:16:37 +01:00
CA-249860: Local root user can not restart the toolstack from XenCenter with AD enabled
Use the NewSession function which returns a session using the elevated credentials if they exist, otherwise using the connection's credentials Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
This commit is contained in:
parent
3c861b0b7a
commit
ebbed16f54
@ -56,7 +56,7 @@ namespace XenAdmin.Actions
|
||||
|
||||
protected override void Run()
|
||||
{
|
||||
var session = Connection.DuplicateSession();
|
||||
var session = NewSession();
|
||||
|
||||
Description = string.Format(Messages.ACTION_TOOLSTACK_RESTARTING_ON, Host.Name.Ellipsise(30));
|
||||
RelatedTask = Host.async_restart_agent(session, Host.opaque_ref);
|
||||
|
Loading…
Reference in New Issue
Block a user