diff options
Diffstat (limited to 'www/mod_auth_mysql')
-rw-r--r-- | www/mod_auth_mysql/Makefile | 40 | ||||
-rw-r--r-- | www/mod_auth_mysql/distinfo | 2 | ||||
-rw-r--r-- | www/mod_auth_mysql/files/patch-ad | 61 | ||||
-rw-r--r-- | www/mod_auth_mysql/pkg-descr | 5 |
4 files changed, 0 insertions, 108 deletions
diff --git a/www/mod_auth_mysql/Makefile b/www/mod_auth_mysql/Makefile deleted file mode 100644 index e8fb65867013..000000000000 --- a/www/mod_auth_mysql/Makefile +++ /dev/null @@ -1,40 +0,0 @@ -# New ports collection makefile for: apache mod_auth_mysql -# Date created: 2000/05/19 -# Whom: jim@thehouselys.net -# -# $FreeBSD$ - -PORTNAME= mod_auth_mysql -PORTVERSION= 3.2 -PORTREVISION= 1 -CATEGORIES= www -MASTER_SITES= SF/mod-auth-mysql/mod-auth-mysql/mod-auth-mysql-1.0 -PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX} - -MAINTAINER= apache@FreeBSD.org -COMMENT= Allows users to use MySQL databases for user authentication - -DEPRECATED= apache13 is deprecated, migrate to 2.2.x+ now -EXPIRATION_DATE= 2012-01-01 - -MAKE_JOBS_SAFE= yes - -USE_MYSQL= yes - -USE_APACHE= 13 -AP_GENPLIST= yes -PORTDOCS= README USAGE -PLIST_FILES+= %%APACHEMODDIR%%/mod_auth_mysql.so - -post-patch: - ${REINPLACE_CMD} -e 's,/usr,${LOCALBASE},g' -e 's,apxs,${APXS},' ${WRKSRC}/Makefile - -post-install: -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR}/ -.for f in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/ -.endfor -.endif - -.include <bsd.port.mk> diff --git a/www/mod_auth_mysql/distinfo b/www/mod_auth_mysql/distinfo deleted file mode 100644 index 61f180322d9a..000000000000 --- a/www/mod_auth_mysql/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (mod_auth_mysql-3.2.tar.gz) = 099c7a5621dab9ee8ea564fd996c1148cd793b2968d753ce6c9713a7de79af6f -SIZE (mod_auth_mysql-3.2.tar.gz) = 11940 diff --git a/www/mod_auth_mysql/files/patch-ad b/www/mod_auth_mysql/files/patch-ad deleted file mode 100644 index f3b9c4a732c3..000000000000 --- a/www/mod_auth_mysql/files/patch-ad +++ /dev/null @@ -1,61 +0,0 @@ ---- mod_auth_mysql.c.orig Sat Oct 3 13:41:41 1998 -+++ mod_auth_mysql.c Tue Jul 11 07:43:36 2006 -@@ -55,8 +55,14 @@ - - static int check_mysql_encryption(const char *passwd, char *enc_passwd) - { -- char scrambled_passwd[32]; -+ /* Make more then big enough */ -+ char scrambled_passwd[256]; - -+#if MYSQL_VERSION_ID >= 40000 -+ make_scrambled_password_323(scrambled_passwd, passwd); -+ if (strcmp(scrambled_passwd, enc_passwd) == 0) return 1; -+#endif /* MYSQL_VERSION_ID >= 40000 */ -+ - make_scrambled_password(scrambled_passwd, passwd); - return (!strcmp(scrambled_passwd, enc_passwd)); - } -@@ -372,7 +378,12 @@ - } - if (name != NULL) { /* open an SQL link */ - /* link to the MySQL database and register its cleanup!@$ */ -+#if MYSQL_VERSION_ID >= 40000 -+ mysql_init(&auth_sql_server); -+ mysql_auth = mysql_real_connect(&auth_sql_server, auth_db_host, user, pwd, name, 0, NULL, 0); -+#else /* MYSQL_VERSION_ID < 40000 */ - mysql_auth = mysql_connect(&auth_sql_server, auth_db_host, user, pwd); -+#endif /* MYSQL_VERSION_ID < 40000 */ - if (sec->non_persistent && mysql_auth) { - note_cleanups_for_mysql_auth(r->pool, mysql_auth); - } -@@ -559,6 +570,10 @@ - - switch (mysql_check_user_password(r, c->user, sent_pw, sec)) { - case 0: -+ ap_log_rerror(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, r, -+ "user %s: authentication failure for \"%s\": %s", -+ c->user, r->uri); -+ ap_note_basic_auth_failure(r); - note_basic_auth_failure(r); - return AUTH_REQUIRED; - break; -@@ -582,6 +597,7 @@ - { - mysql_auth_config_rec *sec = (mysql_auth_config_rec *) get_module_config(r->per_dir_config, &auth_mysql_module); - char *user = r->connection->user; -+ conn_rec *c = r->connection; - int m = r->method_number; - int method_restricted = 0; - register int x; -@@ -653,6 +669,10 @@ - if (!(sec->assume_authoritative)) { - return DECLINED; - } -+ ap_log_rerror(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, r, -+ "user %s: authentication failure for \"%s\": %s", -+ c->user, r->uri); -+ ap_note_basic_auth_failure(r); - note_basic_auth_failure(r); - return AUTH_REQUIRED; - } diff --git a/www/mod_auth_mysql/pkg-descr b/www/mod_auth_mysql/pkg-descr deleted file mode 100644 index 5e30ab8adb0b..000000000000 --- a/www/mod_auth_mysql/pkg-descr +++ /dev/null @@ -1,5 +0,0 @@ -This add-on module allows the apache web server to use a MySQL database -for user and/or group authentication. For large user lists this can offer -a significate speed up over apache's standard flat file format. - -WWW: http://modauthmysql.sourceforge.net/ |