An Avanade Blogging Community

Welcome to An Avanade Blogging Community Sign in | Join | Help
in Search

Geek.Speak()

avabloggers.com moves to blogs.avanadeadvisor.com

Thought leadership in the Microsoft space has been what Avanade has been all about from day one.  Blogging was a natural outlet for the leadership.  Avanade folks have been spreading brillance across the net for years via their personal blogs.

Avabloggers.com was a blogging community that I created in the fall of 2005.  It took root rather quickly with a number of Avanade folks joining.  We had people blogging from Core Services, Solution Developers, System Engineers, and even Practice Directors.  It was an unofficial and unsupported community for Avanauts that wanted to blog, but didn’t have a place to do it.  My unstated goal has always been to help bring blogging to the main stage of the Avanade’s web presence.  Blogging is one of the hot topics in Avanade right now.  The vary nature of our business, the protection of our intellectual property, and constant concer for our customer’s best interests make this type of transparency complex. 

Once again we as a company are blazing trails.  I’m pleased to annouce the Avabloggers.com community has moved to blogs.avanadeadvisor.com.  Avanadeadvisor.com is a sister site of Avanade.com that dedicated to Avanade’s solutions and thought leaders in the industry.  We’re looking forward to having a happy and thriving community here.

Welcome one and all, and happy blogging.

Published Wednesday, September 27, 2006 5:37 PM by kellyb
Filed Under:

Comments

 

neilm said:

October 2, 2006 12:02 PM
 

mcblogger said:

Hi..

I am not sure if this is the best place to post this message, but I have a problem that has me stumped.


I am using a C# .net console application to Set the password on an ADAM user that was created using the System.DirectoryServices namespace. The user gets created successfully, however I am running into errors when trying to set the user's password. I am a running the console application on a windows 2000 server(with SP 4). The ADAM instance is running on a Windows XP Professional workstation. Both computers are on the same domain. The console application is running under an account that has administrator rights on both computers. SSL and Kerberos are not being used.   When I try to change the password using the code given below, I get the following error:



Exception has been thrown by the target of an invocation.

System.IO.FileNotFoundException: The network path was not found. (Exception from HRESULT: 0x80070035).





Code:

DirectoryEntry entryUser = new DirectoryEntry();

AuthenticationTypes AuthTypes;


AuthTypes = AuthenticationTypes.Signing | AuthenticationTypes.Sealing |
AuthenticationTypes.Secure;

entryUser.Username = <domain\user>;
entryUser.Password = <password>;

entryUser.Options.PasswordEncoding = PasswordEncodingMethod.PasswordEncodingClear;
entryUser.Options.PasswordPort = 389;

entryUser.Invoke("SetOption", new object[] { ADS_OPTION_PASSWORD_PORTNUMBER, 389 });

entryUser.Invoke("SetOption", new object[] { ADS_OPTION_PASSWORD_METHOD, ADS_PASSWORD_ENCODE_CLEAR });

entryUser.Invoke("SetPassword", new object[]{"Ready2wrk!"});







This error occurs only when the console application is running on the windows 2000 server machine. If the console application is running on a third windows xp professional machine(also part of the domain, and the console application is running under a user that has admin rights), the application runs without error.

Based on these results, I think it has something to do with the Win 2000 server machine, but I don't know what.  Based on the text  "The .Net Developer's Guid to Directory Services Programming" It is my deduction that  Net*API is being used to set the password(since SSL, and Kerberos aren't being used).


Any insight would be much appreciated, since I am baffeled as to what the issue could be.


mcblogger

April 27, 2008 1:50 PM
Anonymous comments are disabled

This Blog

Post Calendar

<September 2006>
SuMoTuWeThFrSa
272829303112
3456789
10111213141516
17181920212223
24252627282930
1234567

News

The posts on this weblog are provided "as is" with no warranties and confer no rights. The opinions expressed herin are the personal opinions of the individual authors and do not represent the views of Avanade in any way.

Syndication

©2006 Avanade Inc. All Rights Reserved.