当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 5 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : ubuntu 16.04 openldap 配置过程两个疑问,olcIndex和添加证书
帖子发表于 : 2017-06-21 0:53 

注册: 2011-09-03 12:29
帖子: 6
送出感谢: 1
接收感谢: 0 次
https://help.ubuntu.com/16.04/servergui ... erver.html

我是照着官方文档配置的。数据库选的bdb
第一个:
建Ldif文件:
Create a file, call it uid_index.ldif, with the following contents:

dn: olcDatabase={1}bdb,cn=config
add: olcDbIndex
olcDbIndex: uid eq,pres,sub
Then issue the command:
运行语句:
sudo ldapmodify -Q -Y EXTERNAL -H ldapi:/// -f uid_index.ldif

报错:
olcIndex
modify entry "olcDatabase={1}bdb,cn=config"
ldap_modify: Other(e.g.,implementation specific) error(80)
additional info:duplicate index definition for attr "uid"

好像是不能添加多个属性
第二个:

建Ldif文件
Create the file /etc/ssl/certinfo.ldif with the following contents (adjust accordingly):

dn: cn=config
add: olcTLSCACertificateFile
olcTLSCACertificateFile: /etc/ssl/certs/cacert.pem
-
add: olcTLSCertificateFile
olcTLSCertificateFile: /etc/ssl/certs/ldap02_slapd_cert.pem
-
add: olcTLSCertificateKeyFile
olcTLSCertificateKeyFile: /etc/ssl/private/ldap02_slapd_key.pem

之后运行这条语句:
Configure the slapd-config database:

sudo ldapmodify -Y EXTERNAL -H ldapi:/// -f certinfo.ldif


报错:
SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
modifying entry "cn=config"
ldap_modify: Other(e.g.,implementation specific) error(80)



求解,谢谢


页首
 用户资料  
 
2 楼 
 文章标题 : Re: ubuntu 16.04 openldap 配置过程两个疑问,olcIndex和添加证书
帖子发表于 : 2017-06-21 1:17 

注册: 2007-01-14 16:23
帖子: 4257
送出感谢: 0 次
接收感谢: 107
不是很清楚你的需求(如果只是想照着文档做可能帮不上你什么)
大部分需求应该可以通过apache directory studio连接ldap服务器来做,或者安装phpldapadmin,通过webui来管理


页首
 用户资料  
 
3 楼 
 文章标题 : Re: ubuntu 16.04 openldap 配置过程两个疑问,olcIndex和添加证书
帖子发表于 : 2017-06-21 8:54 

注册: 2009-08-04 16:33
帖子: 16899
送出感谢: 21
接收感谢: 1829
https://help.ubuntu.com/16.04/servergui ... erver.html
先詳細參閱
最底下 參考文章連結
Resources


页首
 用户资料  
 
4 楼 
 文章标题 : Re: ubuntu 16.04 openldap 配置过程两个疑问,olcIndex和添加证书
帖子发表于 : 2017-06-21 10:01 

注册: 2011-09-03 12:29
帖子: 6
送出感谢: 1
接收感谢: 0 次
poloshiao 写道:
https://help.ubuntu.com/16.04/serverguide/openldap-server.html
先詳細參閱
最底下 參考文章連結
Resources


第二个问题是给cn=config 添加属性加不上去


页首
 用户资料  
 
5 楼 
 文章标题 : Re: ubuntu 16.04 openldap 配置过程两个疑问,olcIndex和添加证书
帖子发表于 : 2017-06-21 15:36 

注册: 2009-08-04 16:33
帖子: 16899
送出感谢: 21
接收感谢: 1829
引用:
additional info:duplicate index definition for attr "uid"

參閱
https://blog.laimbock.com/2013/02/10/fi ... ment-tips/
Fixes for the OpenLDAP example config and deployment tips
/etc/openldap34/slapd.d: line 1: duplicate index definition for attr “uid”
The solution:
引用:
ldap_modify: Other (e.g., implementation specific) error (80)

https://serverfault.com/questions/70482 ... tification
ldap_modify: Other (e.g., implementation specific) error (80)
What am I doing wrong?


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 5 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 4 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译