Re: passwd parameters to own script
Mark Worsdall <[email protected]>
| Newsgroups | gmane.comp.horde.sork |
|---|---|
| Message-ID | <[email protected]> |
In message <[email protected]>, Eric Jon Rostetter <[email protected]> writes >Quoting Mark Worsdall <[email protected]>: > >> I want to pass the old and new password to my password script. >> >> i.e. >> >> /path/to/my/script oldpasswd newpasswd >> >> is this possible? > >Not exactly. You might be able to adapt either your program to work >with an existing driver like expect or procopen, or you might be able >to adapt a driver like expect or procopen to work with your program. > >> >> 'params' => array( >> 'program' => '/path/to/my/script + myargs' >> ) > >Procopen runs a program passing the args as stdin. Expect does similar >based on prompts for the username and password. As far as I know no driver >yet passes the username and password as arguments to the program. > >> Doing this cos >> a) cannot get the poppasswd backend to work, (Was hoping there would be >> an imap backend) > >There is no way to change a password via imap (it isn't in the program). >Maybe someone could help you get poppassd running? > >> b) once the password is successfully changed a load of other scripts are >> fired up to populate other things. > >Might be able to do this with the expect + composite driver, or something, >but it would depend on what you need to do, etc. > DOH!!! During all the checking of permissions I forgot to check the permissions of the directory containing the script!! Once this fixed it works fine!!! Posted confession to remind other forgetful people like me:-) So won't be writing a php script called sqlcrontab.php either!! M. -- Mark Worsdall http://www.shadowrobot.com/ need a hand?? -- Sork mailing list - Join the hunt: http://horde.org/bounties/#sork Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: [email protected]