当前位置: 技术问答>linux和unix
请问一个OpenLdap安装配置时的问题:没有slapd.conf文件
来源: 互联网 发布时间:2015-12-28
本文导语: 我是按照从网上的一篇文章(openldap的安装笔记)进行的,下载的ldap版本是openldap-2.3.30,Berkeley db-4.2.52,cyrus-sasl-2.1.22 按各个文档的步骤,前面几步都没有问题,安装上ldap后,在/etc/openldap目录下也是四个文件(ldap.c...
我是按照从网上的一篇文章(openldap的安装笔记)进行的,下载的ldap版本是openldap-2.3.30,Berkeley db-4.2.52,cyrus-sasl-2.1.22
按各个文档的步骤,前面几步都没有问题,安装上ldap后,在/etc/openldap目录下也是四个文件(ldap.conf、ldapsearchchprefs.conf、ldaptemplates.conf、ldapfilter.conf),但是没有服务器端要配置的slapd.conf文件,现在卡在这里不知道下一步怎么配置服务器端,请高手指点,谢谢!!!
按各个文档的步骤,前面几步都没有问题,安装上ldap后,在/etc/openldap目录下也是四个文件(ldap.conf、ldapsearchchprefs.conf、ldaptemplates.conf、ldapfilter.conf),但是没有服务器端要配置的slapd.conf文件,现在卡在这里不知道下一步怎么配置服务器端,请高手指点,谢谢!!!
|
例子:
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/qmail.schema
allow bind_v2
pidfile /var/run/slapd.pid
argsfile /var/run/slapd.args
access to attrs=userPassword
by self write
by * auth
access to *
by self write
by users read
by anonymous read
database bdb
suffix "dc=example,dc=com"
rootdn "cn=sysadmin,dc=example,dc=com"
rootpw {SHA}encoded_password
directory /var/lib/ldap
index objectClass eq,pres
index ou,cn,mail,surname,givenname eq,pres,sub
index uidNumber,gidNumber,loginShell eq,pres
index uid,memberUid eq,pres,sub
index nisMapName,nisMapEntry eq,pres,sub
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/qmail.schema
allow bind_v2
pidfile /var/run/slapd.pid
argsfile /var/run/slapd.args
access to attrs=userPassword
by self write
by * auth
access to *
by self write
by users read
by anonymous read
database bdb
suffix "dc=example,dc=com"
rootdn "cn=sysadmin,dc=example,dc=com"
rootpw {SHA}encoded_password
directory /var/lib/ldap
index objectClass eq,pres
index ou,cn,mail,surname,givenname eq,pres,sub
index uidNumber,gidNumber,loginShell eq,pres
index uid,memberUid eq,pres,sub
index nisMapName,nisMapEntry eq,pres,sub