in reply to LDAP Connection

Running on your terminal session, your script is running as you. Running on IIS, it is (effectively) nobody. Can it from that location reach the other IP, and if so is it authorized to connect to it? The LDAP server console should also be able to tell you more.

Replies are listed 'Best First'.
Re^2: LDAP Connection
by runningz (Novice) on Jan 23, 2018 at 14:57 UTC
    Great, changing the user for IIS solved the issue. Thank you all!