Issue #10915 has been updated by Josh Cooper.

Status changed from Unreviewed to Investigating

Hi Michael, I think the assumption is that `lsuser` returns attributes, some of 
which are managed directly by puppet, e.g. `id`, and others are not, e.g. 
`account_locked`. I believe the `attribute_mapping` array is only used for 
attributes that appear as output from `lsuser`, can be managed via `chuser`, 
and that are of the former case above, e.g. `id`. However, the `password` 
property is managed using a different command (`chpasswd`), and so doesn't need 
to be in the `attribute_mapping` array. However, if the output of `lsuser` 
includes the password, then it could cause problems, but I don't think it would 
cause this problem (no `password=` method on the provider). 

Could you try adding a debug lines like the following to 
`lib/puppet/property.rb` and run puppet with `--trace`:

<pre>
def call_provider(value)
  if value == 'password'
    puts provider.class
    puts provider.methods.grep /password/
  end
  provider.send(self.class.name.to_s + "=" + value)
</pre>
----------------------------------------
Bug #10915: Managing passwords under AIX doesn't work
https://projects.puppetlabs.com/issues/10915

Author: Michael Bryant
Status: Investigating
Priority: Normal
Assignee: 
Category: provider
Target version: 
Affected Puppet version: 2.7.6
Keywords: AIX user provider puppet password
Branch: 


<pre>
err: /Stage[main]/Root_user/User[root]/password: change from [old password hash 
redacted] to [new password hash redacted]
failed: The aix provider can not handle attribute password at 
/etc/puppet/modules/root_user/manifests/init.pp:35
</pre>

A cursory look at the source shows that the aix user provider has the feature 
manages_passwords, but doesn't have the password attribute listed as being 
managed

config:
                        user { "root":
                                ensure   => "present",
                                uid      => "0",
                                gid      => "system",
                                comment  => "Super-User",
                                home     => "/",
                                shell    => "/usr/bin/ksh",
                                password => 'REDACTED'
                        }



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to