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

WinCE port won't connect...



I have ported the liblber, and libldap libraries to WinCE (mostly by making
changes to handle Unicode).

Problem from the top level:
The call to ldap_init() (pLd = ldap_init( TEXT("ldap.bigfoot.com"),
LDAP_PORT )), succeeds. 
But, the call to ldap_simple_bind_s( pLd, NULL, NULL ), fails.

Problem from a lower level:
ldap_pvt_connect() calls connect(), followed by select(), both return
successfully.
Later on, sb_stream_read() calls recv(), which returns 0(zero). I am no LDAP
expert, but as near as I can tell, no other functions fail prior to the
recv(). See below for the call stack before recv() is called.

I am not an expert at LDAP, or sockets, or WinCE, so I could be overlooking
something from almost anywhere. But, I have been working on this problem for
a couple weeks, and I am stumped. Any help would be appreciated.

Thanks

Todd Christensen
Senior Software Engineer
Sorenson Technologies
435-753-1187
toddc@sorensontech.com 




sb_stream_read(sockbuf_io_desc * 0x00eb0554, void * 0x00eb7004, unsigned
long 16384) line 434
sb_rdahead_read(sockbuf_io_desc * 0x00eb056c, void * 0x00ebc07c, unsigned
long 1) line 631 + 39 bytes
sb_debug_read(sockbuf_io_desc * 0x00ebb008, void * 0x00ebc07c, unsigned long
1) line 810 + 27 bytes
ber_int_sb_read(ldap_sockbuf * 0x00eb4418, void * 0x00ebc07c, unsigned long
1) line 369 + 27 bytes
ber_get_next(ldap_sockbuf * 0x00eb4418, unsigned long * 0x0003f404,
berelement * 0x00ebc06c) line 512 + 18 bytes
try_read1msg(ldap * 0x00eb046c, int 1, int 1, ldap_sockbuf * 0x00eb4418,
ldap_conn * 0x00eb0528, ldapmsg * * 0x0003f4f8) line 346 + 17 bytes
wait4msg(ldap * 0x00eb046c, int 1, int 1, timeval * 0x00000000, ldapmsg * *
0x0003f4f8) line 276 + 31 bytes
ldap_result(ldap * 0x00eb046c, int 1, int 1, timeval * 0x00000000, ldapmsg *
* 0x0003f4f8) line 158 + 25 bytes
ldap_sasl_bind_s(ldap * 0x00eb046c, const unsigned short * 0x00000000, const
unsigned short * 0x00000000, berval * 0x0003f520, ldapcontrol * *
0x00000000, ldapcontrol * * 0x00000000, berval * * 0x00000000) line 186 + 21
bytes
ldap_simple_bind_s(ldap * 0x00eb046c, const unsigned short * 0x00000000,
const unsigned short * 0x00000000) line 111 + 25 bytes
CLDAPTestDlg::OnInitDialog() line 108 + 13 bytes
MFCCE211D! 100249bb()
COREDLL! 00169d5b()
USER32! 77e72c6a()
USER32! 77e85946()
COREDLL! 00169d90()
COREDLL! 0015c9ee()
COREDLL! 001682f0()
COREDLL! 0017cc40()
COREDLL! 00153d77()
COREDLL! 00169d5b()
USER32! 77e72c6a()
USER32! 77e85946()
COREDLL! 00169d90()
COREDLL! 0015c9ee()
COREDLL! 001682f0()
MFCCE211D! 1002e505()
MFCCE211D! 1002d522()
MFCCE211D! 10025acb()
MFCCE211D! 1002f54f()
MFCCE211D! 1002eede()
MFCCE211D! 1002d419()
MFCCE211D! 1002d825()
MFCCE211D! 1006e13f()
COREDLL! 001697c3()
COREDLL! 00169cdf()
USER32! 77e72211()
USER32! 77e7356c()
COREDLL! 0016a492()
COREDLL! 00174007()
COREDLL! 00174027()
COREDLL! 0017d82c()
COREDLL! 00153c3b()
MFCCE211D! 10025286()
MFCCE211D! 10025866()
CLDAPTestApp::InitInstance() line 60 + 8 bytes
MFCCE211D! 10032db4()
wWinMain(HINSTANCE__ * 0x00400000, HINSTANCE__ * 0x00000000, unsigned short
* 0x0002078e, int 1) line 30
wWinMainCRTStartup() line 58
KERNEL32! 77f1b9ea()