Authenticating against active directory using python + ldap January 15, 2023 by Tarik I was missing l.set_option(ldap.OPT_REFERRALS, 0) From the init.