Re: Antw: Re: Instructions for building aut_ldap under win32 ?
Andre Schild wrote: Did you compile mod_auth_ldap as one module, and util_ldap as the second one ? Mod_auth_ldap and util_ldap are two separate modules where mod_auth_ldap depends on util_ldap. This is done in exactly the same way that proxy_ftp depends on mod_proxy, so if you are looking for some examples on how to do this in Windows, look there. Regards, Graham -- - [EMAIL PROTECTED]There's a moon over Bourbon Street tonight...
Re: Antw: Re: Instructions for building aut_ldap under win32 ?
Andre Schild wrote: Did you compile mod_auth_ldap as one module, and util_ldap as the second one ? Yes. If yes, how did you resolve the missing exports from util_ldap to be able to link mod_auth_ldap. I created a .def file as per the attachment on my previous post and included it in the project. Actually it seems for me, that in util_ldap.h all functions should be declared as AP_DECLARE_NONSTD (or whatever the types/returnvalues require). This way they get exported and can be imported by the mod_auth_ldap module. Could be, but my fix worked :-) Building mod_auth_ldap together with util_ldap doesn't work, since util_ldap_connection_find in util_ldap.c has it's own moduleconfiguration where it stores the pool of ldap connections. Yep. You do have to build them as 2 modules. -- Jess Holle
Re: Antw: Re: Instructions for building aut_ldap under win32 ?
Hi Andre, What seems to be the sticking point? I seem to recall that it was 1. where do I see if my APR has the ldap support included ? (I assume it hasn't) copy the file ./srclib/apr-util/include/apr_ldap.hnw to apr_ldap.h (or tweak one self from apr_ldap.h.in 2. Where should the ldap libraries/sdk be installed, so they are found ? if you build from IDE best bet is to set an additional include path to the ldap sdk (this is then not project-related, so also other modules coan be compiled with this) the LDAP stuff has moved into experimental. Actually, I would have hoped that someone would contribute MSVC++ projects for these and eliminate the need for questions like this. Things were to messy before If I can get it building, then we might have one to upload ;-) making the *.dsp is only the half thing (attached); place them in ./experimental, with this you can already build util_ldap.so, but this should export some functions which mod_auth_ldap.so needs for linking, but I dont know how to do that... how can I tell MSVC to create en export file so that mod_auth_ldap links?? Guenter. auth_ldap_dsp.zip Description: Binary data
Re: Antw: Re: Instructions for building aut_ldap under win32 ?
Gnter Knauf wrote: Hi Andre, What seems to be the sticking point? I seem to recall that it was 1. where do I see if my APR has the ldap support included ? (I assume it hasn't) copy the file ./srclib/apr-util/include/apr_ldap.hnw to apr_ldap.h (or tweak one self from apr_ldap.h.in This is pretty easy as long as you've got an LDAP v3 compliant LDAP SDK... 2. Where should the ldap libraries/sdk be installed, so they are found ? if you build from IDE best bet is to set an additional include path to the ldap sdk (this is then not project-related, so also other modules coan be compiled with this) Actually, I'd suggest specifying this in the project via an environment variable and documenting this variable. the LDAP stuff has moved into experimental. Actually, I would have hoped that someone would contribute MSVC++ projects for these and eliminate the need for questions like this. Things were to messy before If I can get it building, then we might have one to upload ;-) making the *.dsp is only the half thing (attached); place them in ./experimental, with this you can already build util_ldap.so, but this should export some functions which mod_auth_ldap.so needs for linking, but I dont know how to do that... how can I tell MSVC to create en export file so that mod_auth_ldap links?? This is pretty simple too. Use the attached .def file (similar, but different than that for NetWare) and include it in your MSVC++ project. Except for having an obnoxious IDE (wouldn't it be nice if Microsoft at least provided text areas rather than text fields for editing fields that tend to be long in real usage?!?), there are a lot of similarities between Windows .def stuff and AIX's .exp stuff -- which are approximately equally obnoxious. -- Jess Holle EXPORTS ldap_module util_ldap_connection_find util_ldap_connection_close util_ldap_cache_checkuserid util_ldap_cache_compare util_ldap_cache_comparedn
Re: Antw: Re: Instructions for building aut_ldap under win32 ?
Hi Andre, here is my dsw/dsp file. (Configured for Netscape/iplanet SDK in srclib\ldap The module loads fine in relase and debug modes in apache, but as soon as a auth request commes, apache crashes. hmm, I've seen exactly the same with another module mod_auth_pgsql; I thought it was the module as it is beta stuff, but it works fine on Linux; but now I think more there's a general problem with Win32...?? Guenter.
Re: Antw: Re: Instructions for building aut_ldap under win32 ?
Hi Andre, here is my dsw/dsp file. (Configured for Netscape/iplanet SDK in srclib\ldap The module loads fine in relase and debug modes in apache, but as soon as a auth request commes, apache crashes. hmm, just looked at your *.dsp, but I think this is not planned so. Look at util_ldap.c, it has an own module declaration, and from my understanding it should be build as separate module and not linked together with mod_auth_ldap; instead you should have two modules: util_ldap.so and mod_auth_ldap.so... Guenter.
Re: Antw: Re: Instructions for building aut_ldap under win32 ?
Hello Guenter, The module loads fine in relase and debug modes in apache, but as soon as a auth request commes, apache crashes. hmm, just looked at your *.dsp, but I think this is not planned so. Look at util_ldap.c, it has an own module declaration, and from my understanding it should be build as separate module and not linked together with mod_auth_ldap; instead you should have two modules: util_ldap.so and mod_auth_ldap.so... O I didn't even look at the source of util_ldap, since it compiled on first try... But I think for now it's not that big a problem, first get it running, then we can still splitt it in two modules... André
Re: Antw: Re: Instructions for building aut_ldap under win32 ?
Hi, The default linux apache uses a non-threaded MPM, so all the mutex stuff doesn't get build/included. Look at the #if APR_HAS_THREADS lines, they aren't used by linux usually. ok, that's right. But win32 uses threads (and the netware I think too) so this code is probably not widely tested also accepted. And yes, on NetWare we have also threads; but on NetWare the module doesnt crash but I get errors in the logfile (which might have other reasons, such as the postgres lib)... Guenter.
Re: Antw: Re: Instructions for building aut_ldap under win32 ?
Hmmm... . mod_ldap and mod_auth_ldap were working fine for me at 2.0.40 -- once my patch was applied to util_ldap_cache.c (before which it crashed due to unintialized memory). This patch was in before things were moved back into experimental Gnter Knauf wrote: Hi Andre, here is my dsw/dsp file. (Configured for Netscape/iplanet SDK in srclib\ldap The module loads fine in relase and debug modes in apache, but as soon as a auth request commes, apache crashes. hmm, I've seen exactly the same with another module mod_auth_pgsql; I thought it was the module as it is beta stuff, but it works fine on Linux; but now I think more there's a general problem with Win32...?? Guenter.
Re: Antw: Re: Instructions for building aut_ldap under win32 ?
Did you compile mod_auth_ldap as one module, and util_ldap as the second one ? If yes, how did you resolve the missing exports from util_ldap to be able to link mod_auth_ldap. Actually it seems for me, that in util_ldap.h all functions should be declared as AP_DECLARE_NONSTD (or whatever the types/returnvalues require). This way they get exported and can be imported by the mod_auth_ldap module. Building mod_auth_ldap together with util_ldap doesn't work, since util_ldap_connection_find in util_ldap.c has it's own moduleconfiguration where it stores the pool of ldap connections. André [EMAIL PROTECTED] 08.10.2002 21:54:31 Hmmm... . mod_ldap and mod_auth_ldap were working fine for me at 2.0.40 -- once my patch was applied to util_ldap_cache.c (before which it crashed due to unintialized memory). This patch was in before things were moved back into experimental Günter Knauf wrote: Hi Andre, here is my dsw/dsp file. (Configured for Netscape/iplanet SDK in srclib\ldap The module loads fine in relase and debug modes in apache, but as soon as a auth request commes, apache crashes. hmm, I've seen exactly the same with another module mod_auth_pgsql; I thought it was the module as it is beta stuff, but it works fine on Linux; but now I think more there's a general problem with Win32...?? Guenter.