Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Cleanup + Fixes #6

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open

Code Cleanup + Fixes #6

wants to merge 4 commits into from

Conversation

tcyrus
Copy link

@tcyrus tcyrus commented Jul 20, 2018

  • Fixed spelling of group_identifier
  • Changed from using host and port options to connection (This allows for other URI's to be used, such as ldapi://)
  • Changed from using ssl and start_tls to encryption (This matches up better with Symfony's API and makes options clearer)
  • Updated Translations to reflect changes
  • General Code Cleanup

tcyrus added 3 commits July 20, 2018 10:04
Changed from Host and Port to connection_string (initially to use ldapi URI)
Also fixed group_identifier spelling
In the Symfony Ldap API, you can choose between the encryption
options of 'none', 'ssl', and 'tls'. Using 2 different booleans
can cause confusion in intended behavior (what if ssl and
start_tls are both enabled).
@zebooka
Copy link

zebooka commented Aug 7, 2018

When this gonna be merged?

@tcyrus
Copy link
Author

tcyrus commented Aug 7, 2018

🤷‍♂️ @rhukster

@rhukster
Copy link
Member

rhukster commented Aug 7, 2018

Sorry guys.. not had chance to test this yet. We have to be careful it doesn't break existing installs as this pluign in particular was sponsored by a client, we want to make sure that any changes don't break said client...

@w00fz
Copy link
Member

w00fz commented Aug 7, 2018

This is not backward compatible and although the changes proposed are nice we can’t merge if it’s going to break existing instances.

Perhaps you could add fallbacks for the settings and defaults you are replacing?

DEFAULT_ACCESS_LEVELS_GROUPS: 'Default Groups'
DEFAULT_ACCESS_LEVELS_SITE: 'Default Site Access'
DEFAULT_GROUPS_ACCESS_LEVELS: 'Groups Access Level'
ENCRYPTION: 'Encryption'
ENCRYPTION_DESC: 'The Encryption Protocol used to connect to the LDAP server'
ENCRYPTION_METHODS:
Copy link
Contributor

@ViliusS ViliusS Nov 3, 2020

Choose a reason for hiding this comment

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

The options here should say:

  • None
  • SSL/TLS
  • StartTLS

It better represents what is actually used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants