초보자가 이런 초보적인 질문을 드려 죄송합니다만...
저로서는 급한 문제이네요...
도움 부탁드립니다.... 꾸벅....
이 곳에 있는 박근오님의 글과...
linux@work 작년 4월호랑 참조하구...
게시판의 글들도 참고하고.... 근데... 도저히 안 되네요 ㅠ.ㅠ
[root@test openldap]# vi slapd.conf
1 # $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.8.8.7 2001/09/27 20:00:31 kurt Exp $
2 #
3 # See slapd.conf(5) for details on configuration options.
4 # This file should NOT be world readable.
5 #
6 include /usr/local/ldap/etc/openldap/schema/core.schema
7
8 schemacheck off
9
10 # Define global ACLs to disable default read access.
11
12 # Do not enable referrals until AFTER you have a working directory
13 # service AND an understanding of referrals.
14 #referral ldap://root.openldap.org
15
16 pidfile /usr/local/ldap/var/slapd.pid
17 argsfile /usr/local/ldap/var/slapd.args
44 #######################################################################
45 # ldbm database definitions
46 #######################################################################
47
48 database ldbm
49 suffix "dc=test,dc=position,dc=com"
50 #suffix "o=My Organization Name,c=US"
51 rootdn "cn=Manager,dc=test,dc=position,dc=com"
52 #rootdn "cn=Manager,o=My Organization Name,c=US"
53 # Cleartext passwords, especially for the rootdn, should
54 # be avoid. See slappasswd(8) and slapd.conf(5) for details.
55 # Use of strong authentication encouraged.
56 rootpw w0n0MWx$p2mHC4Ah0mfmqV4Cy8dZZ
57 # The database directory MUST exist prior to running slapd AND
58 # should only be accessible by the slapd/tools. Mode 700 recommended.
59 directory /usr/local/ldap/var/openldap-ldbm
60 # Indices to maintain
61 index objectClass eq
[root@test openldap]# ldapadd -x -D "cn=Manager,dc=test,dc=position,dc=com" -W << EOF
> dn:dc=test,dc=position,dc=com
> dc:test
> objectclass:dcObject
> EOF
Enter LDAP Password:
ldap_bind: Invalid credentials
rootpw는 /etc/shadow를 copy & paste 했슴다...
참고) root:$.w0n0MWx$p2mHC4Ah0mfmqV4Cy8dZZ/:11815:0:99999:7:::
또는 dsnroot.ldif 파일을 생성하고 아래와 같이 저장한 후... 실행해도 안 되구요...
제가 도대체 무슨 실수를 한 것인가요?
/////////// dsnroot.ldif ///////////
1 dn: dc=position,dc=com
2 objectclass: dcObject
3 dc:position
4
5 dn: o=test,dc=position,dc=com
6 objectclass: organization
7 o:test
8
9 dn: cn=Manager,o=test,dc=position,dc=com
10 objectclass: organizationalRole
11 cn: Manager
/////////////////////////////////
[root@test openldap]# ldapadd -x -D "cn=Manager,dc=test,dc=position,dc=com" -w secret -f dsnroot.ldif << EOF
|