# openldap-shell **Repository Path**: learnfaster/openldap-shell ## Basic Information - **Project Name**: openldap-shell - **Description**: No description available - **Primary Language**: Shell - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-11-18 - **Last Updated**: 2021-12-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # openldap-shell > 学习openldap真的好麻烦,而且是搞集中式用户管理。因此创建了一个这样的项目,让大家能够安装好单机版ldap,并且能够通过shell添加用户,添加用户组,在没有图形化管理界面的时候使用。当然也是为了便于学习,方便大家搞懂什么是ldap。目前安装仅支持centos7,其他版本还没有做过测试。 ## 安装openldap-server ```shell cd openldap-shell cd install ./install-openldap-centos7.sh ``` ## 初始化openldap-server ```shell cd openldap-shell cd init ./init-ldapserver.sh -D -u -s # 你完全可以使用一下这个例子直接初始化一个单机版本的ldap ./init-ldapserver.sh -D home.org -u admin -s 11111 ``` ## 添加用户 ```shell cd openldap-shell cd bin ./ldapuseradd.sh -d /home/hanhao -u 10000 -n hanhao -p 111111 ``` ## 添加用户组 ```shell cd openldap-shell cd bin ./ldapgroupadd.sh -g 10110 -n gtest ```