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> $(const.dollar)1$(const.dollar)JNoH0WXg$(const.dollar)3sF.c.I5aWMoAj8LpMtOW1 n> There must be another way for protecting strings that contain special characters such as dollar? You could write a simple external module (a one-liner really), say "password", that prints =hash_password=$1$JNoH0WXg$3sF.c.I5aWMoAj8LpMtOW1 and then use that as $(password.hash_password) in the config. That has the added advantage that your cfengine configuration will not have any passwords. Ted _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine