Forum Discussion

DavidS_'s avatar
DavidS_
Icon for Nimbostratus rankNimbostratus
Feb 22, 2010

iRule to compare username and computername

Hi,

 

 

I'm looking for a way to use an iRule to compare username with computername. The idea is to be able to identify a certain type of workstation (auto login) in our environment by matching these 2 variables so that a redirect or load balancing decision can be made based on this criteria.

 

 

I've considered use of a datagroup however this will be an ever changing list of workstations which could turn into an administrative headache having to frequently update the list.

 

 

I've combed the site but haven't yet found what I am looking for. I'm not certain username and computername can be extracted via an iRule. Has anyone ever done anything along these lines? Is this possible? Any help would be greatly appreciated.

 

 

Thanks,

 

David

2 Replies

  • Hi David,

     

     

    I'm assuming you're talking about a web app. If that's not the case, can you clarify what kind of traffic it is that you're load balancing?

     

     

    When you say username, are you looking for the domain login or the login that the browser sends the web app? What kind of authentication is the application using?

     

     

    In standard web apps, the client computer name isn't normally available to the server. If the server could ask for this via Javascript or other client side code, it would open up potential security holes.

     

     

    Aaron
  • If the workstation is using NTLM to authenticate to the web application, then it's sending the workstation name as part of the authentication transaction. If it's basic or Kerberos, you're out of luck.