Univention Bugzilla – Attachment 7507 Details for
Bug 40799
Self service fails with postgres error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
40799.patch (text/plain), 1010 bytes, created by
Florian Best
on 2016-03-01 08:50 CET
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Florian Best
Created:
2016-03-01 08:50 CET
Size:
1010 bytes
patch
obsolete
>diff --git a/management/univention-self-service/python/passwordreset.py b/management/univention-self-service/python/passwordreset.py >index 3693b98..33f83d2 100644 >--- a/management/univention-self-service/python/passwordreset.py >+++ b/management/univention-self-service/python/passwordreset.py >@@ -54,10 +54,7 @@ def get_connection(self): > except (OSError, IOError) as exc: > self.log('Could not read UMC server credentials: %s' % (exc,)) > raise cherrypy.HTTPError(503, 'Could not authenticate at Univention Management Console service.') >- status, response = connection.auth({'username': username, 'password': password}) >- if status != 200: >- self.log('Authentication failed: %r' % (response,)) >- raise cherrypy.HTTPError(503, 'Could not authenticate at Univention Management Console service: %s' % (format_status(status),)) >+ connection._headers['Authorization'] = 'basic %s' % ('%s:%s' % (username, password)).encode('base64').rstrip() > return connection > > def umc_request(self, url, data):
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 40799
:
7504
| 7507