大家好,欢迎来到IT知识分享网。
原创作品,允许转载,转载时请务必以超链接形式标明文章
原始出处 、作者信息和本声明。否则将追究法律责任。
http://jerry12356.blog.51cto.com/4308715/1857969
原始出处 、作者信息和本声明。否则将追究法律责任。
http://jerry12356.blog.51cto.com/4308715/1857969
1
2
3
4
5
6
7
8
9
10
11
12
|
[root@wiki openldap] # slappasswd
New password:
Re-enter new password:
{SSHA}nwQJvVZU /U6nNY2MK4bcdlw7lA7CDGwu
[root@wiki ~] # vi /etc/openldap/slapd.conf
[root@wiki openldap] # /etc/init.d/slapd restart
Stopping slapd: [ OK ]
Starting slapd: [ OK ]
[root@wiki openldap] # ldapsearch -x -D "cn=Manager,dc=******,dc=com" -W -b "
"dc=******,dc=com"
Enter LDAP Password:
ldap_bind: Invalid credentials (4)
|
1
2
3
4
5
6
7
|
[root@wiki ~] # ldapsearch -LLL -Y EXTERNAL -H ldapi:/// -b cn=config olcRootDN=cn=Manager,dc=******,dc=com dn olcRootDN olcRootPW
SASL /EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
dn: olcDatabase={2}bdb,cn=config
olcRootDN: cn=Manager, dc =******, dc =com
olcRootPW: {SSHA}KHwQR1zvWlPASLo+AHkI0gxzbF+KQ1xm
|
1
2
3
4
|
[root@wiki ~] # slappasswd -h {SSHA}
New password:
Re-enter new password:
{SSHA}vAYFH48G4IfrpD57gTR /DNZqLHWzR +Fg
|
1
|
ldapmodify -Y EXTERNAL -H ldapi: ///
|
1
2
3
4
|
[root@wiki ~] # ldapmodify -Y EXTERNAL -H ldapi:///
SASL /EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
|
1
|
modifying entry "olcDatabase={2}bdb,cn=config"
|
1
2
3
4
5
6
7
8
9
|
/etc/init .d /slapd restart
ldapsearch -x -D "cn=Manager,dc=******,dc=com" -W -b "dc=******,dc=com"
Enter LDAP Password:
####这里省略返回结果内容#####
# search result
search: 2
result: 0 Success
# numResponses: 32
# numEntries: 31
|
免责声明:本站所有文章内容,图片,视频等均是来源于用户投稿和互联网及文摘转载整编而成,不代表本站观点,不承担相关法律责任。其著作权各归其原作者或其出版社所有。如发现本站有涉嫌抄袭侵权/违法违规的内容,侵犯到您的权益,请在线联系站长,一经查实,本站将立刻删除。 本文来自网络,若有侵权,请联系删除,如若转载,请注明出处:https://yundeesoft.com/16229.html