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