LDAP 使用

1. 安装软件

2.发布服务

/usr/lib/openldap/slapd -h ldaps://127.0.0.1:636

3. 客户端连接

ldapsearch -D "cn=Manager,o=tt,c=cn" -w secret -H ldaps://127.0.0.1:636

ldapadd  -D "cn=Manager,o=tt,c=cn" -w secret -H ldaps://127.0.0.1:636 -f /var/tmp/ehanmqi/ldap/test2.idif 

猜你喜欢

转载自frankytony.iteye.com/blog/2280624