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

0

If you can use this module in linux, would you like to know how to install it? I tried with "pip install pyad", however 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)

When 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! Thanks, Abs!

    
asked by anonymous 25.07.2017 / 21:07

1 answer

1

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

  

Python 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 link .

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

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

To get a list of share files:

filelist = conn.listPath('shared_folder_name', '/')
    
25.07.2017 / 22:15