View | Details | Raw Unified | Return to bug 208913 | Differences between
and this patch

Collapse All | Expand All

(-)databases/ateam_mysql_ldap_auth/Makefile (working copy) (+39 lines)
Line 0 Link Here
1
# Created by: Ganbold Tsagaankhuu <ganbold@FreeBSD.org>
2
# $FreeBSD$
3
4
PORTNAME=      ateam_mysql_ldap_auth
5
PORTVERSION=   1.0
6
CATEGORIES=    databases
7
8
MAINTAINER=    ganbold@FreeBSD.org
9
COMMENT=       A-Team MySQL LDAP authentication plugin
10
11
LICENSE=       GPLv2
12
LICENSE_FILE=  ${WRKSRC}/COPYING
13
14
LIB_DEPENDS=   libconfig.so:devel/libconfig
15
RUN_DEPENDS=   mysql${MYSQL_VER}-server>5.6:databases/mysql56-server
16
17
USE_OPENLDAP=  yes
18
USES=          gmake mysql:server
19
20
USE_GITHUB=    yes
21
GH_ACCOUNT=    ateamsystems
22
GH_TAGNAME=    f6a1a5d
23
24
PLIST_FILES=   lib/mysql/plugin/auth_ldap.so \
25
               "@sample etc/ateam_mysql_ldap_auth.conf.sample" \
26
               ${DOCSDIR}/README \
27
               ${DOCSDIR}/INSTALL
28
29
SUB_FILES=     pkg-message
30
31
do-install:
32
       ${MKDIR} ${STAGEDIR}${PREFIX}/lib/mysql/plugin
33
       ${MKDIR} ${STAGEDIR}${DOCSDIR}
34
       ${INSTALL_PROGRAM} ${WRKSRC}/src/auth_ldap.so ${STAGEDIR}${PREFIX}/lib/mysql/plugin/
35
       ${INSTALL_DATA} ${WRKSRC}/ateam_mysql_ldap_auth.conf ${STAGEDIR}${PREFIX}/etc/ateam_mysql_ldap_auth.conf.sample
36
       ${INSTALL_MAN} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/
37
       ${INSTALL_MAN} ${WRKSRC}/INSTALL ${STAGEDIR}${DOCSDIR}/
38
39
.include <bsd.port.mk>
(-)databases/ateam_mysql_ldap_auth/distinfo (working copy) (+2 lines)
Line 0 Link Here
1
SHA256 (ateamsystems-ateam_mysql_ldap_auth-1.0-f6a1a5d_GH0.tar.gz) = 3a20533fb4fed93daad0e8944ab6e8ae530ecbebefd95240b1e60f3c5ca5ec9c
2
SIZE (ateamsystems-ateam_mysql_ldap_auth-1.0-f6a1a5d_GH0.tar.gz) = 17971
(-)databases/ateam_mysql_ldap_auth/files/pkg-message.in (working copy) (+4 lines)
Line 0 Link Here
1
---------------------------------------------------------------------
2
Please see %%DOCSDIR%%/INSTALL
3
for install notes.
4
---------------------------------------------------------------------
(-)databases/ateam_mysql_ldap_auth/pkg-descr (working copy) (+39 lines)
Line 0 Link Here
1
A-Team MySQL LDAP Authenticator
2
WWW: https://github.com/ateamsystems/ateam_mysql_ldap_auth
3
---------------------------------------------------------------------------- -
4
5
A-Team MySQL LDAP Authenticator (ateam_mysql_ldap_auth) is an authentication
6
plugin for MySQL 5.5.7 and up, and has been extensively tested with 5.6
7
under FreeBSD but should work fine under Linux as well with a few tweaks,
8
patches are welcome!
9
10
This module allows you to create MySQL users that are then authenticated
11
against an LDAP server. This reduces administrative overhead and eliminates
12
your users having to remember a seperate username and password for MySQL.
13
LDAP authenticated users behave no different permission wise than 'local'
14
users in terms of GRANT and DB permissions.
15
16
The configuration file is flexible enough to support almost any LDAP
17
directory including OpenLDAP or Active Directory.
18
19
The plugin requires MySQL 5.5.7 and up. It is compiled as an add on module
20
and does not require you to alter the MySQL source code or recompile the
21
entire server. The plugin uses the OpenLDAP library to interface with a
22
directory.
23
24
Just like MySQL Enterprise's PAM module, for client side authentication
25
this plugin uses the clear_text password module as the LDAP server must
26
perform the password hasing and comparison.  For command line clients this
27
is done by setting the following environment variable:
28
29
  export LIBMYSQL_ENABLE_CLEARTEXT_PLUGIN=1
30
31
In MySQL Workbench this is acheived by going to go to the "Advanced" tab and
32
checking "Enable Cleartext Authentication Plugin" when editing a connction.
33
34
!!! IMPORTANT:
35
!!! ------------------------------------------------------------------------
36
!!! ENSURE THE COMMUNICATIONS PATH BETWEEN THE CLIENT AND SERVER IS SECURE!
37
!!! ------------------------------------------------------------------------
38
!!! By default MySQL does not use SSL so additional steps and network design
39
!!! are needed to ensure you're not exposing your credetials.

Return to bug 208913