View | Details | Raw Unified | Return to bug 15555 | Differences between
and this patch

Collapse All | Expand All

(-)uniconf/modedit.py (-8 / +11 lines)
 Lines 34-39    Link Here 
34
from local import _
34
from local import _
35
from syntax import *
35
from syntax import *
36
36
37
import ipaddr # IPv6
37
import univention.debug
38
import univention.debug
38
import univention.admin.uldap
39
import univention.admin.uldap
39
import univention.admin.modules
40
import univention.admin.modules
 Lines 726-735    Link Here 
726
					return ( zone, ip, mac )
727
					return ( zone, ip, mac )
727
728
728
			def is_ip( ip ):
729
			def is_ip( ip ):
729
				_re = re.compile( '^[ 0-9 ]+\.[ 0-9 ]+\.[ 0-9 ]+\.[ 0-9 ]+$' )
730
				# match IPv4 (0.0.0.0 is allowed) or IPv6 address (incl. IPv4-mapped IPv6)
730
				if _re.match ( ip ):
731
				try:
731
					return True
732
					ipaddr.IPAddress(ip)
732
				return False
733
				except ValueError:
734
					return False
735
				return True
733
736
734
			def is_alias( alias ):
737
			def is_alias( alias ):
735
				# hostname based upon RFC 952: <let>[*[<let-or-digit-or-hyphen>]<let-or-digit>]
738
				# hostname based upon RFC 952: <let>[*[<let-or-digit-or-hyphen>]<let-or-digit>]
 Lines 855-861    Link Here 
855
858
856
						if name:
859
						if name:
857
							domainPos=univention.admin.uldap.position(position.getDomain())
860
							domainPos=univention.admin.uldap.position(position.getDomain())
858
							dnsZone=self.lo.searchDn('(&(objectClass=dnsZone)(relativeDomainName=@)(!(zoneName=*.in-addr.arpa)))', base=domainPos.getBase(), scope='domain')
861
							dnsZone=self.lo.searchDn('(&(objectClass=dnsZone)(relativeDomainName=@)(!(zoneName=*.arpa)))', base=domainPos.getBase(), scope='domain') # IPv4 + IPv6
859
862
860
							if self.save.get('x_choice_value_of_%s'%name,'') == '':
863
							if self.save.get('x_choice_value_of_%s'%name,'') == '':
861
								self.save.put('x_choice_value_of_%s'%name, 'None' )
864
								self.save.put('x_choice_value_of_%s'%name, 'None' )
 Lines 999-1005    Link Here 
999
1002
1000
						if name:
1003
						if name:
1001
							domainPos=univention.admin.uldap.position(position.getDomain())
1004
							domainPos=univention.admin.uldap.position(position.getDomain())
1002
							dnsZone=self.lo.searchDn('(&(objectClass=dNSZone)(relativeDomainName=@)(zoneName=*.in-addr.arpa))', base=domainPos.getBase(), scope='domain')
1005
							dnsZone=self.lo.searchDn('(&(objectClass=dNSZone)(relativeDomainName=@)(zoneName=*.arpa))', base=domainPos.getBase(), scope='domain') # IPv4 + IPv6
1003
1006
1004
							if self.save.get('x_choice_value_of_%s'%name,'') == '':
1007
							if self.save.get('x_choice_value_of_%s'%name,'') == '':
1005
								self.save.put('x_choice_value_of_%s'%name, 'None' )
1008
								self.save.put('x_choice_value_of_%s'%name, 'None' )
 Lines 1517-1523    Link Here 
1517
						primary_group_choicelist=[]
1520
						primary_group_choicelist=[]
1518
1521
1519
						domainPos=univention.admin.uldap.position(position.getDomain())
1522
						domainPos=univention.admin.uldap.position(position.getDomain())
1520
						dnsZone=self.lo.searchDn('(&(objectClass=dnsZone)(relativeDomainName=@)(!(zoneName=*.in-addr.arpa)))', base=domainPos.getBase(), scope='domain')
1523
						dnsZone=self.lo.searchDn('(&(objectClass=dnsZone)(relativeDomainName=@)(!(zoneName=*.arpa)))', base=domainPos.getBase(), scope='domain') # IPv4 + IPv6
1521
1524
1522
						if dnsZone:
1525
						if dnsZone:
1523
							groups=dnsZone
1526
							groups=dnsZone
 Lines 1552-1558    Link Here 
1552
						dns_entry_reverse_choicelist=[]
1555
						dns_entry_reverse_choicelist=[]
1553
1556
1554
						domainPos=univention.admin.uldap.position(position.getDomain())
1557
						domainPos=univention.admin.uldap.position(position.getDomain())
1555
						dnsZone=self.lo.searchDn('(&(objectClass=dNSZone)(relativeDomainName=@)(zoneName=*.in-addr.arpa))', base=domainPos.getBase(), scope='domain')
1558
						dnsZone=self.lo.searchDn('(&(objectClass=dNSZone)(relativeDomainName=@)(zoneName=*.arpa))', base=domainPos.getBase(), scope='domain') # IPv4  + IPv6
1556
1559
1557
						if dnsZone:
1560
						if dnsZone:
1558
							groups=dnsZone
1561
							groups=dnsZone
(-)debian/changelog (+30 lines)
 Lines 1-3    Link Here 
1
univention-directory-manager (7.1.4-1) unstable; urgency=low
2
3
  * merged with trunk v. 7.0.38-1 (Bug #15555)
4
5
 -- Kai-Wilhelm Bolte <bolte@univention.de>  Fri, 20 Nov 2009 16:26:44 +0100
6
7
univention-directory-manager (7.1.3-1) unstable; urgency=low
8
9
  * merged with trunk (Bug #15555)
10
11
 -- Kai-Wilhelm Bolte <bolte@univention.de>  Wed,  4 Nov 2009 11:14:10 +0100
12
13
univention-directory-manager (7.1.2-1) unstable; urgency=low
14
15
  * use ipaddr module for syntax check (Bug #15555)
16
17
 -- Kai-Wilhelm Bolte <bolte@univention.de>  Mon, 12 Oct 2009 14:05:38 +0200
18
19
univention-directory-manager (7.1.1-1) unstable; urgency=low
20
21
  * add IPv6 fixes to forward and reverse zones in computers - DNS (Bug #15687)
22
23
 -- Kai-Wilhelm Bolte <bolte@univention.de>  Thu,  8 Oct 2009 17:33:16 +0200
24
25
univention-directory-manager (7.1.0-1) unstable; urgency=low
26
27
  * make computers - DNS tab show IPv6 zones (Bug #15687)
28
29
 -- Kai-Wilhelm Bolte <bolte@univention.de>  Tue, 29 Sep 2009 13:33:47 +0200
30
1
univention-directory-manager (7.0.38-1) unstable; urgency=low
31
univention-directory-manager (7.0.38-1) unstable; urgency=low
2
32
3
  * convert the ucr value for the sizelimit into an integer value. Bug
33
  * convert the ucr value for the sizelimit into an integer value. Bug

Return to bug 15555