logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in  RSS Apache Lounge  


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.



Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: mod_authn_dbd
Author
marshmallow007



Joined: 30 Dec 2005
Posts: 8

PostPosted: Fri 30 Dec '05 2:20    Post subject: mod_authn_dbd Reply with quote

I can't use this module. And you ?
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 2768
Location: Hilversum, NL, EU

PostPosted: Fri 30 Dec '05 20:42    Post subject: Reply with quote

See post: www.apachelounge.com/viewtopic.php?t=52

Steffen
Back to top
marshmallow007



Joined: 30 Dec 2005
Posts: 8

PostPosted: Sat 31 Dec '05 0:01    Post subject: Reply with quote

Steffen wrote:
See post: www.apachelounge.com/viewtopic.php?t=52

Steffen


Ok, but how can i compile this module ?
How can i make the mysql's DBDriver ?
I have VS 2003 and 2005 (with a MSDNAA licence).

Thanks for your answer, Marsh.
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 2768
Location: Hilversum, NL, EU

PostPosted: Sat 31 Dec '05 0:24    Post subject: Reply with quote

First you need apr_dbd_mysql.c (see in apr-util folder INSTALL.MySQL )

Set APU_HAVE_MYSQL in apu.hw

Put the mysql include and lib in the VS path.

Rebuild Apache.


Steffen
Back to top
marshmallow007



Joined: 30 Dec 2005
Posts: 8

PostPosted: Sun 01 Jan '06 19:40    Post subject: Reply with quote

Steffen wrote:
First you need apr_dbd_mysql.c (see in apr-util folder INSTALL.MySQL )

Set APU_HAVE_MYSQL in apu.hw

Put the mysql include and lib in the VS path.

Rebuild Apache.


Steffen


Happy New Year

Steffen, I'm back

Ok for the apr_dbd_mysql.c in srclib\apr-util\dbd\ folder.
Ok for the mysql.h & errmsg.h in srclib\apr-util\include\mysql\ folder.

But what about the lib ?

Have you seen
...
#if APU_HAVE_SOME_OTHER_BACKEND
DRIVER_LOAD("firebird", apr_dbd_other_driver, pool);
#endif
...
in srclib\apr-util\dbd\apr_dbd.c

So, I can use a firebird database, no ?

Thanks, Marsh.
Back to top
marshmallow007



Joined: 30 Dec 2005
Posts: 8

PostPosted: Mon 02 Jan '06 1:18    Post subject: Reply with quote

Steffen wrote:
First you need apr_dbd_mysql.c (see in apr-util folder INSTALL.MySQL )

Set APU_HAVE_MYSQL in apu.hw

Put the mysql include and lib in the VS path.

Rebuild Apache.


Steffen


Steffen, I'm back II

With VS2003, I put the file apr_dbd_mysql.c in the project libaprytil/dbd and I have many error messages like this :
...
... \httpd-2.2.0\srclib\apr-util\include\mysql\mysql_com.h(175) : error C2061: erreur de syntaxe : identificateur 'SOCKET'
... \httpd-2.2.0\srclib\apr-util\include\mysql\mysql_com.h(208) : error C2059: erreur de syntaxe : '}'
... \httpd-2.2.0\srclib\apr-util\include\mysql\mysql_com.h(321) : error C2143: erreur de syntaxe : absence de ')' avant '*'
...

from the mysql_com.h include (included by apr_dbd_mysql.c)

Can you help me ?

Thanks, Marsh.
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 2768
Location: Hilversum, NL, EU

PostPosted: Tue 03 Jan '06 14:14    Post subject: Reply with quote

Sorry forget to tell that I had the same issue.

Had to change in mysql.h

#ifndef my_socket_defined
#ifdef __WIN__
#define my_socket SOCKET
#else
typedef int my_socket;
#endif /* __WIN__ */
#endif /* my_socket_defined */
#endif /* _global_h */

to

#ifndef my_socket_defined
#ifdef __WIN32__
#define my_socket SOCKET
#else
typedef int my_socket;
#endif /* __WIN32__ */
#endif /* my_socket_defined */
#endif /* _global_h */


My conclusion is that it is not Win32 ready at the moment. I contacted the author, but he had no solution.

Steffen
Back to top
marshmallow007



Joined: 30 Dec 2005
Posts: 8

PostPosted: Sun 08 Jan '06 20:47    Post subject: Reply with quote

Steffen wrote:
Sorry forget to tell that I had the same issue.

Had to change in mysql.h

#ifndef my_socket_defined
#ifdef __WIN__
#define my_socket SOCKET
#else
typedef int my_socket;
#endif /* __WIN__ */
#endif /* my_socket_defined */
#endif /* _global_h */

to

#ifndef my_socket_defined
#ifdef __WIN32__
#define my_socket SOCKET
#else
typedef int my_socket;
#endif /* __WIN32__ */
#endif /* my_socket_defined */
#endif /* _global_h */


My conclusion is that it is not Win32 ready at the moment. I contacted the author, but he had no solution.

Steffen


Thanks Confused
Back to top
marshmallow007



Joined: 30 Dec 2005
Posts: 8

PostPosted: Sun 08 Jan '06 21:17    Post subject: Solution ? Reply with quote

marshmallow007 wrote:
Steffen wrote:
Sorry forget to tell that I had the same issue.

Had to change in mysql.h

#ifndef my_socket_defined
#ifdef __WIN__
#define my_socket SOCKET
#else
typedef int my_socket;
#endif /* __WIN__ */
#endif /* my_socket_defined */
#endif /* _global_h */

to

#ifndef my_socket_defined
#ifdef __WIN32__
#define my_socket SOCKET
#else
typedef int my_socket;
#endif /* __WIN32__ */
#endif /* my_socket_defined */
#endif /* _global_h */


My conclusion is that it is not Win32 ready at the moment. I contacted the author, but he had no solution.

Steffen


Thanks Confused


Try this
#ifndef my_socket_defined
#ifdef __WIN__
#include <WinSock.h> //<- Here Razz
#define my_socket SOCKET
#else
typedef int my_socket;
#endif /* __WIN__ */
#endif /* my_socket_defined */
#endif /* _global_h */
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 2768
Location: Hilversum, NL, EU

PostPosted: Tue 10 Jan '06 1:32    Post subject: Reply with quote

I tried it, it builds fine. But running it crashes Apache.

I have bad news, I received from the Auhor the following:

Anyway, as far as I'm concerned, the MySQL driver was only ever a quick clone of the PostgreSQL driver (which I use myself). If you or anyone else would like to take over maintenance of it (under the GPL), that's fine by me. Or of course you could fork a Windows version of it.


So, it is very experimental.


Steffen
Back to top
NathanKWA



Joined: 22 Jan 2007
Posts: 1

PostPosted: Tue 23 Jan '07 0:01    Post subject: mod_authn_dbd Reply with quote

Steffen wrote:
I tried it, it builds fine. But running it crashes Apache.

I have bad news, I received from the Auhor the following:

Anyway, as far as I'm concerned, the MySQL driver was only ever a quick clone of the PostgreSQL driver (which I use myself). If you or anyone else would like to take over maintenance of it (under the GPL), that's fine by me. Or of course you could fork a Windows version of it.

So, it is very experimental.

Steffen



So, auth via mysql is dead, are there any good resources for setting up auth using Postgre? I am not in a postion to compile the driver myself!

Thanks
Back to top


Reply to topic   Topic: mod_authn_dbd View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules