You must run the EXE as administrator. Just using the normal way will launch the EXE in non-admin mode and when the user tries to write to Active Directory it receives Access Denied.

 


From: [email protected] [mailto:[email protected]] On Behalf Of Krishnan
Sent: 04 November 2005 10:19
To: [EMAIL PROTECTED]; visual_studio_dotnet; Microsofts_C_Sharp; Dinesh Kumar; [EMAIL PROTECTED]; dotnetsig; [EMAIL PROTECTED]; CSharpNET; csharp; C_Sharp_World; AspNetAnyQuestionIsOk; c-sharp-programming
Subject: [Microsofts_C_Sharp] "The authentication mechanism is unknown" COMException while searching a user in ActiveDirectory2000

 

Hi,

 

I found the posting in the link below.

 

I am also facing the same problem exactly like this. the windows service is trying to call a exe which will try to create a new user in Active Directory 2000.

The exe is creating the new user when the exe is executed through the debug mode, but the same exe is not able to create the user while it is called by a windows service.

 

It breaks in the statement

objSResult = objSearch.FindOne();

It is not able to find the existing user.

I also verified in the GPO, "Deny Log on as a service" is not set.

Any ideas how to solve this problem. How to use the imperosantion in the code and what it will exactly do in this case. ( I mean why should i use impersonation here).

Immediate reply is much appreciated.

Regards,
Krishnan

 



SPONSORED LINKS
C programming language C programming language Software programming language
Java programming language History of computer programming language


YAHOO! GROUPS LINKS




Reply via email to