From owner-svn-ports-all@freebsd.org Wed May 25 14:18:58 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EA2C4B4984C; Wed, 25 May 2016 14:18:58 +0000 (UTC) (envelope-from novel@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9B799194C; Wed, 25 May 2016 14:18:58 +0000 (UTC) (envelope-from novel@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4PEIvxj049492; Wed, 25 May 2016 14:18:57 GMT (envelope-from novel@FreeBSD.org) Received: (from novel@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4PEIvLC049487; Wed, 25 May 2016 14:18:57 GMT (envelope-from novel@FreeBSD.org) Message-Id: <201605251418.u4PEIvLC049487@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: novel set sender to novel@FreeBSD.org using -f From: Roman Bogorodskiy Date: Wed, 25 May 2016 14:18:57 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r415833 - in head/databases: . ateam_mysql_ldap_auth ateam_mysql_ldap_auth/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2016 14:18:59 -0000 Author: novel Date: Wed May 25 14:18:57 2016 New Revision: 415833 URL: https://svnweb.freebsd.org/changeset/ports/415833 Log: Add ateam_mysql_ldap_auth 1.0, a-Team MySQL LDAP authentication plugin. PR: 208913 Submitted by: ganbold Added: head/databases/ateam_mysql_ldap_auth/ head/databases/ateam_mysql_ldap_auth/Makefile (contents, props changed) head/databases/ateam_mysql_ldap_auth/distinfo (contents, props changed) head/databases/ateam_mysql_ldap_auth/files/ head/databases/ateam_mysql_ldap_auth/files/pkg-message.in (contents, props changed) head/databases/ateam_mysql_ldap_auth/pkg-descr (contents, props changed) Modified: head/databases/Makefile Modified: head/databases/Makefile ============================================================================== --- head/databases/Makefile Wed May 25 13:59:07 2016 (r415832) +++ head/databases/Makefile Wed May 25 14:18:57 2016 (r415833) @@ -21,6 +21,7 @@ SUBDIR += apq-mysql SUBDIR += apq-odbc SUBDIR += apq-pgsql + SUBDIR += ateam_mysql_ldap_auth SUBDIR += autobackupmysql SUBDIR += bbdb SUBDIR += beansdb Added: head/databases/ateam_mysql_ldap_auth/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/ateam_mysql_ldap_auth/Makefile Wed May 25 14:18:57 2016 (r415833) @@ -0,0 +1,39 @@ +# Created by: Ganbold Tsagaankhuu +# $FreeBSD$ + +PORTNAME= ateam_mysql_ldap_auth +PORTVERSION= 1.0 +CATEGORIES= databases + +MAINTAINER= ganbold@FreeBSD.org +COMMENT= A-Team MySQL LDAP authentication plugin + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + +LIB_DEPENDS= libconfig.so:devel/libconfig +RUN_DEPENDS= mysql${MYSQL_VER}-server>5.6:databases/mysql56-server + +USE_OPENLDAP= yes +USES= gmake mysql + +USE_GITHUB= yes +GH_ACCOUNT= ateamsystems +GH_TAGNAME= f6a1a5d + +PLIST_FILES= lib/mysql/plugin/auth_ldap.so \ + "@sample etc/ateam_mysql_ldap_auth.conf.sample" \ + ${DOCSDIR}/README \ + ${DOCSDIR}/INSTALL + +SUB_FILES= pkg-message + +do-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/lib/mysql/plugin + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${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 + ${INSTALL_MAN} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/ + ${INSTALL_MAN} ${WRKSRC}/INSTALL ${STAGEDIR}${DOCSDIR}/ + +.include Added: head/databases/ateam_mysql_ldap_auth/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/ateam_mysql_ldap_auth/distinfo Wed May 25 14:18:57 2016 (r415833) @@ -0,0 +1,2 @@ +SHA256 (ateamsystems-ateam_mysql_ldap_auth-1.0-f6a1a5d_GH0.tar.gz) = 3a20533fb4fed93daad0e8944ab6e8ae530ecbebefd95240b1e60f3c5ca5ec9c +SIZE (ateamsystems-ateam_mysql_ldap_auth-1.0-f6a1a5d_GH0.tar.gz) = 17971 Added: head/databases/ateam_mysql_ldap_auth/files/pkg-message.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/ateam_mysql_ldap_auth/files/pkg-message.in Wed May 25 14:18:57 2016 (r415833) @@ -0,0 +1,4 @@ +--------------------------------------------------------------------- +Please see %%DOCSDIR%%/INSTALL +for install notes. +--------------------------------------------------------------------- Added: head/databases/ateam_mysql_ldap_auth/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/ateam_mysql_ldap_auth/pkg-descr Wed May 25 14:18:57 2016 (r415833) @@ -0,0 +1,23 @@ +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 hasing 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. + +WWW: https://github.com/ateamsystems/ateam_mysql_ldap_auth