[SCM] Samba Shared Repository - branch v3-6-stable updated

2013-11-29 Thread Karolin Seeger
The branch, v3-6-stable has been updated
   via  20cbf46 WHATSNEW: Add release notes for Samba 3.6.21.
   via  b1a57fd spoolss: accept XPS_PASS datatype used by Windows 8
   via  4a8e46d xattr: fix listing EAs on *BSD for non-root users
   via  358366f Fix bug #10118 - Samba is chatty about being unable to open 
a printer. (cherry picked from commit 906db4fe8e6de2de67afa4655603e67d887c370b)
   via  47bd5f0 nsswitch: Fix short writes in winbind_write_sock
   via  81ce51d s3-winbind: Send online/offline message of the domain to 
the parent.
   via  c70ff54 s3-winbind: Register handlers for domain online/offline 
messages.
   via  084f367 s3-winbind: Add functions for domain online/offline 
handling.
   via  543013a idl: Add a new message for winbind domain states.
   via  b8da65a Fix bug #10187 - Missing talloc_free can leak stackframe in 
error path.
   via  a70e6b9 Fix is_legal_name() to not emit character conversion error 
messages.
   via  2f9c9b7 s3: smb2 server - fix bug 10167 smb2 breaks smb encryption 
= mandatory
  from  f9dd9ce VERSION: Bump version up to 3.6.21.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-6-stable


- Log -
commit 20cbf46fd8cb1a9a32d73d1c4071b6eb74c7ff84
Author: Karolin Seeger ksee...@samba.org
Date:   Thu Nov 28 10:40:40 2013 +0100

WHATSNEW: Add release notes for Samba 3.6.21.

Signed-off-by: Karolin Seeger ksee...@samba.org
(cherry picked from commit c458263e352328db49becec65157e9ec477bdacc)

commit b1a57fd6ebcd303e5b30b652afbe2baf8ee1d091
Author: Arvid Requate requ...@univention.de
Date:   Thu Nov 21 12:35:20 2013 +0100

spoolss: accept XPS_PASS datatype used by Windows 8

The new v4 driver model used in Windows 8 declares print jobs
intended to bypass the XPS processing layer by setting datatype to
XPS_PASS instead of RAW.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=10267

Reviewed-by: David Disseldorp dd...@samba.org
Reviewed-by: Andreas Schneider a...@samba.org
(cherry picked from commit b2815b4c8c3e436a79fb7f07be285a417fd6e8cb)
(cherry picked from commit 4cfd6597bceeb0ef10d14bb7a48badd2264e85a6)

commit 4a8e46d173923381861195b7f17801afc27c0c01
Author: Jeremy Allison j...@samba.org
Date:   Tue Nov 12 12:17:26 2013 -0800

xattr: fix listing EAs on *BSD for non-root users

Thanks to Stefan Rompf for reporting.

This fixes bug #10247

Back-ported to 3.6.next from master commit 
374b2cfde74e0c61f4b2da724b30d0e430596092

Signed-off-by: Bjoern Jacke b...@sernet.de
Reviewed-by: Jeremy Allison j...@samba.org
(cherry picked from commit d984e764073df34729e5410026d6fa618699126f)

commit 358366fe7de8e3891ff39405d5038e53a2acec23
Author: Korobkin korobkin+sa...@gmail.com
Date:   Tue Oct 29 11:25:12 2013 +0100

Fix bug #10118 - Samba is chatty about being unable to open a printer.
(cherry picked from commit 906db4fe8e6de2de67afa4655603e67d887c370b)

commit 47bd5f0d7b677e9806770b3ba4dc162923c8f073
Author: Volker Lendecke v...@samba.org
Date:   Tue Oct 15 08:23:10 2013 +

nsswitch: Fix short writes in winbind_write_sock

We set the socket to nonblocking and don't handle EAGAIN right. We do
a poll anyway, so wait for writability, which should fix this.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=10195
Signed-off-by: Volker Lendecke v...@samba.org
Reviewed-by: Andreas Schneider a...@samba.org
(cherry picked from commit c6909887c26d4e827633acd50b11cf08c6aee0f7)
Signed-off-by: Andreas Schneider a...@samba.org
(cherry picked from commit 3dfbea723553b268008063b280c808bb30951fdc)

