---
title: "LDAP 使用"
author: "frankytony"
date: "2016-03-04T16:10:03Z"
tags: []
categories: ["开源软件"]
slug: "ldap"
draft: false
lastmod: "2016-03-04T16:10:03Z"
id: 2280624
url: "https://frankytony.iteye.com/blog/2280624"
---

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