Skip to content

[ADD] auth_ldaps - #6

Merged
JordiBForgeFlow merged 1 commit into
OCA:11.0from
etobella:11.0-add-auth_ldaps
Apr 3, 2018
Merged

[ADD] auth_ldaps#6
JordiBForgeFlow merged 1 commit into
OCA:11.0from
etobella:11.0-add-auth_ldaps

Conversation

@etobella

Copy link
Copy Markdown
Member

LDAPS Authentication

This module allows to authenticate using a LDAP SSL system.

Installation

To install this module, you need to:

#. Add the certificate of the LDAP system to your server

Configuration

To configure this module, you need to:

#. Access Settings / General Settings / LDAP Authentication / LDAP Server
#. Check the ´Use LDAPS´ flag

Comment thread auth_ldaps/__manifest__.py Outdated
'license': 'AGPL-3',
'installable': True,
'application': False,
'summary': 'CB Company data',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems wrong

class CompanyLDAP(models.Model):
_inherit = 'res.company.ldap'

is_ssl = fields.Boolean(string='Use LDAPS', default=False)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might sound like a very stupid question, but AFAIK all SSL protocols were declared as insecure nowadays. Does this work for TLS too?

Comment thread auth_ldaps/models/res_company_ldap.py Outdated

is_ssl = fields.Boolean(string='Use LDAPS', default=False)

@api.multi

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

Comment thread auth_ldaps/models/res_company_ldap.py Outdated
@@ -0,0 +1,27 @@
# © Creu Blanca

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use "Copyright"

Comment thread auth_ldaps/models/res_company_ldap.py Outdated
conf['ldap_server'], conf['ldap_server_port'])
connection = ldap.initialize(uri)
return connection
return super(CompanyLDAP, self).connect(conf)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use just super() please, it's 🐍 3️⃣ ! 😊

Comment thread auth_ldaps/README.rst Outdated
===========

Bugs are tracked on `GitHub Issues
<https://github.com/OCA/{project_repo}/issues>`_. In case of trouble, please

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong

Comment thread auth_ldaps/README.rst Outdated
------------

* Firstname Lastname <email.address@example.org> (optional company website url)
* Second Person <second.person@example.org> (optional company website url)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong

Comment thread auth_ldaps/README.rst Outdated

To install this module, you need to:

#. Add the certificate of the LDAP system to your server

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not very well explained where should it go.

@etobella
etobella force-pushed the 11.0-add-auth_ldaps branch from 3476503 to 0b91beb Compare January 30, 2018 10:18
Comment thread auth_ldaps/models/res_company_ldap.py Outdated
is_ssl = fields.Boolean(string='Use LDAPS', default=False)

def get_ldap_dicts(self):
res = super

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feature doesn't work. Use res = super().get_ldap_dicts()

Comment thread auth_ldaps/models/res_company_ldap.py Outdated
conf['ldap_server'], conf['ldap_server_port'])
connection = ldap.initialize(uri)
return connection
return super

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same, Use return super().connect(conf)

@etobella
etobella force-pushed the 11.0-add-auth_ldaps branch from 0b91beb to 0f32982 Compare January 30, 2018 11:33

@rgarnau rgarnau left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing argument

Comment thread auth_ldaps/models/res_company_ldap.py Outdated
conf['ldap_server'], conf['ldap_server_port'])
connection = ldap.initialize(uri)
return connection
return super().connect()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replace with return super().connect(conf)

@etobella
etobella force-pushed the 11.0-add-auth_ldaps branch from 0f32982 to 049802a Compare February 2, 2018 14:55
@JordiBForgeFlow

Copy link
Copy Markdown
Member

@yajo Can you update your review?

@JordiBForgeFlow

Copy link
Copy Markdown
Member

@hveficent can you update your review?

@JordiBForgeFlow JordiBForgeFlow left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested

@JordiBForgeFlow
JordiBForgeFlow merged commit 295ca44 into OCA:11.0 Apr 3, 2018
fkantelberg pushed a commit to initOS/server-auth that referenced this pull request Jun 28, 2019
fkantelberg pushed a commit to initOS/server-auth that referenced this pull request Jul 8, 2019
legalsylvain added a commit to legalsylvain/server-auth that referenced this pull request Aug 9, 2019
[ADD] Test OCA#1 to OCA#5 to avoid regression;
bizzappdev pushed a commit to bizzappdev/server-auth that referenced this pull request Mar 5, 2020
[ADD] Test OCA#1 to OCA#5 to avoid regression;
bizzappdev pushed a commit to bizzappdev/server-auth that referenced this pull request Jun 20, 2020
[ADD] Test OCA#1 to OCA#5 to avoid regression;
bizzappdev pushed a commit to bizzappdev/server-auth that referenced this pull request Oct 2, 2020
[ADD] Test OCA#1 to OCA#5 to avoid regression;
dsolanki-initos pushed a commit to initOS/server-auth that referenced this pull request Oct 22, 2020
[ADD] Test #1 to OCA#5 to avoid regression;
flachica pushed a commit to flachica/server-auth that referenced this pull request Mar 30, 2022
[ADD] Test OCA#1 to OCA#5 to avoid regression;
flachica pushed a commit to flachica/server-auth that referenced this pull request Aug 14, 2022
[ADD] Test OCA#1 to OCA#5 to avoid regression;
OCA-git-bot pushed a commit to bizzappdev/server-auth that referenced this pull request Sep 5, 2022
[ADD] Test OCA#1 to OCA#5 to avoid regression;
Guenzn pushed a commit to sewisoft/server-auth that referenced this pull request Nov 11, 2022
[ADD] Test OCA#1 to OCA#5 to avoid regression;
AnizR pushed a commit to acsone/server-auth that referenced this pull request Jan 16, 2023
[ADD] Test OCA#1 to OCA#5 to avoid regression;
bizzappdev pushed a commit to bizzappdev/server-auth that referenced this pull request Feb 23, 2023
[ADD] Test OCA#1 to OCA#5 to avoid regression;
remihb pushed a commit to osiell/server-auth that referenced this pull request Sep 6, 2023
[ADD] Test OCA#1 to OCA#5 to avoid regression;
amkarthik pushed a commit to sodexis/server-auth that referenced this pull request Nov 21, 2023
[ADD] Test OCA#1 to OCA#5 to avoid regression;
moncefarajdal pushed a commit to moncefarajdal/server-auth that referenced this pull request Oct 15, 2024
[ADD] Test OCA#1 to OCA#5 to avoid regression;
SiesslPhillip pushed a commit to grueneerde/OCA-server-auth that referenced this pull request Nov 20, 2024
Syncing from upstream OCA/server-auth (11.0)
SodexisTeam pushed a commit to sodexis/server-auth that referenced this pull request Dec 3, 2024
[ADD] Test OCA#1 to OCA#5 to avoid regression;
BT-dlagin pushed a commit to BT-dlagin/server-auth that referenced this pull request Dec 20, 2024
[ADD] Test #1 to OCA#5 to avoid regression;
adhoc-cicd-bot pushed a commit to adhoc-cicd/oca-server-auth that referenced this pull request Jan 13, 2025
[ADD] Test OCA#1 to OCA#5 to avoid regression;
adhoc-cicd-bot pushed a commit to adhoc-cicd/oca-server-auth that referenced this pull request Jan 18, 2025
[ADD] Test OCA#1 to OCA#5 to avoid regression;
OCA-git-bot pushed a commit that referenced this pull request Feb 27, 2026
…-param

[IMP] cross_connect_client: Work with params and not server redirect_url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants