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

(ITS#3815) Setting olcDbConfig leads to scrambled DB_CONFIG



Full_Name: ftp://ftp.openldap.org/incoming/
Version: HEAD
OS: SuSE Linux 9.3
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (83.121.38.173)


HI!

I'm trying to set attribute 'olcDbConfig' in an entry of object class
'olcBdbConfig' to create DB_CONFIG via LDAP. But this leads to a scrambled
DB_CONFIG file. Looking at the trace log it seems to me my add_bdb.ldif is
correct.

Ciao, Michael.

-------------------------------command-line-------------------------------------
ldapadd -d 255 -x -H ldap://localhost -D "cn=config" -w testconfig -f
~/tmp/add_bdb.ldif > ~/tmp/client.log 2>&1
-------------------------------add_bdb.ldif--------------------------------------
dn: olcDatabase={1}bdb,cn=config
objectClass: olcDatabaseConfig
objectClass: olcBdbConfig
olcDatabase: {1}bdb
olcDbDirectory: /var/openldap/HEAD/example.com
olcSuffix: dc=example,dc=com
olcDbConfig: {0}set_cachesize   0       4000000        1
olcDbConfig: {1}set_lg_regionmax        1048576
olcDbConfig: {2}set_lg_max              10485760
olcDbConfig: {3}set_lg_bsize            2097152
olcDbConfig: {4}set_tmp_dir             /tmp

-----------------------------DB_CONFIG
created----------------------------------
0       4000000        1
1048576
10485760
2097152
/tmp
-------------------------------client.log--------------------------------------
ldap_create
ldap_url_parse_ext(ldap://localhost)
ldap_bind
ldap_simple_bind
ldap_sasl_bind
ldap_send_initial_request
ldap_new_connection
ldap_int_open_connection
ldap_connect_to_host: TCP localhost:389
ldap_new_socket: 6
ldap_prepare_socket: 6
ldap_connect_to_host: Trying 127.0.0.1:389
ldap_connect_timeout: fd: 6 tm: -1 async: 0
ldap_ndelay_on: 6
ldap_is_sock_ready: 6
ldap_ndelay_off: 6
ldap_open_defconn: successful
ldap_send_server_request
ber_flush: 33 bytes to sd 6
  0000:  30 1f 02 01 01 60 1a 02  01 03 04 09 63 6e 3d 63   0....`......cn=c  
  0010:  6f 6e 66 69 67 80 0a 74  65 73 74 63 6f 6e 66 69   onfig..testconfi  
  0020:  67                                                 g                 
ldap_write: want=33, written=33
  0000:  30 1f 02 01 01 60 1a 02  01 03 04 09 63 6e 3d 63   0....`......cn=c  
  0010:  6f 6e 66 69 67 80 0a 74  65 73 74 63 6f 6e 66 69   onfig..testconfi  
  0020:  67                                                 g                 
ldap_result msgid 1
ldap_chkResponseList for msgid=1, all=1
ldap_chkResponseList returns NULL
wait4msg (infinite timeout), msgid 1
wait4msg continue, msgid 1, all 1
** Connections:
* host: localhost  port: 389  (default)
  refcnt: 2  status: Connected
  last used: Wed Jun 29 21:50:22 2005

** Outstanding Requests:
 * msgid 1,  origid 1, status InProgress
   outstanding referrals 0, parent count 0
** Response Queue:
   Empty
ldap_chkResponseList for msgid=1, all=1
ldap_chkResponseList returns NULL
ldap_int_select
read1msg: msgid 1, all 1
ber_get_next
ldap_read: want=8, got=8
  0000:  30 0c 02 01 01 61 07 0a                            0....a..          
ldap_read: want=6, got=6
  0000:  01 00 04 00 04 00                                  ......            
ber_get_next: tag 0x30 len 12 contents:
ber_dump: buf=0x0809b290 ptr=0x0809b290 end=0x0809b29c len=12
  0000:  02 01 01 61 07 0a 01 00  04 00 04 00               ...a........      
ldap_read: message type bind msgid 1, original id 1
ber_scanf fmt ({iaa) ber:
ber_dump: buf=0x0809b290 ptr=0x0809b293 end=0x0809b29c len=9
  0000:  61 07 0a 01 00 04 00 04  00                        a........         
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_dump: buf=0x0809b290 ptr=0x0809b293 end=0x0809b29c len=9
  0000:  61 07 0a 01 00 04 00 04  00                        a........         
ber_scanf fmt (}) ber:
ber_dump: buf=0x0809b290 ptr=0x0809b29c end=0x0809b29c len=0

ldap_msgfree
ldap_add_ext
ldap_send_initial_request
ldap_send_server_request
ber_flush: 412 bytes to sd 6
  0000:  30 82 01 98 02 01 02 68  82 01 91 04 1c 6f 6c 63   0......h.....olc  
  0010:  44 61 74 61 62 61 73 65  3d 7b 31 7d 62 64 62 2c   Database={1}bdb,  
  0020:  63 6e 3d 63 6f 6e 66 69  67 30 82 01 6f 30 30 04   cn=config0..o00.  
  0030:  0b 6f 62 6a 65 63 74 43  6c 61 73 73 31 21 04 11   .objectClass1!..  
  0040:  6f 6c 63 44 61 74 61 62  61 73 65 43 6f 6e 66 69   olcDatabaseConfi  
  0050:  67 04 0c 6f 6c 63 42 64  62 43 6f 6e 66 69 67 30   g..olcBdbConfig0  
  0060:  17 04 0b 6f 6c 63 44 61  74 61 62 61 73 65 31 08   ...olcDatabase1.  
  0070:  04 06 7b 31 7d 62 64 62  30 32 04 0e 6f 6c 63 44   ..{1}bdb02..olcD  
  0080:  62 44 69 72 65 63 74 6f  72 79 31 20 04 1e 2f 76   bDirectory1 ../v  
  0090:  61 72 2f 6f 70 65 6e 6c  64 61 70 2f 48 45 41 44   ar/openldap/HEAD  
  00a0:  2f 65 78 61 6d 70 6c 65  2e 63 6f 6d 30 20 04 09   /example.com0 ..  
  00b0:  6f 6c 63 53 75 66 66 69  78 31 13 04 11 64 63 3d   olcSuffix1...dc=  
  00c0:  65 78 61 6d 70 6c 65 2c  64 63 3d 63 6f 6d 30 81   example,dc=com0.  
  00d0:  cb 04 0b 6f 6c 63 44 62  43 6f 6e 66 69 67 31 81   ...olcDbConfig1.  
  00e0:  bb 04 2b 7b 30 7d 73 65  74 5f 63 61 63 68 65 73   ..+{0}set_caches  
  00f0:  69 7a 65 20 20 20 30 20  20 20 20 20 20 20 34 30   ize   0       40  
  0100:  30 30 30 30 30 20 20 20  20 20 20 20 20 31 04 22   00000        1."  
  0110:  7b 31 7d 73 65 74 5f 6c  67 5f 72 65 67 69 6f 6e   {1}set_lg_region  
  0120:  6d 61 78 20 20 20 20 20  20 20 20 31 30 34 38 35   max        10485  
  0130:  37 36 04 23 7b 32 7d 73  65 74 5f 6c 67 5f 6d 61   76.#{2}set_lg_ma  
  0140:  78 20 20 20 20 20 20 20  20 20 20 20 20 20 20 31   x              1  
  0150:  30 34 38 35 37 36 30 04  22 7b 33 7d 73 65 74 5f   0485760."{3}set_  
  0160:  6c 67 5f 62 73 69 7a 65  20 20 20 20 20 20 20 20   lg_bsize          
  0170:  20 20 20 20 32 30 39 37  31 35 32 04 1f 7b 34 7d       2097152..{4}  
  0180:  73 65 74 5f 74 6d 70 5f  64 69 72 20 20 20 20 20   set_tmp_dir       
  0190:  20 20 20 20 20 20 20 20  2f 74 6d 70                       /tmp      
ldap_write: want=412, written=412
  0000:  30 82 01 98 02 01 02 68  82 01 91 04 1c 6f 6c 63   0......h.....olc  
  0010:  44 61 74 61 62 61 73 65  3d 7b 31 7d 62 64 62 2c   Database={1}bdb,  
  0020:  63 6e 3d 63 6f 6e 66 69  67 30 82 01 6f 30 30 04   cn=config0..o00.  
  0030:  0b 6f 62 6a 65 63 74 43  6c 61 73 73 31 21 04 11   .objectClass1!..  
  0040:  6f 6c 63 44 61 74 61 62  61 73 65 43 6f 6e 66 69   olcDatabaseConfi  
  0050:  67 04 0c 6f 6c 63 42 64  62 43 6f 6e 66 69 67 30   g..olcBdbConfig0  
  0060:  17 04 0b 6f 6c 63 44 61  74 61 62 61 73 65 31 08   ...olcDatabase1.  
  0070:  04 06 7b 31 7d 62 64 62  30 32 04 0e 6f 6c 63 44   ..{1}bdb02..olcD  
  0080:  62 44 69 72 65 63 74 6f  72 79 31 20 04 1e 2f 76   bDirectory1 ../v  
  0090:  61 72 2f 6f 70 65 6e 6c  64 61 70 2f 48 45 41 44   ar/openldap/HEAD  
  00a0:  2f 65 78 61 6d 70 6c 65  2e 63 6f 6d 30 20 04 09   /example.com0 ..  
  00b0:  6f 6c 63 53 75 66 66 69  78 31 13 04 11 64 63 3d   olcSuffix1...dc=  
  00c0:  65 78 61 6d 70 6c 65 2c  64 63 3d 63 6f 6d 30 81   example,dc=com0.  
  00d0:  cb 04 0b 6f 6c 63 44 62  43 6f 6e 66 69 67 31 81   ...olcDbConfig1.  
  00e0:  bb 04 2b 7b 30 7d 73 65  74 5f 63 61 63 68 65 73   ..+{0}set_caches  
  00f0:  69 7a 65 20 20 20 30 20  20 20 20 20 20 20 34 30   ize   0       40  
  0100:  30 30 30 30 30 20 20 20  20 20 20 20 20 31 04 22   00000        1."  
  0110:  7b 31 7d 73 65 74 5f 6c  67 5f 72 65 67 69 6f 6e   {1}set_lg_region  
  0120:  6d 61 78 20 20 20 20 20  20 20 20 31 30 34 38 35   max        10485  
  0130:  37 36 04 23 7b 32 7d 73  65 74 5f 6c 67 5f 6d 61   76.#{2}set_lg_ma  
  0140:  78 20 20 20 20 20 20 20  20 20 20 20 20 20 20 31   x              1  
  0150:  30 34 38 35 37 36 30 04  22 7b 33 7d 73 65 74 5f   0485760."{3}set_  
  0160:  6c 67 5f 62 73 69 7a 65  20 20 20 20 20 20 20 20   lg_bsize          
  0170:  20 20 20 20 32 30 39 37  31 35 32 04 1f 7b 34 7d       2097152..{4}  
  0180:  73 65 74 5f 74 6d 70 5f  64 69 72 20 20 20 20 20   set_tmp_dir       
  0190:  20 20 20 20 20 20 20 20  2f 74 6d 70                       /tmp      
ldap_result msgid 2
ldap_chkResponseList for msgid=2, all=1
ldap_chkResponseList returns NULL
wait4msg (timeout 0 sec, 100000 usec), msgid 2
wait4msg continue, msgid 2, all 1
** Connections:
* host: localhost  port: 389  (default)
  refcnt: 2  status: Connected
  last used: Wed Jun 29 21:50:22 2005

** Outstanding Requests:
 * msgid 2,  origid 2, status InProgress
   outstanding referrals 0, parent count 0
** Response Queue:
   Empty
ldap_chkResponseList for msgid=2, all=1
ldap_chkResponseList returns NULL
ldap_int_select
read1msg: msgid 2, all 1
ber_get_next
ldap_read: want=8, got=8
  0000:  30 28 02 01 02 69 23 0a                            0(...i#.          
ldap_read: want=34, got=34
  0000:  01 50 04 00 04 1c 3c 6f  6c 63 44 62 43 6f 6e 66   .P....<olcDbConf  
  0010:  69 67 3e 20 66 61 69 6c  65 64 20 73 74 61 72 74   ig> failed start  
  0020:  75 70                                              up                
ber_get_next: tag 0x30 len 40 contents:
ber_dump: buf=0x0809ca10 ptr=0x0809ca10 end=0x0809ca38 len=40
  0000:  02 01 02 69 23 0a 01 50  04 00 04 1c 3c 6f 6c 63   ...i#..P....<olc  
  0010:  44 62 43 6f 6e 66 69 67  3e 20 66 61 69 6c 65 64   DbConfig> failed  
  0020:  20 73 74 61 72 74 75 70                             startup          
ldap_read: message type add msgid 2, original id 2
ber_scanf fmt ({iaa) ber:
ber_dump: buf=0x0809ca10 ptr=0x0809ca13 end=0x0809ca38 len=37
  0000:  69 23 0a 01 50 04 00 04  1c 3c 6f 6c 63 44 62 43   i#..P....<olcDbC  
  0010:  6f 6e 66 69 67 3e 20 66  61 69 6c 65 64 20 73 74   onfig> failed st  
  0020:  61 72 74 75 70                                     artup             
read1msg:  0 new referrals
read1msg:  mark request completed, id = 2
request 2 done
res_errno: 0, res_error: <>, res_matched: <>
ldap_free_request (origid 2, msgid 2)
ldap_free_connection
ldap_free_connection: refcnt 1
ldap_parse_result
ber_scanf fmt ({iaa) ber:
ber_dump: buf=0x0809ca10 ptr=0x0809ca13 end=0x0809ca38 len=37
  0000:  69 23 0a 01 50 04 00 04  1c 3c 6f 6c 63 44 62 43   i#..P....<olcDbC  
  0010:  6f 6e 66 69 67 3e 20 66  61 69 6c 65 64 20 73 74   onfig> failed st  
  0020:  61 72 74 75 70                                     artup             
ber_scanf fmt (}) ber:
ber_dump: buf=0x0809ca10 ptr=0x0809ca38 end=0x0809ca38 len=0

ldap_msgfree
ldap_perror
ldap_add: Internal (implementation specific) error (80)
	additional info: <olcDbConfig> failed startup
ldap_free_connection
ldap_send_unbind
ber_flush: 7 bytes to sd 6
  0000:  30 05 02 01 03 42 00                               0....B.           
ldap_write: want=7, written=7
  0000:  30 05 02 01 03 42 00                               0....B.           
ldap_free_connection: actually freed
adding new entry "olcDatabase={1}bdb,cn=config"
------------------------------slapd's debug
log-----------------------------------
connection_get(8): got connid=5
connection_read(8): checking for input on id=5
ber_get_next
ber_get_next: tag 0x30 len 31 contents:
ber_get_next
ber_get_next on fd 8 failed errno=11 (Resource temporarily unavailable)
do_bind
ber_scanf fmt ({imt) ber:
ber_scanf fmt (m}) ber:
>>> dnPrettyNormal: <cn=config>
=> ldap_bv2dn(cn=config,0)
ldap_err2string
<= ldap_bv2dn(cn=config)=0 Success
=> ldap_dn2bv(272)
ldap_err2string
<= ldap_dn2bv(cn=config)=0 Success
=> ldap_dn2bv(272)
ldap_err2string
<= ldap_dn2bv(cn=config)=0 Success
<<< dnPrettyNormal: <cn=config>, <cn=config>
do_bind: version=3 dn="cn=config" method=128
do_bind: v3 bind: "cn=config" to "cn=config"
send_ldap_result: conn=5 op=0 p=3
send_ldap_response: msgid=1 tag=97 err=0
ber_flush: 14 bytes to sd 8
connection_get(8): got connid=5
connection_read(8): checking for input on id=5
ber_get_next
ber_get_next: tag 0x30 len 408 contents:
ber_get_next
ber_get_next on fd 8 failed errno=11 (Resource temporarily unavailable)
do_add
ber_scanf fmt ({m) ber:
>>> dnPrettyNormal: <olcDatabase={1}bdb,cn=config>
=> ldap_bv2dn(olcDatabase={1}bdb,cn=config,0)
ldap_err2string
<= ldap_bv2dn(olcDatabase={1}bdb,cn=config)=0 Success
=> ldap_dn2bv(272)
ldap_err2string
<= ldap_dn2bv(olcDatabase={1}bdb,cn=config)=0 Success
=> ldap_dn2bv(272)
ldap_err2string
<= ldap_dn2bv(olcDatabase={1}bdb,cn=config)=0 Success
<<< dnPrettyNormal: <olcDatabase={1}bdb,cn=config>,
<olcDatabase={1}bdb,cn=config>
ber_scanf fmt ({m{W}}) ber:
ber_scanf fmt ({m{W}}) ber:
ber_scanf fmt ({m{W}}) ber:
ber_scanf fmt ({m{W}}) ber:
ber_scanf fmt ({m{W}}) ber:
ber_scanf fmt (}) ber:
>>> dnPretty: <dc=example,dc=com>
=> ldap_bv2dn(dc=example,dc=com,0)
ldap_err2string
<= ldap_bv2dn(dc=example,dc=com)=0 Success
=> ldap_dn2bv(272)
ldap_err2string
<= ldap_dn2bv(dc=example,dc=com)=0 Success
<<< dnPretty: <dc=example,dc=com>
>>> dnPrettyNormal: <dc=example,dc=com>
=> ldap_bv2dn(dc=example,dc=com,0)
ldap_err2string
<= ldap_bv2dn(dc=example,dc=com)=0 Success
=> ldap_dn2bv(272)
ldap_err2string
<= ldap_dn2bv(dc=example,dc=com)=0 Success
=> ldap_dn2bv(272)
ldap_err2string
<= ldap_dn2bv(dc=example,dc=com)=0 Success
<<< dnPrettyNormal: <dc=example,dc=com>, <dc=example,dc=com>
bdb_db_init: Initializing BDB database
>>> dnPrettyNormal: <dc=example,dc=com>
=> ldap_bv2dn(dc=example,dc=com,0)
ldap_err2string
<= ldap_bv2dn(dc=example,dc=com)=0 Success
=> ldap_dn2bv(272)
ldap_err2string
<= ldap_dn2bv(dc=example,dc=com)=0 Success
=> ldap_dn2bv(272)
ldap_err2string
<= ldap_dn2bv(dc=example,dc=com)=0 Success
<<< dnPrettyNormal: <dc=example,dc=com>, <dc=example,dc=com>
backend_startup_one: starting "dc=example,dc=com"
bdb_db_open: dbenv_open(/var/openldap/HEAD/example.com)
bdb(dc=example,dc=com): unrecognized name-value pair: 0
bdb_db_open: dbenv_open failed: Invalid argument (22)
backend_startup_one: bi_db_open failed! (22)
olcDbConfig: value #4: <olcDbConfig> failed startup
(X(\@X(\@nldap/HEAD/example.com)!
send_ldap_result: conn=5 op=1 p=3
send_ldap_response: msgid=2 tag=105 err=80
ber_flush: 42 bytes to sd 8
connection_get(8): got connid=5
connection_read(8): checking for input on id=5
ber_get_next
ber_get_next: tag 0x30 len 5 contents:
ber_get_next
ber_get_next on fd 8 failed errno=11 (Resource temporarily unavailable)
connection_get(8): got connid=5
connection_read(8): checking for input on id=5
ber_get_next
ber_get_next on fd 8 failed errno=0 (Success)
connection_read(8): input error=-2 id=5, closing.
connection_closing: readying conn=5 sd=8 for close
connection_close: deferring conn=5 sd=8
do_unbind
connection_resched: attempting closing conn=5 sd=8
connection_close: conn=5 sd=8