VS 2010 - Support Login To Specific Users Account Via Admin Account

Jul 28, 2014

I have a web app Which Uses Forms Authentication.

One thing that we want to be able to do on Support is login to a specific users account Via our admin account.

We are using the standard asp.net membership authentication.

The idea would be for the support technition to be able to login using credentials like admin(<Troubled User>) using the Admin Account password

We are using a a Standard ASP.Login Control

The real Issue is that the Me.Page.User.Identity.Name is set to the value on the CtlLogin.Username Property. I need it to be the the Support Login?

Login Control

Code:
<asp:Login ID="ctlLogin" runat="server" DisplayRememberMe="False" Font-Names="Arial Rounded MT Bold" Font-Size="12pt" ForeColor="Black"
MembershipProvider="MembershipProvider" Width="100%" TitleText="" UserNameLabelText="User" VisibleWhenLoggedIn="False" RememberMeSet="True"
PasswordLabelText="Password" EnableTheming="False" Height="35px" >

[Code] ....

Validate User Script

Code:
Dim objstrSupUser As String = ""
'Load the user from the membership provider
Dim strUserName As String = ctlLogin.UserName
If ctlLogin.UserName.IndexOf("(") > 0 Then
objstrSupUser = Regex.Match(strUserName, "(([^)]*))").Groups(1).Value

[Code] ....

View 5 Replies


Similar Messages:

Not Redirecting To The Login Page After Deleting The Admin Account?

Nov 11, 2010

I have a user management section in which I have created two roles admin and user.the functionality is... admin can login in into user management wizard and can delete any other user. It is working fine. and here is the problem..I am logging as admin and after deleting myself i am able to navigate to any other page untill i logout. But what i need is once i am deleting my account i should not be allowed to navigate to any other page instead it has to be directed to login page.

View 8 Replies

How To Disable Login For Users In Membership By Locking Account

Aug 15, 2012

I created a user manually using Membership.CreateUser(). User created successfully but as soon user create Logged In User's tasks display. I want to use DisableCreatedUser() some how. or is any method to disable it?

View 1 Replies

Security :: Create Super Admin Account?

Oct 21, 2010

On admin side how to create first secure admin account when there is no users/admin exists without manuall entry ?On any website how we can create Super admin account who will handle all the things? Except the entry in db manually. I c# or vb.net

View 1 Replies

ADO.NET :: Need To Make A Field For Account Type In User Account Table?

Feb 2, 2011

Do I just need to make a field for account type in my user account table? In a technical way, if(account type = admin) then the account would log as admin; otherwise, a user with less privileges.

View 7 Replies

Ways To Detect Changed Account / No Account Found In C#?

Oct 15, 2010

I have an ASP.NET page where at the top of the page is a search box. There are 2 text boxes - one is an autocomplete extender for the Name on a database, and one is just inputting the ID.The page features DetailsViews and GridViews primarily, and even when no account has been searched for, these display blank data which is not ideal. I sort of fixed this by using if (IsPostBack), encasing the elements in a placeholder and setting it to visible only if the page ispostback. But this doesn't cover if the user types in an incorrect ID.

Also, some accounts have huge amounts of data inside the GridView's. I had an issue where because I have no way of detecting when a data source's rows has changed, I end up binding whenever the page loads (Page_Load method). I've come to realise this is simply very bad - there are lots of times when the user can click various things in the page and have the page postback, and it takes an eternity to load each time I click something for accounts with lots of data.Anyway, my question is essentially two-fold but I have a feeling the solution will be similar:1: How can I detect when there are no accounts returned when searching, and disable the Grids/Detailsviews and show an error message?2: How can I figure out when the user searches for another account and only rebind the grids after that has happened?

View 1 Replies

MVC :: Attaching Account Models And Account Controller To Db Outside The App_data

Nov 12, 2010

I have use the mvc 2 web site template and I would like to attach

A user db that I have already created

In my web config file I have change the connection string to this"

[Code]....

When I'm tring to register I'm getting this error :

Login failed for user ''. Description: An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Login failed for user ''.Source Error:

[Code]....

I have set a break point in line 127 and I can clearly see that is getting the data (username ,password ,email) What is wrong( with the contion string)?

View 2 Replies

Connect To SQL Server Using Windows Authentication And Specific Account?

Feb 21, 2011