commit 81ce51dd4f3d657ab3b4f6295db6efe6c9315d88
Author: Andreas Schneider a...@cryptomilk.org
Date:   Thu Oct 10 10:03:32 2013 +0200

s3-winbind: Send online/offline message of the domain to the parent.

https://bugzilla.samba.org/show_bug.cgi?id=10194

Signed-off-by: Andreas Schneider a...@cryptomilk.org
Reviewed-by: Volker Lendecke v...@samba.org

Autobuild-User(master): Volker Lendecke v...@samba.org
Autobuild-Date(master): Fri Oct 11 13:37:56 CEST 2013 on sn-devel-104

(cherry picked from commit 275f6586c4d4547978c6ff2f04670b0d8f89fd4b)
(cherry picked from commit 80a5575849c903a3cb4a9bd74f029e5b7c293aa3)

commit c70ff54d091138a6351a43404d843b2a2dcf8292
Author: Andreas Schneider a...@cryptomilk.org
Date:   Thu Oct 10 10:02:27 2013 +0200

s3-winbind: Register handlers for domain online/offline messages.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=10194

Signed-off-by: Andreas Schneider a...@cryptomilk.org
Reviewed-by: Volker Lendecke v...@samba.org

(cherry picked from commit fc5941622010843d823b5c245eccc68d1d3bce19)
(cherry picked from commit 920f8013ad5c57aaa941d5c7aea335726ed0bbae)

commit 084f367d2b3a25295ac050eab5bf9132e5d6f176

[SCM] Samba Shared Repository - annotated tag samba-3.6.21 created

2013-11-29 Thread Karolin Seeger
The annotated tag, samba-3.6.21 has been created
at  728027bca7fc1e344e954652f3e92616cf53eb41 (tag)
   tagging  20cbf46fd8cb1a9a32d73d1c4071b6eb74c7ff84 (commit)
  replaces  samba-3.6.20
 tagged by  Karolin Seeger
on  Fri Nov 29 09:12:45 2013 +0100

- Log -
tag samba-3.6.21
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)

iD8DBQBSmEyGbzORW2Vot+oRAtzaAJ4z0W80F7f6tw/yyVpSvD6GZObSIQCgpj0m
AvBhkBGn7T5ROhqWf1FtsGw=
=JCiE
-END PGP SIGNATURE-

Andreas Schneider (4):
  idl: Add a new message for winbind domain states.
  s3-winbind: Add functions for domain online/offline handling.
  s3-winbind: Register handlers for domain online/offline messages.
  s3-winbind: Send online/offline message of the domain to the parent.

Arvid Requate (1):
  spoolss: accept XPS_PASS datatype used by Windows 8

Jeremy Allison (4):
  s3: smb2 server - fix bug 10167 smb2 breaks smb encryption = mandatory
  Fix is_legal_name() to not emit character conversion error messages.
  Fix bug #10187 - Missing talloc_free can leak stackframe in error path.
  xattr: fix listing EAs on *BSD for non-root users

Karolin Seeger (2):
  VERSION: Bump version up to 3.6.21.
  WHATSNEW: Add release notes for Samba 3.6.21.

Korobkin (1):
  Fix bug #10118 - Samba is chatty about being unable to open a printer.

Volker Lendecke (1):
  nsswitch: Fix short writes in winbind_write_sock

---


-- 
Samba Shared Repository


[SCM] Samba Website Repository - branch master updated

2013-11-29 Thread Karolin Seeger
The branch, master has been updated
   via  851bb7f Announce Samba 3.6.21.
  from  560db89 Add Amitay Isaacs to the team list

http://gitweb.samba.org/?p=samba-web.git;a=shortlog;h=master


- Log -
commit 851bb7fa1226f2b23882e92c4ae180cb016c38ac
Author: Karolin Seeger ksee...@samba.org
Date:   Thu Nov 28 11:00:56 2013 +0100

Announce Samba 3.6.21.

