zevenseas

Our News

Expanding our operations in other countries more


 

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!

Links to this post

Comments

On 16 Nov 2008 04:41, 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

On 16 Nov 2008 04: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.

On 16 Nov 2008 04:41, Waldek Mastykarz

Hi Robin,

Definitely great idea! Thanks for sharing :)

On 16 Nov 2008 04: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.
*----

On 16 Nov 2008 04: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.

On 16 Nov 2008 04: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.

On 12 Feb 2009 03:57, 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

On 17 Feb 2009 11:45, 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

On 21 Feb 2009 07:41, 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

On 06 Mar 2009 11:06, Redman

Do you have also the webparts in other languages?

I need one in dutch

Thanx,

Redman

On 20 Apr 2009 05:15, Phodchara

I try to deploy "Change Password WebPart" but it does not work. Can you suggest solution for me. And then on below is my deploy process
1. download zevenseas_Web_Parts.zip from http://zevenseas.codeplex.com
2. i install your web parts and follow by your instruction
Setup instructions (NOTE: The Order IS Important)
a. Open the "Community Solutions Library" folder;
b. Run the Setup.exe;
c. Next open the "zevenseas WebParts" folder;
d. Run the Setup.exe again.

3. Activate "Change Password WebPart" in Site Settings > Site Feature
4. Add "Change Password WebPart" and configure LADP is xxxxx.or.th

when i try to change password, it does not work. the error show like on below

Eror from zevenseas ChangePassword WebPart for the .NET 3.5 framework
An operations error occurred

Eror from zevenseas ChangePassword WebPart
Password couldn't be changed due to the following error :
A constraint violation occurred. (Exception from HRESULT: 0x8007202F)

On 22 Apr 2009 07:51, Ivan

Will there be any way to change the labels to Spanish?

On 22 Apr 2009 11:03, RoyK

Great Tool. However, It worked once then I started to get the error that says "An unexpected error has occurred" then it directs you to the WEB Part Maintenance page. I have seen references to this in tyour blog, but none of the solutions work.

Thanks for your help!

On 24 Apr 2009 11:18, Robin

Hi guys,

sorry for the late response on your comments.

@Ivan, so you could change your password once or did the webpart itself worked just one time? Does it work for other users other than yourself?

@Redman, no I don't have any plans on making this webpart multilingual. But if you want to help to make it happen just let me know.

@Phodchara, those errors usually come from wrong LDAP configurations.

@Rao, no this webpart does not handle this type of request. I've created some things that do this and published this already on my previous blog. Will do a blogpost about this using a SharePoint timerjob.


@Everyone else who gets the "Constraint violation occurred" or "
An Operations Error", I'm afraid I cannot help you in getting this fixed. THe problems I had when encountering those errors were wrong LDAP paths.

On 24 Apr 2009 06:28, Saleem

Hello there

I got the source code for AD Change Password WebPart‏ from codeplex and also downloaded and installed WSPBuilder to deploy the webpart onto sharepoint. i can build and deploy the webpart successfully but I cant see this webpart nowhere on sharepoint. So I want to put this webpart somewhere on SharePoint site to let users change their AD password, I have looked for the webpart into Site Collection etc but not there. Could you please tell me am I missing something?

any help really appreciated

Kind Regards,

Saleem

On 24 Apr 2009 06:44, RoyK

Thanks for getting back. My issue was actually caused by me. Everything works well now.

Saleem - Site Settings -> Site Collection Features.....

On 30 Apr 2009 06:10, Phodchara

After you suggest me about LDAP configurations. So I try to change that configurations like on below;

1. LDAP://xxxxx.or.th
2. LDAP://DC=xxxxx,DC=ac,DC=th
3. DC=xxxxx,DC=ac,DC=th

The error change like this> "The server could not be contacted."

Could you suggest any information?
Thank you very much for your help.

On 09 Jun 2009 09:18, Darek Bzowka

trying myself, but got the same :( error and i found Yours conversation. I'm sure u can't use SetPassword coz the simply user (him self) can't change self password without entering old one. But why "ChangePassword" saying A constraint violation occurred. (Exception from HRESULT: 0x8007202F) - what's that mean ...?????
opsss... go and see this: http://www.msusenet.com/f--adsi-general-212/t-aspnet-c-changepassword-server-error-please-help-1874900366.html

On 11 Jun 2009 09:50, Robin

Hi Derek,

SetPassword can only be called if you have Domain Admin rights (or at least very high domain privileges).

The ChangePassword call can only be made by the current user.. but you must comply with all the domain constrains that are in effect (password history, complexity, etc)

On 15 Jul 2009 10:25, Franc

Hi,

I'm using the change password .Net3.5. It seems I don't have to re-enter the new password on the "Confirm new password" box. Just entering on the Old and New password box allows me to change the password. Inputting different value on New password and confirm password also allows me to change the password as long as the old password is correct.

On 16 Jul 2009 08:34, Robin

Hi Franc,

could very well be.. didn't check the source but I though I did a check if the new and 'check' new password fields are compared to each other. Ah well.. as long as it works there is no harm done eh? ;)

Name

Url

Email

Comments

CAPTCHA Image Validation



 
 
 

© 2009 Community Kit For SharePoint