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

Add LDAP commands to the CLI #116

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Add LDAP commands to the CLI #116

wants to merge 2 commits into from

Conversation

bupd
Copy link
Collaborator

@bupd bupd commented Jun 10, 2024

Summary

This PR introduces LDAP commands to the CLI, enhancing Harbor's capabilities by allowing the management and import of LDAP users directly through the command line interface.

The addition of LDAP commands follows the recent integration of configuration commands #114 into the CLI. The configuration commands provide a foundational framework that allows administrators to set and manage Harbor configurations from the command line. By building on this foundation, the LDAP commands leverage the existing configuration setup, ensuring that user management aligns seamlessly with the configured LDAP settings.

Added Commands:

  • ldap ping -- ping the ldap server testing the connection.
  • ldap search -- search the ldap users with id.
  • ldap import -- import users with their id.
  • ldap search group -- search ldap groups.

Conclusion:

This enhancement significantly improves the operational efficiency and capabilities of Harbor's CLI. It makes LDAP user management more accessible, quicker, and more integrated.

Fixes: #113

bupd added 2 commits June 10, 2024 04:42
This command allows to ping the ldap server from the cli

Signed-off-by: bupd <[email protected]>
@bupd
Copy link
Collaborator Author

bupd commented Jun 10, 2024

Ping Command:

ldapPing

Search Command:

ldapsearch

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.

Implement LDAP/OIDC Authentication for Usergroup Functionality
1 participant