打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
CentOS 7 : OpenLDAP : Configure LDAP Server : Serv...
userphoto

2016.09.11

关注
# generate directory manager's password

[root@dlp ~]#
slappasswd

New password:
Re-enter new password:
{SSHA}xxxxxxxxxxxxxxxxxxxxxxxx
[root@dlp ~]#
vi chdomain.ldif
# replace to your own domain name for 'dc=***,dc=***' section

# specify the password generated above for 'olcRootPW' section

dn: olcDatabase={1}monitor,cn=configchangetype: modifyreplace: olcAccessolcAccess: {0}to * by dn.base='gidNumber=0 uidNumber=0,cn=peercred,cn=external,cn=auth' read by dn.base='cn=Manager,dc=srv,dc=world' read by * nonedn: olcDatabase={2}hdb,cn=configchangetype: modifyreplace: olcSuffixolcSuffix: dc=srv,dc=worlddn: olcDatabase={2}hdb,cn=configchangetype: modifyreplace: olcRootDNolcRootDN: cn=Manager,dc=srv,dc=worlddn: olcDatabase={2}hdb,cn=configchangetype: modifyadd: olcRootPWolcRootPW: {SSHA}xxxxxxxxxxxxxxxxxxxxxxxxdn: olcDatabase={2}hdb,cn=configchangetype: modifyadd: olcAccessolcAccess: {0}to attrs=userPassword,shadowLastChange by dn='cn=Manager,dc=srv,dc=world' write by anonymous auth by self write by * noneolcAccess: {1}to dn.base='' by * readolcAccess: {2}to * by dn='cn=Manager,dc=srv,dc=world' write by * read
[root@dlp ~]#
ldapmodify -Y EXTERNAL -H ldapi:/// -f chdomain.ldif

SASL/EXTERNAL authentication startedSASL username: gidNumber=0 uidNumber=0,cn=peercred,cn=external,cn=authSASL SSF: 0modifying entry 'olcDatabase={1}monitor,cn=config'modifying entry 'olcDatabase={2}hdb,cn=config'modifying entry 'olcDatabase={2}hdb,cn=config'modifying entry 'olcDatabase={2}hdb,cn=config'
[root@dlp ~]#
vi basedomain.ldif
# replace to your own domain name for 'dc=***,dc=***' section

dn: dc=srv,dc=worldobjectClass: topobjectClass: dcObjectobjectclass: organizationo: Server Worlddc: Srvdn: cn=Manager,dc=srv,dc=worldobjectClass: organizationalRolecn: Managerdescription: Directory Managerdn: ou=People,dc=srv,dc=worldobjectClass: organizationalUnitou: Peopledn: ou=Group,dc=srv,dc=worldobjectClass: organizationalUnitou: Group
[root@dlp ~]#
ldapadd -x -D cn=Manager,dc=srv,dc=world -W -f basedomain.ldif

Enter LDAP Password:
# directory manager's password

adding new entry 'dc=srv,dc=world'adding new entry 'cn=Manager,dc=srv,dc=world'adding new entry 'ou=People,dc=srv,dc=world'adding new entry 'ou=Group,dc=srv,dc=world'
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
Installing & Configuring OpenLDAP Server On CentOS 6.4 | RedHat / CentOS Linux Tutorials And How
openldap
CentOS6.4下安装配置OpenLdap服务记录centos
BEA到台灣、BEA在台灣: Weblogic Portal 8.1:整合LDAP
LDAP开启TLS
【原创】Ldap3 库使用方法(一)
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服