# Path: ldaptor/protocols/ldap/distinguishedname.py
# def escape(s):
# def unescape(s):
# def _splitOnNotEscaped(s, separator):
#     def __init__(self, rdn):
#     def __str__(self):
#     def __init__(self, stringValue=None, attributeType=None, value=None):
#     def __str__(self):
#     def __repr__(self):
#     def __hash__(self):
#     def __eq__(self, other):
#     def __ne__(self, other):
#     def __lt__(self, other):
#     def __gt__(self, other):
#     def __le__(self, other):
#     def __ge__(self, other):
#     def __init__(self, magic=None, stringValue=None, attributeTypesAndValues=None):
#     def split(self):
#     def __str__(self):
#     def __repr__(self):
#     def __hash__(self):
#     def __eq__(self, other):
#     def __ne__(self, other):
#     def __lt__(self, other):
#     def __gt__(self, other):
#     def __le__(self, other):
#     def __ge__(self, other):
#     def count(self):
#     def __init__(self, magic=None, stringValue=None, listOfRDNs=None):
#     def split(self):
#     def up(self):
#     def __str__(self):
#     def __repr__(self):
#     def __hash__(self):
#     def __eq__(self, other):
#     def __ne__(self, other):
#     def __cmp__(self, other):
#     def getDomainName(self):
#     def contains(self, other):
# class InvalidRelativeDistinguishedName(Exception):
# class LDAPAttributeTypeAndValue:
# class RelativeDistinguishedName:
# class DistinguishedName:


from twisted.internet import protocol, defer
from ldaptor.protocols.ldap import distinguishedname
    from twisted.internet.utils import SRVConnector
    from twisted.names.srvconnect import SRVConnector

try:
except ImportError:

class LDAPConnector(SRVConnector):
    def __init__(self, reactor, dn, factory,
                 overrides=None, bindAddress=None):
        if not isinstance(dn, distinguishedname.DistinguishedName):

# Path: ldaptor/protocols/ldap/distinguishedname.py
# def escape(s):
# def unescape(s):
# def _splitOnNotEscaped(s, separator):
#     def __init__(self, rdn):
#     def __str__(self):
#     def __init__(self, stringValue=None, attributeType=None, value=None):
#     def __str__(self):
#     def __repr__(self):
#     def __hash__(self):
#     def __eq__(self, other):
#     def __ne__(self, other):
#     def __lt__(self, other):
#     def __gt__(self, other):
#     def __le__(self, other):
#     def __ge__(self, other):
#     def __init__(self, magic=None, stringValue=None, attributeTypesAndValues=None):
#     def split(self):
#     def __str__(self):
#     def __repr__(self):
#     def __hash__(self):
#     def __eq__(self, other):
#     def __ne__(self, other):
#     def __lt__(self, other):
#     def __gt__(self, other):
#     def __le__(self, other):
#     def __ge__(self, other):
#     def count(self):
#     def __init__(self, magic=None, stringValue=None, listOfRDNs=None):
#     def split(self):
#     def up(self):
#     def __str__(self):
#     def __repr__(self):
#     def __hash__(self):
#     def __eq__(self, other):
#     def __ne__(self, other):
#     def __cmp__(self, other):
#     def getDomainName(self):
#     def contains(self, other):
# class InvalidRelativeDistinguishedName(Exception):
# class LDAPAttributeTypeAndValue:
# class RelativeDistinguishedName:
# class DistinguishedName:


# Path: ldaptor/protocols/ldap/ldapconnector.py
from twisted.internet import protocol, defer
from ldaptor.protocols.ldap import distinguishedname
    from twisted.internet.utils import SRVConnector
    from twisted.names.srvconnect import SRVConnector


try:
except ImportError:

class LDAPConnector(SRVConnector):
    def __init__(self, reactor, dn, factory,
                 overrides=None, bindAddress=None):
        if not isinstance(dn, distinguishedname.DistinguishedName):

            dn = distinguishedname.DistinguishedName(stringValue=dn)