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

Restrict available LDAP servers. #1437

Merged

Conversation

cosmedd
Copy link
Contributor

@cosmedd cosmedd commented Jun 21, 2019

Hi!

At work, we found a issue with your plugin. We realized that a new client that started using our GLPI could see and use any LDAP configured through the "LDAP Select" type.

This means that any client, with enough privileges in his entity, can see/use our LDAP and any LDAP of other clients.

We quickly implement an workaround based on many assumptions. There is probably a better way to fix this problem but I provide this pull request in case it helps someone or if you want to use it as a starting point.

Changes description

2019-06-21 22-16-42

You can view any available LDAP if you have access
to the root entity.

Otherwise, only the LDAP configured as the default
for the current entity is displayed.

inc/question.class.php Outdated Show resolved Hide resolved
inc/question.class.php Outdated Show resolved Hide resolved
@cosmedd cosmedd force-pushed the feature/restrict_available_ldap_servers branch from b088878 to ebead94 Compare June 23, 2019 07:47
@cosmedd
Copy link
Contributor Author

cosmedd commented Jun 23, 2019

Requested changes addressed.

Thanks for the review, @btry!

You can view any available LDAP if you have access
to the root entity.

Otherwise, only the LDAP configured as the default
for the current entity is displayed.
@cosmedd cosmedd force-pushed the feature/restrict_available_ldap_servers branch 3 times, most recently from b088878 to 8eb49f9 Compare June 23, 2019 08:38
@cosmedd
Copy link
Contributor Author

cosmedd commented Jun 23, 2019

Well, I do not know if I should do something...

Github keeps showing "Changes requested" and "Merging can be performed automatically once the requested changes are addressed."

@btry
Copy link
Collaborator

btry commented Jun 23, 2019

Hi

This is normal that the status remains "changes requested". I need to review your changes again, then update the status. Please be patient until I review the PR again.

@btry btry merged commit 7f1e0c8 into pluginsGLPI:develop Jun 23, 2019
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.

2 participants