From owner-svn-ports-head@freebsd.org Wed Jun 29 18:18:13 2016 Return-Path: Delivered-To: svn-ports-head@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 0E1F9B86945; Wed, 29 Jun 2016 18:18:13 +0000 (UTC) (envelope-from feld@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 B9EB12FDA; Wed, 29 Jun 2016 18:18:12 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u5TIIBo8030830; Wed, 29 Jun 2016 18:18:11 GMT (envelope-from feld@FreeBSD.org) Received: (from feld@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u5TIIBMQ030828; Wed, 29 Jun 2016 18:18:11 GMT (envelope-from feld@FreeBSD.org) Message-Id: <201606291818.u5TIIBMQ030828@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: feld set sender to feld@FreeBSD.org using -f From: Mark Felder Date: Wed, 29 Jun 2016 18:18:11 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r417784 - in head/www/redmine-single_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-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2016 18:18:13 -0000 Author: feld Date: Wed Jun 29 18:18:11 2016 New Revision: 417784 URL: https://svnweb.freebsd.org/changeset/ports/417784 Log: www/redmine-single_auth: Add patch to fix on-the-fly account creation The plugin doesn't check if you have enabled LDAPS when it builds its connection string and causes failures that result in 500 errors when trying to do the on-the-fly account creation. The included patch fixes this and has been submitted upstream. Added: head/www/redmine-single_auth/files/ head/www/redmine-single_auth/files/patch-app_helpers_single__auth__helper.rb (contents, props changed) Modified: head/www/redmine-single_auth/Makefile Modified: head/www/redmine-single_auth/Makefile ============================================================================== --- head/www/redmine-single_auth/Makefile Wed Jun 29 17:28:22 2016 (r417783) +++ head/www/redmine-single_auth/Makefile Wed Jun 29 18:18:11 2016 (r417784) @@ -3,6 +3,7 @@ PORTNAME= single_auth PORTVERSION= 2.0.0 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://bitbucket.org/dkuk/${PORTNAME}/get/ PKGNAMEPREFIX= redmine- Added: head/www/redmine-single_auth/files/patch-app_helpers_single__auth__helper.rb ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/redmine-single_auth/files/patch-app_helpers_single__auth__helper.rb Wed Jun 29 18:18:11 2016 (r417784) @@ -0,0 +1,18 @@ +--- app/helpers/single_auth_helper.rb.orig 2016-06-29 17:45:04 UTC ++++ app/helpers/single_auth_helper.rb +@@ -12,8 +12,15 @@ module SingleAuthHelper + port = auth_source.port + end + ++ if auth_source.tls? ++ encryption = :simple_tls ++ else ++ encryption = nil ++ end ++ + Net::LDAP.new host: auth_source.host, + port: port, ++ encryption: encryption, + auth: { method: :simple, + username: auth_source.account, + password: auth_source.account_password }