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 722-731    Link Here 
722
					return ( zone, ip, mac )
723
					return ( zone, ip, mac )
723
724
724
			def is_ip( ip ):
725
			def is_ip( ip ):
725
				_re = re.compile( '^[ 0-9 ]+\.[ 0-9 ]+\.[ 0-9 ]+\.[ 0-9 ]+$' )
726
				# match IPv4 (0.0.0.0 is allowed) or IPv6 address (incl. IPv4-mapped IPv6)
726
				if _re.match ( ip ):
727
				try:
727
					return True
728
					ipaddr.IPAddress(ip)
728
				return False
729
				except ValueError:
730
					return False
731
				return True
729
732
730
			def is_alias( alias ):
733
			def is_alias( alias ):
731
				# hostname based upon RFC 952: <let>[*[<let-or-digit-or-hyphen>]<let-or-digit>]
734
				# hostname based upon RFC 952: <let>[*[<let-or-digit-or-hyphen>]<let-or-digit>]
 Lines 851-857    Link Here 
851
854
852
						if name:
855
						if name:
853
							domainPos=univention.admin.uldap.position(position.getDomain())
856
							domainPos=univention.admin.uldap.position(position.getDomain())
854
							dnsZone=self.lo.searchDn('(&(objectClass=dnsZone)(relativeDomainName=@)(!(zoneName=*.in-addr.arpa)))', base=domainPos.getBase(), scope='domain')
857
							dnsZone=self.lo.searchDn('(&(objectClass=dnsZone)(relativeDomainName=@)(!(zoneName=*.arpa)))', base=domainPos.getBase(), scope='domain') # IPv4 + IPv6
855
858
856
							if self.save.get('x_choice_value_of_%s'%name,'') == '':
859
							if self.save.get('x_choice_value_of_%s'%name,'') == '':
857
								self.save.put('x_choice_value_of_%s'%name, 'None' )
860
								self.save.put('x_choice_value_of_%s'%name, 'None' )
 Lines 995-1001    Link Here 
995
998
996
						if name:
999
						if name:
997
							domainPos=univention.admin.uldap.position(position.getDomain())
1000
							domainPos=univention.admin.uldap.position(position.getDomain())
998
							dnsZone=self.lo.searchDn('(&(objectClass=dNSZone)(relativeDomainName=@)(zoneName=*.in-addr.arpa))', base=domainPos.getBase(), scope='domain')
1001
							dnsZone=self.lo.searchDn('(&(objectClass=dNSZone)(relativeDomainName=@)(zoneName=*.arpa))', base=domainPos.getBase(), scope='domain') # IPv4 + IPv6
999
1002
1000
							if self.save.get('x_choice_value_of_%s'%name,'') == '':
1003
							if self.save.get('x_choice_value_of_%s'%name,'') == '':
1001
								self.save.put('x_choice_value_of_%s'%name, 'None' )
1004
								self.save.put('x_choice_value_of_%s'%name, 'None' )
 Lines 1513-1519    Link Here 
1513
						primary_group_choicelist=[]
1516
						primary_group_choicelist=[]
1514
1517
1515
						domainPos=univention.admin.uldap.position(position.getDomain())
1518
						domainPos=univention.admin.uldap.position(position.getDomain())
1516
						dnsZone=self.lo.searchDn('(&(objectClass=dnsZone)(relativeDomainName=@)(!(zoneName=*.in-addr.arpa)))', base=domainPos.getBase(), scope='domain')
1519
						dnsZone=self.lo.searchDn('(&(objectClass=dnsZone)(relativeDomainName=@)(!(zoneName=*.arpa)))', base=domainPos.getBase(), scope='domain') # IPv4 + IPv6
1517
1520
1518
						if dnsZone:
1521
						if dnsZone:
1519
							groups=dnsZone
1522
							groups=dnsZone
 Lines 1548-1554    Link Here 
1548
						dns_entry_reverse_choicelist=[]
1551
						dns_entry_reverse_choicelist=[]
1549
1552
1550
						domainPos=univention.admin.uldap.position(position.getDomain())
1553
						domainPos=univention.admin.uldap.position(position.getDomain())
1551
						dnsZone=self.lo.searchDn('(&(objectClass=dNSZone)(relativeDomainName=@)(zoneName=*.in-addr.arpa))', base=domainPos.getBase(), scope='domain')
1554
						dnsZone=self.lo.searchDn('(&(objectClass=dNSZone)(relativeDomainName=@)(zoneName=*.arpa))', base=domainPos.getBase(), scope='domain') # IPv4  + IPv6
1552
1555
1553
						if dnsZone:
1556
						if dnsZone:
1554
							groups=dnsZone
1557
							groups=dnsZone
(-)debian/changelog (+24 lines)
 Lines 1-3    Link Here 
1
univention-directory-manager (7.1.3-1) unstable; urgency=low
2
3
  * merged with trunk (Bug #15555)
4
5
 -- Kai-Wilhelm Bolte <bolte@univention.de>  Wed,  4 Nov 2009 11:14:10 +0100
6
7
univention-directory-manager (7.1.2-1) unstable; urgency=low
8
9
  * use ipaddr module for syntax check (Bug #15555)
10
11
 -- Kai-Wilhelm Bolte <bolte@univention.de>  Mon, 12 Oct 2009 14:05:38 +0200
12
13
univention-directory-manager (7.1.1-1) unstable; urgency=low
14
15
  * add IPv6 fixes to forward and reverse zones in computers - DNS (Bug #15687)
16
17
 -- Kai-Wilhelm Bolte <bolte@univention.de>  Thu,  8 Oct 2009 17:33:16 +0200
18
19
univention-directory-manager (7.1.0-1) unstable; urgency=low
20
21
  * make computers - DNS tab show IPv6 zones (Bug #15687)
22
23
 -- Kai-Wilhelm Bolte <bolte@univention.de>  Tue, 29 Sep 2009 13:33:47 +0200
24
1
univention-directory-manager (7.0.36-1) unstable; urgency=low
25
univention-directory-manager (7.0.36-1) unstable; urgency=low
2
26
3
  * don't set the focus on the username input field. Bug #16070
27
  * don't set the focus on the username input field. Bug #16070

Return to bug 15555