Skip to content

Instantly share code, notes, and snippets.

@codyaray
Created February 24, 2016 01:59
Show Gist options
  • Save codyaray/fb2f04ae8cd4a1a6a50f to your computer and use it in GitHub Desktop.
Save codyaray/fb2f04ae8cd4a1a6a50f to your computer and use it in GitHub Desktop.
==> /var/log/st2/st2auth.uwsgi.log <==
2016-02-23 19:58:29,956 DEBUG [-] No version specified in URL. Will use default controller.
==> /tmp/st2auth.real.log <==
2016-02-23 19:58:29,956 140705019315968 DEBUG log [-] No version specified in URL. Will use default controller.
==> /var/log/st2/st2auth.uwsgi.log <==
2016-02-23 19:58:29,958 DEBUG [-] Pack not provided in the body, setting a default pack name (default_pack_name='default',resource_api='TokenAPI(**{})')
==> /tmp/st2auth.real.log <==
2016-02-23 19:58:29,958 140705019315968 DEBUG log [-] Pack not provided in the body, setting a default pack name (default_pack_name='default',resource_api='TokenAPI(**{})')
==> /var/log/st2/st2auth.uwsgi.log <==
2016-02-23 19:58:29,959 ERROR [-] Failed authenticating user "cray".
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/st2_enterprise_auth_backend_ldap-0.1.0-py2.7.egg/st2auth_enterprise_ldap_backend/ldap_backend.py", line 108, in authenticate
connection.simple_bind_s(user_dn, password)
File "/usr/local/lib/python2.7/dist-packages/python_ldap-2.4.25-py2.7-linux-x86_64.egg/ldap/ldapobject.py", line 223, in simple_bind_s
resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all=1,timeout=self.timeout)
File "/usr/local/lib/python2.7/dist-packages/python_ldap-2.4.25-py2.7-linux-x86_64.egg/ldap/ldapobject.py", line 514, in result3
resp_ctrl_classes=resp_ctrl_classes
File "/usr/local/lib/python2.7/dist-packages/python_ldap-2.4.25-py2.7-linux-x86_64.egg/ldap/ldapobject.py", line 521, in result4
ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
File "/usr/local/lib/python2.7/dist-packages/python_ldap-2.4.25-py2.7-linux-x86_64.egg/ldap/ldapobject.py", line 106, in _ldap_call
result = func(*args,**kwargs)
INVALID_CREDENTIALS: {'info': '80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e, v1db1', 'desc': 'Invalid credentials'}
==> /tmp/st2auth.real.log <==
2016-02-23 19:58:29,959 140705019315968 ERROR ldap_backend [-] Failed authenticating user "cray".
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/st2_enterprise_auth_backend_ldap-0.1.0-py2.7.egg/st2auth_enterprise_ldap_backend/ldap_backend.py", line 108, in authenticate
connection.simple_bind_s(user_dn, password)
File "/usr/local/lib/python2.7/dist-packages/python_ldap-2.4.25-py2.7-linux-x86_64.egg/ldap/ldapobject.py", line 223, in simple_bind_s
resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all=1,timeout=self.timeout)
File "/usr/local/lib/python2.7/dist-packages/python_ldap-2.4.25-py2.7-linux-x86_64.egg/ldap/ldapobject.py", line 514, in result3
resp_ctrl_classes=resp_ctrl_classes
File "/usr/local/lib/python2.7/dist-packages/python_ldap-2.4.25-py2.7-linux-x86_64.egg/ldap/ldapobject.py", line 521, in result4
ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
File "/usr/local/lib/python2.7/dist-packages/python_ldap-2.4.25-py2.7-linux-x86_64.egg/ldap/ldapobject.py", line 106, in _ldap_call
result = func(*args,**kwargs)
INVALID_CREDENTIALS: {'info': '80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e, v1db1', 'desc': 'Invalid credentials'}
==> /var/log/st2/st2auth.uwsgi.log <==
2016-02-23 19:58:29,960 AUDIT [-] Invalid credentials provided (remote_addr='10.2.4.215',auth_backend='LDAPAuthenticationBackend')
==> /tmp/st2auth.real.log <==
2016-02-23 19:58:29,960 140705019315968 AUDIT log [-] Invalid credentials provided (remote_addr='10.2.4.215',auth_backend='LDAPAuthenticationBackend')
==> /tmp/st2auth.real.audit.log <==
{"version": "1.1", "level": 6, "timestamp": 1456279109, "_python": {"process": 28883, "module": "log", "funcName": "func_wrapper", "processName": "MainProcess", "lineno": 68, "filename": "log.py"}, "_auth_backend": "LDAPAuthenticationBackend", "host": "stackstorm.peak6.net", "full_message": "Invalid credentials provided", "_remote_addr": "10.2.4.215", "short_message": "Invalid credentials provided"}
==> /var/log/st2/st2auth.uwsgi.log <==
2016-02-23 19:58:29,960 DEBUG [-] API call failed: None (exception_message='Invalid or missing credentials',exception_data={'comment': None, '_headers': None, 'conditional_response': False, 'detail': 'Invalid or missing credentials', '_app_iter': [''], '_status': '401 Unauthorized', '_headerlist': [('Content-Type', 'text/html; charset=UTF-8'), ('Content-Length', '0')]},exception_class='HTTPUnauthorized')
==> /tmp/st2auth.real.log <==
2016-02-23 19:58:29,960 140705019315968 DEBUG log [-] API call failed: None (exception_message='Invalid or missing credentials',exception_data={'comment': None, '_headers': None, 'conditional_response': False, 'detail': 'Invalid or missing credentials', '_app_iter': [''], '_status': '401 Unauthorized', '_headerlist': [('Content-Type', 'text/html; charset=UTF-8'), ('Content-Length', '0')]},exception_class='HTTPUnauthorized')
==> /var/log/st2/st2auth.uwsgi.log <==
[pid: 28883|app: 0|req: 2/2] 10.2.4.215 (cray) {44 vars in 603 bytes} [Tue Feb 23 19:58:29 2016] POST /auth/tokens => generated 55 bytes in 5 msecs (HTTP/1.1 401) 6 headers in 370 bytes (1 switches on core 2)
==> /var/log/nginx/ssl-st2webui.access.log <==
10.2.4.215 - cray [23/Feb/2016:19:58:29 -0600] "POST /auth/tokens HTTP/1.1" 401 55 "-" "python-requests/2.9.1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment