ApacheDS 安装以及 LDAPS 配置
星期一, 十一月 11, 2019
9:28 上午
已剪辑自: https://blog.csdn.net/woloqun/article/details/90212376
服务器:阿里云 centos 7.6 64 位
hostname
ip
s1.hdp.com
39.106.164.213
环境:jdk-1.8 及以上
[root@s1 ~]# vi /etc/profile
export JAVA_HOME=/usr/java/jdk1.8.0_181-cloudera
export PATH=$PATH:$JAVA_HOME/bin
export
CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar
添加用户 apacheds,用户组 apacheds
[root@s1 ~]# groupadd apacheds
[root@s1 ~]# useradd -s /bin/sh -g apacheds apacheds
下载 ApacheDS
wget
http://mirrors.ocf.berkeley.edu/apache//directory/apacheds/dist/
2.0.0.AM25/apacheds-2.0.0.AM25-64bit.bin
[root@s1 ~]# chmod +x apacheds-2.0.0.AM25-64bit.bin
[root@s1 ~]# ./apacheds-2.0.0.AM25-64bit.bin
一路回车
Unpacking the installer...
Extracting the installer...
Where do you want to install ApacheDS? [Default: /opt/apacheds-
2.0.0.AM25]
Where do you want to install ApacheDS instances? [Default:
/var/lib/apacheds-2.0.0.AM25]
What name do you want for the default instance? [Default:
default]
Where do you want to install the startup script? [Default:
/etc/init.d]
Which user do you want to run the server with (if not already
existing, the specified user will be created)? [Default:
apacheds]
Which group do you want to run the server with (if not already
existing, the specified group will be created)? [Default:
apacheds]
启动:
/etc/init.d/apacheds-2.0.0.AM25-default start
配置客户端远程登录,这里使用 Apache Directory Studio,配置界面如下,
要注意 hostname 一定不能写 ip
设置用户名密码,默认:user:uid=admin,ou=system password:secret
点击 finish:
添加分区:
ctrl+s 保存
重启 ApacheDS
[root@s1 init.d]# /etc/init.d/apacheds-2.0.0.AM25-default
restart
Stopping ApacheDS - default...
Stopped ApacheDS - default.
Starting ApacheDS - default...
刷新新增的分区
添加组
按照如下顺序添加组织单位
添加用户