[ZendTo] automationUsers

Brian Smith brian at lifetrends.com
Thu Jun 13 13:06:46 BST 2019


I previously tried quoting all of them with the same result. I tried again (single quoting each argument) with debug enabled. The values all look correct. However, it still runs without any kind of error or output when not using --debug. And yes, I ran the upgrade script after installing the beta Debian package. I’ve also confirmed that sending a request via the web interface as a normal user still works as expected.

Thanks again,

Brian


From: Jules Field <Jules at Jul.es>
Sent: Thursday, June 13, 2019 2:19 AM
To: zend.to at neilzone.co.uk
Cc: Brian Smith <brian at lifetrends.com>; ZendTo Users <zendto at zend.to>
Subject: Re: [ZendTo] automationUsers

Try running the command with —debug and check that all the values shown are actually what you put on the command line. If you have any quoting problems, that will probably show them up.
--
Jules

On 13 Jun 2019, at 8:14 am, Jules Field <Jules at zend.to<mailto:Jules at zend.to>> wrote:
The other obvious possibility is that in your example you haven’t quoted any of the arguments. If you’ve got anything non-alphanumeric in auto’s password, definitely put it in single quotes.
--
Jules

On 12 Jun 2019, at 9:36 pm, zend.to at neilzone.co.uk<mailto:zend.to at neilzone.co.uk> wrote:

On 12 Jun 2019, at 21:24, Jules Field via ZendTo <zendto at zend.to<mailto:zendto at zend.to>> wrote:


Unfortunately it doesn’t seem to work (I could be doing something wrong). I’ve created a local user using adduser called “auto”. I have “Multi” set under authenticator and authMultiAuthenticators set to “array(‘Local’, ‘LDAP’)”. I’ve also tried swapping the order to LDAP then Local.  This is the command I’m running (with identifying info changed):

/opt/zendto/bin/autorequest -u auto -p the*passw0rD -n ‘Jane Doe’ -e jane at email.com<mailto:jane at email.com> -o OrgName -s 'Test Automated Email' -t 'Note in test automated email.' -N 'John Doe' -E john at email.com<mailto:john at email.com> 'https://zend.orgname.com<https://zend.orgname.com/>'

No system logs are created (that I can find) and no errors.

I feel stupid commenting here, since Jules is already on the thread, but have you remembered to add the user to “automationUsers” in preferences.php?


  // You can list multiple usernames here. So different teams using the
  // scriptable requests could be done with different "system accounts" to
  // aid later diagnosis of problems as ZendTo will log the requests
  // against this username.
  'automationUsers' => array('auto'),




Neil

__________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jul.es/pipermail/zendto/attachments/20190613/82271585/attachment.html>


More information about the ZendTo mailing list