Univention Bugzilla – Attachment 7716 Details for
Bug 41396
Test site specific sambaHomePath for ou-overlapping user accounts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
host_record_override.diff
host_record_override.diff (text/plain), 2.05 KB, created by
Arvid Requate
on 2016-06-02 17:48:41 CEST
(
hide
)
Description:
host_record_override.diff
Filename:
MIME Type:
Creator:
Arvid Requate
Created:
2016-06-02 17:48:41 CEST
Size:
2.05 KB
patch
obsolete
>--- /usr/share/pyshared/univention/s4connector/s4/dns.py.orig 2015-11-23 21:40:45.027928280 +0100 >+++ /usr/share/pyshared/univention/s4connector/s4/dns.py 2015-11-23 21:40:22.707933096 +0100 >@@ -848,7 +848,27 @@ > > dnsRecords=[] > >- __pack_aRecord(object, dnsRecords) >+ zoneName = object['attributes']['zoneName'][0] >+ relativeDomainName = object['attributes']['relativeDomainName'][0] >+ >+ aRecords = s4connector.configRegistry.get('connector/s4/mapping/dns/host_record/%s.%s/static/ipv4' % (relativeDomainName.lower(), zoneName.lower())) >+ aAAARecords = s4connector.configRegistry.get('connector/s4/mapping/dns/host_record/%s.%s/static/ipv6' % (relativeDomainName.lower(), zoneName.lower())) >+ if aRecords or aAAARecords: >+ #IPv4 >+ if aRecords: >+ for a in aRecords.split(' '): >+ a=univention.s4connector.s4.compatible_modstring(a) >+ a_record=ARecord(a) >+ dnsRecords.append(ndr_pack(a_record)) >+ >+ #IPv6 >+ if aAAARecords: >+ for a in aAAARecords.split(' '): >+ a=univention.s4connector.s4.compatible_modstring(a) >+ a_record=AAAARecord(a) >+ dnsRecords.append(ndr_pack(a_record)) >+ else: >+ __pack_aRecord(object, dnsRecords) > > dnsNodeDn=s4_dns_node_base_create(s4connector, object, dnsRecords) > >@@ -861,6 +881,15 @@ > zoneName = object['attributes']['zoneName'][0] > relativeDomainName = object['attributes']['relativeDomainName'][0] > >+ aRecords = s4connector.configRegistry.get('connector/s4/mapping/dns/host_record/%s.%s/static/ipv4' % (relativeDomainName.lower(), zoneName.lower())) >+ if aRecords: >+ ud.debug(ud.LDAP, ud.INFO, 'ucs_host_record_create: do not write host record back from S4 to UCS because location of A record has been overwritten by UCR') >+ return >+ aAAARecords = s4connector.configRegistry.get('connector/s4/mapping/dns/host_record/%s.%s/static/ipv6' % (relativeDomainName.lower(), zoneName.lower())) >+ if aAAARecords: >+ ud.debug(ud.LDAP, ud.INFO, 'ucs_host_record_create: do not write host record back from S4 to UCS because location of AAAA record has been overwritten by UCR') >+ return >+ > # unpack the host record > a=__unpack_aRecord(object) >
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 41396
: 7716