Discussion:
[rancid] Blank spaces in password
Jose Leitao
2009-04-22 07:47:14 UTC
Permalink
Hello everyone,

I'm having an issue with a device that has a blank space in the
password, lets say the password is "lala lala", my .cloginrc setup
looks like this:

add user 1.1.1.1 lala
add autoenable 1.1.1.1 1
add password 1.1.1.1 {lala lala}
add method 1.1.1.1 ssh

If i try to clogin, it fails, with -d flag, I see this interesting bit:

"@[^\r\n]+ ([Pp]assword|passwd):"? yes
expect: set expect_out(0,string) "@1.1.1.1's password:"
expect: set expect_out(1,string) "password"
expect: set expect_out(spawn_id) "exp6"
expect: set expect_out(buffer) " \r\***@1.1.1.1's password:"
send: sending "lalalala\r" to { exp6 }
expect: continuing expect

It seems its taking the password "lala lala" and changing it to
"lalalala". I have tried putting the password in .cloginrc in
doble/single quotes ("lala lala") and using escapes like \s or \20 but
no luck. Any Ideas?

I'm using Debian and the rancid version is 2.3.2~a8-4.

Thanks,
JL
Jorge Rivas
2009-04-22 14:36:19 UTC
Permalink
Try this:
add user x.x.x.x bla
add password x.x.x.x {bla's password} {enable_password}
add method x.x.x.x telnet

Note:
* If enable password is something like "Gaylord Focker", then u
should put this -> {Gaylord\ Focker}
* The brackets have to be included in the configuration {...}

graphics1
Jorge Rivas
Analista de Datos
Gerencia de Tecnología
Tel: 212-2799561 | Abreviado:
*042730
Tel Móvil: 412-7368898
Correo electrónico:
***@atentovenezuela.com.ve





Este mensaje de correo electrónico y sus documentos adjuntos están dirigidos EXCLUSIVAMENTE a los destinatarios especificados. La información contenida puede ser CONFIDENCIAL y/o estar LEGALMENTE PROTEGIDA y no necesariamente refleja la opinión de ATENTO VENEZUELA, S.A. Si usted recibe este mensaje por ERROR, por favor comuníqueselo inmediatamente al remitente y ELIMÍNELO ya que usted NO ESTA AUTORIZADO al uso, revelación, distribución, impresión o copia de toda o alguna parte de la información contenida. Gracias.


This e-mail message and any attached files are intended SOLELY for the addressee/s identified herein. It may contain CONFIDENTIAL and/or LEGALLY PRIVILEGED information and may not necessarily represent the opinion of ATENTO VENEZUELA, S.A. If you receive this message in ERROR, please immediately notify the sender and DELETE it since you ARE NOT AUTHORIZED to use, disclose, distribute, print or copy all or part of the contained information. Thank you.
Jorge Rivas
2009-04-22 14:38:10 UTC
Permalink
Try this:
add user x.x.x.x bla
add password x.x.x.x {bla's password} {enable_password}
add method x.x.x.x telnet

Note:
* If enable password is something like "Gaylord Focker", then u
should put this -> {Gaylord\ Focker}
* The brackets have to be included in the configuration {...}

JJRP


Este mensaje de correo electrónico y sus documentos adjuntos están dirigidos EXCLUSIVAMENTE a los destinatarios especificados. La información contenida puede ser CONFIDENCIAL y/o estar LEGALMENTE PROTEGIDA y no necesariamente refleja la opinión de ATENTO VENEZUELA, S.A. Si usted recibe este mensaje por ERROR, por favor comuníqueselo inmediatamente al remitente y ELIMÍNELO ya que usted NO ESTA AUTORIZADO al uso, revelación, distribución, impresión o copia de toda o alguna parte de la información contenida. Gracias.


This e-mail message and any attached files are intended SOLELY for the addressee/s identified herein. It may contain CONFIDENTIAL and/or LEGALLY PRIVILEGED information and may not necessarily represent the opinion of ATENTO VENEZUELA, S.A. If you receive this message in ERROR, please immediately notify the sender and DELETE it since you ARE NOT AUTHORIZED to use, disclose, distribute, print or copy all or part of the contained information. Thank you.
Loading...