-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Anonymous Calls working but not authenticated ones. #2
Comments
Not sure why this is happening. I'm getting the same results when trying to authenticate against localhost. I'm working on a fix, but for now, try using a fully qualified DNS name for your server's hostname. EDIT: I can only confirm that this error occurs in the event of using localhost instead of: a fully qualified domain name with a working VirtualHost configuration in Apache. |
Also seems to be happening when I use the hostname. Enter your GLPI hostname: erp.xxxxxxxx.com The only difference is I am not using a virtualHost config instead I changed the BASEURL to '/glpi' |
I copied some code from higher up in the GLPIClient.py which seems to work.
|
Strange. I'll do some more digging. I pulled the latest copy of this code onto a machine that didn't have it before and it worked for me freshouttathebox. Like I said, I'll do more digging to see why this might not work on all installations, and I'll continue to assume you're working from the most recent commit to master. |
root@erp:
/python-glpi/pyglpi# python examples/list_computers.py/python-glpi/pyglpi#examples/list_computers.py:25: RuntimeWarning: GLPI environment variables not locally set
warnings.warn("GLPI environment variables not locally set", RuntimeWarning)
Enter your GLPI hostname: localhost
Enter your GLPI username: glpi
Enter your password:
True
cnrdv6iq932r8gah49l0b9g037 <=== Session ID would seem to indicate the login has succeded?
{u'faultCode': 13, u'faultString': u'Not authenticated'}
{u'faultCode': 13, u'faultString': u'Not authenticated'}
root@erp:
The text was updated successfully, but these errors were encountered: