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

Re: Plugin configuration problem



On Fri, 2005-08-05 at 08:21 +0200, Pierangelo Masarati wrote:
> Don't take it 100% sure because I haven't checked yet, but I fear slapi 
> is broken in 2.3.4; in 2.3.5 likely its new implementation will be 
> released, where the entire slapi framework actually has become an 
> overlay (that will be automatically instantiated the first time a plugin 
> is loaded).  If you feel like, I suggest you check HEAD code.  I don't 
> guarantee everything to work like a charm, because development is right 
> underway, but most of it should be done, and you could provide valuable 
> feedback.
> 

Pierangelo,

Today I checked out HEAD code and compiled it with '--enable-modules'
and '--enable-slapi'. Then I tried my plugin from P-Synch. Likewise when
the preoperation type plugin is called (when I change the userPassword
attribute for a given user) slapd just crashes with the following error
message:

[snip]
do_modify: dn (uid=joesmith,ou=people,dc=example,dc=com)
ber_scanf fmt ({i{m[W]}}) ber:
ber_dump: buf=0x082551b0 ptr=0x082551de end=0x082551ff len=33
  0000:  30 1f 0a 01 02 30 1a 04  0c 75 73 65 72 70 61 73
0....0...userpas  
  0010:  73 77 6f 72 64 31 0a 04  08 37 75 38 69 39 6f 30
sword1...7u8i9o0  
  0020:  70
p                 
>>> dnPrettyNormal: <uid=joesmith,ou=people,dc=example,dc=com>
=> ldap_bv2dn(uid=joesmith,ou=people,dc=example,dc=com,0)
ldap_err2string
<= ldap_bv2dn(uid=joesmith,ou=people,dc=example,dc=com)=0 Success
=> ldap_dn2bv(272)
ldap_err2string
<= ldap_dn2bv(uid=joesmith,ou=people,dc=example,dc=com)=0 Success
=> ldap_dn2bv(272)
ldap_err2string
<= ldap_dn2bv(uid=joesmith,ou=people,dc=example,dc=com)=0 Success
<<< dnPrettyNormal: <uid=joesmith,ou=people,dc=example,dc=com>,
<uid=joesmith,ou=people,dc=example,dc=com>
modifications:
        replace: userpassword
                one value, length 8
bdb_dn2entry("uid=joesmith,ou=people,dc=example,dc=com")
ch_strdup((null)) failed
slapd: ch_malloc.c:122: ch_strdup: Assertion `0' failed.
Aborted

Any idea of what is wrong?

Thanks.
Sam