Skip to content
Health
64/100
fair
  • Security22/25
    1 minor finding
  • Activity12/25
    Last human commit 16 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 9 Odoo series since 7.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
1 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.34 MB
Module directory on disk
Code analysis 0 migration notes 2 models 2 views 0 HTTP endpoints

Description

This module extends the functionality of auth_ldap by adding functionality so that users can be populated from a LDAP server.

Dependencies

Odoo dependencies
odoo/odoo:
- web
Python dependencies
python-ldap
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 2

XML IDNameModelTypeStatus
company_form_view Add populate button to ldap view res.company.ldap form Inherits auth_ldap.view_ldap_installer_form
populate_wizard_view res.company.ldap.populate_wizard form New

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 2

New fields (2)
  • deactivate_unknown_users Boolean
    default=False string='Deactivate unknown users'
  • no_deactivate_user_ids Many2many → res.users
    column1='ldap_id' column2='user_id' comodel_name='res.users' default=<expr> help='List users who never should be deactivated by the deactivation wizard' relation='res_company_ldap_no_deactivate_user_rel' string='Users never to deactivate'
Public methods (4)
  • action_populate(self)
    Prepopulate the user table from one or more LDAP resources. Obviously, the option to create users must be toggled in the LDAP configuration. Return the number of users created (as far as we can tell).
  • do_deactivate_unknown_users(self, known_user_ids)
    Deactivate users not found in last populate run.
  • get_ldap_entry_dicts(self, conf, user_name='*')
    Execute ldap query as defined in conf Don't call self.query because it supresses possible exceptions
  • populate_wizard(self)
    GUI wrapper for the populate method that reports back the number of users created.

New fields (4)
  • ldap_id Many2one → res.company.ldap
    args: 'res.company.ldap', 'LDAP Configuration'
  • name Char
    size=16
  • users_created Integer
    args: 'Number of users created'
  • users_deactivated Integer
    args: 'Number of users deactivated'
Public methods (1)
  • create(self, vals_list)
    @api.model_create_multi

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…