Security :: Create A Service Account For An 2.0 Application

Jan 14, 2011

I have a web application. This application needs to perform a search on folders located on 2 different machines. I can use impersonation for this. But -

a. I don't want to use network service account
b. I want to impersonate just the search part of the code.
c. Specifying encrypted user name / password in web.config is one option. But this would be the last option.

Can I use a custom service account for the application pool for this? If yes, then how to impersonate a specific part of code using this?

View 3 Replies


Similar Messages:

Security :: Create User Account For Web Authentication From Non-web/local Application?

Sep 12, 2010

I have an application which is installed on local pc and is using SQL db. It is a client management system where I want to add capability to register new clients and give them access to my web site which is sharing the same SQL database with local application.

At the moment clients can register on the web site and I have ASP.NET authorisation system set up with aspnetdb_user, aspnetdb_membership and etc tables. But sometimes it happens that I need to register clients on my local application on PC and ideally would like that registration to create online account for the client as well. Then I want to be able to send him user id and password by email and let him know that he has been registered in my database and online account is ready for him as well.

Basically I want to have full synchronization between asp.net membership service and local application through SQL db. As I said both online and local apps are shareing the same SQL database. what would be the best practice to implement it.

View 1 Replies

Security :: LDAP Authentication Using Service Account?

Aug 14, 2010

I am looking for a code which does authentication using service account username and password. I mean username and password which has permission to access the active directory and then authenticate the actual username and password provided by end-user. Googled everywhere but could not find any suitable code.

View 1 Replies

Security :: Connecting Web Service To Sql Server Using App Pool Account?

Jun 15, 2010

I have a web service in which i am making connection to the database to get data..now i want that the app pool account should be used to make the connection and not the current user's credentials..can somebody tell me step by step what changes do i need to make like setting impersonation=true etc.

View 1 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

Web Forms :: Create New Email Account In Web Application Script?

Sep 18, 2010

i want asp.net script to create new email account. i mean there should b registration form like gmail or yahoomail and my user can create their own account under my domain name.

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

Security :: How To Create User Account For Big Group Of People

Aug 25, 2010

I need to create individual account for a big group of people (around 200) from an Excel spreadsheet. What is the best practice? It will take too much time to create account using web form. I think there must be a way to do it. I tried to use Stored procedures created by ASP.NET.

View 2 Replies

Security :: Making Set Up A Way For Select People To Be Able To Create An Account?

Mar 12, 2010

I am setting up a website, and I want to set up a way for select people to be able to create an account. What I want to do is make a field for a security code, that when entered, will take them to the create new user page. I do not want just everyone to be able to set up a user account, as it would expose wholesale prices to the general public.

For example, Business X wants to set up a wholesale account. They contact the business owner, and when the owner verifies the business is legitimate, she can give them the security code to enter. Once the correct security code is entered, it will then take them to the account set up page.

I have VWDEE2008, and have used the Administer Website tool, and am familiar with using that.

View 1 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

Security :: Send The Verification Email When A User Create A New Account

Feb 6, 2010

[Code]....

I used this above sample to send Verification link but it didn't work ! it gives the error on this line;

[Code]....

View 5 Replies

Security :: Code Returns Application Pool Custom Account

Oct 29, 2010

2 server web farm windows 2008 r2 nlb. In IIS I enable windows authentication all other authentication is disabled. Code behind

[Code]....
web.config
[Code]....

The code returns the application pool custom account e.g. DOMAINWebApp_user. What I want is the logged in user's username. How do I get this?

View 2 Replies

Security :: Webservices Access Denied With Service Account "NetworkServices"?

Oct 4, 2010

I have created an asp.net web application on windows server 2008. I have created a website in IIS 7 with an application pool. The application pool has the identity "NETWORKSERVICE". I have a web reference in my application with a certificate.

When I create a new web application and add the code below and add the web reference, and run the web application from the solution (and not from a website in IIS), the web service works fine. I think the local administrator has permissions and the network service account not.

