LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-30-2011, 06:00 PM   #1
linuxmandrake
Member
 
Registered: Sep 2004
Distribution: debian sarge 64bit (AMD)
Posts: 709

Rep: Reputation: 30
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

Last edited by linuxmandrake; 07-30-2011 at 06:03 PM.
 
Old 07-31-2011, 12:09 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
config ldap client for slave ldap neverland Linux - Server 9 04-09-2010 04:32 AM
how to add user on ldap finsh Linux - Server 3 01-23-2008 08:09 AM
LDAP How to add entries durgap Linux - Networking 4 11-10-2006 04:55 AM
Ldap how to add a new objectClass lhrt Linux - Software 0 11-02-2006 07:13 AM
LDAP: Cannot add objectClass? Hko Linux - Networking 0 08-17-2004 04:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration