Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ACF
acf-heimdal
Commits
af811bf4
Commit
af811bf4
authored
Apr 28, 2012
by
Ted Trask
Browse files
Updated for handle_form now passing self to get and set functions
parent
39844298
Changes
1
Hide whitespace changes
Inline
Side-by-side
heimdal-model.lua
View file @
af811bf4
...
...
@@ -36,8 +36,8 @@ function get_filedetails()
return
modelfunctions
.
getfiledetails
(
configfile
)
end
function
update_filedetails
(
filedetails
)
return
modelfunctions
.
setfiledetails
(
filedetails
,
{
configfile
})
function
update_filedetails
(
self
,
filedetails
)
return
modelfunctions
.
setfiledetails
(
self
,
filedetails
,
{
configfile
})
end
function
get_kinit
()
...
...
@@ -47,7 +47,7 @@ function get_kinit()
return
cfe
({
type
=
"group"
,
value
=
value
,
label
=
"Kinit Parameters"
})
end
function
set_kinit
(
data
)
function
set_kinit
(
self
,
data
)
local
tmp
=
"/tmp/k"
..
os.time
()
fs
.
write_file
(
tmp
,
data
.
value
.
password
.
value
)
local
cmd
=
path
..
"kinit --password-file="
..
tmp
..
" "
..
format
.
escapespecialcharacters
(
data
.
value
.
login
.
value
)
..
" 2>&1"
...
...
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!
Cancel
Please
register
or
sign in
to comment