Last post Feb 22, 2006 09:29 AM by dunnry
Feb 13, 2006 05:38 AM|The Kacho|LINK
Does anyone have a basic example of how I interact with AD on our network using a ASP.Net webpage? I just want to pull the username and email address of a logged in user.
Any help much appreciated.
Feb 14, 2006 10:21 AM|dunnry|LINK
Feb 15, 2006 12:08 PM|The Kacho|LINK
Thanks, all sorted - one more problem though:
I have a asp.net page that calls some web service methods successfully. However when I try and call one of my LDAP functions (held in web service as well) I get:
System.Web.Services.Protocols.SoapException: Server was unable to process request. --> The specified domain either does not exist or could not be contacted
The function works fine when test via the Web Service test page just not when I try and call it.
My web service is running with identity impersonate="true" and anonymous access disabled as I need this set this way.
This is the web service code which fails:
Feb 15, 2006 12:58 PM|dunnry|LINK
Feb 16, 2006 03:43 AM|The Kacho|LINK
I have made the following change:
This now takes me past the second line without error which is good. However the final error is sitll the same but on this line:
mySearchResultColl = dSearch.FindAll()
Any ideas why it throws up the error there now?
Feb 16, 2006 05:04 AM|The Kacho|LINK
I thought I would post my test function:
oSLXWebService.Credentials = System.Net.CredentialCache.DefaultCredentials
'get access denied without this
lbl_res_adEmail.Text = oSLXWebService.LDAP_getUserEmail(GetNTUsername)
WEB SERVICE CODE:
mySearchResultColl = dSearch.FindAll() ' ERRORS HERE
Feb 22, 2006 09:29 AM|dunnry|LINK