简体   繁体   中英

Python and Active Directory (modules pyad, flask_ldap, active_directory, python_ldap, etc.)

Trying to investigate using Python instead of a compiled language to support users with "web applications", etc. So at this point, I'm getting the various aspects of "what we do" and trying basic things out to find out if they work.

I'm sure this will probably result in a "not specific enough", or something similar, BUT there are so many problems/issues with all the packages I've tried to install for Python and Active Directory, it makes me wonder if these are being heavily used, and if not - what should be?

We operate in an mixed Windows/Linux environment, Windows servers are 2012/2012R2/2016, Linux boxes are generally RHEL 7 level (couple of older RHEL5 boxes that will be updated). PCs are all 64bit, Windows 10

Need the following capabilities

  • Host the flask content on either Windows or Linux server
  • Get the current AD account login from the client (are they logged into AD, and what account?)
  • From that current account - get the groups that the account is a member of
  • something still supported, and not "umpteen" years old...

I've "looked" into using/installing (on Windows ONLY at this time...):

  1. active_directory (fails because of print syntax errors in the installation of pypiwin32 apparently)
  2. pyad (fails due to above issue in pypiwin32)
  3. python_ldap (fails because VStudio 14.0 is required?! I don't know of a VS version 14 - and this is "Windows unique")
  4. flask_ldap (requires python_ldap which fails)
  5. couple of others with same problems, etc.

Why do several of these REQUIRE a Win32 component (pypiwin32), especially if you operate in a "64bit only" environment? I'm also assuming the pypiwin32 "print" issue is a change between python 2 and 3 (ie "print 'something'" vs. "print('something')"???

Being as nothing I can find for python and active directory will install, I'm not sure where to turn. As I said, I'm investigating at this point.

win32 appears to be the only officially supported version, but there are alternative 64bit builds available. eg https://www.lfd.uci.edu/~gohlke/pythonlibs/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM