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

Added support for TenableAD LDAP Configuration APIs #503

Merged
merged 4 commits into from
Dec 29, 2021

Conversation

tushar-balwani
Copy link
Contributor

Description

Added Tenable.AD LDAP Configuration APIs

  • Get ldap-configuration singleton. (details)
  • Update ldap-configuration singleton. (update)

updated docs to support ldap configuration api details

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Added tests for all ldap configuration endpoints to test responses
  • Added schema tests for testing payload inputs and response dict validation

Test Configuration:

  • Python Version(s) Tested: 3.8.6
  • Tenable.sc version (if necessary):

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@tushar-balwani tushar-balwani requested review from a team and SteveMcGrath December 14, 2021 13:03
@SteveMcGrath SteveMcGrath added documentation Documentation issues enhancement New features/functionality Tenable.ad Tenable.ad Package unit-testing This issue requires new/updated tests labels Dec 16, 2021
Comment on lines 41 to 60
enabled (optional, bool):
???
url (optional, str):
???
search_user_dn (optional, str):
???
search_user_password (optional, str):
???
user_search_base (optional, str):
???
user_search_filter (optional, str):
???
allowed_groups (optional, List[Dict]):
The below listed params are expected in allowed groups dict.
name (required, str):
???
default_role_ids (required, List[int]):
???
default_profile_id (required, int):
???
Copy link
Contributor

Choose a reason for hiding this comment

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

Ideally we should work out what these fields are and document them.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We have updated param documentations.

updated url in test

updated last word uppercase logic

removed unused import

updated param descriptions

changed required field schema validation
@tushar-balwani tushar-balwani force-pushed the feature/tenable.ad-ldap_configuration branch from fd26543 to 863cd73 Compare December 22, 2021 09:10
@SteveMcGrath SteveMcGrath merged commit b8dc1a1 into master Dec 29, 2021
@SteveMcGrath SteveMcGrath deleted the feature/tenable.ad-ldap_configuration branch December 29, 2021 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Documentation issues enhancement New features/functionality Tenable.ad Tenable.ad Package unit-testing This issue requires new/updated tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants