安装jdk
sudo apt-get install openjdk-8-jdk
先安装apacheds2
配置客户端远程登录,这里使用Apache Directory Studio,配置界面如下,要注意hostname一定不能写ip
设置用户名密码,默认:user:uid=admin,ou=system password:secret
创建分区nwpushuai.com
导入下面的ldif
version: 1
dn: cn=admin,dc=nwpushuai,dc=com
objectClass: organizationalRole
objectClass: simpleSecurityObject
objectClass: top
cn: admin
userPassword:: e1NTSEF9QmVmTVZDVnN0cnJ0ajdpTXdLRjZpamhQTkJreGw2MG4veGwrY2c9P
Q==
description: LDAP administrator
dn: ou=Groups,dc=nwpushuai,dc=com
objectClass: organizationalUnit
objectClass: top
ou: Groups
description: Generic Groups Branch
dn: ou=People,dc=nwpushuai,dc=com
objectClass: organizationalUnit
objectClass: top
ou: People
description: generic people branch
dn: cn=Developers,ou=Groups,dc=nwpushuai,dc=com
objectClass: groupOfNames
objectClass: top
cn: Developers
member: uid=nwpushuai,ou=People,dc=nwpushuai,dc=com
dn: cn=Test,ou=Groups,dc=nwpushuai,dc=com
objectClass: groupOfNames
objectClass: top
cn: Test
member: uid=test,ou=People,dc=nwpushuai,dc=com
dn: uid=nwpushuai,ou=People,dc=nwpushuai,dc=com
objectClass: organizationalPerson
objectClass: person
objectClass: inetOrgPerson
objectClass: top
cn: nwpushuai
sn: nwpushuai
displayName: nwpushuai
givenName: nwpushuai
mail: nwpushuai@163.com
mobile: 18302982510
o: Developers
ou: Developers
telephoneNumber: 18302982510
uid: nwpushuai
userPassword:: e1NTSEF9NURCWW9ucHpXU2U4b1NPUTJleEo1Q1VBUDRabVZ6WWJvNTJoTGc9P
Q==
dn: uid=test,ou=People,dc=nwpushuai,dc=com
objectClass: inetOrgPerson
objectClass: person
objectClass: organizationalPerson
objectClass: top
cn: test
sn: test
displayName: test
givenName: test
mail: test@163.com
mobile: 18302982510
o: Test
ou: Test
telephoneNumber: 18302982510
uid: test
userPassword:: e1NTSEF9NjZrVEZQQTZVY09WZUE5MVI0cUQwMVpiaGd0WTd4eXM=