aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/ldap-account-manager
diff options
context:
space:
mode:
authorsylvio <sylvio@FreeBSD.org>2010-06-01 09:34:00 +0800
committersylvio <sylvio@FreeBSD.org>2010-06-01 09:34:00 +0800
commit911db56c11cf6630c1efae862662478e96830d52 (patch)
tree2663ef0e78ce603cbb15a1d3c46efde405cf3cf7 /sysutils/ldap-account-manager
parenta45d6cad656cb12d80a52b5658902b80df942367 (diff)
downloadfreebsd-ports-gnome-911db56c11cf6630c1efae862662478e96830d52.tar.gz
freebsd-ports-gnome-911db56c11cf6630c1efae862662478e96830d52.tar.zst
freebsd-ports-gnome-911db56c11cf6630c1efae862662478e96830d52.zip
- Fix bug "Samba 3 domain SID is invalid!" when creating domain record
- BUMP PORTREVISION PR: ports/146291 Submitted by: Vasiliy P. Melnik <basil@vpm.net.ua>
Diffstat (limited to 'sysutils/ldap-account-manager')
-rw-r--r--sysutils/ldap-account-manager/Makefile2
-rw-r--r--sysutils/ldap-account-manager/files/patch-account.inc34
-rw-r--r--sysutils/ldap-account-manager/pkg-plist1
3 files changed, 36 insertions, 1 deletions
diff --git a/sysutils/ldap-account-manager/Makefile b/sysutils/ldap-account-manager/Makefile
index 391dbb08502a..285f5e61c1e9 100644
--- a/sysutils/ldap-account-manager/Makefile
+++ b/sysutils/ldap-account-manager/Makefile
@@ -7,7 +7,7 @@
PORTNAME= ldap-account-manager
PORTVERSION= 3.0.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= sysutils www
MASTER_SITES= SF/${PNAME}/LAM/${PORTVERSION}
DISTNAME= ${PORTNAME:L}-${PORTVERSION}
diff --git a/sysutils/ldap-account-manager/files/patch-account.inc b/sysutils/ldap-account-manager/files/patch-account.inc
new file mode 100644
index 000000000000..d5fd085a6841
--- /dev/null
+++ b/sysutils/ldap-account-manager/files/patch-account.inc
@@ -0,0 +1,34 @@
+--- lib/account.inc.orig 2010-03-24 15:22:38.000000000 -0300
++++ lib/account.inc 2010-05-31 16:30:07.000000000 -0300
+@@ -39,10 +39,10 @@
+ * @return array list of shell names
+ */
+ function getshells() {
+- if (!isset($_SESSION['lampath'])) return array();
++ $shellPath = dirname(__FILE__) . '/../config/shells';
+ // Load shells from file
+- if (file_exists($_SESSION['lampath'] . 'config/shells')) {
+- $shells = file($_SESSION['lampath'] . 'config/shells');
++ if (file_exists($shellPath)) {
++ $shells = file($shellPath);
+ $i = 0;
+ while (count($shells) > $i) {
+ // remove whitespaces
+@@ -386,6 +386,9 @@
+ case 'hostname':
+ $pregexpr = '/^([[:alnum:]@\\.\\ \\_\\$-])+$/u';
+ break;
++ case 'hostObject':
++ $pregexpr = '/^[!]?([[:alnum:]@\\.\\ \\_\\$\\*-])+$/u';
++ break;
+ case 'usernameList': // comma separated list of user names
+ case 'groupnameList': // comma separated list of group names
+ $pregexpr = '/^([[:alnum:]@\\.\\ \\_-])+(,([[:alnum:]@\\.\\ \\_-])+)*$/u';
+@@ -467,6 +470,7 @@
+ break;
+ case 'domainSID': // Samba domain SID
+ $pregexpr = "/^S\\-[0-9]\\-[0-9]\\-[0-9]{2,2}\\-[0-9]+\\-[0-9]+\\-[0-9]+$/";
++ break;
+ case 'ip': // IP address
+ $pregexpr = '/^[0-9]{1,3}[.][0-9]{1,3}[.][0-9]{1,3}[.][0-9]{1,3}$/';
+ break;
diff --git a/sysutils/ldap-account-manager/pkg-plist b/sysutils/ldap-account-manager/pkg-plist
index 3ee432f5d6f3..92f549fe2212 100644
--- a/sysutils/ldap-account-manager/pkg-plist
+++ b/sysutils/ldap-account-manager/pkg-plist
@@ -137,6 +137,7 @@
%%WWWDIR%%/lib/.htaccess
%%WWWDIR%%/lib/tools.inc
%%WWWDIR%%/lib/account.inc
+%%WWWDIR%%/lib/account.inc.orig
%%WWWDIR%%/lib/baseModule.inc
%%WWWDIR%%/lib/baseType.inc
%%WWWDIR%%/lib/cache.inc