From 0f09b6c6d9afdb1982cdc70a3e02202e46af8213 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Mon, 12 Mar 2018 19:22:04 +0100 Subject: [PATCH] get group name from more modules --- lam/lib/modules/quota.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lam/lib/modules/quota.inc b/lam/lib/modules/quota.inc index a4b0f970..ba033e69 100644 --- a/lam/lib/modules/quota.inc +++ b/lam/lib/modules/quota.inc @@ -7,7 +7,7 @@ $Id$ This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) Copyright (C) 2003 - 2006 Tilo Lutz - 2007 - 2017 Roland Gruber + 2007 - 2018 Roland Gruber This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -90,7 +90,7 @@ class quota extends baseModule { $return["alias"] = _('Quota'); if ($this->get_scope() == 'group') { // module dependencies - $return['dependencies'] = array('depends' => array(array('posixGroup', 'rfc2307bisPosixGroup')), 'conflicts' => array()); + $return['dependencies'] = array('depends' => array(array('posixGroup', 'rfc2307bisPosixGroup', 'windowsPosixGroup')), 'conflicts' => array()); } if ($this->get_scope() == 'user') { // module dependencies @@ -215,7 +215,7 @@ class quota extends baseModule { * @return String cn attribute */ private function getCn() { - $modules = array('posixGroup', 'groupOfNames', 'groupOfUniqueNames'); + $modules = array('posixGroup', 'windowsPosixGroup', 'rfc2307bisPosixGroup', 'groupOfNames', 'groupOfUniqueNames', 'windowsGroup'); for ($i = 0; $i < sizeof($modules); $i++) { if ($this->getAccountContainer()->getAccountModule($modules[$i]) != null) { $attrs = $this->getAccountContainer()->getAccountModule($modules[$i])->getAttributes();