Linux server.edchosting.com 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
LiteSpeed
Server IP : 75.98.162.185 & Your IP : 216.73.216.163
Domains :
Cant Read [ /etc/named.conf ]
User : goons4good
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib64 /
python2.7 /
site-packages /
ldap /
Delete
Unzip
Name
Size
Permission
Date
Action
controls
[ DIR ]
drwxr-xr-x
2022-07-26 09:09
extop
[ DIR ]
drwxr-xr-x
2022-07-26 09:09
schema
[ DIR ]
drwxr-xr-x
2022-07-26 09:09
__init__.py
2.2
KB
-rw-r--r--
2014-03-24 06:20
__init__.pyc
3.27
KB
-rw-r--r--
2015-03-06 00:13
__init__.pyo
2.87
KB
-rw-r--r--
2015-03-06 00:13
async.py
8.38
KB
-rw-r--r--
2014-03-07 15:01
async.pyc
10.81
KB
-rw-r--r--
2015-03-06 00:13
async.pyo
10.81
KB
-rw-r--r--
2015-03-06 00:13
cidict.py
2.64
KB
-rw-r--r--
2011-06-08 15:35
cidict.pyc
4.57
KB
-rw-r--r--
2015-03-06 00:13
cidict.pyo
4.15
KB
-rw-r--r--
2015-03-06 00:13
dn.py
2.73
KB
-rw-r--r--
2011-06-08 15:35
dn.pyc
3.47
KB
-rw-r--r--
2015-03-06 00:13
dn.pyo
3.47
KB
-rw-r--r--
2015-03-06 00:13
filter.py
1.44
KB
-rw-r--r--
2011-10-26 14:46
filter.pyc
1.83
KB
-rw-r--r--
2015-03-06 00:13
filter.pyo
1.83
KB
-rw-r--r--
2015-03-06 00:13
functions.py
3.32
KB
-rw-r--r--
2011-11-25 07:22
functions.pyc
4.05
KB
-rw-r--r--
2015-03-06 00:13
functions.pyo
3.8
KB
-rw-r--r--
2015-03-06 00:13
ldapobject.py
35.23
KB
-rw-r--r--
2014-03-07 15:01
ldapobject.pyc
39.8
KB
-rw-r--r--
2015-03-06 00:13
ldapobject.pyo
39.41
KB
-rw-r--r--
2015-03-06 00:13
logger.py
330
B
-rw-r--r--
2011-03-21 10:19
logger.pyc
899
B
-rw-r--r--
2015-03-06 00:13
logger.pyo
899
B
-rw-r--r--
2015-03-06 00:13
modlist.py
4.25
KB
-rw-r--r--
2011-06-08 15:35
modlist.pyc
3.88
KB
-rw-r--r--
2015-03-06 00:13
modlist.pyo
3.88
KB
-rw-r--r--
2015-03-06 00:13
resiter.py
945
B
-rw-r--r--
2011-10-26 14:46
resiter.pyc
1.23
KB
-rw-r--r--
2015-03-06 00:13
resiter.pyo
1.23
KB
-rw-r--r--
2015-03-06 00:13
sasl.py
4
KB
-rw-r--r--
2014-03-24 06:20
sasl.pyc
5.24
KB
-rw-r--r--
2015-03-06 00:13
sasl.pyo
4.95
KB
-rw-r--r--
2015-03-06 00:13
syncrepl.py
16.91
KB
-rw-r--r--
2015-03-06 00:13
syncrepl.pyc
14.31
KB
-rw-r--r--
2015-03-06 00:13
syncrepl.pyo
14.31
KB
-rw-r--r--
2015-03-06 00:13
Save
Rename
""" dn.py - misc stuff for handling distinguished names (see RFC 4514) See http://www.python-ldap.org/ for details. \$Id: dn.py,v 1.11 2010/06/03 12:26:39 stroeder Exp $ Compability: - Tested with Python 2.0+ """ from ldap import __version__ import _ldap import ldap.functions def escape_dn_chars(s): """ Escape all DN special characters found in s with a back-slash (see RFC 4514, section 2.4) """ if s: s = s.replace('\\','\\\\') s = s.replace(',' ,'\\,') s = s.replace('+' ,'\\+') s = s.replace('"' ,'\\"') s = s.replace('<' ,'\\<') s = s.replace('>' ,'\\>') s = s.replace(';' ,'\\;') s = s.replace('=' ,'\\=') s = s.replace('\000' ,'\\\000') if s[0]=='#' or s[0]==' ': s = ''.join(('\\',s)) if s[-1]==' ': s = ''.join((s[:-1],'\\ ')) return s def str2dn(dn,flags=0): """ This function takes a DN as string as parameter and returns a decomposed DN. It's the inverse to dn2str(). flags describes the format of the dn See also the OpenLDAP man-page ldap_str2dn(3) """ if not dn: return [] return ldap.functions._ldap_function_call(None,_ldap.str2dn,dn,flags) def dn2str(dn): """ This function takes a decomposed DN as parameter and returns a single string. It's the inverse to str2dn() but will always return a DN in LDAPv3 format compliant to RFC 4514. """ return ','.join([ '+'.join([ '='.join((atype,escape_dn_chars(avalue or ''))) for atype,avalue,dummy in rdn]) for rdn in dn ]) def explode_dn(dn,notypes=0,flags=0): """ explode_dn(dn [, notypes=0]) -> list This function takes a DN and breaks it up into its component parts. The notypes parameter is used to specify that only the component's attribute values be returned and not the attribute types. """ if not dn: return [] dn_decomp = str2dn(dn,flags) rdn_list = [] for rdn in dn_decomp: if notypes: rdn_list.append('+'.join([ escape_dn_chars(avalue or '') for atype,avalue,dummy in rdn ])) else: rdn_list.append('+'.join([ '='.join((atype,escape_dn_chars(avalue or ''))) for atype,avalue,dummy in rdn ])) return rdn_list def explode_rdn(rdn,notypes=0,flags=0): """ explode_rdn(rdn [, notypes=0]) -> list This function takes a RDN and breaks it up into its component parts if it is a multi-valued RDN. The notypes parameter is used to specify that only the component's attribute values be returned and not the attribute types. """ if not rdn: return [] rdn_decomp = str2dn(rdn,flags)[0] if notypes: return [avalue or '' for atype,avalue,dummy in rdn_decomp] else: return ['='.join((atype,escape_dn_chars(avalue or ''))) for atype,avalue,dummy in rdn_decomp]