Skip Ribbon Commands
Skip to main content

Robin | zevenseas | SharePoint Blog

:

The zevenseas Community > Blogs > Robin | zevenseas | SharePoint Blog > Posts > zevenseas AD ChangePassword WebPart released
August 04
zevenseas AD ChangePassword WebPart released

Now this is a very popular thing to have seeing that my second top post on my old blog was the AD Change Password WebPart post. Now I have released two webparts.. why two? Well.. because .NET 3.5 (finally) brings some decent Active Directory support! and thus one webpart makes use of this added functionality. And the other one makes use of the "Active DS Type Library”. So based on your environment you have a choice on which one you want to use ;)

The big question now is, where do you get it? Well just head over to our zevenseas Community Solutions Codeplex site and download the zipfile containing the solution!

Second big question is, how to install and configure it?

  1. I assume you know how to click through a SharePoint installer.. ;)
  2. Both webparts are a sitecollection feature, so go activate the sitecollection feature
  3. Once activated, go to a site and add one of the two webparts
  4. Configure the webpart by clicking ‘Modify this Shared WebPart’, expand “Change Password Settings” and there fill in your domain settings. Now is the part where things are a bit complicated.
    • ChangePassword : For this one you have to know the fully qualified domain name of your domain. For example on the Microsoft SharePoint VHD there is a Litwareinc domain. The Fully Qualified Domain Name (FQDN) for this domain is “litwareinc.com”. So you need to type in these address in the webpart properties.
    • ChangePasswordNET3.5 : For this webpart you need to specify the ‘normal’ domain name. So taking the same example of the Litware domain. The ‘normal’ domain name is ‘litwareinc’ (like the domain is when you log on like “LITWAREINC\BRIANC”).

Known 'bugs’ : there is some ‘weird’ behavior that when changing your password, it remembers the old password as being valid when logging on to SharePoint. But if you log on to your system it will only validate your changed password and not the old one.

If you need any help, just put in a comment here or mail me at robin at zevenseas.com!

Comments

Marcus

When I use the Wepart ChangePassword I´ve got the error message
Password couldn't be changed due to the following error :
A constraint violation occurred. (Exception from HRESULT: 0x8007202F)

thx for answer

Robin MeureNo presence information on 16/11/2008 07:41

Robin

Hi Marcus, yeah I received another comment from someone who had the same problem but couldn't figure out it as well. Will look into it!

<update>
It could be that the domain controller is not accepting your changes and this could be due to policies that are active within your domain. For example the password history, or the password complexity or stuff like that could be the cause of throwing this error.
Robin MeureNo presence information on 16/11/2008 07:41

Waldek Mastykarz

Hi Robin,

Definitely great idea! Thanks for sharing :)
Robin MeureNo presence information on 16/11/2008 07:41

Ashish

It seems change password web part is not supporting ADAM Membership providers?

Please confirm. I used and getting following error

Hello Robin

I am have implemented ADAM AUthentication on my localserver and installed ADAM. I am  using directory entry as

DirectoryEntry entry = new DirectoryEntry("LDAP://localhost:389/CN=Users,OU=ADAMTest,O=ADAM,C=US", strLoginName, oldpassword.Text.ToString(), AuthenticationTypes.None);

and rest of the code as you mentioned. I am testing webpart directly on MOSS server

Now whenever I change the code I am getting following error, please let me know whats wrong I am doing? Please advise, it knocking my head too much, I tried so many things but nothing clicked
*----
User Password Change Error: at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at System.DirectoryServices.DirectoryEntry.get_AdsObject() at System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne) at System.DirectoryServices.DirectorySearcher.FindAll() at ADAMPasswordChange.ADAMPassword.btn_Click(Object sender, EventArgs e) Logon failure: unknown user name or bad password.
Logon failure: unknown user name or bad password.
*----

Robin MeureNo presence information on 16/11/2008 07:41

Robin

Hi Ashish, I've never tested the webpart against ADAM providers. So I can confirm that it's not supported right now for ADAM.

But checking out my blogpost (where you also commented) :

http://glorix.blogspot.com/2007/10/ad-change-password-webpart.html

Ulises commented on your comment :

Hey Ani,

I had a similar problem and I solved it removing the last parameter (AuthenticationTypes.None) of the DirectoryEntry constructor.

Let us know if it helped.

Regards.

Robin MeureNo presence information on 16/11/2008 07:41

Mark

I too get the Password couldn't be changed due to the following error :
A constraint violation occurred. (Exception from HRESULT: 0x8007202F)
message on both domains I've tried it on.
Robin MeureNo presence information on 16/11/2008 07:41

Mahendra

Hi
When I use the Change password Web Part, it gives an error "An Operations Error Occured". I tried various Domain names like STAFFDC, STAFFDC.IQDYNAMICS.COM, IQDYNAMICS.COM.

Please help
System Account on 12/02/2009 06:57

Rhys

Hey there, I am having the same issue as avove by Mahendra.An Operations Error Occured...
Running as follows:
DC - Windows 2k3,
Sharepoint Server (services) V3.0 SP1,
sharepoint is running on a 2k8 box.

Using ChangePasswordNET3.5
 

Many thanks in advance

 
System Account on 17/02/2009 14:45

Rao

Hi,
 Thanks for providing this webpart. I have some questions.
1. I think it is not capable of handling the situation after password expiration ?

2. Can you suggest me any idea on how to tell the users to change there password, So that it is going to change with in 2 days (Because in our domain system we had the policy to put like this na!).

3. Can u please provide me any suggestion on, what should we do, if a person log on after expiration of his/her password.

Thanks,
Rao
System Account on 20/02/2009 22:41

Redman

Do you have also the webparts in other languages?

I need one in dutch

Thanx,

Redman
System Account on 06/03/2009 14:06
1 - 10Next
 

 Statistics

 
Views: 13905
Comments: 29
Tags:
Published:1645 Days Ago