I am using iPlanet Enterprise Server 4.1 and have written an NSAPI
AuthTrans function that is using LDAP to authenticate.  The first
thing my init function does is call
   ldapssl_client_init( ldap_certdb, NULL )
with ldap_certdb pointing to a cert7.db file (or directory containing
said file).  This call generates a core dump when executed.  Here's a
stack trace:

[1] realfree(0x1222a0, 0x254a08, 0xef1694a8, 0xef162eb4, 0x122298,
0x132771), at 0xef106058
[2] cleanfree(0x0, 0xef162eb4, 0xef16941c, 0xef16949c, 0xef169424,
0xef162eb4), at 0xef106874
[3] _malloc_unlocked(0x18, 0x0, 0x2, 0x122298, 0x0, 0xef162eb4), at
0xef105ad0
[4] malloc(0x17, 0x15664, 0x3, 0x2, 0x74, 0x0), at 0xef1059d8
[5] PORT_Alloc(0x17, 0xbb97c, 0x6f740014, 0x7efefeff, 0x81010100,
0xff00), at 0xa6338
[6] 0x4a72c(0xefff9ae4, 0xefff9ae0, 0xefff9900, 0x16, 0x0, 0x0), at
0x4a72b
[7] 0x4abb4(0xefff9ae4, 0x1222a0, 0x0, 0xd4cb0, 0xefff9ae0, 0x0), at
0x4abb3
[8] CERT_NameToAscii(0x13dd00, 0xbb97c, 0x13dd40, 0x13dd48, 0x0,
0x13dd3c), at 0x4acb0
[9] CERT_DecodeDERCertificate(0x13d61c, 0x1, 0x0, 0xbb97c, 0x1277d0,
0x13d5e0), at 0x4bcb4
[10] 0x5a574(0x122288, 0xefff9c34, 0x0, 0x0, 0x1, 0x1), at 0x5a573
[11] 0x51264(0x122288, 0x0, 0xd5420, 0xcfd14, 0x0, 0x0), at 0x51263
[12] CERT_AddNewCerts(0x122288, 0xbb97c, 0xa, 0xcfd0c, 0x127730, 0x0),
at 0x51438
[13] SEC_OpenPermCertDB(0x122288, 0x1, 0x5a2ec, 0x1326e0, 0x0,
0x1326e0), at 0x594b8
[14] CERT_OpenCertDB(0x122288, 0x1, 0x5a2ec, 0x1326e0, 0xbb97c, 0x0),
at 0x5a290
[15] ldapssl_clientauth_init(0x1326b0, 0x0, 0x0, 0x0, 0x0, 0xbe274),
at 0x30964
=>[16] ldapauth_init(pb = 0x10aad0, sn = (nil), rq = (nil)), line 505
in "auth.c"
[17] func_native_pool_wait_work(0xee650e78, 0x0, 0x10aad0, 0x0, 0x0,
0xef7483c0), at 0xef6a65b8
[18] func_exec_str(0x10c3a8, 0x10aad0, 0x0, 0x0, 0xef7483c0,
0x6f6e0000), at 0xef6a5bd8
[19] INTfunc_exec(0x10aad0, 0x0, 0x0, 0x10bb88, 0xef7483c0,
0x74000000), at 0xef6a5e84
[20] INTconf_run_init_functions(0x4, 0xef754ee0, 0x10bb88, 0x1, 0x1,
0xef7483c0), at 0xef6a3508
[21] magnus_init(0xdf2a8, 0x0, 0xbb97c, 0x0, 0x0, 0xb), at 0x2eed8
[22] main(0xf1308, 0xef166c18, 0x0, 0xf1338, 0xbe118, 0xd9a74), at
0x2f5f8

I have tried this with various combinations of Solaris 2.6, AIX 4.13,
LDAPCSDK414 and LDAPCSDK50 and always get the same crash.  Building
and running the examples/ssnoauth program in the LDAPCSDK works just
fine.

Any insights into this issue would be appreciated.

-jon

Reply via email to