LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-25-2009, 01:23 AM   #1
pankaj_bhamare1
LQ Newbie
 
Registered: Jun 2009
Posts: 2

Rep: Reputation: 0
ldapadd issue in custom objectclass


hi,
I have created custom object class and its attribute

attributetype ( 1.2006.08.20.1 NAME 'DealerCode'
DESC 'RFC2256: Dealer code'
SUP name )

attributetype ( 1.2006.08.20.2 NAME 'GroupCode'
DESC 'RFC2256: Group code'
SUP name )

objectclass ( 1.2006.08.20.3 NAME 'DealerMaster'
DESC 'Information regarding dealer'
SUP top STRUCTURAL
MUST ( DealerCode )
MAY ( GroupCode $ mail ))

i have stored this file in /etc/openldap/schema/dealer.schema then i have include this file in slapd.conf file then i have started server.
For testing purpose i have created one ldif file

dn: DealerCode=PankajB,dc=abacus,dc=com
DealerCode: PankajB
objectClass: DealerMaster

When i execute this ldif file with below mention command

ldapadd -x -D "cn=Manager,dc=abacus,dc=com" -W -f dealerentry.ldif

It ask for ldap password after entering the password

"adding new entry "DealerCode=PankajB,dc=abacus,dc=com"
appears on sceen then it hangs

Awaiting for your reply.
Thanks in advance
 
Old 06-25-2009, 03:30 AM   #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
Check your logs, or start the server in debug mode to see if you find any hints.
Use another ldap utility, such as ldapsearch to see if it also hangs, that would mean a server problem, or a database problem.
Btw there is a nice tutorial here about adding custom schemas in openldap.

Regards
 
Old 06-25-2009, 04:08 AM   #3
pankaj_bhamare1
LQ Newbie
 
Registered: Jun 2009
Posts: 2

Original Poster
Rep: Reputation: 0
i have run ldapsearch command, it works fine also i have started server in debug mode it blocks at command
bdb_dn2entry("DealerCode=PankajB,dc=abacus,dc=com")
=>bdb_dn2id("DealerCode=PankajB,dc=abacus,dc=com")

after that it hangs
 
Old 06-25-2009, 05:37 AM   #4
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
What version of openldap and BerkeleyDB are you using? I've seen the "hang" problem with openldap 2.4.16 and db.4.7 and the only way to make it work was using db.4.6!!!
Could you do the following test: After hanging of the ldapadd command, stop it using ^C and run ldapsearch and see if it finishes.
Also use "slapd -d255" for more verbose output.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ldapadd jaison_777 Linux - General 1 11-01-2007 01:04 PM
LXer: The Fun of LDAP - objectClass Attributes LXer Syndicated Linux News 0 03-04-2007 10:16 PM
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
ldapadd problem !!! karlet Linux - General 0 04-01-2003 03:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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