Hi,

LDAP natively supports a lot of different types of syntaxes for it's attributes
in schemas, like syntaxes for strings, booleans, dates, integers, numbers,
etc... But python-ldap queries always return utf-8 encoded strings for any type
of ldap attribute syntax.

So this way in my application to properly handle, for example, boolean ldap
attribute syntax I'm usually doing:

    if ldap_value == 'TRUE':
        value = True
    elif ldap_value == 'FALSE'
        value = False

I'm pretty new to LDAP development so don't know a lot about it's history and
design decisions made during it's development. So I'm just wondering why
python-ldap doesn't benefit from those LDAP attribute syntax definitions and
performs conversion to python data types when possible but always returns
strings.

Was this discussed previously? I can't google any relevant information on this
topic. Any hints, links, suggestions, insights will be highly appreciated!

Regards,
Vitaliy Podoba



------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Python-LDAP-dev mailing list
Python-LDAP-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev

Reply via email to