S
Stefan Falk
Hello everybody,
the following code gets the e-mail address of an Active Directory account
when run inside a simple windows forms app:
Dim Query As String = "(SAMAccountName=TheAccountName)"
Dim Searcher As DirectorySearcher = New DirectorySearcher(Query, New
String() {"mail"})
Dim Result As SearchResult = Searcher.FindOne
However, running this inside an asp.net web service while impersonating the
calling user, which is logged on fine in active directory, Result is
nothing. Why?
Thanks in advance for a tip,
Stefan Falk
the following code gets the e-mail address of an Active Directory account
when run inside a simple windows forms app:
Dim Query As String = "(SAMAccountName=TheAccountName)"
Dim Searcher As DirectorySearcher = New DirectorySearcher(Query, New
String() {"mail"})
Dim Result As SearchResult = Searcher.FindOne
However, running this inside an asp.net web service while impersonating the
calling user, which is logged on fine in active directory, Result is
nothing. Why?
Thanks in advance for a tip,
Stefan Falk