Univention Bugzilla – Attachment 9093 Details for
Bug 40668
It is not possible to search for the IP-address of a DNS Host record
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
40668.patch (text/plain), 1.15 KB, created by
Florian Best
on 2017-08-04 14:00:54 CEST
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Florian Best
Created:
2017-08-04 14:00:54 CEST
Size:
1.15 KB
patch
obsolete
>diff --git a/management/univention-directory-manager-modules/modules/univention/admin/handlers/dns/host_record.py b/management/univention-directory-manager-modules/modules/univention/admin/handlers/dns/host_record.py >index 9b68c97..8544485 100644 >--- a/management/univention-directory-manager-modules/modules/univention/admin/handlers/dns/host_record.py >+++ b/management/univention-directory-manager-modules/modules/univention/admin/handlers/dns/host_record.py >@@ -30,6 +30,7 @@ > # /usr/share/common-licenses/AGPL-3; if not, see > # <http://www.gnu.org/licenses/>. > >+import re > import ipaddr > import string > >@@ -234,6 +235,7 @@ def lookup(co, lo, filter_s, base='', superordinate=None, scope="sub", unique=Fa > filter.expressions.append(univention.admin.filter.expression('zoneName', superordinate.mapping.mapValue('zone', superordinate['zone']))) > > if filter_s: >+ filter_s = re.sub('(?:^|\()a=([^)]+)(?:$|\))', lambda m: '(|(aRecord=%(a)s)(aAAARecord=%(a)s))' % {'a': m.group(1)}, filter_s) > filter_p = univention.admin.filter.parse(filter_s) > univention.admin.filter.walk(filter_p, univention.admin.mapping.mapRewrite, arg=mapping) > filter.expressions.append(filter_p)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 40668
:
7480
| 9093