[#7835] spawn id exp15 not open
Summary spawn id exp15 not open
Queue Passwd
Queue Version 3.0.1
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester samuel (dot) wolf (at) wolf-maschinenbau (dot) de
Created 01/09/09 (430 days ago)
Due
Updated 01/11/09 (428 days ago)
Assigned
Resolved 01/11/09 (428 days ago)
Attachments
Milestone
Patch No

History
01/11/09 Jan Schneider State ⇒ Not A Bug
 
01/11/09 samuel (dot) wolf (at) wolf-maschinenbau (dot) de Comment #2 Reply to this comment
Found the problem, it's not a BUG!

Must change in ./passwd/config/backends.php



$backends['expect'] = array(

     'name' => 'Example Expect Script',

...

        'params' => '-ssh -host localhost -output /tmp/passwd.log'

     )

);



It was:

'params' => '-telnet -host localhost -output /tmp/passwd.log'
Install Passwd into Horde.

On the shell works fine with:
expect passwd_expect
username
old_pw
new_pw

But dont work over Horde/Browser!

I get following error in passwd.log

root@server1:/tmp# cat passwd.log
expect: spawn id exp15 not open
     while executing
"expect -nobrace -re {The authenticity of host.* can't be established.*
RSA key fingerprint is.*
Are you sure you want to continue connecting.*} {sleep..."
     invoked from within
"expect {
   -re $fingerprint_string {sleep .5
                            send yes\r
                            exp_continue}
   -re $password_string    ..."
     (file
"/var/www/https/horde/passwd/config/../scripts/passwd_expect" line
175)
root@server1:/tmp#
01/09/09 samuel (dot) wolf (at) wolf-maschinenbau (dot) de Comment #1
State ⇒ Unconfirmed
Patch ⇒
Milestone ⇒
Queue ⇒ Passwd
Summary ⇒ spawn id exp15 not open
Type ⇒ Bug
Priority ⇒ 1. Low
Reply to this comment
Install Passwd into Horde.



On the shell works fine with:

expect passwd_expect

username

old_pw

new_pw



But dont work over Horde/Browser!



I get following error in passwd.log



root@server1:/tmp# cat passwd.log

expect: spawn id exp15 not open

     while executing

"expect -nobrace -re {The authenticity of host.* can't be established.*

RSA key fingerprint is.*

Are you sure you want to continue connecting.*} {sleep..."

     invoked from within

"expect {

   -re $fingerprint_string {sleep .5

                            send yes\r

                            exp_continue}

   -re $password_string    ..."

     (file 
"/var/www/https/horde/passwd/config/../scripts/passwd_expect" line 175)

root@server1:/tmp#