summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorLuca Pizzamiglio <pizzamig@FreeBSD.org>2020-07-11 16:53:32 +0000
committerLuca Pizzamiglio <pizzamig@FreeBSD.org>2020-07-11 16:53:32 +0000
commit22411f45c56a57702f0b474506d019999e1617c6 (patch)
tree8dea8ac9656e03b1f34fc690e40232824733fc1e /databases
parentmisc/tvbrowser: Update to 4.2.1 (diff)
databases/ateam_mysql57_ldap_auth: new port for mysql 5.7
A-Team MySQL 5.7 LDAP authentication plugin PR: 247685 Submitted by: ganbold@freebsd.org (maintainer) Event: July 2020 Bugathon
Diffstat (limited to 'databases')
-rw-r--r--databases/Makefile1
-rw-r--r--databases/ateam_mysql57_ldap_auth/Makefile45
-rw-r--r--databases/ateam_mysql57_ldap_auth/distinfo3
-rw-r--r--databases/ateam_mysql57_ldap_auth/files/pkg-message.in4
-rw-r--r--databases/ateam_mysql57_ldap_auth/pkg-descr24
5 files changed, 77 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index 1567861cd93a..bac47ef5003f 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -25,6 +25,7 @@
SUBDIR += arangodb33
SUBDIR += arrow
SUBDIR += ateam_mysql_ldap_auth
+ SUBDIR += ateam_mysql57_ldap_auth
SUBDIR += autobackupmysql
SUBDIR += automysqlbackup
SUBDIR += bbdb
diff --git a/databases/ateam_mysql57_ldap_auth/Makefile b/databases/ateam_mysql57_ldap_auth/Makefile
new file mode 100644
index 000000000000..ebf1492ef1c9
--- /dev/null
+++ b/databases/ateam_mysql57_ldap_auth/Makefile
@@ -0,0 +1,45 @@
+# Created by: Ganbold Tsagaankhuu <ganbold@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= ateam_mysql57_ldap_auth
+PORTVERSION= 1.0
+CATEGORIES= databases
+
+MAINTAINER= ganbold@FreeBSD.org
+COMMENT= A-Team MySQL LDAP authentication plugin
+
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+IGNORE_WITH_MYSQL= 56 80 101m 102m 103m
+
+LIB_DEPENDS= libconfig.so:devel/libconfig
+
+USES= gmake mysql:client,server
+USE_OPENLDAP= yes
+
+USE_GITHUB= yes
+GH_ACCOUNT= ateamsystems
+GH_TAGNAME= f6d79fb
+
+PLIST_FILES= lib/mysql/plugin/auth_ldap.so \
+ "@sample etc/ateam_mysql_ldap_auth.conf.sample"
+PORTDOCS= README INSTALL
+
+OPTIONS_DEFINE= DOCS
+
+SUB_FILES= pkg-message
+
+do-install:
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/mysql/plugin
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/auth_ldap.so \
+ ${STAGEDIR}${PREFIX}/lib/mysql/plugin
+ ${INSTALL_DATA} ${WRKSRC}/ateam_mysql_ldap_auth.conf \
+ ${STAGEDIR}${PREFIX}/etc/ateam_mysql_ldap_auth.conf.sample
+
+do-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/INSTALL ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/databases/ateam_mysql57_ldap_auth/distinfo b/databases/ateam_mysql57_ldap_auth/distinfo
new file mode 100644
index 000000000000..b8dce6744fad
--- /dev/null
+++ b/databases/ateam_mysql57_ldap_auth/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1593015605
+SHA256 (ateamsystems-ateam_mysql57_ldap_auth-1.0-f6d79fb_GH0.tar.gz) = 0f175183472d89bc8dde450b2fc3d5f6562900a912898898ef9dcd32498bb875
+SIZE (ateamsystems-ateam_mysql57_ldap_auth-1.0-f6d79fb_GH0.tar.gz) = 18081
diff --git a/databases/ateam_mysql57_ldap_auth/files/pkg-message.in b/databases/ateam_mysql57_ldap_auth/files/pkg-message.in
new file mode 100644
index 000000000000..fd841b038634
--- /dev/null
+++ b/databases/ateam_mysql57_ldap_auth/files/pkg-message.in
@@ -0,0 +1,4 @@
+---------------------------------------------------------------------
+Please see %%DOCSDIR%%/INSTALL
+for install notes.
+---------------------------------------------------------------------
diff --git a/databases/ateam_mysql57_ldap_auth/pkg-descr b/databases/ateam_mysql57_ldap_auth/pkg-descr
new file mode 100644
index 000000000000..5779311202ab
--- /dev/null
+++ b/databases/ateam_mysql57_ldap_auth/pkg-descr
@@ -0,0 +1,24 @@
+A-Team MySQL LDAP Authenticator
+WWW: https://github.com/ateamsystems/ateam_mysql_ldap_auth
+---------------------------------------------------------------------------- -
+A-Team MySQL LDAP Authenticator (ateam_mysql_ldap_auth) is an authentication
+plugin for MySQL 5.5.7 and up, and has been tested with 5.6 under FreeBSD.
+This module allows you to create MySQL users that are then authenticated
+against an LDAP server. This reduces administrative overhead and eliminates
+your users having to remember a seperate username and password for MySQL.
+Just like MySQL Enterprise's PAM module, for client side authentication
+this plugin uses the clear_text password module as the LDAP server must
+perform the password hashing and comparison. For command line clients this
+is done by setting the following environment variable:
+
+ export LIBMYSQL_ENABLE_CLEARTEXT_PLUGIN=1
+
+In MySQL Workbench this is acheived by going to go to the "Advanced" tab and
+checking "Enable Cleartext Authentication Plugin" when editing a connction.
+
+!!! IMPORTANT:
+!!! ------------------------------------------------------------------------
+!!! ENSURE THE COMMUNICATIONS PATH BETWEEN THE CLIENT AND SERVER IS SECURE!
+!!! ------------------------------------------------------------------------
+!!! By default MySQL does not use SSL so additional steps and network design
+!!! are needed to ensure you're not exposing your credetials.