Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
lemonldap-ng
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
208
Issues
208
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LemonLDAP NG
lemonldap-ng
Commits
aeba3a3c
Commit
aeba3a3c
authored
Jan 08, 2019
by
Xavier Guimard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set metadatas when using cli (Closes:
#1608
)
parent
0a906243
Pipeline
#3873
passed with stages
in 11 minutes and 35 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Cli.pm
lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Cli.pm
+9
-0
No files found.
lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Cli.pm
View file @
aeba3a3c
...
...
@@ -248,6 +248,15 @@ sub _save {
$saveParams
->
{
cfgNum
}
=
$self
->
cfgNum
;
$saveParams
->
{
cfgNumFixed
}
=
1
;
}
$new
->
{
cfgAuthor
}
=
'
lmConfigEditor:
'
.
`
whoami
`;
chomp
$new
->
{
cfgAuthor
};
$new
->
{
cfgAuthorIP
}
=
'';
$new
->
{
cfgDate
}
=
time
;
$new
->
{
cfgVersion
}
=
$VERSION
;
$new
->
{
cfgLog
}
=
'';
$new
->
{
key
}
||=
join
(
'',
map
{
chr
(
int
(
rand
(
94
)
)
+
33
)
}
(
1
..
16
)
);
my
$s
=
$self
->
mgr
->
confAcc
->
saveConf
(
$new
,
%
$saveParams
);
if
(
$s
>
0
)
{
print
STDERR
"
Saved under number
$s
\n
";
...
...
Write
Preview
Markdown
is supported
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