Summary | Script for passwd which uses sudo |
Queue | Passwd |
Queue Version | HEAD |
Type | Enhancement |
State | Resolved |
Priority | 1. Low |
Owners | jan (at) horde (dot) org |
Requester | voetelink (at) ecn (dot) nl |
Created | 04/24/2007 (6624 days ago) |
Due | |
Updated | 09/20/2007 (6475 days ago) |
Assigned | 05/22/2007 (6596 days ago) |
Resolved | 09/20/2007 (6475 days ago) |
Milestone | |
Patch | No |
State ⇒ Resolved
State ⇒ Assigned
Can you please explain why this doesn't work with the expect driver,
and how made it work with the procopen driver?
was succesful, even if I entered a wrong password or a too short new
password.
I used the following lines in backends.php to get the script running
with sudo:
------
$backends['sudo_passwd'] = array(
'name' => 'Webmail',
'preferred' => '',
'password policy' => array(),
'driver' => 'procopen',
'params' => array(
'program' => '/usr/bin/expect ' . dirname(__FILE__) .
'/../scripts/passwd_expect -sudo'
)
);
=====
New Attachment: passwd_expect[1]
that myself....
# alter sudoers (using visudo) so it contains the following information:
# -----
# # Needed for Horde's passwd module
# Runas_Alias REGULARUSERS = ALL, !root
# apache ALL=(REGULARUSERS) NOPASSWD:/usr/bin/passwd
# -----
Can you please explain why this doesn't work with the expect driver,
and how made it work with the procopen driver?
New Attachment: passwd_expect
I merged it into the passwd_expect.
State ⇒ Feedback
Priority ⇒ 1. Low
State ⇒ New
New Attachment: sudo_passwd
Queue ⇒ Passwd
Summary ⇒ Script for passwd which uses sudo
Type ⇒ Enhancement
expect scripts and change it to use sudo.
I could not get it to work with the 'expect' driver, but with the
'procopen' driver it works great!