Issue #1536 has been updated by nigelk2.
So the problem has to do with the fact that the directoryservice provider is splitting on new lines and spaces, and using url encoded output, and when you have a space in an attribute, dscl decides to put it on a new line... <pre> # dscl . -create /Users/testviapuppet RealName "foobar" # dscl -url . -read /Users/testviapuppet RealName RealName: foobar # dscl . -create /Users/testviapuppet RealName "foo bar" # dscl -url . -read /Users/testviapuppet RealName RealName: foo%20bar </pre> This is a bit of a nasty one to fix. The options are to either conditionally split differently when an attribute contains a space... (ugh) or refactor the whole directoryservice provider to not use url encoded output, but to instead use plist, and parse property list output instead. I think the latter is the better option, but I'll have a quick go today at seeing whether the former can be done as a band aid solution. ---------------------------------------- Bug #1536: directoryservice provider re-sets the comment field every time when there's a space on OS X 10.5 http://projects.reductivelabs.com/issues/show/1536 Author: pjjw Status: Accepted Priority: Normal Assigned to: mccune Category: OSX Target version: Complexity: Unknown Affected version: 0.25.0 Keywords: dscl directoryservice mac osx I just noticed that puppet runs on OSX 10.5 attempt to re-set the comment field each run for each user object that has a comment attribute with a space in it (such as a first and last name). This doesn't happen when the field is set to something without spaces. I tried to be proactive and hunt for this bug myself, but this is my first time looking at the puppet sources and I'm afraid I got a bit lost.. sorry :) ---------------------------------------- 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://reductivelabs.com/redmine/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 -~----------~----~----~----~------~----~------~--~---
