Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
LemonLDAP NG
lemonldap-ng
Commits
a8de799c
Commit
a8de799c
authored
Jan 08, 2019
by
Yadd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set metadatas when using cli (Closes:
#1608
)
parent
8d39e96b
Pipeline
#3874
canceled with stages
Changes
1
Pipelines
1
Hide 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 @
a8de799c
...
...
@@ -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