def _bind_indirect_user(self, ldap, con):
        """
            If using AUTH_LDAP_BIND_USER bind this user before performing search
            :param ldap: The ldap module reference
            :param con: The ldap connection
        """
        indirect_user = self.auth_ldap_bind_user
        if indirect_user:
            indirect_password = self.auth_ldap_bind_password
            log.debug("LDAP indirect bind with: {0}".format(indirect_user))
            con.bind_s(indirect_user, indirect_password)
            log.debug("LDAP BIND indirect OK")
def _bind_indirect_user ( self , ldap , con ) : indirect_user = self . auth_ldap_bind_user if indirect_user : indirect_password = self . auth_ldap_bind_password log . debug ( "LDAP indirect bind with: {0}" . format ( indirect_user ) ) con . bind_s ( indirect_user , indirect_password ) log . debug ( "LDAP BIND indirect OK" )
If using AUTH_LDAP_BIND_USER bind this user before performing search
            :param ldap: The ldap module reference
            :param con: The ldap connection