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
  Active Directory integration dady 2 507 Oct-13-2023, 04:02 AM
Last Post: deanhystad
  Connecting to LDAP through Python ranjansanyal2007 0 408 Oct-09-2023, 05:21 PM
Last Post: ranjansanyal2007
  read active document name - other than from the window title ineuw 0 525 Sep-11-2023, 09:06 AM
Last Post: ineuw
  Ldap Search for finding user Groups ilknurg 1 1,755 Mar-11-2022, 12:10 PM
Last Post: DeaD_EyE
  Read and write active Excel file euras 4 3,481 Jun-29-2021, 11:16 PM
Last Post: Pedroski55
  LDAP search for getmail sharbich 0 1,794 May-04-2021, 09:58 AM
Last Post: sharbich
  Active Directory add an attribute. SpongeB0B 2 2,222 Oct-13-2020, 05:36 AM
Last Post: SpongeB0B
  A problem with a TButton's foreground 'active' color. Mik3e 0 1,406 Sep-10-2020, 01:12 AM
Last Post: Mik3e
  Edit Open and Active Excel sheet in Python JoeDainton123 1 2,102 Jul-29-2020, 12:52 AM
Last Post: Larz60+
  I can not get python3 to work... frustrating... something about directory? pythonforumuser 1 1,907 Jan-31-2020, 05:45 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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