Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
agallavardin
fusiondirectory-plugins
Commits
18ea0a06
Verified
Commit
18ea0a06
authored
Mar 25, 2020
by
Côme Chilliet
Browse files
✨
feat(supannCMS) Add support for sources in config screen
issue #6015
parent
733cb2f0
Changes
3
Hide whitespace changes
Inline
Side-by-side
supann/config/supann/class_supannConfig.inc
View file @
18ea0a06
...
...
@@ -128,6 +128,14 @@ class supannConfig extends simplePlugin
[],
TRUE
),
new
SetAttribute
(
new
StringAttribute
(
_
(
'Card sources'
),
_
(
'Multi service card possible sources, with format system@domain'
),
'fdSupannCMSSources'
,
FALSE
,
''
,
''
,
'/^.+@.+$/'
,
'unicampus@univ.example.com'
)
),
]
],
];
...
...
supann/contrib/openldap/supann-fd-conf.schema
View file @
18ea0a06
...
...
@@ -34,6 +34,12 @@ attributetype ( 1.3.6.1.4.1.38414.17.1.5 NAME 'fdSupannRessourceLabels'
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15)
attributetype ( 1.3.6.1.4.1.38414.17.1.6 NAME 'fdSupannCMSSources'
DESC 'FusionDirectory - SupAnn possible values for supannCMSSource'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15)
# Object Class
objectclass ( 1.3.6.1.4.1.38414.17.2.1 NAME 'fdSupannPluginConf'
DESC 'FusionDirectory SupAnn plugin configuration'
...
...
@@ -41,5 +47,6 @@ objectclass ( 1.3.6.1.4.1.38414.17.2.1 NAME 'fdSupannPluginConf'
MUST ( cn )
MAY (
fdSupannStructuresRDN $ fdSupannPasswordRecovery $
fdSupannRessourceSubStates $ fdSupannRessourceSubStatesLabels $ fdSupannRessourceLabels
fdSupannRessourceSubStates $ fdSupannRessourceSubStatesLabels $ fdSupannRessourceLabels $
fdSupannCMSSources
) )
supann/personal/supann/class_SupannCMSAffectationAttribute.inc
View file @
18ea0a06
...
...
@@ -24,6 +24,7 @@ class SupannCMSAffectationAttribute extends SupannCompositeAttribute
{
function
__construct
(
$label
,
$description
,
$ldapName
,
$acl
=
''
)
{
global
$config
;
list
(
$types
,
$typeLabels
)
=
supann
::
get_choices_for
(
'cmstype'
);
list
(
$formats
,
$formatLabels
)
=
supann
::
get_choices_for
(
'cmsformat'
);
$attributes
=
[
...
...
@@ -48,7 +49,8 @@ class SupannCMSAffectationAttribute extends SupannCompositeAttribute
),
new
SelectAttribute
(
_
(
'Source'
),
_
(
'Card managing system and establishment'
),
'supannCMSSource_source'
,
FALSE
'supannCMSSource_source'
,
FALSE
,
$config
->
get_cfg_value
(
'supannCMSSources'
,
[])
),
new
GeneralizedTimeDateAttribute
(
_
(
'End date'
),
_
(
'End of validity date, if any'
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment