title: Python LDAP Authentication from remote web server
body: <p>I have a django application hosted on webfaction which now has a static/private ip.</p>
  
  <p>Our network in the office is obviously behind a firewall and the AD server is running behind this firewall. From inside the network i can authenticate using python-ldap with the AD's internal IP address and the port 389 and all works well.</p>
  
  <p>When i move this to the hosted webserver i change the ip address and port that has been openend up on our firewall. For simplicity the port we opened up is 389 however the requests to authenticate always timeout. When logged into webfaction and running python from the shell and querying the ipaddress i get webfactional's general ip address rather than my static ip.</p>
  
  <p>Is this whats happening when i try and auth in django? the request comes from the underlying ip address that python is running on rather than the static ip that my firewall is expecting?</p>
  
  <p>Im fairly clueless to all this networking and port mapping so any help would be much appreciated! </p>
  
  <p>Hope that makes sense?</p>