PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB`  Mc@sndZddlmZddlZddlZdZddZdZdddZddd Z dS( s 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+ i(t __version__NcCs|r|jdd}|jdd}|jdd}|jdd}|jd d }|jd d }|jd d}|jdd}|jdd}|ddks|ddkrdjd|f}n|ddkrdj|d df}qn|S(sa Escape all DN special characters found in s with a back-slash (see RFC 4514, section 2.4) s\s\\t,s\,t+s\+t"s\"ts\>t;s\;t=s\=ts\it#t tis\ (treplacetjoin(ts((s-/usr/lib64/python2.7/site-packages/ldap/dn.pytescape_dn_charss icCs&|s gStjjdtj||S(s 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) N(tldapt functionst_ldap_function_calltNonet_ldaptstr2dn(tdntflags((s-/usr/lib64/python2.7/site-packages/ldap/dn.pyR*s c Cs`djg|D]L}djg|D]0\}}}dj|t|pDdf^q ^q S(s 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. RRRR (R R(Rtrdntatypetavaluetdummy((s-/usr/lib64/python2.7/site-packages/ldap/dn.pytdn2str8sc Cs|s gSt||}g}x|D]}|rs|jdjg|D]!\}}}t|p`d^qEq&|jdjg|D]0\}}}dj|t|pdf^qq&W|S(s 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. RR R(RtappendR R( RtnotypesRt dn_decomptrdn_listRRRR((s-/usr/lib64/python2.7/site-packages/ldap/dn.pyt explode_dnEs  2 BcCs|s gSt||d}|rIg|D]\}}}|pBd^q*Sg|D]0\}}}dj|t|ptdf^qPSdS(s 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. iR RN(RR R(RRRt rdn_decompRRR((s-/usr/lib64/python2.7/site-packages/ldap/dn.pyt explode_rdn_s &( t__doc__RRRtldap.functionsRRRR!R#(((s-/usr/lib64/python2.7/site-packages/ldap/dn.pyt s