Issue #7580 has been updated by Trevor Hemsley.

So, this is the _wrong_ fix since it still says that it's updating the values 
from one value to the same value but at least it actually stops the update from 
happening I think. In /usr/lib/ruby/site_ruby/1.8/puppet/provider/user/ldap.rb 
I have amended 

    # Convert our gid to a group name, if necessary.
    def gid=(value)
      value = group2id(value) unless [Fixnum, Bignum].include?(value.class)

      @property_hash[:gid] = value
    end

so that it does @property_hash[:gid] = value.to_s instead. I am about 99.9% 
sure this is not the correct fix. I think that in reality the real fix is 
probably to be done in /usr/lib/ruby/site_ruby/1.8/puppet/type/user.rb where 
there is some code that looks like it coerces gid to be a number vs a string. 
The same file also has code for uid that does not do this and uid is fine when 
the update takes place for ldap as both "is" and "should" are Strings. My ruby 
foo fails me at this point...
----------------------------------------
Bug #7580: puppet always try to change user's gid on LDAP with same value.
https://projects.puppetlabs.com/issues/7580#change-77444

Author: Satoru KURASHIKI
Status: Accepted
Priority: Normal
Assignee: 
Category: LDAP
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


I'm running puppet 2.6.7 on debian squeeze.

Using ldap user provider, puppet always show messages like:

    notice: /resouce/path/to/user/gid: gid changed 'XX' to 'XX'

It is no harm, but anyway needless behavior.
# similar to #643?



-- 
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