./slapd -f var/openldap/slapd.conf 이렇게 쓰나
./slapd -h ldap://localhost:389/ -f var/openldap/slapd.conf 이렇게 써도
그냥 ps -ef 명령어로 보면 slapd가 뜨질 않네요.
왜그런 걸까요?;;
그냥 ./slapd 하면 Unrecognized database error가 뜨는데;;
/usr/libexec # ./slapd -T test 이렇게 테스트 해보면 아래와 같이 뜨네요.
Unrecognized database type (bdb)
/etc/openldap/slapd.conf: line 57: <database> failed init (bdb)
slaptest: bad configuration file!
bdb로 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
pidfile /usr/var/run/slapd.pid
argsfile /usr/var/run/slapd.args
loglevel 256
database bdb
suffix "dc=asdf,dc=net"
rootdn "cn=manager,dc=asdf,dc=net"
rootpw 1234
directory /usr/var/openldap-data
index objectClass eq
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
access to dn.subtree="dc=nexg,dc=net" attr=userPassword
by self write
by* auth
access to dn.subtree="ou=people,dc=nexg,dc=net"
by* read
access to dn.subtree="ou=group,dc=nexg,dc=net"
by* read
access to dn.subtree="ou=hosts,dc=nexg,dc=net"
by* read
access to*
by* auth
|