Running script throws login error
-
I’m trying to run the contact2csv.py script on my Univention UCS server with Kopano, but it throws an error
[error ] HrLogon server “default:” user “SYSTEM”: logon failedProbably something obvious i’m missing, but i can’t find where to specify the user & password for the store whose contacts i’m trying to export.
-
Hi @pwhooftman,
this works on my test system (tested with the latest version from https://stash.kopano.io/projects/KSC/repos/core-tools/browse):
root@ucs-4570 ~/core-tools/contacts2csv $ kopano-admin -V kopano-admin 8.6.8 root@ucs-4570 ~/core-tools/contacts2csv $ python contact2csv.py --user xena --export running script for 'xena' export contacts
-
Not sure what i am doing wrong ;
Administrator@server:~$ sudo kopano-admin -V [sudo] wachtwoord voor Administrator: kopano-admin 8.6.2 Administrator@server:~$ Administrator@server:~$ ls contact2csv.py Administrator@server:~$ python contact2csv.py --user Ingrid --export [error ] HrLogon server "default:" user "SYSTEM": logon failed Traceback (most recent call last): File "contact2csv.py", line 317, in <module> main() File "contact2csv.py", line 105, in main server = kopano.Server(options) File "/usr/lib/python2.7/dist-packages/kopano/server.py", line 252, in __init_ _ raise LogonError('Could not logon to server: username or password incorrect' ) kopano.errors.LogonError: Could not logon to server: username or password incorr ect Administrator@server:~$
-
@pwhooftman said in Running script throws login error:
Administrator@server:~$ python contact2csv.py
You’d have to run the second command with sudo as well.