[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
problem adding a photo or audio attribute taken from a OpenLDAP V1 ldif file.
Hi,
I originally tried this on 2.0.4 and was asked to try 2.0.6, I did without
any change, below are new traces.
Jim
I'm trying to upgrade my OpenLDAP system from V1.2.11 to V2.0.4 and I
can't add either a photo or audio attribute taken from a V1 ldif
file. Below are debug sessions from the client end, server end and then
the slapd.conf. This is on a Solaris 2.6 system. The basic error is:
modifying entry "cn=dbt1, o=Cornell University, c=US"
ldap_modify: Can't contact LDAP server
ldif_record() = 81
I've been able to add attributes without a problem, here is output to
verify that, you'll note "<removed>" where the data was of a sensitive nature:
Client Session:
69 %/opt/ldap-2.0.6/bin/ldapmodify -d 1 -x -D "cn=Manager, o=Cornell
University, c=US" -W -f dbt1_mod
ldap_create
Enter LDAP Password:
ldap_bind_s
ldap_simple_bind_s
ldap_sasl_bind_s
ldap_sasl_bind
ldap_send_initial_request
ldap_new_connection
ldap_int_open_connection
ldap_connect_to_host
ldap_pvt_gethostbyname_a: host=localhost, r=0
ldap_new_socket: 5
ldap_prepare_socket: 5
ldap_connect_to_host: Trying 127.0.0.1:389
ldap_connect_timeout: fd: 5 tm: -1 async: 0
ldap_ndelay_on: 5
ldap_ndelay_off: 5
ldap_delayed_open successful, ld_host is (null)
ldap_send_server_request
ber_flush: 57 bytes to sd 5
ldap_result
wait4msg (infinite timeout)
** Connections:
* host: localhost port: 389 (default)
refcnt: 2 status: Connected
last used: Tue Oct 10 07:37:05 2000
** Outstanding Requests:
* msgid 1, origid 1, status InProgress
outstanding referrals 0, parent count 0
** Response Queue:
Empty
do_ldap_select
read1msg
ber_get_next
ber_get_next: tag 0x30 len 12 contents:
ldap_read: message type bind msgid 1, original id 1
ber_scanf fmt ({iaa) ber:
read1msg: 0 new referrals
read1msg: mark request completed, id = 1
request 1 done
res_errno: 0, res_error: <>, res_matched: <>
ldap_free_request (origid 1, msgid 1)
ldap_free_connection
ldap_free_connection: refcnt 1
ldap_parse_result
ber_scanf fmt ({iaa) ber:
ber_scanf fmt (}) ber:
ldap_msgfree
modifying entry "cn=dbt1, o=Cornell University, c=US"
ldap_modify_ext
ldap_send_initial_request
ldap_send_server_request
ber_flush: 359369 bytes to sd 5
ldap_free_request (origid 2, msgid 2)
ldap_free_connection
ldap_free_connection: refcnt 1
ldap_perror
ldap_modify: Can't contact LDAP server
ldif_record() = 81
ldap_unbind
ldap_free_connection
ldap_send_unbind
ber_flush: 7 bytes to sd 5
ldap_free_connection: actually freed
Server Session:
53 %/opt/ldap-2.0.6/libexec/slapd -d 3
@(#) $OpenLDAP: slapd 2.0.6-Release (Mon Oct 9 19:20:43 EDT 2000) $
jwh2@solaris:/usr/local/src/ldap/openldap-2.0.6/servers/slapd
daemon_init: listen on ldap:///
daemon_init: 1 listeners to open...
ldap_url_parse(ldap:///)
daemon: initialized ldap:///
daemon_init: 1 listeners opened
slapd init: initiated server.
slapd startup: initiated.
slapd starting
connection_get(8): got connid=0
connection_read(8): checking for input on id=0
ber_get_next
sockbuf_read: want=1, got=1
0000: 30 0
sockbuf_read: want=1, got=1
0000: 37 7
sockbuf_read: want=55, got=55
0000: 02 01 01 60 32 02 01 03 04 26 63 6e 3d 4d 61 6e ...`2....&cn=Man
0010: 61 67 65 72 2c 20 6f 3d 43 6f 72 6e 65 6c 6c 20 ager, o=Cornell
0020: 55 6e 69 76 65 72 73 69 74 79 2c 20 63 3d 55 53 University, c=US
0030: 80 05 78 79 7a 7a 79 ..aaaaa
ber_get_next: tag 0x30 len 55 contents:
ber_get_next
sockbuf_read: want=1 error=Resource temporarily unavailable
ber_get_next on fd 8 failed errno=11 (Resource temporarily unavailable)
do_bind
ber_scanf fmt ({iat) ber:
ber_scanf fmt (o}) ber:
do_bind: version=3 dn="cn=Manager, o=Cornell University, c=US" method=128
dn2entry_r: dn: "CN=MANAGER,O=CORNELL UNIVERSITY,C=US"
=> dn2id( "CN=MANAGER,O=CORNELL UNIVERSITY,C=US" )
=> ldbm_cache_open( "/ldap_db/prod_db/dn2id.dbb", 7, 600 )
<= ldbm_cache_open (opened 0)
<= dn2id 2
=> id2entry_r( 2 )
=> ldbm_cache_open( "/ldap_db/prod_db/id2entry.dbb", 7, 600 )
<= ldbm_cache_open (opened 1)
=> str2entry
<= str2entry(cn=Manager, o=Cornell University, c=US) -> -1 (0x1171a0)
<= id2entry_r( 2 ) 0x1171a0 (disk)
====> cache_return_entry_r( 2 ): created (0)
do_bind: v3 bind: "cn=Manager, o=Cornell University, c=US" to "cn=Manager,
o=Cornell University, c=US"
send_ldap_result: conn=0 op=0 p=3
send_ldap_response: msgid=1 tag=97 err=0
ber_flush: 14 bytes to sd 8
0000: 30 0c 02 01 01 61 07 0a 01 00 04 00 04 00 0....a........
sockbuf_write: want=14, written=14
0000: 30 0c 02 01 01 61 07 0a 01 00 04 00 04 00 0....a........
connection_get(8): got connid=0
connection_read(8): checking for input on id=0
ber_get_next
sockbuf_read: want=1, got=1
0000: 30 0
sockbuf_read: want=1, got=1
0000: 83 .
sockbuf_read: want=3, got=3
0000: 05 7b c4 .{.
ber_get_next on fd 8 failed errno=34 (Result too large)
connection_read(8): input error=-2 id=0, closing.
connection_closing: readying conn=0 sd=8 for close
connection_close: conn=0 sd=8
Slapd.conf file:
70 %sudo more /opt/ldap-2.0.6/etc/openldap/slapd.conf
Password:
# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.8.8.4 2000/08/26
17:06:18 kur
t Exp $
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include /opt/ldap-2.0.4/etc/openldap/schema/core.schema
include /opt/ldap-2.0.4/etc/openldap/schema/cosine.schema
include /opt/ldap-2.0.4/etc/openldap/schema/inetorgperson.schema
# Define global ACLs to disable default read access.
# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
#referral ldap://root.openldap.org
pidfile /opt/ldap/var/slapd.pid
argsfile /opt/ldap/var/slapd.args
srvtab /etc/srvtab
# Load dynamic backend modules:
# modulepath /opt/ldap/libexec/openldap
# moduleload back_ldap.la
# moduleload back_ldbm.la
# moduleload back_passwd.la
# moduleload back_shell.la
#######################################################################
# ldbm database definitions
#######################################################################
database ldbm
suffix "o=Cornell University, c=US"
#suffix "o=My Organization Name, c=US"
# rootdn "cn=Manager, dc=my-domain, dc=com"
rootdn "cn=Manager, o=Cornell University, c=US"
# Cleartext passwords, especially for the rootdn, should
# be avoid. See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw xyzzy
# The database directory MUST exist prior to running slapd AND
# should only be accessable by the slapd/tools. Mode 700 recommended.
# directory /opt/ldap/var/openldap-ldbm
directory /ldap_db/prod_db
# Indices to maintain
index objectClass eq
index cn,uid eq,pres,sub
# hold access to * by * read