Python Forum
Python3/Flask/LDAP-Active Directory
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python3/Flask/LDAP-Active Directory
#1
I need a cross-platform (Linux/Windows) method that allows me to perform LDAP/Active Directory queries in Python3. I need the following criteria:
  • Determine who the AD user is when the flask/app is running on a Linux platform
  • Find out what AD group(s) they are a member of
  • Normally hosted on a Linux platform, but same source could be hosted on Windows

I'm assuming this would be something using LDAP only (I want the same source to run in either environment - Linux or Windows).

I've been trying several things for the last couple days, and just seem to keep running into issues that either the methodology is specific to Python 2.x (python syntax errors - usually print command) and flat won't install/compile on Python 3.x, or its Windows specific, or...

Even installing python-ldap on Linux errors out that it can't find Python.h (and I can't install on Windows, since it says it requires Visual Studio 14(!?!?) )

I have NOT been able to successfully do anything is cross-platform. So - what SHOULD be used, and some examples?
Reply
#2
Question misunderstood. Answer removed
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Read and write active Excel file euras 4 597 Jun-29-2021, 11:16 PM
Last Post: Pedroski55
  LDAP search for getmail sharbich 0 485 May-04-2021, 09:58 AM
Last Post: sharbich
  Active Directory add an attribute. SpongeB0B 2 751 Oct-13-2020, 05:36 AM
Last Post: SpongeB0B
  A problem with a TButton's foreground 'active' color. Mik3e 0 495 Sep-10-2020, 01:12 AM
Last Post: Mik3e
  Edit Open and Active Excel sheet in Python JoeDainton123 1 784 Jul-29-2020, 12:52 AM
Last Post: Larz60+
  I can not get python3 to work... frustrating... something about directory? pythonforumuser 1 698 Jan-31-2020, 05:45 PM
Last Post: snippsat
  Gnuradio python3 is not compatible python3 xmlrpc library How Can I Fix İt ? muratoznnnn 3 2,422 Nov-07-2019, 05:47 PM
Last Post: DeaD_EyE
  installation directory of modules in python3.7 srm 2 1,353 Jul-11-2019, 01:06 PM
Last Post: joe_momma
  LDAP code to query for host not returning data burvil 2 1,658 Oct-17-2018, 10:03 PM
Last Post: burvil

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020