Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
fusiondirectory
fusiondirectory-plugins
Commits
d18ae9ec
Verified
Commit
d18ae9ec
authored
6 years ago
by
Côme Chilliet
Browse files
Options
Download
Patches
Plain Diff
feat(netgroups) Migrate netgroups to selectManagement
issue
#5937
parent
21f67e6c
dev
6104-mail-methods-refactor
6231-give-the-ability-to-the-webservice-to-notice-if-an-attribute-is-monovalued-or-multivalued
6237-add-requiredattrs-array-to-the-webservice-informations
6245-adapt-the-ci-to-the-reorganisation-of-the-dev-tools-and-fixing-the-trigger-downstream-pipelines
6250-supann-configuration-backend-requires-account-life-cycle-section
6280-plugins-update-plugins-to-take-into-consideration-the-new-directory-of-core-structure
6310-tasks-reminder-error-in-the-schema-duplicate-attribute-id
6311-put-the-version-1-5-in-all-yaml-for-fusiondirectory-1-5
6322-template-issue-when-creating-a-template-with-empty-password-error-message-should-not-be-seen-2
6332-zimbra-allows-update-of-data-for-unknown-domain-name-for-specific-individual-aliases
6337-webservice-issue-with-archiving-post-request-not-responding-but-successfully-archiving-user
6341-supann-extract-resources-states-sub-states-from-backend-configuration-to-their-own-objects
master
fusiondirectory-1.5
fusiondirectory-1.4
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
netgroups/admin/netgroups/class_netgroup.inc
+7
-22
netgroups/admin/netgroups/class_netgroup.inc
netgroups/admin/netgroups/memberNisnetgroupSelect/class_memberNisnetgroupSelect.inc
+0
-25
...memberNisnetgroupSelect/class_memberNisnetgroupSelect.inc
netgroups/personal/netgroups/class_netgroupMembership.inc
+6
-12
netgroups/personal/netgroups/class_netgroupMembership.inc
with
13 additions
and
59 deletions
+13
-59
netgroups/admin/netgroups/class_netgroup.inc
+
7
−
22
View file @
d18ae9ec
...
...
@@ -3,7 +3,7 @@
This code is part of FusionDirectory (http://www.fusiondirectory.org)
Copyright (C) 2011 Alejandro Escanero Blanco (aescanero@gmail.com)
Copyright (C) 2011-201
6
FusionDirectory
Copyright (C) 2011-201
9
FusionDirectory
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
...
...
@@ -20,26 +20,6 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
class
CnNetgroupsAttribute
extends
DialogAttribute
{
protected
$dialogClass
=
"NetgroupSelectDialog"
;
function
addValue
(
$dn
,
$entry
)
{
$value
=
$entry
[
'cn'
][
0
];
if
(
!
in_array
(
$value
,
$this
->
value
))
{
$this
->
value
[]
=
$value
;
}
}
function
getFilterBlackList
()
{
$cns
=
$this
->
getValue
();
$cns
[]
=
$this
->
plugin
->
cn
;
return
[
'cn'
=>
$cns
];
}
}
class
netgroup
extends
simplePlugin
{
static
function
plInfo
():
array
...
...
@@ -98,7 +78,12 @@ class netgroup extends simplePlugin
'name'
=>
_
(
'Netgroup members'
),
'icon'
=>
'geticon.php?context=applications&icon=netgroups&size=16'
,
'attrs'
=>
[
new
CnNetgroupsAttribute
(
''
,
_
(
'NIS netgroup members'
),
'memberNisNetgroup'
),
new
ObjectsAttribute
(
''
,
_
(
'NIS netgroup membership'
),
'nisMembership'
,
TRUE
,
[
'netgroup'
],
[],
'cn'
,
'cn'
),
]
],
];
...
...
This diff is collapsed.
Click to expand it.
netgroups/admin/netgroups/memberNisnetgroupSelect/class_memberNisnetgroupSelect.inc
deleted
100644 → 0
+
0
−
25
View file @
21f67e6c
<?php
/*
This code is part of FusionDirectory (http://www.fusiondirectory.org)
Copyright (C) 2013-2016 FusionDirectory
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
class
memberNisnetgroupSelect
extends
simpleSelectManagement
{
protected
$objectTypes
=
[
'netgroup'
];
}
This diff is collapsed.
Click to expand it.
netgroups/personal/netgroups/class_netgroupMembership.inc
+
6
−
12
View file @
d18ae9ec
...
...
@@ -3,7 +3,7 @@
This code is part of FusionDirectory (http://www.fusiondirectory.org)
Copyright (C) 2011 Alejandro Escanero Blanco (aescanero@gmail.com)
Copyright (C) 2011-201
6
FusionDirectory
Copyright (C) 2011-201
9
FusionDirectory
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
...
...
@@ -20,16 +20,6 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
class
NetgroupSelectDialog
extends
GenericSelectDialog
{
protected
$dialogClass
=
'memberNisnetgroupSelect'
;
}
class
NetgroupsAttribute
extends
GroupsAttribute
{
protected
$dialogClass
=
'NetgroupSelectDialog'
;
}
class
netgroupMembership
extends
simplePlugin
{
protected
$displayHeader
=
TRUE
;
...
...
@@ -60,7 +50,11 @@ class netgroupMembership extends simplePlugin
'name'
=>
_
(
'Member of the following NIS Netgroups '
),
'icon'
=>
'geticon.php?context=applications&icon=netgroups&size=16'
,
'attrs'
=>
[
new
NetgroupsAttribute
(
''
,
_
(
'NIS netgroup membership'
),
'nisMembership'
,
TRUE
)
new
ObjectsAttribute
(
''
,
_
(
'NIS netgroup membership'
),
'nisMembership'
,
TRUE
,
[
'netgroup'
]
),
]
],
];
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets