LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Ldap trying to add nodes to cn=config (https://www.linuxquestions.org/questions/linux-server-73/ldap-trying-to-add-nodes-to-cn%3Dconfig-894695/)

linuxmandrake 07-30-2011 06:00 PM

Ldap trying to add nodes to cn=config
 
I'm using ubuntu 10.04 lucid. I want to be able to setup an ldap I can authenticate againest using php

steven@stevendesktop:~/taiman/examples/LMS$ sudo ldapadd -D "cn=config,dc=users" -W -f /tmp/passwd.ldif
Enter LDAP Password:
ldap_bind: Server is unwilling to perform (53)
additional info: unauthenticated bind (DN with no password) disallowed
steven@stevendesktop:~/taiman/examples/LMS$

So does this mean I need to set a password? How do I do that?
I

dn: olcDatabase={0}config
objectClass: olcDatabaseConfig
olcDatabase: {0}config
olcAccess: {0}to * by dn.exact=gidNumber=0+uidNumber=0,cn=peercred,cn=external
,cn=auth manage by * break
structuralObjectClass: olcDatabaseConfig
entryUUID: 84750508-4f47-1030-9615-65199ba32e47
creatorsName: cn=config
createTimestamp: 20110730223214Z
entryCSN: 20110730223214.064530Z#000000#000#000000
modifiersName: cn=config
modifyTimestamp: 20110730223214Z

bathory 07-31-2011 12:09 PM

Hi,

I don't know what's in the ldif file you're trying to import in ldap, but the rootDN does not look correct. It should be something like
Code:

sudo ldapadd -D "cn=admin,dc=domain,dc=com" -W -f /tmp/passwd.ldif
You can read more about openldap in ubuntu, here

Regards


All times are GMT -5. The time now is 09:03 PM.