Signed-off-by: Karolin Seeger ksee...@samba.org

---

Summary of changes:
 generated_news/latest_10_bodies.html|   26 +++---
 generated_news/latest_10_headlines.html |4 +-
 generated_news/latest_2_bodies.html |   26 +++---
 history/header_history.html |1 +
 history/samba-3.6.21.html   |   53 +++
 5 files changed, 82 insertions(+), 28 deletions(-)
 create mode 100755 history/samba-3.6.21.html


Changeset truncated at 500 lines:

diff --git a/generated_news/latest_10_bodies.html 
b/generated_news/latest_10_bodies.html
index af8292a..2d8248a 100644
--- a/generated_news/latest_10_bodies.html
+++ b/generated_news/latest_10_bodies.html
@@ -1,3 +1,16 @@
+   h5a name=3.6.2129 November 2013/a/h5
+   p class=headlineSamba 3.6.21 Available for Download/p
+   pThis is the latest stable release of the Samba 3.6 series./p
+
+pThe uncompressed tarballs and patch files have been signed
+using GnuPG (ID 6568B7EA).  The source code can be
+a href=http://samba.org/samba/ftp/stable/samba-3.6.21.tar.gz;downloaded
+now/a. A a 
href=http://samba.org/samba/ftp/patches/patch-3.6.20-3.6.21.diffs.gz;
+patch against Samba 3.6.20/a is also available. See
+a href=http://samba.org/samba/history/samba-3.6.21.html; the release notes
+ for more info/a./p
+
+
h5a name=4.1.222 November 2013/a/h5
p class=headlineSamba 4.1.2 Available for Download/p
pThis is the latest stable release of the Samba 4.1 series./p
@@ -119,16 +132,3 @@ now/a. A a 
href=http://samba.org/samba/ftp/patches/patch-4.0.8-4.0.9.diffs.g
 patch against Samba 4.0.8/a is also available. See
 a href=http://samba.org/samba/history/samba-4.0.9.html; the release notes
  for more info/a./p
-
-
-   h5a name=3.6.1814 August 2013/a/h5
-   p class=headlineSamba 3.6.18 Available for Download/p
-   pThis is the latest stable release of the Samba 3.6 series./p
-
-pThe uncompressed tarballs and patch files have been signed
-using GnuPG (ID 6568B7EA).  The source code can be
-a href=http://samba.org/samba/ftp/stable/samba-3.6.18.tar.gz;downloaded
-now/a. A a 
href=http://samba.org/samba/ftp/patches/patch-3.6.17-3.6.18.diffs.gz;
-patch against Samba 3.6.17/a is also available.
-See a href=http://samba.org/samba/history/samba-3.6.18.html;
-the release notes for more info/a./p
diff --git a/generated_news/latest_10_headlines.html 
b/generated_news/latest_10_headlines.html
index e12e86b..73e5a64 100644
--- a/generated_news/latest_10_headlines.html
+++ b/generated_news/latest_10_headlines.html
@@ -1,4 +1,6 @@
 ul
+   li 29 November 2013 a href=#3.6.21Samba 3.6.21 Available for 
Download/a/li
+
li 22 November 2013 a href=#4.1.2Samba 4.1.2 Available for 
Download/a/li
 
li 19 November 2013 a href=#4.0.12Samba 4.0.12 Available for 
Download/a/li
@@ -20,6 +22,4 @@
Download/a/li
 
li 20 August 2013 a href=#4.0.9Samba 4.0.9 Available for 
Download/a/li
-
-   li 14 August 2013 a href=#3.6.18Samba 3.6.18 Available for 
Download/a/li
 /ul