I have an ASP.Net app, that runs using windows authentication. The connection to the SQL Server is usually done by creating a sql server account and using that in the connection string.

However, in this specific very restrictive hosting environment, we have been asked to use a specific WINDOWS/active directory account to connect to the SQL Server.

note it is not the windows credentials of the user of the website, we need to connect to the SQL server with - it is one specific windows/AD account.

How do I configure that in my connection-string?

View 2 Replies

How To Display Users Account And Balance

Mar 17, 2011

I have just created an extra table named AccountDetails with four columns named AccNo,Balance,Transfer and UserId as foreign key to aspnet_userID primary key. I want to display users account and balance whenever the user successfully loged in.

View 4 Replies

Authenticate Users With Their Google Or Facebook Account?

Mar 25, 2011

I'm using ASP.NET MVC and I want to authenticate users with their Google or Facebook account

View 4 Replies

C# - Application Running Under A Less Privileged Account Start A Process Executing Another Application Under An Administrative Account?

Mar 9, 2011

I am logged in as the administrator when I installed an application named pdflatex.exe on my server. This application works as a converter from LaTeX input file to Pdf file. I host an Asp.net MVC 3 application running under an Application Pool Identity with Load User Profile = True. The Asp.net MVC 3 code contains a code that executes pdflatex.exe using System.Diagnostic.Process instance as follows:

Process p = new Process();
p.EnableRaisingEvents = true;
p.Exited += new EventHandler(p_Exited);
p.StartInfo.Arguments = "-interaction=nonstopmode " + inputpath;
p.StartInfo.WorkingDirectory = @"c:mydomain.comworking";
p.StartInfo.UseShellExecute = false;
p.StartInfo.FileName = "pdflatex.exe";
p.Start();
p.WaitForExit();

From the scenario above, the web application runs under a restricted acount but it executes an external application under a default account that I don't know. Can an application running under a less privileged account start a process executing another application under an administrative account?

View 2 Replies

Active Directory/LDAP :: Trying To Create A Computer Account For A Specific User?

Oct 14, 2010

We are coding an intranet site using .net DirectoryServices and AccountManagement to create a computer account in Active Directory with access rules allowing a specific user to add the computer to the domain. Has anyone had any success using the AccessRuleFactory method to set access rules? I'm stumped with a few aspects. So far, this is what we have...Using AccountManagement, we can easily add the computer:

[Code]....

Next we get the DirectoryEntry and ObjectSecurity for the computer. Also dim the ACE object:

[Code]....

Set the userAccountControl:
[Code]....

Here's where we're having problems:
[Code]....

The IdentityReference needs to be the trustee for the computer - how can we get this using AccountManagement and/or DirectoryServices?And I'm not sure what to use for the Inherited Object guid?

Here's the complete vbscript we're trying to convert:
[Code]....

View 1 Replies

Web Forms :: Redirecting Users Based On User Account?

Feb 15, 2010

We would like to redirect a user to a different page based on his or her credentials.

In other words, if a user's credentials are authenticated, a user is presented with a dropdown list belonging to his/her group to select from.

So far, it doesn't matter what the user's credentials are, the user is not getting redirected.

[code]....

View 3 Replies

Forms Data Controls :: How To Allow Users To Update Their Account

Mar 20, 2010

I have tried looking everywhere but I can't seem to work out how to do the follow:

I am trying to make a page that will display the fields that are asscoiated with the current logged in user:

User name

Secret Question and Answer fields of the authenticated user,

Last Login date of that user

Last Password changed date of that user

When the account was created of that user.

Here is my code so far (I have not attached my code behind file because it is empty)

[Code]....

Also by default it does not display anything, so after the .aspx extension I add .aspx?UserId=1 and it displays the first record on the database. But if I change it to .aspx?UserId=2 or

.aspx?UserId=3 etc, it still displays the first record on the database. Why does it not display the next user name. (I am logged in with admin and it is displaying a user that is in another role group)

View 7 Replies

How To Customize Login Account For Login Control

Feb 13, 2011

currently I have a website with authentication using Microsoft.IdentityModel.Web.WSFederationAuthenticationModule. It redirects me to login page (single sign-on outside my website) and upon login, I am redirected to default page.

