Re: Cfengine Help: Re: Problem with special characters

2011-03-17 Thread Ted Zlatanov
On Thu, 17 Mar 2011 13:58:40 +0100 (CET) max_fr wrote: n> Ok, if I understand correctly i must substitute the dollar character by the constant const.dollar? I am surprised by that. n> It is very complicate to change a hash password as following : n> $1$JNoH0WXg$3sF.c.I5aWMoAj8LpMtOW1 n> by n

Cfengine Help: Re: Problem with special characters

2011-03-17 Thread no-reply
Forum: Cfengine Help Subject: Re: Problem with special characters Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,21179,21191#msg-21191 Max, Like Bernt says, you don't need to compare things beforehand. Cfengine will only rewrite the file if any changes have been applied, a

Cfengine Help: Re: Problem with special characters

2011-03-17 Thread no-reply
Forum: Cfengine Help Subject: Re: Problem with special characters Author: berntjernberg Link to topic: https://cfengine.com/forum/read.php?3,21179,21187#msg-21187 Hi, Can you use something like this: bundle agent root_pwd_update { vars: hpux:: "local_root_passwd" string

Cfengine Help: Re: Problem with special characters

2011-03-17 Thread no-reply
Forum: Cfengine Help Subject: Re: Problem with special characters Author: max_fr Link to topic: https://cfengine.com/forum/read.php?3,21179,21185#msg-21185 berntjernberg, Here is my complete code: bundle agent root_pwd_update(new_pwd) { vars: "old_pwd" int => readstrin

Cfengine Help: Re: Problem with special characters

2011-03-17 Thread no-reply
Forum: Cfengine Help Subject: Re: Problem with special characters Author: max_fr Link to topic: https://cfengine.com/forum/read.php?3,21179,21184#msg-21184 It seems when i insert single quotes around the hash password, the dollar character is not interpreted. "new_root_pwd" string => "'$1$JNo

Cfengine Help: Re: Problem with special characters

2011-03-17 Thread no-reply
Forum: Cfengine Help Subject: Re: Problem with special characters Author: berntjernberg Link to topic: https://cfengine.com/forum/read.php?3,21179,21183#msg-21183 Hi, Do you use the uppwd-class somewhere else? Otherwise you don't need to compare the hash-strings to not change anything if the cor

Cfengine Help: Re: Problem with special characters

2011-03-17 Thread no-reply
Forum: Cfengine Help Subject: Re: Problem with special characters Author: max_fr Link to topic: https://cfengine.com/forum/read.php?3,21179,21182#msg-21182 Thanks for you help Ok, if I understand correctly i must substitute the dollar character by the constant const.dollar? I am surprised by th

Cfengine Help: Re: Problem with special characters

2011-03-17 Thread no-reply
Forum: Cfengine Help Subject: Re: Problem with special characters Author: phnakarin Link to topic: https://cfengine.com/forum/read.php?3,21179,21180#msg-21180 Does this help? http://www.cfengine.org/manuals/cf3-reference.html#Variable-const_002edollar Cheers, --Nakarin _