Commit 93118e05 authored by Alex Tayts's avatar Alex Tayts
Browse files

make keytab a default type of a wallet object

parent 38209cd0
......@@ -23,12 +23,12 @@ Puppet::Type.type(:wallet).provide(:wallet) do
# if file is a keytab, read what's in it
if @resource[:type].to_s == "keytab"
begin
if @resource[:hiemdal] == :true
if @resource[:heimdal] == :true
# Heimdal Kerberos is installed
princs = ktutil("-k", @resource[:path], "list").split("/n")
princs = ktutil("-k", @resource[:path], "list").split("\n")
else
# MIT Kerberos is installed
princs = klist("-k", @resource[:path]).split("/n")
princs = klist("-k", @resource[:path]).split("\n")
end
# Check if a principal we need is present. If absent,
......
......@@ -27,7 +27,7 @@ Puppet::Type.newtype(:wallet) do
newparam(:type) do
desc "Type of wallet object"
defaultto('file')
defaultto('keytab')
newvalues('file', 'keytab', 'duo-pam', 'duo-radius' 'duo-rdp')
end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment