Authenticating against a remote server and domain (C#/3.5) -


I have a Net 3.5 service that runs on stand-alone computers. The service queries the server's event log in multiple Active Directory domains. I want to certify these using the managed code.

Currently, I certify with P / WNetAddConnection2A or with back or processing with the net use. For example, this works:

  string user = "domain \ administrator"; String pass = "password"; String server = "server.domain.com"; String argument = String.Format ("use \\\\ {0} \\ ipc $ / user: {1} {2}", server, user, pass); System.Diagnostics.Process.Start ("net.exe", argument); System.Diagnostics.EventLog Log = New Event Log ("System", Server);  

Is there no way, without calling the net worth code or authenticating the event log and reading the .Net 3.5 framework?

Have you seen the demo written in "System.Security.Principal.WindowsImersonationContext" and MSDN.

On the way, for the net 1.1 days back, I had to write windows service to use LDAP - and Windows Impressions used in 2 Windows domains as a failed-back.

As I remember, I have got a block code code project and Google: -s

/ Erling DAMMAG DNS-IT aps


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -