<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Active Directory and LDAP</title><link>http://forums.asp.net/93.aspx</link><description>Questions about Active Directory and other directory stores, such as those accessible via LDAP, are appropriate here.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Error in Changing Password using DirectoryEntry.Invoke</title><link>http://forums.asp.net/thread/3257585.aspx</link><pubDate>Thu, 25 Jun 2009 11:46:51 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3257585</guid><dc:creator>jonespatrick</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3257585.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=93&amp;PostID=3257585</wfw:commentRss><description>&lt;p&gt;While changing the password, I am getting the following error.&lt;/p&gt;&lt;p&gt;&lt;b&gt;Unknown name. (Exception from HRESULT: 0x80020006 (DISP_E_UNKNOWNNAME))&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Kindly tell me a solution&lt;/p&gt;</description></item><item><title>Re: Error in Changing Password using DirectoryEntry.Invoke</title><link>http://forums.asp.net/thread/2687543.aspx</link><pubDate>Thu, 16 Oct 2008 15:30:08 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2687543</guid><dc:creator>raghu1</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2687543.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=93&amp;PostID=2687543</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;This works for me:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; DirectoryEntry usr = new DirectoryEntry();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; usr.Path = path; // PAth of the account to update the Path&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; usr.Username=UID; // This account needs to have update rights&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; usr.Password=PWD; // Password of the above account&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; usr.AuthenticationType = AuthenticationTypes.Secure;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; object[] password = new object[] {p};&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; object ret = usr.Invoke(&amp;quot;SetPassword&amp;quot;, password );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; usr.CommitChanges();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; usr.Close();&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Error in Changing Password using DirectoryEntry.Invoke</title><link>http://forums.asp.net/thread/2678552.aspx</link><pubDate>Mon, 13 Oct 2008 07:43:01 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2678552</guid><dc:creator>ssshan</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2678552.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=93&amp;PostID=2678552</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I am facing an error while changing/Setting the password.&lt;/p&gt;
&lt;p&gt;I am getting the below&amp;nbsp;error &lt;/p&gt;
&lt;p&gt;&amp;nbsp;U&lt;font color="#000080"&gt;nknown name. (Exception from HRESULT: 0x80020006 (DISP_E_UNKNOWNNAME))” .&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;DirectoryEntry usr = new DirectoryEntry(&amp;quot;&lt;a&gt;LDAP://server.domain.com&lt;/a&gt;&amp;quot;);&lt;/p&gt;
&lt;p&gt;usr.Invoke(&amp;quot;ChangePassword&amp;quot;, new object[] { &amp;quot;oldpwd&amp;quot;, &amp;quot;new&amp;quot; }); &lt;/p&gt;
&lt;p&gt;Its throwing error while calling the invoke method.&lt;/p&gt;
&lt;p&gt;Thanks and Regards,&lt;/p&gt;
&lt;p&gt;Shah&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>