svn commit: r417784 - in head/www/redmine-single_auth: . files

Mark Felder feld at FreeBSD.org
Wed Jun 29 18:18:13 UTC 2016


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 }


More information about the svn-ports-head mailing list