Skip to content
Advertisement

Tag: active-directory

Python ldap3 code to get username from SID

I have a SID string (e.g., “S-1-5-21-500000003-1000000000-1000000003-1001”) of a user on a shared Windows server, and I need to get the related username. I suppose that this may be achieved by: Turning the SID string into byte array. Using a suitable ldpa query to get the related username. But I failed to find exact and reliable instructions of how to

Advertisement