Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #8310
| Date | 2011-06-23 17:07 +0100 |
|---|---|
| From | Tim Golden <mail@timgolden.me.uk> |
| Subject | Re: User Authentication |
| References | <a69464bd-66e7-4855-8ca6-088ece799878@gv8g2000vbb.googlegroups.com> <mailman.280.1308751416.1164.python-list@python.org> <409b39e2-be8f-43c1-989a-b0ba862c3ba6@b21g2000yqc.googlegroups.com> <mailman.318.1308815652.1164.python-list@python.org> <7d4157cb-618a-4d1c-9b91-32691cc02248@y19g2000prd.googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.327.1308845279.1164.python-list@python.org> (permalink) |
On 23/06/2011 16:07, Anurag wrote:
> My application is a web based application for both windows and Linux.
> The web part is developed using Django. So if Python does not support
> it then any support for local sytem account authentication in Django?
>
> I am looking for a common library for both Linux and Windows. Any help
> will be Gr8
The two systems are sufficiently different in this kind of area
that any "common library" will basically consist of code like
this (hand-wavey):
<code>
import sys
if sys.platform.startswith ("win"):
import win32security
def is_valid_user (username, password):
if win32security.LogonUser ( ... )
elif sys.platform.startswith ("linux"):
import pam
def is_valid_user (username, password):
if pam.validate_user (...)
</code>
It's possible someone's put something together already,
but I'm not aware of anything.
TJG
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
User Authentication Anurag <anurag26@gmail.com> - 2011-06-22 06:34 -0700
Re: User Authentication Tim Golden <mail@timgolden.me.uk> - 2011-06-22 15:00 +0100
Re: User Authentication Adam Tauno Williams <awilliam@whitemice.org> - 2011-06-22 10:01 -0400
Re: User Authentication Anurag <anurag26@gmail.com> - 2011-06-22 22:02 -0700
Re: User Authentication Tim Golden <mail@timgolden.me.uk> - 2011-06-23 08:52 +0100
Re: User Authentication Anurag <anurag26@gmail.com> - 2011-06-23 08:07 -0700
Re: User Authentication Tim Golden <mail@timgolden.me.uk> - 2011-06-23 17:07 +0100
Re: User Authentication Michael Ströder <michael@stroeder.com> - 2011-06-24 09:23 +0200
csiph-web