openldap关闭匿名访问

2021-04-28 17:52:21 浏览数 (1)

[root@master01 .ldap]# cat disable_anon.ldif  dn: cn=config changetype: modify add: olcDisallows olcDisallows: bind_anon -

dn: olcDatabase={-1}frontend,cn=config changetype: modify add: olcRequires olcRequires: authc

ldapmodify -Y EXTERNAL -H ldapi:/// -f disable_anon.ldif

[root@master01 .ldap]# ldapsearch -x -H ldap://localhost:389 ldap_bind: Inappropriate authentication (48) additional info: anonymous bind disallowed

0 人点赞