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

LDAP and Radius improvements #1437

Merged
merged 10 commits into from
Jun 4, 2019
Merged

LDAP and Radius improvements #1437

merged 10 commits into from
Jun 4, 2019

Conversation

bjoernricks
Copy link
Contributor

@bjoernricks bjoernricks commented Jun 4, 2019

Update code paths for LDAP and Radius configurations.

References #1339

Checklist:

@bjoernricks bjoernricks requested a review from sarahd93 June 4, 2019 13:53
@bjoernricks bjoernricks marked this pull request as ready for review June 4, 2019 13:56
@bjoernricks bjoernricks requested a review from a team June 4, 2019 13:56
GMP uses 0 for false and 1 for true in its api calls.
Add tests for saveLdap and savRadius to ensure the new behavior.
The constructor of the Settings class doesn't take any arguments.
Allow to check if a specific name is available in the settings.
With this new function it is easier to create generic responses for
testing of command classes.
Als rename enable variable to enabled and add test for
currentAuthSettings.
Update User, Ldap and Radius dialog to use bool values for enable.
Adjust textfield sizes at Radius dialog.
Simplify the code, use enabled instead of enable variable from settings,
check if ldap and radius are enabled in gvm-libs and display text if
they are disabled because of missing support in gvm-libs.
@codecov
Copy link

codecov bot commented Jun 4, 2019

Codecov Report

Merging #1437 into gsa-8.0 will increase coverage by 0.12%.
The diff coverage is 32.78%.

Impacted file tree graph

@@             Coverage Diff             @@
##           gsa-8.0    #1437      +/-   ##
===========================================
+ Coverage    37.09%   37.22%   +0.12%     
===========================================
  Files          961      962       +1     
  Lines        21745    21761      +16     
  Branches      6027     6064      +37     
===========================================
+ Hits          8067     8100      +33     
+ Misses       12368    12355      -13     
+ Partials      1310     1306       -4
Impacted Files Coverage Δ
gsa/src/web/pages/users/dialog.js 1.61% <0%> (ø) ⬆️
gsa/src/web/pages/radius/radiuspage.js 8.16% <0%> (-0.18%) ⬇️
gsa/src/web/pages/ldap/ldappage.js 8% <0%> (+0.3%) ⬆️
gsa/src/gmp/models/settings.js 100% <100%> (ø) ⬆️
gsa/src/gmp/commands/convert.js 100% <100%> (ø)
gsa/src/gmp/commands/testing.js 100% <100%> (ø) ⬆️
gsa/src/gmp/commands/users.js 25.45% <100%> (+16.36%) ⬆️
gsa/src/gmp/commands/auth.js 100% <100%> (+80%) ⬆️
gsa/src/web/pages/radius/dialog.js 66.66% <40%> (-33.34%) ⬇️
gsa/src/web/pages/ldap/dialog.js 66.66% <40%> (-33.34%) ⬇️
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 26dfea4...10301e2. Read the comment docs.

@bjoernricks bjoernricks merged commit d945151 into greenbone:gsa-8.0 Jun 4, 2019
@bjoernricks bjoernricks deleted the ldap-radius-improvements branch June 4, 2019 16:26
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