From bad02085dc4df6cef0db136ab1f274f894737a20 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 18 Aug 2013 11:47:46 +0000 Subject: [PATCH] support Samba 4 --- lam/lib/modules/windowsPosixGroup.inc | 95 +++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 lam/lib/modules/windowsPosixGroup.inc diff --git a/lam/lib/modules/windowsPosixGroup.inc b/lam/lib/modules/windowsPosixGroup.inc new file mode 100644 index 00000000..43faac46 --- /dev/null +++ b/lam/lib/modules/windowsPosixGroup.inc @@ -0,0 +1,95 @@ +manageCnAttribute = false; + $this->manageDescriptionAttribute = false; + // make optional + $this->autoAddObjectClasses = false; + } + + /** + * Returns meta data that is interpreted by parent class + * + * @return array array with meta data + * + * @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(); + // managed attributes + $return['attributes'] = array('gidNumber', 'userPasswordUnix', 'memberUid'); + 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; + } + +} + +?> \ No newline at end of file