Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
lemonldap-ng
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
244
Issues
244
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
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
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 @
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