mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 03:28:31 +00:00
* vtysh_config.c: Move password commands to the AAA_NODE. It
quarantees that they will appear after SERVICE_NODE to make sure that encrypted passwords will work ("service password-encryption" command). [backport candidate]
This commit is contained in:
parent
220851816a
commit
060d438cb1
@ -1,3 +1,10 @@
|
|||||||
|
2005-03-09 Hasso Tepper <hasso at quagga.net>
|
||||||
|
|
||||||
|
* vtysh_config.c: Move password commands to the AAA_NODE. It
|
||||||
|
quarantees that they will appear after SERVICE_NODE to make sure
|
||||||
|
that encrypted passwords will work ("service password-encryption"
|
||||||
|
command).
|
||||||
|
|
||||||
2005-01-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
|
2005-01-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
|
||||||
|
|
||||||
* vtysh.h: Remove obsolete VTYSH_INDEX_* defines. Fix many prototypes
|
* vtysh.h: Remove obsolete VTYSH_INDEX_* defines. Fix many prototypes
|
||||||
|
@ -240,14 +240,14 @@ vtysh_config_parse_line (const char *line)
|
|||||||
config = config_get (SERVICE_NODE, line);
|
config = config_get (SERVICE_NODE, line);
|
||||||
else if (strncmp (line, "debug", strlen ("debug")) == 0)
|
else if (strncmp (line, "debug", strlen ("debug")) == 0)
|
||||||
config = config_get (DEBUG_NODE, line);
|
config = config_get (DEBUG_NODE, line);
|
||||||
|
else if (strncmp (line, "password", strlen ("password")) == 0
|
||||||
|
|| strncmp (line, "enable password",
|
||||||
|
strlen ("enable password")) == 0)
|
||||||
|
config = config_get (AAA_NODE, line);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (strncmp (line, "log", strlen ("log")) == 0
|
if (strncmp (line, "log", strlen ("log")) == 0
|
||||||
|| strncmp (line, "hostname", strlen ("hostname")) == 0
|
|| strncmp (line, "hostname", strlen ("hostname")) == 0
|
||||||
|| strncmp (line, "password", strlen ("password")) == 0
|
|
||||||
|| strncmp (line, "enable password",
|
|
||||||
strlen ("enable password")) == 0
|
|
||||||
|| strncmp (line, "service", strlen ("service")) == 0
|
|
||||||
)
|
)
|
||||||
config_add_line_uniq (config_top, line);
|
config_add_line_uniq (config_top, line);
|
||||||
else
|
else
|
||||||
@ -287,7 +287,8 @@ vtysh_config_parse (char *line)
|
|||||||
((I) == ACCESS_NODE || (I) == PREFIX_NODE || (I) == IP_NODE \
|
((I) == ACCESS_NODE || (I) == PREFIX_NODE || (I) == IP_NODE \
|
||||||
|| (I) == AS_LIST_NODE || (I) == COMMUNITY_LIST_NODE || \
|
|| (I) == AS_LIST_NODE || (I) == COMMUNITY_LIST_NODE || \
|
||||||
(I) == ACCESS_IPV6_NODE || (I) == PREFIX_IPV6_NODE \
|
(I) == ACCESS_IPV6_NODE || (I) == PREFIX_IPV6_NODE \
|
||||||
|| (I) == SERVICE_NODE || (I) == FORWARDING_NODE || (I) == DEBUG_NODE)
|
|| (I) == SERVICE_NODE || (I) == FORWARDING_NODE || (I) == DEBUG_NODE \
|
||||||
|
|| (I) == AAA_NODE)
|
||||||
|
|
||||||
/* Display configuration to file pointer. */
|
/* Display configuration to file pointer. */
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user