Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'from:addr:timgolden.me.uk': 0.09; 'from:name:tim golden': 0.09; 'ldap': 0.09; 'linux.': 0.09; 'message-id:@timgolden.me.uk': 0.09; 'wed,': 0.13; 'wrote:': 0.15; 'adam': 0.16; 'linux).': 0.16; 'python-ldap': 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; 'url:timgolden': 0.16; 'looked': 0.16; 'pm,': 0.16; 'this:': 0.16; '>>>': 0.16; 'linux,': 0.22; 'header:In-Reply-To:1': 0.22; 'windows': 0.27; 'somebody': 0.28; 'all,': 0.28; "didn't": 0.29; '22,': 0.30; 'tjg': 0.30; "won't": 0.32; 'header:User-Agent:1': 0.34; 'to:addr:python-list': 0.34; "can't": 0.34; 'installed': 0.35; 'url:python': 0.36; 'anything': 0.37; 'but': 0.37; 'received:192': 0.38; 'user': 0.38; 'something': 0.38; 'subject:: ': 0.38; 'should': 0.39; 'speak': 0.39; 'to:addr:python.org': 0.39; 'more': 0.60; 'from:addr:mail': 0.64; 'williams': 0.66; 'account': 0.66; 'jun': 0.67; 'guarantee': 0.71; '06:34': 0.84 Date: Thu, 23 Jun 2011 08:52:49 +0100 From: Tim Golden 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: <409b39e2-be8f-43c1-989a-b0ba862c3ba6@b21g2000yqc.googlegroups.com> In-Reply-To: <409b39e2-be8f-43c1-989a-b0ba862c3ba6@b21g2000yqc.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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 31 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1308815652 news.xs4all.nl 14145 [::ffff:82.94.164.166]:40136 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:8280 On 23/06/2011 06:02, Anurag wrote: > On Jun 22, 7:01 pm, Adam Tauno Williams > wrote: >> On Wed, 2011-06-22 at 06:34 -0700, Anurag wrote: >>> Hi All, >> >>> I am working on application which needs to do a authentication against >>> LDAP, if LDAP not installed then local system account (administrator >>> user in windows and root user in Linux). This should work on both >>> Windows and Linux. >> >> See python-ldap > > I looked into python-ldap, it supports ldap authentication. But I > didn't find anything that support local system account authentication > when no LDAP both in windows and Linux. If you want local system authentication on Windows, you're going to need something like this: http://timgolden.me.uk/python/win32_how_do_i/check-a-users-credentials.html > Ond more thing, somebody suggested me to use PAM. Is it a good choice > and whether it supports both Windows and Linux? Please let me know > which is best to use. I can't speak for Linux, but I can guarantee that PAM won't take you anywhere on Windows :) TJG