authentication

How do I emulate keyboard-interactive ssh login with paramiko?

I'm trying to automate a ssh connection and control of a network device, that for some reason, only allows keyboard-interactive authentication. It doesn't appear that paramiko supports this by default or with the standard sshclient() object. I've spent the past couple of days going through the paramiko documentation trying to figure th...

How to implement blog log-in?

Hey there, I got a little silly question.. After a healthy dose of some Atwood's blog reading, I remembered Rob Conery's post about building your own blog, so, I thought it would be a nice little pet project to do. I was thinking a little bit about it, when then I noticed that neither of their blog's have a "log in" button, reasonably ...

Differentiate between Windows Auth and Forms Auth users when authenticating against same AD with SharePoint 2010 using claims based authentication.

I am currently working on a SharePoint 2010 project where the environment is setup with a SharePoint web application using claims based authentication. The web app is created on port 8081 using Windows Authentication for auth, and extended to port 80 using Forms Based Authentication. The forms authentication provider is setup to use the...

Authentication Problem in Android

I have to send requests to a server in xml format.I did this using DefaultHttpClient and HttpPost(i have to do post request) using StringEntity to send the xml request but i got "401 Authorisation required" errror.I searched and i found out that authentication is required(i have username and password),but how to do is a problem for me.C...

Using multiple accounts on a SVN server.

Right now, I have two different accounts on the same SVN server. Subversion saves the password for the last user, but seems to forget about the other one. The problem is that I need to authentificate myself everytime I switch from one project to another. Is there a way to avoid this? By the way, I'm using the default svn client on linu...

Most up-to-date authentication in Ruby on Rails

I see posts from all sorts of time period talking about pre-built authentication plugins such as restful authentication - but looking at it, it seems that it wasn't updated since April 2008. So I ask, what is the most current pre-built authentication plugin for rails 2.3.5? Thanks! ...

send browser cookie to Web service.

Hi, I have a following architecture: 1) client logins to ASP.NET web site (www.site.com) where the session expired in 3000 minutes and cookieless set to false. 2) After some time client opens Activex in browser. Activex connects to Session Enabled Web Service (www.site.com/Service.asmx) through .NET managed classes. What I need t...

Should I use the same url to login admins and other registred users in Django?

I am quite new to Django, so it may be a stupid question, but, nevertheless: I need Django admin part to edit contents on the site, and also I want to have authentification, that will allow registred users to leave comments. I have the following idea of implementation it: have 2 different tables(admins and other registred users) and us...

Asp .net web app hosted on IIS 7.0 will not use self signed client certificate for certificate authentication for a wcf service?

I have a wcf service hosted on a remote machine (IIS 7.0, Windows Server 2008) and an asp .net web application hosted on my local machine (IIS 7.0, Vista Ultimate 32bit).The wcf service uses a certificate authentication based on a self-signed certificate for development. When I try to connect to the service with my client asp .net appli...

How to generate an XML file from an ASP.NET MVC view?

My main goal is to generate an XML file that can be downloaded. The below code succeeds in generating the file but the view (/Home/XmlView) can be accessed directly. If I use the [Authorize] attribute on the XmlView() method then the file is created with the HTML of my default logon page. How do get the authorization to work with the ...

Grails Acegi manual login

Is there a way to do that without using a POST request to "j_spring_security_check"? ...

GWT RPC Cookie authentication

I'm using gwt on my glassfish server, and I'm attempting to make some of my RPC calls authenticated via cookies. Is this possible? Are there any examples out there of how to code it? ...

PHP looking for a neat way to prevent unauthorised users from viewing pages

I'm looking for a way to prevent unauthorised users from viewing pages without, lets say, wrapping everything in an if authed { show page } else { show error} My website is currently setup like: index.php require_once __WEBROOT__ . '/templates/default/header.tmpl'; require_once content('p'); require_once __WEBROOT__ . '/templates/defa...

Adding an custom authentication string to wcf

Hi, We are using an authentication string (guid) for client identification in our wcf services and for database lookups. We dont want to add this to every messagecontract. Is there a way to do this in wcf? Regards, Rune ...

Integrating security between ASP.Net and Reporting Services

I have an ASP.Net website with the standard forms auth membership database, and then a Reporting Services instance with a bunch of reports on it. How can I integrate the security between the two servers? Worst case, I could just frame in the reports with some code and pass a universal set of credentials to the Reporting server, but I l...

How can I set up a proxy server to mirror an existing proxy server which has a web-based gateway?

So here's the deal: there is a proxy service which I access by appending a string to the domain. So for example, to access foo.com through the bar proxy, I go to foo.com.bar.com. I'm then directed to a web-based authentication form which offers me the chance to choose a domain, and then authenticate by certificate or by password. Afte...

Authlogic and multiple sessions for the same user

Hello, I'm using Authlogic to manage the sessions in my application. However, by default, authlogic allows a user to be logged in many times from different computers. I don't want that (the user pays to get access and I want to avoid users sharing their accounts). Looking in the Authlogic documentation, I've found about the perishable_...

Switching authentication approaches at runtime with Spring Security?

Typically, when you declare different "<authentication-provider>" for your application (webapp in my case), Spring Security takes care of invoking providers one after another, incase of failure. So, say I have DatabaseAuthenticationProvider and LDAPAuthenticationProvider with DatabaseAuthenticationProvider declared first in the config fi...

Security problem - allowing authorised authentication without password

This is our setup - our customers will have a database server with our database on and multiple clients running our frontend. We have some WCF services to allow the clients to request info from the database and each WCF session is authenticated with a username/password stored (encrypted) in the database. This all works fine and has been ...

Authlogic and declarative authorizsation

Hello, I have a rails application based on Authlogic with LDAP for authentification, and declarative authorization for roles requirements. The problem is when i put filter resource_access in my controller, i got this error : undefined method `current_user'.... I had define the method current_user on the application_controller Any hel...