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

Re: Plugin configuration problem



Samuel Tran wrote:

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?



You should follow instructions at <http://www.openldap.org/faq/data/cache/59.html> and report the problem with as much useful information as possible. In this specific case, the file/line number of the assertion is nearly useless, but failed assertions, when trapped from inside a debugger, or when inspecting a core file, allow to backtrace to the real cause of the problem, or at least to the point where it happened.


p.


SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497