Skip to content

Instantly share code, notes, and snippets.

View datinho's full-sized avatar

Lorenzo Bagni datinho

View GitHub Profile
@datinho
datinho / ldap.py
Created August 22, 2018 14:38
OPT_REFERRALS for Active Directory search issue and multiple search reference issue with empty name_attribute
from __future__ import absolute_import, unicode_literals
from codecs import open
from collections import namedtuple
import logging
import os
from itertools import product
import ldap