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
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xavier Bachelot
lemonldap-ng
Commits
b372c147
Commit
b372c147
authored
Jan 08, 2019
by
Christophe Maudoux
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab.ow2.org:lemonldap-ng/lemonldap-ng
parents
ebbf6956
2c814679
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Cli.pm
lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Cli.pm
+9
-0
lemonldap-ng-manager/scripts/lmConfigEditor
lemonldap-ng-manager/scripts/lmConfigEditor
+1
-0
No files found.
lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Cli.pm
View file @
b372c147
...
...
@@ -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
";
...
...
lemonldap-ng-manager/scripts/lmConfigEditor
View file @
b372c147
...
...
@@ -7,6 +7,7 @@ use Data::Dumper;
use
English
qw(-no_match_vars)
;
use
File::
Temp
;
use
POSIX
qw(setuid setgid)
;
use
Safe
;
use
strict
;
eval
{
...
...
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