2 Oct 2005 13:28
Rockfeller J.P.
Rockfeller J.P. <ragdai <at> lycos.COM>
2005-10-02 11:28:57 GMT
2005-10-02 11:28:57 GMT
http://www.elance.ru/bedyellowcat/ Rockfeller J.P.
http://www.elance.ru/bedyellowcat/ Rockfeller J.P.
Hi I'm using the nsldapssl32v50.lib to connect to a Novell edirectory LDAP server using SSL port 636 I run ldapssl_client_init( certDBPath, NULL ) & ldapssl_init( (char *)(const char *)m_strHost, m_nPort, 1 ) They return fine and my server certificate is in my cert7.db file. When I try to run : if( nReturn = ldap_simple_bind_s( m_ld, (char *)(const char *)m_strUser, (char *)(const char *)m_strPassword) != LDAP_SUCCESS ) It just hangs forever. What the heck am I doing wrong here.......Help! Anyone? Anyone? BTW I'm running Visual c++ service pack 6 on windows 2003 server thx! -Mike
Alexei, its ok to create multiple cache objects however only one of them can be associated with any given ld handle at the time, whatever implications that brings to what you thinking of doing. btw 4.1 is quite old and you might consider moving on to something more recent than that. ta, anton. ialexei wrote: > Hi, > > Platform: MS windows XP SP2 > API : Netscape LDAP 4.1 > > I was wondering if it is OK to create multiple in memory cache objects > (one for each connection) within a single process. > > -Alexei > > _______________________________________________ > mozilla-directory mailing list > mozilla-directory <at> mozilla.org > http://mail.mozilla.org/listinfo/mozilla-directory
AckMike <at> gmail.com wrote: > Does anyone know if the C SDK is thread safe with SSL? > Yes. The C SDK is threadsafe in general: http://www.mozilla.org/directory/csdk-docs/threaded.htm Dan
Thanks Dan. I had already gone over that document and followed the examples. Everything works great if the application using the SDK is not using SSL to talk to the directory. When I use SSL the appliation can crash under load. While running the application with a memory checker (Purify) I see that one thread is attempting to use information from a fiber owned by another thread. Any ideas? --Mike
Hm - what ldap sdk version are you using? What OS and version are you using? What compiler? AckMike <at> gmail.com wrote: >Thanks Dan. > I had already gone over that document and followed the examples. >Everything works great if the application using the SDK is not using >SSL to talk to the directory. When I use SSL the appliation can crash >under load. While running the application with a memory checker >(Purify) I see that one thread is attempting to use information from a >fiber owned by another thread. > >Any ideas? > >--Mike > > >
try setting env var NSPR_NATIVE_THREADS_ONLY to 1 [ make sure its set, env vars are tricky on win32 ] this should disable NT fibers there and switch to global/native threads only. if you use fibers from inside your own app i would strongly recommend not doing that and going with global/native threads instead. AckMike <at> gmail.com wrote: > Thanks Dan. > I had already gone over that document and followed the examples. > Everything works great if the application using the SDK is not using > SSL to talk to the directory. When I use SSL the appliation can crash > under load. While running the application with a memory checker > (Purify) I see that one thread is attempting to use information from a > fiber owned by another thread. > > Any ideas? > > --Mike > > _______________________________________________ > mozilla-directory mailing list > mozilla-directory <at> mozilla.org > http://mail.mozilla.org/listinfo/mozilla-directory
RSS Feed2 | |
|---|---|
1 | |
1 | |
4 | |
3 | |
3 | |
3 | |
2 | |
3 | |
2 | |
4 | |
2 | |
1 | |
1 | |
2 | |
11 | |
11 | |
3 | |
4 | |
7 | |
5 | |
3 | |
11 | |
3 | |
1 | |
8 | |
6 | |
35 | |
4 | |
7 | |
10 | |
46 | |
40 | |
33 | |
24 | |
20 | |
48 | |
17 | |
2 | |
7 | |
9 | |
30 | |
17 | |
26 | |
19 | |
45 | |
15 | |
10 | |
6 | |
3 | |
23 | |
22 | |
9 | |
18 | |
12 | |
10 | |
23 | |
13 | |
23 | |
36 | |
37 | |
18 | |
37 | |
3 | |
17 | |
26 | |
18 | |
11 | |
9 | |
22 | |
24 | |
1 | |
57 | |
11 | |
8 | |
18 | |
12 | |
16 | |
5 | |
1 | |
8 | |
26 | |
112 | |
30 | |
37 | |
21 | |
24 | |
10 | |
26 | |
15 | |
32 | |
35 | |
38 | |
24 | |
48 | |
23 | |
32 | |
14 | |
139 | |
28 | |
26 | |
16 | |
24 | |
25 | |
24 | |
50 | |
70 | |
71 | |
18 | |
26 | |
31 | |
35 | |
32 | |
55 | |
33 | |
27 | |
43 | |
21 |