ldapctl

command module
v0.0.0-...-90cfd70 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

README

ldapctl is a openLDAP CLI based on ldap library. 🚀

It only takes two steps to start the ldapctl experience:

  1. use docs/start-ldap-eryajf.sh script Start a openLDAP instance locally through docker。
  2. Run the make build compilation project, and then you can test it.。

If you want to manage your ldap, you can directly modify the configuration information in public/public.go, then compile the project and put it into use.

At present, it provides simple management of users and groups, which is mainly used to learn ldap library. There may be some deficiencies. Welcome to communicate.

  • user

    • add: add user
    • changeuserpwd: update user uid
    • checkuser: Check whether the user password is correct
    • delete: delete user by uid
    • get: get user by uid
    • getall: list all users
    • update: update user
    • updateuserdn: update user uid
  • group

    • add: add group
    • adduser: add user to group
    • delete: delete group
    • get: get group menbers
    • getall: list all groups
    • removeuser: remove user to group
    • update: update group

If you have other functions you want to add, please submit them in issue.

Documentation

Overview

Copyright © 2022 eryajf

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL