dayglojesus / managedmac

Comprehensive Puppet module for OS X.
http://dayglojesus.github.io/managedmac/
Apache License 2.0
62 stars 21 forks source link

macuthdb: not returning rule attribute for auth_class => 'rule' #38

Closed dayglojesus closed 9 years ago

dayglojesus commented 10 years ago

/usr/bin/security authorizationdb read system.print.admin returns this...

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>class</key>
    <string>rule</string>
    <key>created</key>
    <real>432143550.17377597</real>
    <key>modified</key>
    <real>432145865.98720902</real>
    <key>rule</key>
    <array>
        <string>root-or-lpadmin</string>
    </array>
    <key>version</key>
    <integer>0</integer>
</dict>
</plist>

But sudo puppet resource macauthdb system.print.admin returns this...

macauthdb { 'system.print.admin':
  ensure     => 'present',
  auth_class => 'rule',
  auth_type  => 'right',
}

The rule attribute is missing.

dayglojesus commented 10 years ago

This happens with mechanisms as well. Overall, this implementation is pretty half-assed.

dayglojesus commented 9 years ago

I have begun a major overhaul of this type/provider.

dayglojesus commented 9 years ago

Macauthdb has been overhauled to correct this and other issues.

Fixed in 0.5.6