-
Notifications
You must be signed in to change notification settings - Fork 13
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
base: develop
Are you sure you want to change the base?
Conversation
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).
When this gonna be merged? |
🤷♂️ @rhukster |
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... |
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: |
There was a problem hiding this comment.
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.
group_identifier
host
andport
options toconnection
(This allows for other URI's to be used, such asldapi://
)ssl
andstart_tls
toencryption
(This matches up better with Symfony's API and makes options clearer)