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 06-12-2013, 05:42 AM   #1
vivekrock8
LQ Newbie
 
Registered: Jul 2012
Posts: 15

Rep: Reputation: Disabled
LDAP :---ldapadd: No such object (32) error


HELLO

I AM installing openLDAP server i am getting error while running thins cmd

cmd :---ldapadd -Wxc -D "cn=dev,dc=X.x.X,dc=com" -f /etc/openldap/user1.ldif


And my example.com.ldif file is below

dn: dc=example,dc=com
dc: example
description: Root LDAP entry for example.com
objectClass: dcObject
objectClass: organizationalUnit
ou: rootobject

dn: ou=people, dc=example,dc=com
ou: people
description: ALL people from this organisation
objectClass: organizationalUnit

and my root.ldif config below


dn: uid=root,ou=People,dc=example,dc=com
uid: root
cn: root
objectClass: account
objectClass: posixAccount
objectClass: top
objectClass: shadowAccount
userPassword: {crypt}$1$1SwJOxo1$sOw3mgukCsA/bnOIvV2jW0
shadowLastChange: 15866
shadowMin: 0
shadowMax: 99999
shadowWarning: 7
loginShell: /bin/bash
uidNumber: 0
gidNumber: 0
homeDirectory: /root
gecos: root

dn: uid=operator,ou=People,dc=example ,dc=com
uid: operator
cn: operator
objectClass: account
objectClass: posixAccount
objectClass: top
objectClass: shadowAccount
userPassword: {crypt}*
shadowLastChange: 15866
shadowMin: 0
shadowMax: 99999
shadowWarning: 7
loginShell: /sbin/nologin
uidNumber: 11
gidNumber: 0
homeDirectory: /root
gecos: operator

above is my configuration

and my error is when i add ldap

ldapadd -Wxc -D "cn=dev,dc=example,dc=com" -f /etc/openldap/user1.ldif

usinf this cmd :---this error coming
adding new entry "uid=user1,ou=People,dc=example,dc=com"
ldapadd: No such object (32)
matched DN: dc=example,dc=com


Can any one guide me where i am going wrong
 
Old 06-12-2013, 12:16 PM   #2
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
Paste output of slapcat command here. I think you first ensure import of Base DN.

Thanks
 
Old 06-13-2013, 05:54 AM   #3
vivekrock8
LQ Newbie
 
Registered: Jul 2012
Posts: 15

Original Poster
Rep: Reputation: Disabled
HI

thanks for replying i got the solution . not added group that s the reason that error coming

Last edited by vivekrock8; 06-13-2013 at 05:56 AM.
 
  


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
Error with LDAP on CentOS. ldapadd returns: Invalid DN syntax (34) Abakus Linux - Server 2 08-22-2012 05:03 AM
deleting a ldap object/user using ldapdelete is giving sasl error vasavib Linux - Newbie 3 12-04-2011 02:06 AM
Ldapadd Error pankajkarde Linux - Server 1 04-27-2008 11:23 AM
OpenLDAP error ldapadd: Undefined attribute type (17) gergaholic Linux - Server 2 11-11-2007 03:03 AM
OpenLDAP ldapadd command error. vedang Linux - Server 1 09-08-2007 05:36 AM

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

All times are GMT -5. The time now is 12:08 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