Now, when I was using CreateUserWizard asp.net control, it seems that upon creation of user, the control tried to use my machine name to login to db server (i.e. '$') instead of using SSO login which has just been done.

Does anybody know how to customize the control to use federation login to connect to db server? In addition, how to set so that the control will use certain specified sql account to login to db server?

View 1 Replies

Login With Google Account On Website?

Apr 9, 2010

I would like my users to be able to login with their google account on my website. I understand the basics. I have to use oAuth, but what "scope" should I use? I just want to verify the user has a valid google account. Once authenticated with Google I will force them to create a nickname, etc.

But my problem is I have to create a RequestToken but what scope should i specify? In google's example it give my app the ability to access their google calendar but I don't need that.

View 2 Replies

Security :: How To Prevent New Users From Logging In Immediately / Account Approval

Jul 17, 2010

I am implementing strightforward membership provider. I do not want new users to be able to login without being approved.

I have tried the setting on the registration wizard called DisableCreatedUser="True" and this does not work.

I also set LoginCreatedUser to False, and the user still gets logged in.

If I look in the SQL membership table, 'IsApproved' is set to 0 for the account, but they can still login.

View 9 Replies

VS 2005 Is It Possible To Use Facebook Account As A Login To Another Site

May 18, 2010

I am wondering - can you create a site that uses a users facebook credentials? I have heard they are using open ID but I don't know a lot about it, I found info about creating facebook apps with ASP.NET however I am really looking to let users sign in with their facebook ID so they don't have to sign up for another service.

View 6 Replies

Security :: Login Page Using Domain Account?

Feb 8, 2010

I am trying to build a login page as follows.On the machine on which i want to host the application i have a windows administrators group in which some windows domain users are.Now on building the login page i only want those people to access the application on login. What is the best way to acomplish this.

View 1 Replies

C# - SPFile.CheckoutBy Gives System / Account Instead Of Login

Jan 18, 2011

Description: i am user user1 (which is also the user of the app pool of sharepoint, so when i logon with user user1 it says welcome system account).

In my code, i want to test if a file is checked out by user 1, so the result of the following:

file.CheckedOutBy.LoginName.ToLower() == userName.ToLower())

is always false (which is not correct), CheckOutby value is (Sharepoint system) while username value is (user1). Im using SP2010

View 3 Replies

Social Networking :: Login With Google Account API

May 7, 2015

All the facebook, twitter & LinkedIn api are working properly i have integrated this into my project. But still google api code is not findin in your site. 

View 1 Replies

Web Forms :: Account Activation Login Module

Mar 29, 2012

I make a login module. In registration page email is sent to user to activate the account.on login page what should i used code to not login the user who not acctivate the account .My code is

 Try con.Open()           
Dim cmd As New SqlCommand("select status from signup where name =" & "'" & txtname.Text & "'" & "and
password=" & "'" & txtpassword.Text & "'", con)           
Dim value As [Object] = cmd.ExecuteScalar()          
If value Is Nothing Then Label1.Text = "Invalid Login. Please Try Again!"   

[CODE] ....

View 1 Replies

Web Forms :: How To Login Host Web Mail Account Through Application

Oct 12, 2010

In my application i have two textboxes txt1 and txt2, and a push button btn1, when the user enters his USERNAME and PASSWORD and press the push button, the application should directly connect to gmail and has to login into his gmail Account....

[code]....

and also for gmail with same code.

but i dont khonw how can i distribute this for my web mail account because i dont khow urls and id and name that must give in the code

View 1 Replies

MVC :: LoginUrl Setting In Web.config And Always Redirects To ~/Account/Login

Oct 24, 2010

i just have asp.net mvc 3 beta installed, and i get an issue with loginUrl.

my little project works fine with asp.net mvc 3 preview, but now it always ignores my loginUrl setting in web.config and always redirects me to ~/Account/Login.

i follow the instructions, install WebPages first then mvc 3 beta.

View 2 Replies

Security :: How To Create Separate Login Account For Members

Sep 22, 2010

I have developed a web application in which i manage details of different companies,,,for that i as admin add companies and their details in my database...right now my role is administrator in my web application

The problem is everytime i have to update company details and other information

I want companies to update their own information...

so how i can create a role and create usernames for companies so that they can login to their individual accounts and update the company information by themselves ?

One important thing of my requirement: One company can have multiple usernames accounts..

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved