While I remember this Javier I have a wishlist for the TFTP transfer
code.
Once JFFNMS gets and validates the config, can it then run a
find/replace over the file? The problem is with Alteons they timestamp
their configs, which means every day is a new config! Oh, it re-hashes
the admin password too.
I'm sure there are other devices that do something like this too.
Line 82 in tftp_get_host_config.php
$config_data = str_replace ("'","\'",$config_data); //escape '
/* For Alteons */
$config_data = preg_replace(array('/\/\* Configuration dump
taken \d+:\d+:\d+ \S+ \S+ \d+, \d+\n/','/\s+admpw\s+"[a-z0-9]+"/'), array('',''),
$config_data);
$aux = current(hosts_config_list
(NULL,$config["host_id"],NULL,1)); //get the old config from DB
--
Craig Small GnuPG:1C1B D893 1418 2AF4 45EE 95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/ MIEE Debian developer
csmall at : enc.com.au ieee.org debian.org
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
jffnms-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jffnms-users