database.sarang.net 에서 LDAP 에 대하여 많이 배우네요.
감사드립니다.
제가 openldap 2.x 버젼을 다운 받아서 설치했는데,
slapd.oc.conf 란 파일이 설치되어 있지 않았습니다.
그리고 박근오님께서 수정해주신 것과 같은 방법으로 하였더니
여전히 ldap_bind error를 나타내었습니다.
그래서 다시 1.x 버젼 (stable version)을
설치하였더니, slapd.oc.conf 란 파일이 설치되어 있는 것을 확인하였고,
박근오님께서 수정해주신 방법대로 에러 없이 진행된 것을
확인하였습니다.
다시 한번 감사드립니다.
>>박근오 님께서 쓰시길<<
::
:: >>윤지영 님께서 쓰시길<<
::
:: ::
:: :: ldapadd 를 사용하는데, 다음과 같은 에러가 나타납니다.
:: ::
:: :: ldapadd -x -D "cn=Manager, dc=example, dc=com" -W -f example.ldif
:: :: Enter LDAP Password: secret [엔터]
:: :: ldap_bind: Invalid credentials
:: ::
:: :: slapd.conf 파일의 내용의 일부분은 다음과 같습니다.
:: :: **********************************************************
:: :: database ldbm
:: :: suffix "dc=example, dc=com"
:: :: rootdn "cn=Manager, dc=example, dc=com"
:: :: # Cleartext passwords, especially for the rootdn, should
:: :: # be avoid. See slappasswd(8) and slapd.conf(5) for details.
:: :: # Use of strong authentication encouraged.
:: :: rootpw secret
:: :: *********************************************************
:: :: 그리고 example.ldif 파일의
:: ::
:: :: 내용은 다음과 같습니다.
:: ::
:: :: ********************************************************
:: :: dn: dc=example, dc=com
:: :: objectclass: dcObject
:: :: objectclass: organization
:: :: o: myorganization
:: :: dc: example
:: ::
:: :: dn: cn=Manager, dc=example, dc=com
:: :: objectclass: organizationalRole
:: :: cn: Manager
:: :: ********************************************************
:: :: Invalid credentials 라는 말은 패스워드 입력이 틀렸다는 말인가요?
:: ::
:: ::
:: ::
:: ::
::
:: dn: dc=example,dc=com
:: objectclass: dcObject
:: dc: example
::
:: dn: o=myorganization,dc=example,dc=com
:: objectclass: organization
:: o: myorganization
::
:: dn: cn=Manager,o=myorganization,dc=example,dc=com
:: objectclass: organizationalRole
:: cn: Manager
::
:: 위와 같이 한번 해보세요. 잘 입력될겁니다. 항상 slapd.oc.conf의
:: objectclass정의를 잘 따라야 합니다.
|