Lines 126-132
def query(self, request):
|
Link Here
|
---|
|
126 |
from univention.management.console.ldap import get_user_connection |
126 |
from univention.management.console.ldap import get_user_connection |
127 |
from univention.management.console.config import ucr |
127 |
from univention.management.console.config import ucr |
128 |
from univention.management.console.log import MODULE, CORE |
128 |
from univention.management.console.log import MODULE, CORE |
129 |
from univention.management.console.error import UMC_Error, NotAcceptable, PasswordRequired, LDAP_ServerDown |
129 |
from univention.management.console.error import UMC_Error, NotAcceptable, PasswordRequired, LDAP_ServerDown, LDAP_ConnectionFailed |
130 |
|
130 |
|
131 |
_ = Translation('univention.management.console').translate |
131 |
_ = Translation('univention.management.console').translate |
132 |
|
132 |
|
Lines 292-297
def error_handling(self, etype, exc, etraceback):
|
Link Here
|
---|
|
292 |
exc = exc.original_exception |
292 |
exc = exc.original_exception |
293 |
if isinstance(exc, ldap.SERVER_DOWN): |
293 |
if isinstance(exc, ldap.SERVER_DOWN): |
294 |
raise LDAP_ServerDown() |
294 |
raise LDAP_ServerDown() |
|
|
295 |
if isinstance(exc, ldap.CONNECT_ERROR): |
296 |
raise LDAP_ConnectionFailed(exc) |
295 |
|
297 |
|
296 |
def __error_handling(self, request, method, etype, exc, etraceback): |
298 |
def __error_handling(self, request, method, etype, exc, etraceback): |
297 |
message = '' |
299 |
message = '' |