Module ImportFrom alias TryExcept body Import alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Import alias Import alias FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad NameLoad body Return Call AttributeLoad NameLoad attr Str orelse If Call NameLoad NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return ListComp Call NameLoad NameLoad comprehension NameStore NameLoad orelse If Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call NameLoad ListComp TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr orelse Return NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assert NameLoad Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryFinally body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Str Return NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str finalbody Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Raise Call NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Str Return BinOpMod Str TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Index Num Index Num Assign NameStore Dict Assign SubscriptStore NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Assign SubscriptStore NameLoad Index Str Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num attr Str Assign SubscriptStore NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Assign SubscriptStore NameLoad Index Str IfExp CompareIn Str NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr TryFinally body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str finalbody Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Index Num Index Num Assign NameStore Dict Assign SubscriptStore NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Assign SubscriptStore NameLoad Index Str Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num attr Str Assign SubscriptStore NameLoad Index Str SubscriptLoad Call AttributeLoad NameLoad attr Str ListLoad Str Index Num Assign SubscriptStore NameLoad Index Str IfExp CompareIn Str NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list
N/A nagare log N/A N/A N/A ldap N/A N/A N/A ImportError N/A N/A ldap None N/A sys N/A types toUTF8 N/A N/A v N/A N/A N/A N/A isinstance v unicode N/A N/A N/A N/A v encode utf-8 N/A N/A N/A isinstance v N/A N/A types TupleType N/A types ListType N/A N/A N/A N/A toUTF8 e N/A e v N/A N/A N/A isinstance v N/A types DictType N/A N/A N/A dict N/A N/A N/A toUTF8 k N/A toUTF8 v_ N/A N/A k v_ N/A N/A v items N/A N/A v N/A LDAPAuth N/A object N/A __init__ N/A N/A self ldap_cfg N/A N/A N/A ldap_cfg N/A toUTF8 ldap_cfg N/A N/A self server N/A ldap://%s:%s N/A N/A ldap_cfg N/A host N/A ldap_cfg N/A port N/A N/A self users_base_dn N/A ldap_cfg N/A users_base_dn N/A connect N/A N/A self N/A N/A N/A Connect to LDAP server

        Return:
            - a server connection
         N/A ldap python_ldap not installed N/A N/A N/A ldap initialize N/A self server N/A get_user_dn N/A N/A self uid N/A N/A N/A N/A NotImplementedError N/A check_password N/A N/A self uid password N/A N/A N/A Check if the specified couple user/password is correct

        In:
           - ``uid`` -- the user id
           - ``password`` -- the user password
        Return:
            - True if password is checked
         N/A c N/A N/A self connect N/A dn N/A N/A self get_user_dn uid N/A N/A N/A N/A N/A N/A N/A c simple_bind_s dn N/A N/A password encode UTF-8 N/A True N/A N/A N/A N/A ldap INVALID_CREDENTIALS N/A N/A N/A N/A log info N/A Bad credentials for DN %r dn N/A N/A N/A ldap SERVER_DOWN N/A N/A N/A N/A log critical LDAP server down N/A N/A N/A N/A c unbind N/A get_profile N/A N/A self uid password N/A N/A N/A N/A NotImplementedError N/A N/A NngLDAPAuth N/A LDAPAuth N/A get_user_dn N/A N/A self uid N/A N/A N/A Construct a user DN given an user id

        In:
            - ``uid`` -- the user id
        Return:
            - a string, the user DN
         N/A N/A uid=%s,%s N/A N/A N/A N/A ldap dn escape_dn_chars N/A toUTF8 uid N/A self users_base_dn N/A get_profile N/A N/A self uid password N/A N/A N/A c N/A N/A self connect N/A ldap_result N/A N/A N/A N/A c search_s N/A N/A self get_user_dn uid N/A ldap SCOPE_BASE N/A 0 N/A 1 N/A profile N/A N/A N/A profile N/A uid N/A N/A ldap_result N/A uid N/A 0 N/A N/A profile N/A name N/A N/A N/A N/A ldap_result N/A displayName N/A 0 decode utf-8 N/A N/A profile N/A email N/A N/A ldap_result N/A mail N/A 0 N/A N/A profile N/A picture N/A N/A jpegPhoto ldap_result N/A N/A ldap_result N/A jpegPhoto N/A 0 None N/A profile N/A N/A ADLDAPAuth N/A LDAPAuth N/A connect N/A N/A self N/A N/A N/A conn N/A N/A N/A super ADLDAPAuth self connect N/A N/A N/A conn set_option N/A ldap OPT_REFERRALS 0 N/A N/A conn protocol_version 3 N/A conn N/A check_password N/A N/A self uid password N/A N/A N/A Check if the specified couple user/password is correct

        In:
           - ``uid`` -- the user id
           - ``password`` -- the user password
        Return:
            - True if password is checked
         N/A c N/A N/A self connect N/A N/A N/A N/A N/A N/A N/A c simple_bind_s uid password N/A True N/A N/A N/A N/A ldap INVALID_CREDENTIALS N/A N/A N/A N/A log info N/A Bad credentials for uid %r uid N/A N/A N/A ldap SERVER_DOWN N/A N/A N/A N/A log critical LDAP server down N/A N/A N/A N/A c unbind N/A get_profile N/A N/A self uid password N/A N/A N/A c N/A N/A self connect N/A N/A N/A c simple_bind_s uid password N/A ldap_result N/A N/A N/A N/A c search_s N/A self users_base_dn N/A ldap SCOPE_SUBTREE N/A (userPrincipalName=%s) N/A N/A N/A ldap dn escape_dn_chars N/A toUTF8 uid N/A 0 N/A 1 N/A profile N/A N/A N/A profile N/A uid N/A N/A ldap_result N/A sAMAccountName N/A 0 N/A N/A profile N/A name N/A N/A N/A N/A ldap_result N/A displayName N/A 0 decode utf-8 N/A N/A profile N/A email N/A N/A N/A ldap_result get mail N/A N/A 0 N/A N/A profile N/A picture N/A N/A thumbnailPhoto ldap_result N/A N/A ldap_result N/A thumbnailPhoto N/A 0 None N/A N/A N/A c unbind N/A profile N/A N/A