rancid: ciscos, clogin and AAA

Mordechai T. Abzug morty at sled.gsfc.nasa.gov
Tue May 24 02:10:14 UTC 2005


If one has a device that logs one in at Cisco level 2 rather than 1 or
15, the prompt has "#" but clogin still needs to run enable to achieve
level 15.  autoenable won't help because it assumes you're at enable
15.

The attached (trivial) patch deals with this.  I'm fairly sure it
doesn't break backwards compatibility.

Thanks!

- Morty
-------------- next part --------------
*** rancid/bin/clogin.dist	Tue Apr 26 03:14:41 2005
--- rancid/bin/clogin.in	Tue May 24 02:00:23 2005
***************
*** 634,640 ****
  	} else {
  	    set autoenable 0
  	    set enable $avenable
! 	    set prompt ">"
  	}
      }
  
--- 634,640 ----
  	} else {
  	    set autoenable 0
  	    set enable $avenable
! 	    set prompt "(>|#)"
  	}
      }
  


More information about the Rancid-discuss mailing list