User1287227003 posted
Hi there,
Hopefully my question contains all relevant data, so people with experience in this field are able to recognize and/or answer it :
I am running a web application, containing a back-end portal for employees. Now, as we are speaking of a small (non-profit) organization, these users are stored in Active Directory (W2k3). Currently I'm considering the possibility to connect the security
of this backend to Active Directory (using ASP.net's ActiveDirectoryProvider). Now, I have a VPN connection to the server the AD is on. With a simple command application I connect to this server in the following way :
DirectoryEntry enTry = new DirectoryEntry("LDAP://server.domain.local:389/CN=Users,DC=domain,DC=local", "SomeUser", "SomePass");
This works, and when I request commands, they are executed. Now, the problem arises when I try to connect to the AD, when I'm not connected using VPN (thus, connecting using the fully qualified name or the IP address). I more or less connect in
the same way then : (IP address is just an example)
DirectoryEntry enTry = new DirectoryEntry("LDAP://255.255.255.255:389/CN=Users,DC=domain,DC=local", "SomeUser", "SomePass");
When requesting commands, nothing is executed, and I keep getting errors that the server could not be found. Am i doing something wrong? Or is a setting required on the server to allow external connections to the LDAP ? Any help will be greatly appreciated
!!!
Thanks in advance !
Kind regrds,
Niels