4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

MacのLDAPクライアント設定

Posted at

Brew install

brew install openldap

ldap.confのバックアップ

cd /etc/openldap
cp ldap.conf ldap.conf_backup

LDAPサーバーのSSL Certificate取得

openssl s_client -connect SERVER_IP:PORT

BEGIN CERTIFICATEからEND CERTIFICATEまでコピー

pbpaste > ~/Desktop/mycert
sudo mv ~/Desktop/mycert /etc/openldap/

ldap.confにSSL証明書追加

sudo vim ldap.conf

下記の値を最後の行に追加

TLS_CACERT /etc/openldap/mycert

私の場合、下記の値をAllowに変更

TLS_REQCERT	allow

##再起動

そして、ldapsearchなど問題なく使えるようになった。

4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?