Last post Jan 08, 2010 12:30 PM by Shadow08029
Jan 08, 2010 12:30 PM|Shadow08029|LINK
What we have:
1) Web server
2) EXTERNAL A/D server
IP: 100.100.1.1 --- this is just a made up IP
User that exists only in external A/D: Extern\SecureUser
This server has a one-way trust to be able to see all information contained with the INTERNAL A/D server
3) INTERNAL A/D server
User that exists only in external A/D: Intern\User1
The web server can only talk to the EXTERNAL A/D server.
If I use the following LDAP connection:
entry =New DirectoryEntry("LDAP://100.100.1.1/DC=SomeName,DC=ca", "Extern\SecureUser", "password")
Which connects to the server no problem.
If I then run the following search filter:
search.Filter = "(userPrincipalName=SecureUser@Extern.com)"
The user account is found which is great.
Now what I want to do is run a search for a user on the INTERNAL A/D while I am connected to the EXTERNAL A/D server.
If I run the following search filter:
search.Filter = "(userPrincipalName=User1@Intern.com)"
I get back that the user was not found.
Am I writing the LDAP query wrong or is their an issue with the one-way trust?
If its an issue with the one-way trust what are some of the things I should check and how would I check them.
Note: I can not make an LDAP connection directly to the INTERNAL A/D server from the webserver because our networking depart. says they prefer not to do this.
Any help would be greatly appreciated.
If I missed any key code that someone would need to see, please let me know.