diff --git a/generated_news/latest_2_bodies.html 
b/generated_news/latest_2_bodies.html
index 35ce529..0b905cf 100644
--- a/generated_news/latest_2_bodies.html
+++ b/generated_news/latest_2_bodies.html
@@ -1,3 +1,16 @@
+   h5a name=3.6.2129 November 2013/a/h5
+   p class=headlineSamba 3.6.21 Available for Download/p
+   pThis is the latest stable release of the Samba 3.6 series./p
+
+pThe uncompressed tarballs and patch files have been signed
+using GnuPG (ID 6568B7EA).  The source code can be
+a href=http://samba.org/samba/ftp/stable/samba-3.6.21.tar.gz;downloaded
+now/a. A a 
href=http://samba.org/samba/ftp/patches/patch-3.6.20-3.6.21.diffs.gz;
+patch against Samba 3.6.20/a is also available. See
+a href=http://samba.org/samba/history/samba-3.6.21.html; the release notes
+ for more info/a./p
+
+
h5a name=4.1.222 November 2013/a/h5
p class=headlineSamba 4.1.2 Available for Download/p
pThis is the latest stable release of the Samba 4.1 series./p
@@ -9,16 +22,3 @@ now/a. A a 
href=http://samba.org/samba/ftp/patches/patch-4.1.1-4.1.2.diffs.g
 patch against Samba 4.1.1/a is also available. See
 a href=http://samba.org/samba/history/samba-4.1.2.html; the release notes
  for more info/a./p
-
-
-   h5a name=4.0.1219 November 2013/a/h5
-   p class=headlineSamba 4.0.12 Available for Download/p
-   pThis is the latest stable release of the Samba 4.0 series./p
-
-pThe 

[SCM] Samba Shared Repository - branch v3-6-test updated

2013-11-29 Thread Karolin Seeger
The branch, v3-6-test has been updated
   via  d57a4d1 VERSION: Bump version up to 3.6.22.
  from  c458263 WHATSNEW: Add release notes for Samba 3.6.21.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-6-test


- Log -
commit d57a4d130bcbf88b7f060439a33797be89353e29
Author: Karolin Seeger ksee...@samba.org
Date:   Fri Nov 29 09:55:15 2013 +0100

VERSION: Bump version up to 3.6.22.

Signed-off-by: Karolin Seeger ksee...@samba.org

---

Summary of changes:
 source3/VERSION |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/VERSION b/source3/VERSION
index b5030d0..abf9994 100644
--- a/source3/VERSION
+++ b/source3/VERSION
@@ -25,7 +25,7 @@
 
 SAMBA_VERSION_MAJOR=3
 SAMBA_VERSION_MINOR=6
-SAMBA_VERSION_RELEASE=21
+SAMBA_VERSION_RELEASE=22
 
 
 # Bug fix releases use a letter for the patch revision #


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-6-stable updated

2013-11-29 Thread Karolin Seeger
The branch, v3-6-stable has been updated
   via  8317477 VERSION: Bump version up to 3.6.22.
  from  20cbf46 WHATSNEW: Add release notes for Samba 3.6.21.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-6-stable


- Log -
commit 8317477ce68fc97316e6592a9230fa8631293089
Author: Karolin Seeger ksee...@samba.org
Date:   Fri Nov 29 09:55:15 2013 +0100

VERSION: Bump version up to 3.6.22.

Signed-off-by: Karolin Seeger ksee...@samba.org
(cherry picked from commit d57a4d130bcbf88b7f060439a33797be89353e29)

---

Summary of changes:
 source3/VERSION |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/VERSION b/source3/VERSION
index 8d054f4..38beda1 100644
--- a/source3/VERSION
+++ b/source3/VERSION
@@ -25,7 +25,7 @@
 
 SAMBA_VERSION_MAJOR=3
 SAMBA_VERSION_MINOR=6
-SAMBA_VERSION_RELEASE=21
+SAMBA_VERSION_RELEASE=22
 
 
 # Bug fix releases use a letter for the patch revision #


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated

2013-11-29 Thread David Disseldorp
The branch, master has been updated
   via  f626839 fail authentication for single group name which cannot be 
converted to sid
  from  fb042b3 replace: fix typo in variable name

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit f62683956a3b182f6a61cc7a2b4ada2e74cde243
Author: Noel Power noel.po...@suse.com
Date:   Wed Oct 16 16:30:55 2013 +0100

fail authentication for single group name which cannot be converted to sid

furthermore if more than one name is supplied and no sid is converted
then also fail.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=8598

