help with sub connections and variables

help with sub connections and variables

avatar

I've read the online help but I just can't figure out how to get sub connections variables to works.

Say, for example, I have a folder called switches. Inside this folder I have a putty session to Switch01. I tried to create a sub connection for the web interface and used $HOST$ for the web page but it tries to connect to $HOST$ instead of the host defined in the putty session. I’ve tried RDP session with a web page sub connection and even a RDP connection with sub RDP connection but nothing works.

Can someone tell me what I'm doing wrong or if I'm just not understanding the sub connection thing properly?

Thanks

All Comments (8)

avatar

Have you tried $PARENT_HOST$

David Hervieux

avatar

well that works for the hostname! :) I now see the naming showing thru in the sub connections list.

I'm having trouble pulling in the username/password though. Neither $USERNAME$ nor $PARENT_USERNAME$ seem to work.

If I put in $USERNAME$ i see $USERNAME$ in the sub connection list. If I put in $PARENT_USERNAME$ I see nothing.

Is the documentation out of date on the web site or did something change because I can't find parent anywhere.

avatar

A little more clicking around and I got $PARENT_USERNAME$ to work. Not sure why it didn't work originally.

If I use credentail repository then $PARENT_USERNAME$ doesn't work which I assume is expected. if I change my sub connection to inherited credentails though, ,it doesn't seem to use the parents details though (credential repository in this case saved in RDM)

avatar

Could you create a small Xml data source to reproduce exactly the problem?

David Hervieux

avatar

I did that and the problem is still there.

I have a putty (telnet) session as the parent. RDM is correctly sendin the username/password.

Sub connection is the web interface for said connection and i'm trying to get it to fill in the username and password fields.

One test uses credentails typed into the fields below the telnet hostname, the other uses credential repository.

The first one is correctly pulling host and username when i try it. The password, even though i checked the option to allow it to use the variable, seems to be putting either $PARENT$ or $PARENT_PASSWORD$ instead of the password from the parent.

For the one one using credential repository, I'm able to inherit the hostname, but if I set the credentials to inherited on the web sub connection, nothing appears in the fields on the web page. If I set the sub connection to use the credential reposity and set them then it works (so it's not an error in my part, it just doesn't inherit isn't working)

If I change credentials on the sub connection to default and enter $PARENT_USERNAME$ it pulls in nothing (parent is credentail repository so this situation might be working as expected in this case).

avatar

Hi,
This could be a bug. Would you mind to create a simple xml data source to reproduce the case?

David Hervieux

avatar

Attached is an xml showing the problem. I've put in a description for each of the 3 parent connections to try and explain why the test is showing

Thanks

Connections - Copy.xml

avatar

Thanks for the XML
So you have three scenarios if your xml file:
1 - Child session using $parent_...$ variables
This is "as designed", we don't support variables in encrypted fields like password.
2 - Child session using inherited credentials
This was in fact a bug. The fix will be in the next beta release.

3 - Child session using linked credentials
worked - nothing to change

Stéfane Lavergne