同样替换dc=my-domain,dc=com olcAccess: {0}to * by dn.base=”gidNumber=0+uidNumber=0,cn=peercred,cn=external, cn=auth” read by dn.base=”cn=Manager,dc=linuxhelp,dc=com” read by * none
测试配置文件是否成功
1
$ slaptest -u
显示如下为成功
1 2 3
5737a49a ldif_read_file: checksum error on "/etc/openldap/slapd.d/cn=config/olcDatabase={1}monitor.ldif" 5737a49a ldif_read_file: checksum error on "/etc/openldap/slapd.d/cn=config/olcDatabase={2}hdb.ldif" config file testing succeeded
Generating a 2048 bit RSA private key ...........................................+++ .............................................................................................................+++ writing new private key to '/etc/pki/tls/certs/linuxhelpkey.pem' You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. Country Name (2 letter code) [XX]: State or Province Name (full name) []: Locality Name (eg, city) [Default City]: Organization Name (eg, company) [Default Company Ltd]:sgkj Organizational Unit Name (eg, section) []:sg Common Name (eg, your name or your server's hostname) []:master.sg-ai.com Email Address []:
User Information ???????Authentication [ ] Cache Information ??[ ] Use MD5 Passwords [*] Use LDAP ????????????[*] Use Shadow Passwords [ ] Use NIS ???????????????[*] Use LDAP Authentication [ ] Use IPAv2 ???????????[ ] Use Kerberos [ ] Use Winbind ????????[ ] Use Fingerprint reader [ ] Use Winbind Authentication [*] Local authorization is sufficient
- 选中Use LDAP 和 Use LDAP Authentication即可 用Tab键切换到Next,回车。
[*] Use TLS Server: ldap://master Base DN: dc=sg-ai,dc=com