Forum Discussion

Ben_Newport_102's avatar
Ben_Newport_102
Icon for Nimbostratus rankNimbostratus
Feb 06, 2015

Assign APM Remote Desktop resource from an iRule

Currently we allow users up to 9 different RDP connections predefined on the APM. We assign all 9 to each user with a session variable indicating the machine name. We parse an AD attribute to get the machine names in an iRule. Problem is not everyone has 9 machines so some are blank. This results with extraneous errors on logon in the log indicating that it was unable to DNS resolve the blanks or none. This also adds to time before the webtop is displayed as for each failed lookup can take between 1 ms up to 5 secs.

 

Since we are already processing the machine names in an iRule is there a way to assign the Remote Desktop resource in the same iRule?

 

A less elegant solution we are looking at is to set a session variable counting the number or RDP resources for each user and on the Full Resource Assign creating 9 conditional statements checking session.rdpnumber = 1 session.rdpnumber = 2 ....all the way up to 9.

 

It would be so much easier and dynamic if we could assign resources from an iRule.

 

Any assistance is appreciated.

 

1 Reply

  • I think what you are proposing is not that bad and probably a better option. You can use the "Advanced Resource Assign" object and add 9 conditionals with increasing RDP resource assignment.

     

    We had a similar problem but we solved it a little differently. We let the user hit a page where all the PCs which she has access to is displayed. When the user selects the PC to RDP to, only that resource is assigned by setting a session variable to the IP of the selected PC.

     

    Best.