public static PartsService MyCompanyPartsService
{
get
{
if (_partsService != null)
return _partsService;
_partsService = new PartsService();
_partsService.PreAuthenticate = true;

[Code]....

View 1 Replies

Security - Accessing Network Folder With Network Service Account

Aug 17, 2010

My ASP.NET MVC 2 application runs under built-in local NETWORK SERVICE account. I want to set up access permissions for the folder which resides in another computer, but in the same domain. I located that folder right-clicked to open its properties form, clicked to Security tab and pressed Add button which displayed Add user form with correct domain name in the location field. I referred to the account with following syntax:

<domain name><server name>$

because I learned that NETWORK SERVICE account uses machine account when connected to other computers in the domain. However, the system couldn't find the account, so refuses to add the account. Without the domain name it adds a user, but that user seems to be local user, not web server's NETWORK SERVICE account. What am I doing wrong?

By the way, the above syntax worked when I created login for the sql server which is different computer from the web server.

View 2 Replies

Security :: Enable Anonymous In IIS Under Windows 2003, Will Execute Code Under IUSR_XXX Or Account Of Application Pool?

Mar 16, 2011

If I enable Anonymous in IIS under windows 2003, the ASP.NET will execute code under IUSR_XXX or account of application pool?

View 3 Replies

WCF / ASMX :: Running A Web Service User Service / Domain Account?

Mar 28, 2011

Is it possible to run a web service as a particular user/service account in the same way a Windows service can?I have a service account used for connecting to the DB and want to run the webservice under this account as the users using the webservice won't have DB access.The way I see to do it is to include the Impersonate option in the Web.config file, but is there any better way to do this?

View 1 Replies

Security :: How To Create User Account Belong To Normal User Automatically

Mar 25, 2010

I facing a problem here. how can I make the create user wizard category all the new user become normal user role? I have created 2 role which is Manager and Normal User. Normal User can't view the Manager page. But after i create a new user account, i can view manager and normal user page. I want to make all the new member registration will be normal user role?

View 6 Replies

AJAX :: What To Need To Create RESTful Web Service In Web Application

Feb 4, 2010

I am using VS2008 pro to develop my web application. my project target framework is 3.5. I can add web service (.asmx) to it. But there is no .svc for me to add, do I need to install WCF REST Starter Kit? (but it is only in Preview 2)Or should I add an WCF service project to my solution?

View 1 Replies

C# - Create Deployment Application For Windows Service?

Sep 24, 2010

I am currently working in a project where it is having multiple asp.net web applications, windows services. Now we have a requirement that I need to create an Setup application should do the following tasks automatically create database, install web applications in IIS virtual directories, install windows services and modify all configuration files do necessary checks before starting deployment. Which tool preferably open source / freeware help me in developing above setup/deployment application?

View 1 Replies

Security :: Unable To Create Web Service In IIS

Nov 24, 2010

I'm having VS 2008 and OS vista. When I try to create a web service in IIS it gives me a error tht I shud run the VS 2008 as admin then create a web service. When I run as admintrator and create the web service then no problem. Is it possible to create the web service without running as administrator?

View 6 Replies

WCF / ASMX :: Create A Service To Allow Client Application To Update Their Data

Sep 22, 2010

I want to create a WCF Service to transfer data to our clients application(WPF). The Data I am trying to send is as follows.

ID Code Description unit Rate
1 104200000 LIVE GOAT NOS 25
2 104200000 LIVE GOAT2 NOS 25
3 104200030 LIVE GOAT3 KGS 10
4 104202030 Water LTR 5

and so on till ~ 11000 records.

What I have done so far is. Created a service which return a list of data.

public List<Classes.TariffData> GetTariffData() { var currentTariffData = new List<Classes.TariffData>(); using (var myConnection = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString)) { const string query = "select a.ID,a.Code,a.Description,a.unit,a.rate,a.rate3 from tariff.dbo.tariffdata a, tariff.dbo.code_history b where a.id = b.id and b.endofvalidity is null"; using (var myCommand = new SqlCommand(query, myConnection)) { using (var ad = new SqlDataAdapter(myCommand)) { var dt = new DataTable("tariff"); ad.Fill(dt); currentTariffData.AddRange(from DataRow row in dt.Rows select new Classes.TariffData { Id = int.Parse(row["Id"].ToString()), Code = row["Code"].ToString(), Description = row["Description"].ToString(), Unit = row["unit"].ToString(), Rate = row["rate"].ToString(), Rate3 = row["rate3"].ToString() }); return currentTariffData; } } } }
Class is as follows
public class TariffData { public int Id { get; set; } public string Code { get; set; } public string Description { get; set; } public string Unit { get; set; } public string Rate { get; set; } public string Rate3 { get; set; } }

If i Limit the number of data by using const string query = "select top 300 a.ID,a.Code,a.Description. The Service works fine. But if I remove the top 300 part I get an error. What is your advice if I want a service to allow our client applications to update their data by using WCF. (11000 records.) I am using visual Studio 2010. C# .Net 4.0

View 3 Replies

Security :: Accessing .NET WCF Authentication Service In Winforms Application?

Jul 30, 2010

I'm trying to use ASP.NET WCF Authentication Service from a Winforms Application.

I am referring to this article as a tutorial.

for silverlight clients, the WCF Auth service works well.

but for Winforms Apps,

[Code]....the AuthenticationServiceClient.IsLoggedIn() always returns false even after login.

what is the cause of this and is there another approach I should take when I leverage ASP.NET authentication from Winforms?

View 1 Replies

Does ADO In An Web App Always Use The IIS Service Account To Connect To SQL Server

Mar 8, 2011

I have an ASP.NET web app where I use an ado sql connection to connect to a database on a SQL Server. The ado connection string is provided with a user login that has sufficient rights to read/write to the database. I originally pushed out the web app in its own IIS web site, using its own application pool and everything worked fine.

However, I am now trying to include the web app under an already existing web site. Everything seemed to work fine until I tried any functionality that called for an INSERT or UPDATE to the database. It turns out the user connecting to the DB didn't have sufficient permissions. Finding this strange, I did some research and found a forum post that suggested the IIS Web Site service account needed read/write permissions in the SQL database in order for an app to perform INSERT/UPDATE. Is this true?

I tested it out, and yes, indeed it worked, only with the Application Pool Identity account. The deatails of my scenario are as follows:

The web app's first IIS Web Site had an application pool Identity that ran under NETWORK SERVICE, which already had a login for SQL SERVER The already existing web site's application pool Identity runs under a domain account. This site already runs another web app that connects to the same database using LINQ (developed by someone else). I am relatively new to web development and am more familiar with ADO, so that is the route I chose.The domain account mentioned above formerly had no SQL Server login/user mapping. I set it up as a dbowner, and viola, the new web app worked under the existing web site.

While I found a way for it to work, we would rather not create a SQL login for this Identity account. We want the login provided in the web app's ADO SqlConnection to be the one to actually connect, because isn't that the point of it?

View 1 Replies

Security :: Create A .NET Application Backdoor Entry?

May 12, 2010

I am wanting to from now on create a backdoor entry for every web application I build so that if need be I can shut it down.I had a nasty recent experience of a client not paying the bill, however the application was on his server, so when I used my backdoor access to alter a hidden record in one of my database tables to stop it from running, they had full control of the server and were able to look through ther SQL log and see what queries had been run at that time and then alter the record and prevent access to the table...

The only way I can think of that will be full-proof no matter where application is (providing there is web access), is to have ONE webservice running on my server with all apps listed, with a secure interface and the ability for me to turn off any application. Then every day, once a day, each of my client's applications (no matter which server they are on) communicates with this web service to see if it is allowed to run by referencing a GUID. This once a day check would be compiled into the main app DLL.

View 4 Replies

Security :: Create Auth Ticket To Jump From One Application To Another?

Oct 31, 2010

Let's say I'm currently authenticated in an application (namely: applicationA) and I click a link that will take me to another application (namely: applicationB). Is it correct that in order to bypass authentication of applicationB, I'll just create a ticket for that application telling the web server that I'm already authenticated?

View 5 Replies







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