Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Dealing with pywin32 on Linux

Thread Tools

Re: Dealing with pywin32 on Linux

Stefan Sonnenberg-Carstens
Posts: n/a
Am 15.12.2010 13:58, schrieb Benedict Verheyen:
> Hi,
> I'm moving my development environment (python, Django, virtualenv) from Windows
> to Linux (Debian more specific). However, on one app (uses Django), i have a log on
> module that uses AD to authenticate users.
> It's based on the active_directory wrapper of Tim Golden.
> That needs the win32 module but installation of pywin32 fails on importing:
> import _winreg
> ImportError: No module named _winreg
> Kind of logical in hindsight
> However, this makes programming and testing under Linux a bit of a pain if you're
> dealing with Windows specific stuff.
> What is the correct way to proceed (i want to keep my development environment in Linux)?
> I could adjust my software modules to use the Linux counterparts of the AD functions
> that i have to authenticate.
> Or is there another way to deal with this?
> Thanks for any insight,
> Cheers,
> Benedict

Just change to LDAP as authentication method.
Even Active Directory offers LDAP (w/o SSL), and there
are modules to interact with LDAP using python.
And, it is platform indipendent.

See here:

I've done this quite often to auth users in an AD with apache/ldap-auth.
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Dealing with pywin32 on Linux Benedict Verheyen Python 0 12-16-2010 08:09 AM
Dealing with pywin32 on Linux Benedict Verheyen Python 0 12-15-2010 12:58 PM
Dealing with large memory under linux or How to Build 64bit Python Python 1 01-22-2009 08:30 PM
ANNOUNCE: Build 200 of the pywin32 extensions (win32all) available Mark Hammond Python 11 02-17-2004 12:16 AM
pywin32 COM Problem with Excel Range Offset? Michael Jordan Python 2 02-12-2004 07:06 PM