Is it possible to use pyad (active directory module) on linux?

Asked

Viewed 379 times

0

If it is possible to use this module on linux, would you like to know how to install it? tried with "Pip install pyad", but I get the message below:

Could not find a version that satisfies the requirement pywin32 (from pyad) (from versions: ) No matching Distribution found for pywin32 (from pyad)

While trying to install pywin32 I get the message:

Could not find a version that satisfies the requirement pywin32 (from versions: ) No matching Distribution found for pywin32

Any help is welcome! Thank you, Abs!

  • Why you want to run Windows libraries on Linux?

  • Anderson, I need to validate the existence of a user in Active Directory

1 answer

1


Unless the document is deliberately dubious, everything indicates that the package was made specifically for windows:

pyad is a Python library Designed to provide a simple, Pythonic interface to Active Directory through ADSI on the Windows Platform. Complete Documentation can be found at https://zakird.com/pyad.

There’s the package pySMB which is an implementation of SMB/CIFS procotolo on the client side, I’m not sure if it offers specific functions for authentication, but there are functions that authenticate, indirectly, when accessing SMB/CIFS shares, for example:

conn = SMBConnection(userid, password, client_machine_name, remote_machine_name, 
use_ntlm_v2 = True)
conn.connect(server_ip, 139)

To get the list of sharing files:

filelist = conn.listPath('shared_folder_name', '/')
  • Thank you very much Sidon, that’s exactly what I wanted to know! However, I still have a question: Being a package specifically made for windows, so I won’t be able to install it on linux to use it in an import in my python code, correct?

  • Probably not, but even if you get it for sure you won’t be able to use it, and in the documentation it says that it depends on another package called pywin32 (or something like that), just by name you can see that it won’t happen in the "best only in the world". :-)

  • I understood Sidon, Thank you very much. As for the "best only in the world", I do not think but I am obliged to use hehe...

  • @Luisguilhermetorrano If the answer served, consider giving the accepted (No "V" next to the number of votes). As for the "best only" was a joke, but if you continue to use for many years, one day you will understand, little grasshopper. :-)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.