[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: Can someone help???



Don't know why it works on one and not the other but invalid syntax means
just that in LDAP. I noticed the following in your mail:

The dns for entries are dc = ssdb; dc=5088988901,dc=ssdb;
dc=5088988902,dc=ssdb;    dc=5088988903,dc=ssdb.

You can't have ';' in the distinguished name. Try using ','.


-----Original Message-----
From: owner-openldap-software@OpenLDAP.org
[mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of
shassingh@hss.hns.com
Sent: Monday, May 13, 2002 1:09 PM
To: openldap-software@OpenLDAP.org
Subject: Can someone help???




Hi all,
                 I am facing a very peculiar problem. I have a client which
I
want to run both on Solaris and Linux.
LDAP server is running on a Solaris Sun Sparc machine. I have written
clients
using C Ldap apis. My client
adds multiple entries(around 10) into the directory succesfully when run on
Solaris. But when I run it on Linux, after adding
two entries error namely "Invalid Syntax" occurs. How is this possible. Same
kind of code is there for adding
all the entries.

The dns for entries are dc = ssdb; dc=5088988901,dc=ssdb;
dc=5088988902,dc=ssdb;    dc=5088988903,dc=ssdb.


.........................
..........................
.........................
ber_scanf fmt (}) ber:
dn2entry_r: dn: "DC=5088988901,DC=SSDB"
=> dn2id( "DC=5088988901,DC=SSDB" )
=> ldbm_cache_open( "/usr/local/var/openldap-ldbm/dn2id.gdbm", 34, 600 )
<= ldbm_cache_open (cache 0)
<= dn2id NOID
dn2entry_r: dn: "DC=SSDB"
=> dn2id( "DC=SSDB" )
====> cache_find_entry_dn2id("DC=SSDB"): 1 (1 tries)
<= dn2id 1 (in cache)
=> id2entry_r( 1 )
====> cache_find_entry_id( 1 ) "dc=ssdb" (found) (1 tries)
<= id2entry_r( 1 ) 0xa8fa0 (cache)
ldbm_referrals: op=104 target="dc=5088988901,dc=ssdb" matched="dc=ssdb"
====> cache_return_entry_r( 1 ): returned (0)
=> dn2id( "DC=5088988901,DC=SSDB" )
=> ldbm_cache_open( "/usr/local/var/openldap-ldbm/dn2id.gdbm", 34, 600 )
<= ldbm_cache_open (cache 0)
<= dn2id NOID
oc_check_required entry (dc=5088988901,dc=ssdb), objectClass "subscriber"
oc_check_required entry (dc=5088988901,dc=ssdb), objectClass "cocdata"
oc_check_required entry (dc=5088988901,dc=ssdb), objectClass "cfbldata"
oc_check_required entry (dc=5088988901,dc=ssdb), objectClass "cfdadata"
oc_check_allowed type "objectClass"
oc_check_allowed type "remote"
oc_check_allowed type "activeflag"
oc_check_allowed type "variableflag"
oc_check_allowed type "services"
oc_check_allowed type "subsid"
oc_check_allowed type "creatorsName"
oc_check_allowed type "createTimestamp"
oc_check_allowed type "modifiersName"
oc_check_allowed type "modifyTimestamp"
dn2entry_w: dn: "DC=SSDB"
=> dn2id( "DC=SSDB" )
====> cache_find_entry_dn2id("DC=SSDB"): 1 (1 tries)
<= dn2id 1 (in cache)
=> id2entry_w( 1 )
====> cache_find_entry_id( 1 ) "dc=ssdb" (found) (1 tries)
<= id2entry_w( 1 ) 0xa8fa0 (cache)
=> ldbm_cache_open( "/usr/local/var/openldap-ldbm/nextid.gdbm", 34, 600 )
<= ldbm_cache_open (cache 1)
daemon: select: listen=7 active_threads=1 tvp=NULL
=> index_entry_add( 2, "dc=5088988901,dc=ssdb" )
oc_check_required entry (dc=5088988901,dc=ssdb), objectClass "cfbldata"
oc_check_required entry (dc=5088988901,dc=ssdb), objectClass "cfdadata"
oc_check_allowed type "objectClass"
oc_check_allowed type "remote"
oc_check_allowed type "activeflag"
oc_check_allowed type "variableflag"
oc_check_allowed type "services"
oc_check_allowed type "subsid"
oc_check_allowed type "creatorsName"
oc_check_allowed type "createTimestamp"
oc_check_allowed type "modifiersName"
oc_check_allowed type "modifyTimestamp"
dn2entry_w: dn: "DC=SSDB"
=> dn2id( "DC=SSDB" )
====> cache_find_entry_dn2id("DC=SSDB"): 1 (1 tries)
<= dn2id 1 (in cache)
=> id2entry_w( 1 )
====> cache_find_entry_id( 1 ) "dc=ssdb" (found) (1 tries)
<= id2entry_w( 1 ) 0xa8fa0 (cache)
=> ldbm_cache_open( "/usr/local/var/openldap-ldbm/nextid.gdbm", 34, 600 )
<= ldbm_cache_open (cache 1)
daemon: select: listen=7 active_threads=1 tvp=NULL
=> index_entry_add( 2, "dc=5088988901,dc=ssdb" )
  => ldbm_cache_open( "/usr/local/var/openldap-ldbm/id2entry.gdbm", 34,
600 )
<= ldbm_cache_open (cache 3)
<= id2entry_add 0
send_ldap_result: conn=0 op=2 p=2
send_ldap_response: msgid=3 tag=105 err=0
ber_flush: 14 bytes to sd 8
====> cache_return_entry_w( 1 ): returned (0)
====> cache_return_entry_w( 2 ): created (0)
daemon: activity on 1 descriptors
daemon: activity on: 8r
daemon: read activity on 8
connection_get(8): got connid=0
connection_read(8): checking for input on id=0
ber_get_next
ber_get_next: tag 0x30 len 229 contents:
ber_get_next
ber_get_next on fd 8 failed errno=11 (Resource temporarily unavailable)
do_add
ber_scanf fmt ({a) ber:
ber_scanf fmt ({a{V}}) ber:
ber_scanf fmt ({a{V}}) ber:
ber_scanf fmt ({a{V}}) ber:
daemon: select: listen=7 active_threads=1 tvp=NULL
ber_scanf fmt ({a{V}}) ber:
ber_scanf fmt (}) ber:
dn2entry_r: dn: "DC=5088988902,DC=SSDB"
=> dn2id( "DC=5088988902,DC=SSDB" )
=> ldbm_cache_open( "/usr/local/var/openldap-ldbm/dn2id.gdbm", 34, 600 )
<= ldbm_cache_open (cache 0)
<= dn2id NOID
dn2entry_r: dn: "DC=SSDB"
=> dn2id( "DC=SSDB" )
====> cache_find_entry_dn2id("DC=SSDB"): 1 (1 tries)
<= dn2id 1 (in cache)
=> id2entry_r( 1 )
====> cache_find_entry_id( 1 ) "dc=ssdb" (found) (1 tries)
<= id2entry_r( 1 ) 0xa8fa0 (cache)
ldbm_referrals: op=104 target="dc=5088988902,dc=ssdb" matched="dc=ssdb"
====> cache_return_entry_r( 1 ): returned (0)
=> dn2id( "DC=5088988902,DC=SSDB" )
=> ldbm_cache_open( "/usr/local/var/openldap-ldbm/dn2id.gdbm", 34, 600 )
<= ldbm_cache_open (cache 0)
<= dn2id NOID
oc_check_required entry (dc=5088988902,dc=ssdb), objectClass "subscriber"
oc_check_required entry (dc=5088988902,dc=ssdb), objectClass "cocdata"
oc_check_required entry (dc=5088988902,dc=ssdb), objectClass "cfbldata"
oc_check_required entry (dc=5088988902,dc=ssdb), objectClass "cfdadata"
oc_check_allowed type "objectClass"
oc_check_allowed type "remote"
oc_check_allowed type "activeflag"
oc_check_allowed type "variableflag"
oc_check_allowed type "services"
oc_check_allowed type "subsid"
oc_check_allowed type "creatorsName"
oc_check_allowed type "createTimestamp"
oc_check_allowed type "modifiersName"
oc_check_allowed type "modifyTimestamp"
dn2entry_w: dn: "DC=SSDB"
=> dn2id( "DC=SSDB" )
====> cache_find_entry_dn2id("DC=SSDB"): 1 (1 tries)
<= dn2id 1 (in cache)
=> id2entry_w( 1 )
====> cache_find_entry_id( 1 ) "dc=ssdb" (found) (1 tries)
<= id2entry_w( 1 ) 0xa8fa0 (cache)
=> ldbm_cache_open( "/usr/local/var/openldap-ldbm/nextid.gdbm", 34, 600 )
<= ldbm_cache_open (cache 1)
=> index_entry_add( 3, "dc=5088988902,dc=ssdb" )
=> ldbm_cache_open( "/usr/local/var/openldap-ldbm/objectClass.gdbm", 34,
600 )
<= index_entry_add( 3, "dc=5088988902,dc=ssdb" ) success
=> dn2id_add( "DC=5088988902,DC=SSDB", 3 )
=> ldbm_cache_open( "/usr/local/var/openldap-ldbm/dn2id.gdbm", 34, 600 )
<= ldbm_cache_open (cache 0)
<= dn2id_add 0
=> id2entry_add( 3, "dc=5088988902,dc=ssdb" )
=> ldbm_cache_open( "/usr/local/var/openldap-ldbm/id2entry.gdbm", 34, 600 )
<= ldbm_cache_open (cache 3)
<= id2entry_add 0
send_ldap_result: conn=0 op=3 p=2
send_ldap_response: msgid=4 tag=105 err=0
ber_flush: 14 bytes to sd 8
====> cache_return_entry_w( 1 ): returned (0)
====> cache_return_entry_w( 3 ): created (0)
daemon: activity on 1 descriptors
<= index_entry_add( 3, "dc=5088988902,dc=ssdb" ) success
=> dn2id_add( "DC=5088988902,DC=SSDB", 3 )
=> ldbm_cache_open( "/usr/local/var/openldap-ldbm/dn2id.gdbm", 34, 600 )
<= ldbm_cache_open (cache 0)
<= dn2id_add 0
=> id2entry_add( 3, "dc=5088988902,dc=ssdb" )
=> ldbm_cache_open( "/usr/local/var/openldap-ldbm/id2entry.gdbm", 34, 600 )
<= ldbm_cache_open (cache 3)
<= id2entry_add 0
send_ldap_result: conn=0 op=3 p=2
send_ldap_response: msgid=4 tag=105 err=0
ber_flush: 14 bytes to sd 8
====> cache_return_entry_w( 1 ): returned (0)
====> cache_return_entry_w( 3 ): created (0)
daemon: activity on 1 descriptors
daemon: activity on: 8r
daemon: read activity on 8
connection_get(8): got connid=0
connection_read(8): checking for input on id=0
ber_get_next
ber_get_next: tag 0x30 len 307 contents:
ber_get_next
ber_get_next on fd 8 failed errno=11 (Resource temporarily unavailable)
do_add
ber_scanf fmt ({a) ber:
ber_scanf fmt ({a{V}}) ber:
ber_scanf fmt ({a{V}}) ber:
ber_scanf fmt ({a{V}}) ber:
ber_scanf fmt ({a{V}}) ber:
ber_scanf fmt ({a{V}}) ber:
ber_scanf fmt ({a{V}}) ber:
ber_scanf fmt (}) ber:
dn2entry_r: dn: "DC=5088988903,DC=SSDB"
=> dn2id( "DC=5088988903,DC=SSDB" )
=> ldbm_cache_open( "/usr/local/var/openldap-ldbm/dn2id.gdbm", 34, 600 )
<= ldbm_cache_open (cache 0)
<= dn2id NOID
dn2entry_r: dn: "DC=SSDB"
=> dn2id( "DC=SSDB" )
errno=11 (Resource temporarily unavailable)
do_add
ber_scanf fmt ({a) ber:
ber_scanf fmt ({a{V}}) ber:
ber_scanf fmt ({a{V}}) ber:
ber_scanf fmt ({a{V}}) ber:
ber_scanf fmt ({a{V}}) ber:
ber_scanf fmt ({a{V}}) ber:
ber_scanf fmt ({a{V}}) ber:
ber_scanf fmt (}) ber:
dn2entry_r: dn: "DC=5088988903,DC=SSDB"
=> dn2id( "DC=5088988903,DC=SSDB" )
=> ldbm_cache_open( "/usr/local/var/openldap-ldbm/dn2id.gdbm", 34, 600 )
<= ldbm_cache_open (cache 0)
<= dn2id NOID
dn2entry_r: dn: "DC=SSDB"
=> dn2id( "DC=SSDB" )
====> cache_find_entry_dn2id("DC=SSDB"): 1 (1 tries)
<= dn2id 1 (in cache)
=> id2entry_r( 1 )
====> cache_find_entry_id( 1 ) "dc=ssdb" (found) (1 tries)
<= id2entry_r( 1 ) 0xa8fa0 (cache)
ldbm_referrals: op=104 target="dc=5088988903,dc=ssdb" matched="dc=ssdb"
====> cache_return_entry_r( 1 ): returned (0)
send_ldap_result: conn=0 op=4 p=2
send_ldap_response: msgid=5 tag=105 err=21
ber_flush: 51 bytes to sd 8
daemon: select: listen=7 active_threads=1 tvp=NULL
daemon: activity on 1 descriptors
daemon: activity on: 8r
daemon: read activity on 8
connection_get(8): got connid=0
connection_read(8): checking for input on id=0
ber_get_next
ber_get_next on fd 8 failed errno=0 (Error 0)
connection_read(8): input error=-2 id=0, closing.
connection_closing: readying conn=0 sd=8 for close
connection_close: conn=0 sd=8
daemon: removing 8
daemon: select: listen=7 active_threads=0 tvp=NULL
connection_close: conn=0 sd=8
daemon: removing 8
daemon: select: listen=7 active_threads=0 tvp=NULL
daemon: activity on 1 descriptors
daemon: select: listen=7 active_threads=0 tvp=NULL
slap_sig_shutdown: signal 2
daemon: shutdown requested and initiated.
daemon: closing 7
slapd shutdown: waiting for 0 threads to terminate
slapd shutdown: initiated
ldbm backend syncing
ldbm flushing db (/usr/local/var/openldap-ldbm/dn2id.gdbm)
ldbm closing db (/usr/local/var/openldap-ldbm/dn2id.gdbm)
ldbm flushing db (/usr/local/var/openldap-ldbm/nextid.gdbm)
ldbm closing db (/usr/local/var/openldap-ldbm/nextid.gdbm)
ldbm flushing db (/usr/local/var/openldap-ldbm/objectClass.gdbm)
ldbm closing db (/usr/local/var/openldap-ldbm/objectClass.gdbm)
ldbm flushing db (/usr/local/var/openldap-ldbm/id2entry.gdbm)
ldbm flushing db (/usr/local/var/openldap-ldbm/services.gdbm)
ldbm closing db (/usr/local/var/openldap-ldbm/services.gdbm)
ldbm flushing db (/usr/local/var/openldap-ldbm/subsid.gdbm)
ldbm closing db (/usr/local/var/openldap-ldbm/subsid.gdbm)
ldbm backend done syncing
====> cache_release_all
slapd shutdown: freeing system resources.
slapd stopped.


Final traces are generated when Ctrl-C was pressed.

Thanx in advance,
Shashi

DISCLAIMER: This message is proprietary to Hughes Software Systems
Limited (HSS) and is intended solely for the use of the individual
to whom it is addressed. It may contain  privileged or confidential
information  and should not be circulated or used for any purpose other
than for what it is intended. If you have received this message in error,
please notify the originator immediately. If you are not the intended
recipient, you are notified that you are strictly prohibited from using,
copying, altering, or disclosing the contents of this message. HSS accepts
no responsibility for loss or damage arising from the use of the information
transmitted by this email including damage from virus.