View Complete Post
I would like to get a persons name from their username - a common query on forums i know, but i haven't managed to get mine working yet and any help would be appreciated.
I currently have this code that I found here: http://www.vbforums.com/showthread.php?t=612655 (Thanks Chris128)
I have adapted it from VB into VB.net. The page renders but when i enter my username into the Username textBox and hit the submit button (Which calls IsUser) I just get "The specified domain either does not exist or could not be contacted." I have tried lots of other code but I always get this response...
If anyone can help by posting links to a tutorial or another post for code that they know works, i will give it a go.
Partial Class UserInfo
Private Function GetRealNameFromAd(ByVal UsernameToFind As String) As String
Using searcher As New DirectorySearcher(New DirectoryEntry())
searcher.PageSize = 1000
searcher.SearchScope = SearchScope.Subtree
searcher.Filter = "(&(samAccountType=805306368)(sAMAccountName=" & UsernameToFind & "))"
Using Results A
MSDN Magazine March 2003
a. Windows Server 2008 with TS Web Access installed and MOSS 2007
b. Windows Server 2008 R2 in Remote Desktop Services installed and configured.
The SharePoint web part is installed and I an add the web part in the site. But when I try to add the terminal server name I get:
TS Web Access was not able to access the specified terminal server. Verify that the computer account of the TS Web Access server is added to the TS Web Access Computers security group on the terminal server.
Any ideas why this is happening. I saw other threads with the same error and no answer yet, so I guess I'm not the only one having the problem.