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
fusiondirectory
fusiondirectory-plugins
Commits
4b7e4eb4
Commit
4b7e4eb4
authored
Oct 28, 2014
by
Côme Bernigaud
Committed by
Benoit Mortier
Oct 28, 2014
Browse files
Fixes
#3397
Added a config option to specify the dn of default policy
parent
7578ae13
Changes
3
Hide whitespace changes
Inline
Side-by-side
ppolicy/admin/ppolicy/class_ppolicy.inc
View file @
4b7e4eb4
...
...
@@ -172,7 +172,7 @@ class ppolicy extends simplePlugin
);
if
(
objects
::
count
(
'ppolicy'
)
==
0
)
{
$this
->
attributesAccess
[
'cn'
]
->
setDefaultValue
(
'default'
);
$this
->
attributesAccess
[
'cn'
]
->
setDefaultValue
(
$this
->
config
->
get_cfg_value
(
'ppolicyDefaultCn'
,
'default'
)
)
;
$this
->
attributesAccess
[
'cn'
]
->
resetToDefault
();
}
}
...
...
ppolicy/config/ppolicy/class_ppolicyConfig.inc
View file @
4b7e4eb4
...
...
@@ -46,6 +46,11 @@ class ppolicyConfig extends simplePlugin
'fdPpolicyRDN'
,
TRUE
,
'ou=ppolicies'
),
new
StringAttribute
(
_
(
'Default ppolicy cn'
),
_
(
'What you put as default ppolicy in the overlay config'
),
'fdPpolicyDefaultCn'
,
FALSE
,
'default'
),
)
),
);
...
...
ppolicy/contrib/openldap/ppolicy-fd-conf.schema
View file @
4b7e4eb4
...
...
@@ -10,9 +10,16 @@ attributetype ( 1.3.6.1.4.1.38414.45.1.1 NAME 'fdPpolicyRDN'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
SINGLE-VALUE)
attributetype ( 1.3.6.1.4.1.38414.45.1.2 NAME 'fdPpolicyDefaultCn'
DESC 'FusionDirectory - cn of the default ppolicy'
EQUALITY caseExactIA5Match
SUBSTR caseExactIA5SubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
SINGLE-VALUE)
# Object Class
objectclass ( 1.3.6.1.4.1.38414.45.2.1 NAME 'fdPpolicyPluginConf'
DESC 'FusionDirectory ppolicy plugin configuration'
SUP top AUXILIARY
MUST ( cn )
MAY ( fdPpolicyRDN ) )
MAY ( fdPpolicyRDN
$ fdPpolicyDefaultCn
) )
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