Repository
odoo/odoo · module folder
Module version
0.1.0
Category
Hidden/Tools
Folder size
0.57 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
None
Last tracking update
2026-08-08 22:45:29
Authors
Odoo S.A.
Maintainers
Odoo S.A.
Committers
Olivier Dony, Odoo Translation Bot, Denis Ledoux, Julien Castiaux, Tiffany Chang (tic), Gorash, William Braeckman, Mathieu Walravens, Louis Wicket (wil), Dylan Kiss (dyki), bram1000, djameltouati, Jeffrey Luo, Fasil | Python/Odoo Developer
Odoo dependencies
odoo/odoo:
- web
Python dependencies
python-ldap
System dependencies
None
Required by
None
Description

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
res_company_ldap_view_tree res.company.ldap.list res.company.ldap list New
res_config_settings_view_form res.config.settings.view.form.inherit.auth.ldap res.config.settings form Inherits base_setup.res_config_settings_view_form
view_ldap_installer_form res.company.ldap.form res.company.ldap form New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (4)

New fields (1)
  • ldaps One2many → res.company.ldap
    copy=True groups='base.group_system' string='LDAP Parameters' args: 'res.company.ldap', 'company'
Public methods (0)

No public methods.

New fields (11)
  • company Many2one → res.company
    ondelete='cascade' required=True string='Company' args: 'res.company'
  • create_user Boolean
    default=True help='Automatically create local user accounts for new users authenticating via LDAP'
  • ldap_base Char
    help='DN of the user search scope: all descendants of this base will be searched for users.' required=True string='LDAP base'
  • ldap_binddn Char
    help='The user account on the LDAP server that is used to query the directory. Leave empty to connect anonymously.' args: 'LDAP binddn'
  • ldap_filter Char
    help=' Filter used to look up user accounts in the LDAP database. It is an arbitrary LDAP filter in string representation. Any `%s` placeholder will be replaced by the login (identifier) provided by the user, the filter should contain at least one such placeholder.\n\n The filter must result in exactly one (1) result, otherwise the login will be considered invalid.\n\n Example (actual attributes depend on LDAP server and setup):\n\n (&(objectCategory=person)(objectClass=user)(sAMAccountName=%s))\n\n or\n\n (|(mail=%s)(uid=%s))\n ' required=True string='LDAP filter'
  • ldap_password Char
    help='The password of the user account on the LDAP server that is used to query the directory.' string='LDAP password'
  • ldap_server Char
    default='127.0.0.1' required=True string='LDAP Server address'
  • ldap_server_port Integer
    default=389 required=True string='LDAP Server port'
  • ldap_tls Boolean
    help='Request secure TLS/SSL encryption when connecting to the LDAP server. This option requires a server with STARTTLS enabled, otherwise all authentication attempts will fail.' string='Use TLS'
  • sequence Integer
    default=10
  • user Many2one → res.users
    help='User to copy when creating new users' string='Template User' args: 'res.users'
Public methods (1)
  • test_ldap_connection(self)
    Test the LDAP connection using the current configuration. Returns a dictionary with notification parameters indicating success or failure.

New fields (1)
  • ldaps One2many
    readonly=False related='company_id.ldaps' string='LDAP Parameters'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • change_password(self, old_passwd, new_passwd)
    @api.model

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…