RDM allows me to define custom variables within credentials stored in the credentials repository...but how do I implement those custom variable from the session? When I specify "$CUSTOM_FIELD1$" in the session, it seems to only reference those custom variables defined within session, ignoring variables defined in the credentials, even if the session variables are undefined.
Is there a way to reference the custom variables defined in the Credential Repository from session configuration?
edited by Ashmatash on 9/19/2012
Hi,
I've never thought of that. I have entered a feature request for that.
David Hervieux
Thanks. We have many sessions that require additional info to be passed (special sudo passwords, enable commands, etc) but we would like to keep that credential info separate out of the individual session configurations. Passing custom variables fields stored in the credential entries would accomplish that.
Hi.
Want to lift the topic. When I define custom field in session and it contains symbols (i.e. @ . &) RDM throws an error:
================================================================================================
InvalidOperationException - There is an error in XML document (57, 25).
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize(Stream stream)
at Devolutions.RemoteDesktopManager.Managers.SerializationManager.LoadObjectFromString[T](String str, Boolean createAnInstanceIfNotExists)
at Devolutions.RemoteDesktopManager.Managers.ConnectionManager.Prepare(Connection connection, Boolean applyCredentials, Boolean applyAlternate, Boolean applyVPN)
at Devolutions.RemoteDesktopManager.Managers.ConnectionManager.OpenConnection(Connection connection, OpenConnectionMode openConnectionMode)
at Devolutions.RemoteDesktopManager.Managers.ConnectionManager.OpenConnections(Connection[] connectionList, OpenConnectionMode openConnectionMode)
at Devolutions.RemoteDesktopManager.Managers.ActionManager.DoOpenConnection(Connection[] currentConnections, OpenConnectionMode openConnectionMode, IConnectionSource source)
at Devolutions.RemoteDesktopManager.Managers.ActionManager.OpenConnections(OpenConnectionMode openConnectionMode, IConnectionSource source)
at Devolutions.RemoteDesktopManager.Managers.SessionMenuManager.MnuOpenConnection_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.PerformClick()
at Devolutions.RemoteDesktopManager.Business.ActionLinkLoaderHelper.LinkLabel_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Label.WndProc(Message& m)
at Devolutions.RemoteDesktopManager.Controls.ActionLinkLabel.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
------------------------------------------
XmlException - An error occurred while parsing EntityName. Line 57, position 25.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.Throw(String res)
at System.Xml.XmlTextReaderImpl.ParseEntityName()
at System.Xml.XmlTextReaderImpl.ParseEntityReference()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlTextReader.Read()
at System.Xml.XmlReader.ReadString()
at System.Xml.XmlTextReader.ReadString()
at System.Xml.XmlReader.ReadElementString()
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read176_PuttyConnection(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read225_Connection(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read298_Connection()
================================================================================================
Mainly I need this kind of thing for SSH access. First, RDM connects with Putty to host and login with specified credentials (account "master"). Then it types command "su" and need to get password for the superuser account from somewhere. I use Custom_Field1 for this. All this is needed because I can't just SSH with superuser account for security reasons. Sounds a little bit tricky but that's the only way I managed to figure out to make things work.
edited by Neiro on 11/13/2012
Thank you for the bug report.
David Hervieux