authentication

Copy file on a network shared drive

I have a network shared drive ("\serveur\folder") on which I would like to copy file. I can write on the drive with a specific user ("user"/"pass"). How can I access the shared drived with write privilege using C#? ...

Impersonation WCF

I have a WCF service, hosted in IIS, which I require to impersonate the annon account. in my Webconfig <authentication mode="Windows"/> <identity impersonate ="true"/> Testing the following, with vs2008 public void ByRuleId(int ruleId) { try { string user = WindowsIdentity.GetC...

Best way to create a TOKEN system to authenticate web service calls?

I'd like to create a web service architecture that can be called by various platforms such as mobile devices, winforms applications, iphone, blackberry, you name it. So going with something like WCF and wsHttp binding probably kills this and I would need to downgrade to a basicHttp binding for compatibility. With that said, I need a sy...

How to disable forms authentication

I have a folder in my web site for which I secured with forms-based authentication. I now have to develop two new pages in that folder and I want to turn security off while I test and debug the new forms. I have changed the authentication mode in the web site's web.config file to mode="None" and I have removed the web.config file from ...

Integrated Authentication on Webserver - Security?

We have our own web server hosting our website that is open to the public outside of our network. I have a request to make our "Internal Postings" link on our Careers page to authenticate the user against our network's Active Directory list. I currently have it setup so the link hits a page inside the directory structure of the website...

dealing with authentication in asp.net using membership

Ok, here is the problem: I have two sites: www.mysite.com and blog.mysite.com (fake site names) which suppose to share authentication. The login page is on www.mysite.com/login/login.aspx Now, the blog website has web.config with following authentication section: <authentication mode="Forms"> <forms timeout="50000000" loginUrl="...

Can I use a PHP framework without index.php or MVC?

Is there a PHP framework that doesn't force me to use a single index.php as the entry point, or an MVC architecture? Because I need to develop something in my own way, with features like Authentication, Security, Crypto, Database CRUD and the like, and so a framework of some sort could help. Is this RAD? ...

Is it possible to create a Logon System with ASP.NET MVC but not use the MembershipProvider?

I have an existing database with a users table, and we are planning to take the database and use it for a new system built in ASP.NET MVC. However, what I am uncertain about is whether or not I am able to create a login system that doesn't use the built in account controller or a regular membership provider so that we can still use the e...

ASP.NET: Authenticating user in code.

I'm playing around with authentication and authorization to prepare for some task. I've created two pages: Login.aspx and Default.aspx. In config file i've set authentication to forms and denied unauthenticated users access: <authentication mode="Forms"> <forms name="aaa" defaultUrl="~/Login.aspx" /> </authentication> <a...

Account Strategies on New Social Enabled Sites

So I'm in the midst of creating a Facebook Connect enabled site. The site in question will leverage your social graph - as defined by your facebook account - to do social things (what is really not important here). Here's the big question I have: Are people still rolling their own authentication heuristic when using something like Face...

Programmatically login to website from Java application

Hello Folks, I am using Apache's HttpCommons 3.1 package to login to a website. The website is jsp page with the form using j_security_check along with j_username and j_password. From a browser, I would do the following: o to the Login.jsp page fill in user name and password click on login button With the valid username and passw...

Sharepoint website and a custom membership provider with a custom login page.

I've found this article on MSDN. It describes how you can write your custom login page and a membersip provider for a SharePoint website to manage access to the website the way you want. I'm wondering: would it be possible to only add this custom login page, without specifying a membership provider? If I authenticate the user on the logi...

Is it possible to have a python app authentication with a remote linux server?

The idea here is to have a python app, that when started, asks for a user/password combination. This user/password combination should be the same as the user/password of the remote linux server or in such case, and authentication system. Is this possible? How? Which APIs can I use? Thanks a lot. ...

Any Way to Read JAAS Configuration File from Memory

We use JAAS in a heavily loaded web server. The configuration file is loaded from a file, System.setProperty("java.security.auth.login.config", "/config/jaas.config"); During profiling, we noticed that the configuration is loaded from file for every login attempt. This is an I/O operation we try to avoid. Is there anyway to store th...

Firefox autofilling username/password

One of my user complained that whenever he tried to add a new user (auth.User) using the default admin interface (Django's admin), the new username and password would get automatically filled with his own. The problem is he asked Firefox to remember his username/password when he logs in. Is there any way I can prevent Firefox from tryin...

MembershipProvider in asp.net

What is the MembershipProvider really used for? Do I need it at all? While using forms authentication I never specified any membership provider in the config file, i've been authenticating users by calling FormsAuthentication.SetAuthCookie. I've been reading quite a lot about it yesterday and I can't figure out why would i use it? ...

How to handle authentication through AJAX with a java web app that uses form based login

I have a java web application running on WebSphere 7. The application uses form authentication method and part of the application accesses some protected resources using ajax requests. However, when the user's session expires, I am getting the login page in place of the content that is supposed to be refreshed by the ajax request. Is t...

Accessing a Windows Share using PHP

I need to access an Excel file on a Windows Share using PHP but seem to be running into what looks like an authentication issue. I'm using PHP-ExcelReader to open and read the file. Works fine on my local machine but the server I'm putting it on doesn't have the rights to access this share, and so its telling me that the path is unreada...

Authlogic and Roles

I am developing an application which users authlogic for authentication. I would like some way of giving users roles so that I can authorize certain actions to certain roles. Is there an 'out of the box' gem or plugin that suits this or would I be better build it from scratch. What would you recommend? ...

formsauthentication.setauthcookie default expiration?

I thought it was years, but it is getting cleared within 1 hour. ...