>>윤지영 님께서 쓰시길<<
::
:: 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정의를 잘 따라야 합니다.
|