This is a migrated thread and some comments may be shown as answers.

Cannot change user from Windows Authentication to Forms Authentication

15 Answers 187 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Robert
Top achievements
Rank 1
Robert asked on 14 Dec 2011, 07:18 AM
With the release of TeamPulse 2011 R3 with the new ability to do Forms Authentication, we need to be able to change some users that were originally set up for Windows Authetication over to Forms Authentication and there seems to be no option to do that.  The only option appears to be to create a new user set to Forms Authentication but that breaks everything that is already assigned and credited to the now-old Windows Authentication user of the "same name"  Surelym there is a way to do this?

15 Answers, 1 is accepted

Sort by
0
Joel
Telerik team
answered on 14 Dec 2011, 07:05 PM
Hi Robert,

Unfortunately there is no built in way to convert a windows authentication user to be a forms authentication user.  I agree that this would be very useful and I've added this as a feature to our backlog and given you some Telerik points.

From a database perspective it's not very difficult to convert a user to a forms user and I will email you a script to help you with that.

Thanks,
Joel
the Telerik team
New TeamPulse release is here!
Want to know what’s New and how TeamPulse could help you better tight with your clients?
Reserve a seat for the TeamPulse R3 Webinar today!
0
TMatt
Top achievements
Rank 2
answered on 15 Dec 2011, 11:26 PM
I´ am interessted too in that script.



Thanks
0
Joel
Telerik team
answered on 16 Dec 2011, 07:51 PM
I will send the script to the email address associated with your account.


Kind regards,
Joel
the Telerik team
New TeamPulse release is here!
Want to know what’s New and how TeamPulse could help you better tight with your clients?
Reserve a seat for the TeamPulse R3 Webinar today!
0
TMatt
Top achievements
Rank 2
answered on 17 Dec 2011, 05:03 PM
Thanks

script arrived me.
0
Scott Christian
Top achievements
Rank 1
answered on 11 Apr 2012, 04:54 PM
Could I get the script as well?

Thanks

Scott
0
Joel
Telerik team
answered on 13 Apr 2012, 10:40 PM
Hi Scott,

I have sent the script to you as well.

Regards,
Joel
the Telerik team
0
Frederick
Top achievements
Rank 1
answered on 30 May 2012, 06:34 PM
Can I get a copy of the script as well? Thank you.
0
John
Top achievements
Rank 1
answered on 12 Jul 2012, 06:40 PM
I am in need of this script as well.
0
Kamen Ivanov
Telerik team
answered on 13 Jul 2012, 01:01 PM
Hi John,

I have replied you in the support ticket thread.

All the best,
Kamen Ivanov
the Telerik team
0
Boot
Top achievements
Rank 1
answered on 23 Jan 2013, 10:02 PM
Please send me that script as well.

Thanks,
0
Kamen Ivanov
Telerik team
answered on 24 Jan 2013, 11:59 AM
Hi Nicholas,

Here is a link to our documentation explaining how to convert user from windows to forms.
I recommend you to create a back up of your database before you start the conversion just in case something goes wrong.

I hope that everything will go smoothly.

Greetings,
Kamen Ivanov
the Telerik team
0
Jesper
Top achievements
Rank 2
answered on 13 Mar 2013, 02:58 PM
...and if you wan't to convert from form to windows user?
0
Angel
Telerik team
answered on 14 Mar 2013, 10:59 AM
Hello Toke,

There is no way to convert users authentication in TeamPulse. As a workaround you can do this by modifying the existing user and afterwards setting up a new one with the same username and e-mail but different authentication. The following script will help you to modify your existing user:
Copy Code
USE [TeamPulse]
-- Modify user in User table
UPDATE [User]
SET Username = 'someDifferentUsername'-- set different username of the user
    Email = 'wrong@Email.com' -- set different email of the user
WHERE UserID = @UserID -- The Id of the current user
GO
-- Modify user in aspnet_Membership table
UPDATE [aspnet_Membership]
SET Email = 'wrong@Email.com'-- set different email of the user
    LoweredEmail = 'wrong@email.com',
    PasswordQuestion = 'SomethingDifferentFromCurrentUsername'
WHERE LoweredEmail = 'current@email.com' -- email of the current user
GO
-- Modify user in aspnet_Users table --
UPDATE [aspnet_Users]
SET UserName = 'ModifiedUsername'-- set different username of the user
    LoweredUserName = 'modifiedusername'
WHERE LoweredUserName = 'username' -- username and the domain of the user
GO


After you modify the user you can delete it and you just have to set up a new one with the desire authentication type.

If you have further questions or issues please don't hesitate to contact us. Regards,
Angel
the Telerik team
0
Philip
Top achievements
Rank 1
answered on 22 Jul 2013, 01:24 PM
Angel,

I hate to jump on an old thread but I cannot find any other mention of this while searching Telerik's site.

Can you please confirm that the script you provided above and the one linked from Kamen Ivanov HERE, are applicable to and valid for use with TeamPulse v.2013.1.606.0??

Thank you,
Phil




0
Angel
Telerik team
answered on 23 Jul 2013, 10:43 AM
Hello Philip,

 The scripts for changing users authentication in TeamPulse are updated. Please take a look at these KB articles in order to Convert Windows user to Forms user or Convert Forms user to Windows user.
 There is a feature request in our Ideas & Feedback Portal about this issue, so you can give a vote up to help us move it faster in development.

 If you have further questions or queries, please don't hesitate to contact us.

Regards,
Angel
Telerik
Tags
General Discussions
Asked by
Robert
Top achievements
Rank 1
Answers by
Joel
Telerik team
TMatt
Top achievements
Rank 2
Scott Christian
Top achievements
Rank 1
Frederick
Top achievements
Rank 1
John
Top achievements
Rank 1
Kamen Ivanov
Telerik team
Boot
Top achievements
Rank 1
Jesper
Top achievements
Rank 2
Angel
Telerik team
Philip
Top achievements
Rank 1
Share this question
or