Single

Devops-部署OpenLDAP(2)

添加默认域

# 生成默认域信息
/usr/share/migrationtools/migrate_base.pl > base.ldif

# 导入默认域
ldapadd -x -W -D "cn=admin,dc=chaiio,dc=com" -f base.ldif
# 查询域下所有信息
ldapsearch -x  -W -D "cn=admin,dc=chaiio,dc=com" -b "dc=blingabc,dc=com"
# 查询用户信息(uid=要查询的用户)
ldapsearch -x -LL -b "dc=chaiio,dc=com" "(uid=chaiio)"

#
# LDAP Defaults
#

# See ldap.conf(5) for details
# This file should be world readable but not world writable.

BASE dc=blingabc,dc=com
URI ldap://172.26.38.106:389

#SIZELIMIT 12
#TIMELIMIT 15
#DEREF never

TLS_CACERTDIR /etc/openldap/certs

# Turning this off breaks GSSAPI used with krb5 when rdns = false
SASL_NOCANON on

暂无评论

发表评论