TIP: You can type at any time to perform a new search.
LDAP Populate
users_ldap_populate · OCA/server-tools
- Repository
- OCA/server-tools · module folder · Try on Runboat
- Module version
- 1.0.3
- Category
- Tools
- Folder size
- 0.32 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- None
- Last tracking update
- 2026-08-07 07:17:48
- Authors
- Odoo Community Association (OCA), Therp BV
- Maintainers
- Odoo Community Association (OCA), Therp BV
- Committers
- Alexis de Lattre, Alexandre Fayolle, Ronald Portier, Holger Brunn, Pedro M. Baeza, Daniel Reis, Stéphane Bidoul (ACSONE), Weblate, OCA Transbot, Stefan Rijnhart (Opener), oca-travis
- Odoo dependencies
- Python dependencies
- python-ldap
- System dependencies
- None
- Required by
- None
- Description
Code Analysis ⓘ
Views touched (2)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
company_form_view |
Add populate button to ldap view | base.config.settings | form | Inherits auth_ldap.view_general_configuration_form_inherit_auth_ldap |
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_usersBooleandefault=Falsestring='Deactivate unknown users' -
no_deactivate_user_idsMany2many → res.userscolumn1='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'
-
action_populate(self)@api.multiPrepopulate 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='*', timeout=60)Execute ldap query as defined in conf. Don't call self.query because it supresses possible exceptions -
populate_wizard(self)@api.multiGUI wrapper for the populate method that reports back the number of users created.
New fields (4)
-
ldap_idMany2one → res.company.ldapargs: 'res.company.ldap', 'LDAP Configuration' -
nameCharsize=16 args: 'Name' -
users_createdIntegerreadonly=True args: 'Number of users created' -
users_deactivatedIntegerreadonly=True args: 'Number of users deactivated'
-
create(self, vals)@api.model@api.returns('self', <expr>)
Loading…
Loading…
Loading…