Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #8310

Re: User Authentication

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <mail@timgolden.me.uk>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'elif': 0.04; 'django.': 0.05; 'sys': 0.05; 'python': 0.08; 'from:addr:timgolden.me.uk': 0.09; 'from:name:tim golden': 0.09; 'linux.': 0.09; 'message- id:@timgolden.me.uk': 0.09; 'wrote:': 0.15; 'library': 0.15; 'django?': 0.16; 'library"': 0.16; 'received:74.55.86': 0.16; 'received:74.55.86.74': 0.16; 'received:smtp.webfaction.com': 0.16; 'received:webfaction.com': 0.16; "someone's": 0.16; 'sytem': 0.16; 'def': 0.16; 'linux': 0.18; 'header:In-Reply-To:1': 0.22; 'code': 0.24; 'windows': 0.27; "i'm": 0.27; 'import': 0.29; 'consist': 0.29; 'tjg': 0.30; 'does': 0.33; 'header:User-Agent:1': 0.34; 'to:addr:python-list': 0.34; '...': 0.34; 'but': 0.37; 'using': 0.38; 'received:192': 0.38; 'something': 0.38; 'subject:: ': 0.38; 'two': 0.38; 'put': 0.38; 'common': 0.39; 'help': 0.39; 'to:addr:python.org': 0.39; 'skip:s 20': 0.40; 'from:addr:mail': 0.64; 'account': 0.66; 'anything.': 0.71
Date Thu, 23 Jun 2011 17:07:56 +0100
From Tim Golden <mail@timgolden.me.uk>
User-Agent Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.18) Gecko/20110616 Lightning/1.0b2 Thunderbird/3.1.11
MIME-Version 1.0
To python-list@python.org
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>
In-Reply-To <7d4157cb-618a-4d1c-9b91-32691cc02248@y19g2000prd.googlegroups.com>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.327.1308845279.1164.python-list@python.org> (permalink)
Lines 32
NNTP-Posting-Host 82.94.164.166
X-Trace 1308845280 news.xs4all.nl 14135 [::ffff:82.94.164.166]:35362
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:8310

Show key headers only | View raw


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 | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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