2013-08-18 11:47:46 +00:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
$Id$
|
|
|
|
|
|
|
|
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
2017-05-06 08:47:19 +00:00
|
|
|
Copyright (C) 2013 - 2017 Roland Gruber
|
2013-08-18 11:47:46 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Manages Unix groups in Windows LDAP schema.
|
|
|
|
*
|
|
|
|
* @package modules
|
|
|
|
* @author Roland Gruber
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** include parent class */
|
2018-12-23 16:52:56 +00:00
|
|
|
include_once(__DIR__ . "/posixGroup.inc");
|
2013-08-18 11:47:46 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Manages Unix groups in Windows LDAP schema.
|
|
|
|
*
|
|
|
|
* @package modules
|
|
|
|
*/
|
|
|
|
class windowsPosixGroup extends posixGroup {
|
2017-05-06 08:47:19 +00:00
|
|
|
|
2013-08-18 11:47:46 +00:00
|
|
|
/**
|
|
|
|
* Creates a new windowsPosixGroup object.
|
|
|
|
*
|
|
|
|
* @param string $scope account type (user, group, host)
|
|
|
|
*/
|
|
|
|
public function __construct($scope) {
|
2013-12-26 11:00:13 +00:00
|
|
|
// different password attribute name
|
|
|
|
$this->passwordAttrName = 'unixUserPassword';
|
2013-08-18 11:47:46 +00:00
|
|
|
// make optional
|
|
|
|
$this->autoAddObjectClasses = false;
|
2013-12-26 11:06:11 +00:00
|
|
|
// call parent constructor
|
|
|
|
parent::__construct($scope);
|
2013-08-18 11:47:46 +00:00
|
|
|
}
|
2017-05-06 08:47:19 +00:00
|
|
|
|
2013-08-18 11:47:46 +00:00
|
|
|
/**
|
|
|
|
* Returns meta data that is interpreted by parent class
|
|
|
|
*
|
|
|
|
* @return array array with meta data
|
2017-05-06 08:47:19 +00:00
|
|
|
*
|
2013-08-18 11:47:46 +00:00
|
|
|
* @see baseModule::get_metaData()
|
|
|
|
*/
|
|
|
|
function get_metaData() {
|
|
|
|
$return = parent::get_metaData();
|
|
|
|
// module dependencies
|
|
|
|
$return['dependencies'] = array('depends' => array(), 'conflicts' => array('posixGroup'));
|
|
|
|
// this is no base module (in contrast to parent class)
|
|
|
|
$return["is_base"] = false;
|
|
|
|
// no RDN attribute setting
|
|
|
|
$return["RDN"] = array();
|
|
|
|
return $return;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Controls if the module button the account page is visible and activated.
|
|
|
|
*
|
|
|
|
* @return string status ("enabled", "disabled", "hidden")
|
|
|
|
*/
|
|
|
|
function getButtonStatus() {
|
|
|
|
return "enabled";
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This functions is used to check if all settings for this module have been made.
|
|
|
|
*
|
|
|
|
* @return boolean true, if settings are complete
|
|
|
|
*/
|
|
|
|
function module_complete() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2017-05-06 08:47:19 +00:00
|
|
|
/**
|
|
|
|
* {@inheritdoc}
|
|
|
|
*/
|
|
|
|
protected function manageCnAndDescription($modules) {
|
|
|
|
// do not manage cn and description (managed by windowsGroup)
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2013-08-18 11:47:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
?>
|