Signed-off-by: Noel Power noel.po...@suse.com
Reviewed-by: Andreas Schneider a...@samba.org
Reviewed-by: David Disseldorp dd...@samba.org

Autobuild-User(master): David Disseldorp dd...@samba.org
Autobuild-Date(master): Fri Nov 29 15:45:11 CET 2013 on sn-devel-104

---

Summary of changes:
 nsswitch/pam_winbind.c |6 ++
 1 files changed, 6 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/nsswitch/pam_winbind.c b/nsswitch/pam_winbind.c
index 9322971..cd5e7ba 100644
--- a/nsswitch/pam_winbind.c
+++ b/nsswitch/pam_winbind.c
@@ -1172,6 +1172,12 @@ static bool winbind_name_list_to_sid_string_list(struct 
pwb_context *ctx,
_make_remark_format(ctx, PAM_TEXT_INFO, _(Cannot convert group 
%s 
to sid, please contact your administrator to 
see 
if group %s is valid.), search_location, 
search_location);
+
+   /* If no valid groups were converted we should fail outright */
+   if (name_list != NULL  strlen(sid_list_buffer) == 0) {
+   result = false;
+   goto out;
+   }
/*
 * The lookup of the last name failed..
 * It results in require_member_of_sid ends with ','


-- 
Samba Shared Repository


autobuild: intermittent test failure detected

2013-11-29 Thread autobuild
The autobuild test system has detected an intermittent failing test in 
the current master tree.

The autobuild log of the failure is available here:

   http://git.samba.org/autobuild.flakey/2013-11-29-1619/flakey.log

The samba3 build logs are available here:

   http://git.samba.org/autobuild.flakey/2013-11-29-1619/samba3.stderr
   http://git.samba.org/autobuild.flakey/2013-11-29-1619/samba3.stdout

The source4 build logs are available here:

   http://git.samba.org/autobuild.flakey/2013-11-29-1619/samba.stderr
   http://git.samba.org/autobuild.flakey/2013-11-29-1619/samba.stdout
  
The top commit at the time of the failure was:

commit f62683956a3b182f6a61cc7a2b4ada2e74cde243
Author: Noel Power noel.po...@suse.com
Date:   Wed Oct 16 16:30:55 2013 +0100

fail authentication for single group name which cannot be converted to sid

furthermore if more than one name is supplied and no sid is converted
then also fail.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=8598

Signed-off-by: Noel Power noel.po...@suse.com
Reviewed-by: Andreas Schneider a...@samba.org
Reviewed-by: David Disseldorp dd...@samba.org

Autobuild-User(master): David Disseldorp dd...@samba.org
Autobuild-Date(master): Fri Nov 29 15:45:11 CET 2013 on sn-devel-104


[SCM] Samba Shared Repository - branch master updated

2013-11-29 Thread Amitay Isaacs
The branch, master has been updated
   via  bdb818d s4-rpc: dnsserver: Ignore duplicate dns zones from multiple 
locations
   via  97dd673 s4-dns: Ignore duplicate dns zones from multiple locations 
in dlz_bind9
   via  8e7f8a2 netcmd/dns: Catch wildcard patterns when querying for name
  from  f626839 fail authentication for single group name which cannot be 
converted to sid

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit bdb818d9b49f1a99e81f940acbe35d82571ae30c
Author: Amitay Isaacs ami...@gmail.com
Date:   Fri Oct 4 16:10:31 2013 +1000

s4-rpc: dnsserver: Ignore duplicate dns zones from multiple locations

Signed-off-by: Amitay Isaacs ami...@gmail.com
Reviewed-by: Kai Blin k...@samba.org

Autobuild-User(master): Amitay Isaacs ami...@samba.org
Autobuild-Date(master): Sat Nov 30 06:15:52 CET 2013 on sn-devel-104

commit 97dd67315784b5c7126372a1fea6f9ceb2e102d8
Author: Amitay Isaacs ami...@gmail.com
Date:   Wed Oct 2 17:28:45 2013 +1000

s4-dns: Ignore duplicate dns zones from multiple locations in dlz_bind9

BIND DLZ module currently loads DNS zones from DNS partitions and domain
partitions using following prefixes:

   CN=MicrosoftDNS,DC=DomainDnsZones
   CN=MicrosoftDNS,DC=ForestDNSZones
   CN=MicrosoftDNS,CN=System

Windows supports DNS zones duplicated in DNS partitions and domain
partition and updates both of them simultaneously.

BIND DLZ module can handle DNS zones stored either in DNS partitions
or domain partition, but not both.  This patch ignores duplicate zones
from domain partition and allows BIND9 to work with AD with duplicate
DNS zones.

Signed-off-by: Amitay Isaacs ami...@gmail.com
Reviewed-by: Kai Blin k...@samba.org

commit 8e7f8a2ab165ed0ab5c46e0131364fa91c309164
Author: Amitay Isaacs ami...@gmail.com
Date:   Fri Aug 2 18:53:56 2013 +1000

netcmd/dns: Catch wildcard patterns when querying for name

DNS query should either be '@' to represent entire zone or a fixed string
and not wildcard search pattern.

Signed-off-by: Amitay Isaacs ami...@gmail.com
Reviewed-by: Kai Blin k...@samba.org

---

Summary of changes:
 python/samba/netcmd/dns.py  |3 +
 source4/dns_server/dlz_bind9.c  |   55 +++
 source4/rpc_server/dnsserver/dcerpc_dnsserver.c |   18 +---
 3 files changed, 70 insertions(+), 6 deletions(-)


Changeset truncated at 500 lines:

diff --git a/python/samba/netcmd/dns.py b/python/samba/netcmd/dns.py
index 137cd98..de0c94d 100644
--- a/python/samba/netcmd/dns.py
+++ b/python/samba/netcmd/dns.py
@@ -955,6 +955,9 @@ class cmd_query(Command):
 versionopts=None):
 record_type = dns_type_flag(rtype)
 
+if name.find('*') != -1:
+raise CommandError('Wildcard searches not supported. To dump 
entire zone use @')
+
 select_flags = 0
 if authority:
 select_flags |= dnsserver.DNS_RPC_VIEW_AUTHORITY_DATA
diff --git a/source4/dns_server/dlz_bind9.c b/source4/dns_server/dlz_bind9.c
index ac41dd0..ea00cfd 100644
--- a/source4/dns_server/dlz_bind9.c
+++ b/source4/dns_server/dlz_bind9.c
@@ -36,6 +36,7 @@
 #include gen_ndr/server_id.h
 #include messaging/messaging.h
 #include lib/cmdline/popt_common.h
+#include lib/util/dlinklist.h
 #include dlz_minimal.h
 
 
@@ -44,6 +45,11 @@ struct b9_options {
const char *debug;
 };
 
+struct b9_zone {
+   char *name;
+   struct b9_zone *prev, *next;
+};
+
 struct dlz_bind9_data {
struct b9_options options;
struct ldb_context *samdb;
@@ -51,6 +57,7 @@ struct dlz_bind9_data {
struct loadparm_context *lp;
int *transaction_token;
uint32_t soa_serial;
+   struct b9_zone *zonelist;
 
/* Used for dynamic update */
struct smb_krb5_context *smb_krb5_ctx;
@@ -1099,6 +1106,42 @@ static bool b9_has_soa(struct dlz_bind9_data *state, 
struct ldb_dn *dn, const ch
return false;
 }
 
+static bool b9_zone_add(struct dlz_bind9_data *state, const char *name)
+{
+   struct b9_zone *zone;
+
+   zone = talloc_zero(state, struct b9_zone);
+   if (zone == NULL) {
+   return false;
+   }
+
+   zone-name = talloc_strdup(zone, name);
+   if (zone-name == NULL) {
+   talloc_free(zone);
+   return false;
+   }
+
+   DLIST_ADD(state-zonelist, zone);
+   return true;
+}
+
+static bool b9_zone_exists(struct dlz_bind9_data *state, const char *name)
+{
+   struct b9_zone *zone = state-zonelist;
+   bool found = false;
+
+   while (zone != NULL) {
+   if (strcasecmp(name, zone-name) == 0) {
+   found = true;
+   break;
+   }
+