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
Commits
b9825e6b
Unverified
Commit
b9825e6b
authored
3 years ago
by
Côme Chilliet
Browse files
Options
Download
Patches
Plain Diff
feat(core) Add an option whether givenName should be required
issue
#6181
parent
7358cfc9
dev
6342-update-the-locales-for-1-5
6344-template-issue-when-creating-a-template-with-empty-password-error-message-should-not-be-seen
6365-core-locking-mechanism-is-not-changing-the-mail-ressource-it-does-lock-the-mail-account
6365-core-when-lock-mechanism-is-trigger-the-user-should-not-be-editable-if-not-unlock
6378-orcid-test-method-is-wrong-and-break-orcid-saving
core-php8
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
contrib/openldap/core-fd-conf.schema
+7
-1
contrib/openldap/core-fd-conf.schema
plugins/config/class_configInLdap.inc
+6
-0
plugins/config/class_configInLdap.inc
plugins/personal/generic/class_user.inc
+1
-1
plugins/personal/generic/class_user.inc
with
14 additions
and
2 deletions
+14
-2
contrib/openldap/core-fd-conf.schema
+
7
−
1
View file @
b9825e6b
...
...
@@ -161,6 +161,12 @@ attributetype ( 1.3.6.1.4.1.38414.8.12.22 NAME 'fdMaxAvatarSize'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
SINGLE-VALUE)
attributetype ( 1.3.6.1.4.1.38414.8.12.23 NAME 'fdGivenNameRequired'
DESC 'FusionDirectory - Whether givenName field is required on users'
EQUALITY booleanMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
SINGLE-VALUE )
# Password
attributetype ( 1.3.6.1.4.1.38414.8.13.1 NAME 'fdPasswordDefaultHash'
...
...
@@ -610,7 +616,7 @@ objectclass ( 1.3.6.1.4.1.38414.8.2.1 NAME 'fusionDirectoryConf'
fdGidNumberBase $ fdUserRDN $ fdGroupRDN $ fdIdAllocationMethod $
fdGidNumberPoolMin $ fdUidNumberPoolMin $ fdGidNumberPoolMax $ fdUidNumberPoolMax $
fdAclRoleRDN $ fdCnPattern $ fdRestrictRoleMembers $
fdSplitPostalAddress $ fdPostalAddressPattern $ fdMaxAvatarSize $
fdSplitPostalAddress $ fdPostalAddressPattern $ fdMaxAvatarSize $
fdGivenNameRequired $
fdPasswordDefaultHash $ fdPasswordMinLength $ fdPasswordMinDiffer $
fdHandleExpiredAccounts $ fdSaslRealm $ fdSaslExop $
fdForcePasswordDefaultHash $ fdPasswordAllowedHashes $
...
...
This diff is collapsed.
Click to expand it.
plugins/config/class_configInLdap.inc
+
6
−
0
View file @
b9825e6b
...
...
@@ -263,6 +263,12 @@ class configInLdap extends simplePlugin
'fdCnPattern'
,
TRUE
,
'%givenName% %sn%'
),
new
BooleanAttribute
(
_
(
'Mandatory first name'
),
_
(
'Whether first name (givenName) should be a mandatory field on users'
),
'fdGivenNameRequired'
,
FALSE
,
TRUE
),
new
BooleanAttribute
(
_
(
'Strict naming policy'
),
_
(
'Enables strict checking of user and group names'
),
...
...
This diff is collapsed.
Click to expand it.
plugins/personal/generic/class_user.inc
+
1
−
1
View file @
b9825e6b
...
...
@@ -96,7 +96,7 @@ class user extends simplePlugin
),
new
StringAttribute
(
_
(
'First name'
),
_
(
'First name of this user'
),
'givenName'
,
TRUE
,
'givenName'
,
(
$config
->
get_cfg_value
(
'GivenNameRequired'
,
'TRUE'
)
===
'TRUE'
)
,
''
,
''
,
'/^[^,+"?()=<>;\\\\]+$/'
),
new
StringAttribute
(
...
...
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