SID-01017: Set user by perlscript
| Status: |
Unanswered |
TWiki version: |
4.1.2 |
Perl version: |
|
| Category: |
CategoryAutomation |
Server OS: |
solaris 10 |
Last update: |
14 years ago |
Hi,
i am trying to write a perl plugin to update a topic from the unix command line. It works fine and changes the topic like it should but always as
TwikiGuest user. So i got to set the user while my script is running. A call of $session->{loginManager}->login() dont change the user even the login works.
So i am trying to call the login plugin and store a session cookie. With curl it works fine cause curl stores a cookie which i can use running my script. But i cant use curl on the unix machine so i got to make the login in my script using the API.
I gibe the script a user an a password, i validate them that works. I can call login that works to. But when i call the save() method its alway the
TwikiGuest? account. How can i set the sessionuser to the username i put into the script?
Thanks
--
StefanMaybaum - 2010-11-08
Discussion and Answer
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
PeterThoeny - 2011-01-04
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.