Module ImportFrom alias ImportFrom alias ImportFrom alias identifier alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias FunctionDef arguments args defaults body Expr Str ImportFrom alias Assign NameStore ListLoad TupleLoad Str Str For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Return Call NameLoad NameLoad keyword Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Num decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str Assign NameStore Call NameLoad keyword Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad Str keyword ListLoad TupleLoad Str Call NameLoad Str TupleLoad Str Str keyword Str keyword Call NameLoad Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad Str keyword ListLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Call NameLoad Str TupleLoad Str Call NameLoad Str TupleLoad Str Call NameLoad Str TupleLoad Str Call NameLoad Str TupleLoad Str Call NameLoad Str keyword Str keyword Call NameLoad Str keyword Call AttributeLoad NameLoad attr keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad Str keyword Num keyword Call NameLoad Str keyword Call AttributeLoad NameLoad attr keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad Str keyword Call NameLoad keyword Call NameLoad Str keyword Call AttributeLoad NameLoad attr keyword Dict Str Str Assign NameStore Call NameLoad keyword Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad Str keyword Str keyword Call NameLoad Str keyword Call AttributeLoad NameLoad attr keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad Str keyword Num keyword Call NameLoad Str keyword Call AttributeLoad NameLoad attr keyword Dict Str Str Assign NameStore Call NameLoad keyword Call NameLoad Str keyword Str keyword Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad Str keyword ListLoad TupleLoad Str Call NameLoad Str TupleLoad Str Call NameLoad Str keyword Str keyword Call NameLoad Str keyword Call AttributeLoad NameLoad attr keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad Str keyword Str keyword Call NameLoad Str keyword NameLoad keyword Call AttributeLoad NameLoad attr keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad Str keyword Str keyword Call NameLoad Str keyword Call AttributeLoad NameLoad attr keyword Dict Str Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad Str keyword Str keyword Call NameLoad Str keyword NameLoad keyword Call AttributeLoad NameLoad attr keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad Str keyword Str keyword Call NameLoad Str keyword NameLoad keyword Call AttributeLoad NameLoad attr keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad Str keyword Str keyword Call NameLoad Str keyword NameLoad keyword Call AttributeLoad NameLoad attr keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad Str keyword Str keyword Call NameLoad Str keyword Call AttributeLoad NameLoad attr keyword Dict Str Str Assign NameStore Call NameLoad keyword Call NameLoad Str keyword Str keyword Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad Str keyword Str keyword Call NameLoad Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad Str keyword Str keyword Call NameLoad Str keyword NameLoad Assign NameStore Call NameLoad keyword Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad Str keyword Num keyword Call NameLoad Str keyword Call AttributeLoad NameLoad attr keyword Dict Str Str Assign NameStore Call NameLoad keyword Call NameLoad Str keyword Str keyword Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad Str keyword Num keyword Call NameLoad Str keyword Call AttributeLoad NameLoad attr keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad Str keyword Num keyword Call NameLoad Str keyword Call AttributeLoad NameLoad attr keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad Str keyword ListLoad keyword Str keyword Call NameLoad Str keyword Call AttributeLoad NameLoad attr keyword Dict Str Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore SubscriptLoad AttributeLoad NameLoad attr Index Str attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareNotIn Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str ListLoad Num Num Num body Raise Call AttributeLoad NameLoad attr Call NameLoad Str Return SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str TryExcept body Assign NameStore BinOpMod NameLoad Dict Str Str handlers ExceptHandler type TupleLoad NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str If BoolOpOr CompareLt NameLoad Num CompareGt NameLoad Num body Raise Call AttributeLoad NameLoad attr Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If CompareNotEq SubscriptLoad NameLoad Index Str Str body Return NameLoad If CompareEq SubscriptLoad NameLoad Index Str Str body Assign NameStore ListLoad Str Str orelse Assign NameStore ListLoad Str For NameStore NameLoad body If BoolOpOr CompareNotIn NameLoad NameLoad CompareEq SubscriptLoad NameLoad Index NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Import alias ImportFrom alias alias Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr If BoolOpOr UnaryOpNot NameLoad CompareNotEq SubscriptLoad NameLoad Index Str Str body Return If UnaryOpNot Call NameLoad NameLoad Str body Expr Call NameLoad NameLoad Str Dict Str Str Str Str Str Str Assign NameStore IfExp CompareEq SubscriptLoad NameLoad Index Str Str Str Str AugAssignAdd NameStore BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call NameLoad NameLoad Str NameLoad Expr Call NameLoad NameLoad Str Call NameLoad Expr Call NameLoad NameLoad Str Call NameLoad SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Str If CompareEq SubscriptLoad NameLoad Index Str Str body Expr Call NameLoad NameLoad Str SubscriptLoad NameLoad Index Str Expr Call NameLoad NameLoad Str SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call NameLoad NameLoad Str NameLoad orelse Expr Call NameLoad NameLoad Str SubscriptLoad NameLoad Index Str If CompareEq SubscriptLoad NameLoad Index Str Str body If UnaryOpNot Call NameLoad NameLoad Str body Expr Call NameLoad NameLoad Str Dict AttributeLoad NameLoad attr NameLoad orelse Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A django forms django.conf settings django.utils.translation ugettext _ ugettext_lazy modoboa.lib parameters modoboa.lib.cryptutils random_key modoboa.lib.form_utils YesNoField SeparatorField InlineRadioSelect enabled_applications N/A N/A N/A N/A N/A Return the list of installed extensions.

    We check if the table exists before trying to fetch activated
    extensions because the admin module is always imported by Django,
    even before the database exists (example: the first ``syncdb``).

    :return: a list
     modoboa.core.extensions exts_pool N/A result N/A N/A user user N/A extension N/A N/A exts_pool list_all N/A N/A N/A N/A result append N/A N/A extension N/A name N/A extension N/A name N/A N/A sorted result key N/A N/A N/A e N/A N/A e N/A 0 N/A GeneralParametersForm N/A N/A parameters AdminParametersForm N/A N/A General parameters. N/A app core N/A sep1 N/A SeparatorField label N/A ugettext_lazy Authentication N/A authentication_type N/A N/A forms ChoiceField label N/A ugettext_lazy Authentication type choices N/A N/A local N/A ugettext_lazy Local N/A ldap LDAP initial local help_text N/A ugettext_lazy The backend used for authentication widget InlineRadioSelect N/A password_scheme N/A N/A forms ChoiceField label N/A ugettext_lazy Default password scheme choices N/A N/A sha512crypt sha512crypt N/A sha256crypt sha256crypt N/A blfcrypt bcrypt N/A md5crypt N/A ugettext_lazy md5crypt (weak) N/A sha256 N/A ugettext_lazy sha256 (weak) N/A md5 N/A ugettext_lazy md5 (weak) N/A crypt N/A ugettext_lazy crypt (weak) N/A plain N/A ugettext_lazy plain (weak) initial sha512crypt help_text N/A ugettext_lazy Scheme used to crypt mailbox passwords widget N/A N/A forms Select attrs N/A class form-control N/A rounds_number N/A N/A forms IntegerField label N/A ugettext_lazy Rounds initial 70000 help_text N/A ugettext_lazy Number of rounds to use (only used by sha256crypt and sha512crypt). Must be between 1000 and 999999999, inclusive. widget N/A N/A forms TextInput attrs N/A class form-control N/A secret_key N/A N/A forms CharField label N/A ugettext_lazy Secret key initial N/A random_key help_text N/A ugettext_lazy Key used to encrypt/decrypt passwords widget N/A N/A forms TextInput attrs N/A class form-control N/A ldap_sep N/A SeparatorField label N/A ugettext_lazy LDAP settings N/A ldap_server_address N/A N/A forms CharField label N/A ugettext_lazy Server address initial localhost help_text N/A ugettext_lazy The IP address or the DNS name of the LDAP server widget N/A N/A forms TextInput attrs N/A class form-control N/A ldap_server_port N/A N/A forms IntegerField label N/A ugettext_lazy Server port initial 389 help_text N/A ugettext_lazy The TCP port number used by the LDAP server widget N/A N/A forms TextInput attrs N/A class form-control N/A ldap_secured N/A YesNoField label N/A ugettext_lazy Use a secured connection initial no help_text N/A ugettext_lazy Use an SSL/TLS connection to access the LDAP server N/A ldap_auth_method N/A N/A forms ChoiceField label N/A ugettext_lazy Authentication method choices N/A N/A searchbind N/A ugettext_lazy Search and bind N/A directbind N/A ugettext_lazy Direct bind initial searchbind help_text N/A ugettext_lazy Choose the authentication method to use widget N/A N/A forms Select attrs N/A class form-control N/A ldap_bind_dn N/A N/A forms CharField label N/A ugettext_lazy Bind DN initial help_text N/A ugettext_lazy The distinguished name to use when binding to the LDAP server. Leave empty for an anonymous bind required False widget N/A N/A forms TextInput attrs N/A class form-control N/A ldap_bind_password N/A N/A forms CharField label N/A ugettext_lazy Bind password initial help_text N/A ugettext_lazy The password to use when binding to the LDAP server (with 'Bind DN') widget N/A N/A forms PasswordInput attrs N/A class form-control render_value True required False N/A ldap_search_base N/A N/A forms CharField label N/A ugettext_lazy Users search base initial help_text N/A ugettext_lazy The distinguished name of the search base used to find users required False widget N/A N/A forms TextInput attrs N/A class form-control N/A ldap_search_filter N/A N/A forms CharField label N/A ugettext_lazy Search filter initial (mail=%(user)s) help_text N/A ugettext_lazy An optional filter string (e.g. '(objectClass=person)'). In order to be valid, it must be enclosed in parentheses. required False widget N/A N/A forms TextInput attrs N/A class form-control N/A ldap_user_dn_template N/A N/A forms CharField label N/A ugettext_lazy User DN template initial help_text N/A ugettext_lazy The template used to construct a user's DN. It should contain one placeholder (ie. %(user)s) required False widget N/A N/A forms TextInput attrs N/A class form-control N/A ldap_password_attribute N/A N/A forms CharField label N/A ugettext_lazy Password attribute initial userPassword help_text N/A ugettext_lazy The attribute used to store user passwords widget N/A N/A forms TextInput attrs N/A class form-control N/A ldap_is_active_directory N/A YesNoField label N/A ugettext_lazy Active Directory initial no help_text N/A ugettext_lazy Tell if the LDAP server is an Active Directory one N/A ldap_admin_groups N/A N/A forms CharField label N/A ugettext_lazy Administrator groups initial help_text N/A ugettext_lazy Members of those LDAP Posix groups will be created as domain administrators. Use ';' characters to separate groups. required False N/A ldap_groups_search_base N/A N/A forms CharField label N/A ugettext_lazy Groups search base initial help_text N/A ugettext_lazy The distinguished name of the search base used to find groups required False N/A sep3 N/A SeparatorField label N/A ugettext_lazy Miscellaneous N/A top_notifications_check_interval N/A N/A forms IntegerField label N/A _ Top notifications check interval initial 30 help_text N/A _ Interval between two top notification checks (in seconds) widget N/A N/A forms TextInput attrs N/A class form-control N/A check_new_versions N/A YesNoField label N/A ugettext_lazy Check new versions initial yes help_text N/A ugettext_lazy Automatically checks if a newer version is available N/A log_maximum_age N/A N/A forms IntegerField label N/A ugettext_lazy Maximum log record age initial 365 help_text N/A ugettext_lazy The maximum age in days of a log record widget N/A N/A forms TextInput attrs N/A class form-control N/A items_per_page N/A N/A forms IntegerField label N/A ugettext_lazy Items per page initial 30 help_text N/A ugettext_lazy Number of displayed items per page widget N/A N/A forms TextInput attrs N/A class form-control N/A default_top_redirection N/A N/A forms ChoiceField label N/A ugettext_lazy Default top redirection choices N/A initial user help_text N/A ugettext_lazy The default redirection used when no application is specified widget N/A N/A forms Select attrs N/A class form-control N/A visibility_rules N/A ldap_sep ldap_server_address ldap_server_port ldap_secured ldap_auth_method ldap_bind_dn ldap_bind_password ldap_search_base ldap_search_filter ldap_user_dn_template ldap_password_attribute ldap_is_active_directory ldap_admin_groups ldap_groups_search_base authentication_type=ldap authentication_type=ldap authentication_type=ldap authentication_type=ldap authentication_type=ldap ldap_auth_method=searchbind ldap_auth_method=searchbind ldap_auth_method=searchbind ldap_auth_method=searchbind ldap_auth_method=directbind authentication_type=ldap authentication_type=ldap authentication_type=ldap authentication_type=ldap __init__ N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A super GeneralParametersForm self __init__ args kwargs N/A N/A N/A N/A self fields N/A default_top_redirection choices N/A enabled_applications N/A clean_secret_key N/A N/A self N/A N/A N/A N/A N/A len N/A N/A self cleaned_data N/A secret_key N/A 16 24 32 N/A N/A N/A N/A forms ValidationError N/A _ Key must be either 16, 24, or 32 bytes long N/A N/A N/A self cleaned_data N/A secret_key N/A clean_ldap_user_dn_template N/A N/A self N/A N/A N/A tpl N/A N/A self cleaned_data N/A ldap_user_dn_template N/A N/A N/A test N/A tpl N/A user toto N/A N/A N/A N/A KeyError ValueError N/A N/A N/A N/A forms ValidationError N/A _ Invalid syntax N/A tpl N/A clean_rounds_number N/A N/A self N/A N/A N/A value N/A N/A self cleaned_data N/A rounds_number N/A N/A N/A value 1000 N/A value 999999999 N/A N/A N/A N/A forms ValidationError N/A _ Invalid rounds number N/A value N/A clean N/A N/A self N/A N/A N/A Custom validation method

        Depending on 'ldap_auth_method' value, we check for different
        required parameters.
         N/A N/A N/A N/A super GeneralParametersForm self clean N/A cleaned_data N/A self cleaned_data N/A N/A N/A cleaned_data N/A authentication_type ldap N/A N/A cleaned_data N/A N/A N/A cleaned_data N/A ldap_auth_method searchbind N/A N/A required_fields N/A ldap_search_base ldap_search_filter N/A N/A required_fields N/A ldap_user_dn_template N/A f required_fields N/A N/A N/A N/A f cleaned_data N/A N/A cleaned_data N/A f N/A N/A N/A N/A self add_error f N/A _ This field is required N/A cleaned_data N/A to_django_settings N/A N/A self N/A N/A N/A Apply LDAP related parameters to Django settings

        Doing so, we can use the django_auth_ldap module.
         N/A N/A N/A ldap django_auth_ldap.config LDAPSearch PosixGroupType N/A ldap_available True N/A N/A N/A ImportError N/A N/A ldap_available False N/A values N/A N/A self get_current_values N/A N/A N/A ldap_available N/A N/A values N/A authentication_type ldap N/A N/A N/A N/A N/A hasattr settings AUTH_LDAP_USER_ATTR_MAP N/A N/A N/A setattr settings AUTH_LDAP_USER_ATTR_MAP N/A first_name email last_name givenName mail sn N/A ldap_uri N/A N/A N/A values N/A ldap_secured yes ldaps:// ldap:// N/A ldap_uri N/A %s:%s N/A N/A values N/A ldap_server_address N/A values N/A ldap_server_port N/A N/A setattr settings AUTH_LDAP_SERVER_URI ldap_uri N/A N/A setattr settings AUTH_LDAP_GROUP_TYPE N/A PosixGroupType N/A N/A setattr settings AUTH_LDAP_GROUP_SEARCH N/A LDAPSearch N/A values N/A ldap_groups_search_base N/A ldap SCOPE_SUBTREE (objectClass=posixGroup) N/A N/A N/A values N/A ldap_auth_method searchbind N/A N/A N/A setattr settings AUTH_LDAP_BIND_DN N/A values N/A ldap_bind_dn N/A N/A setattr settings AUTH_LDAP_BIND_PASSWORD N/A values N/A ldap_bind_password N/A search N/A LDAPSearch N/A values N/A ldap_search_base N/A ldap SCOPE_SUBTREE N/A values N/A ldap_search_filter N/A N/A setattr settings AUTH_LDAP_USER_SEARCH search N/A N/A N/A setattr settings AUTH_LDAP_USER_DN_TEMPLATE N/A values N/A ldap_user_dn_template N/A N/A N/A values N/A ldap_is_active_directory yes N/A N/A N/A N/A hasattr settings AUTH_LDAP_GLOBAL_OPTIONS N/A N/A N/A setattr settings AUTH_LDAP_GLOBAL_OPTIONS N/A N/A ldap OPT_REFERRALS False N/A N/A N/A N/A settings AUTH_LDAP_GLOBAL_OPTIONS N/A N/A ldap OPT_REFERRALS False N/A N/A