s4-provision: Fix the problem of DnsProperty values not being set correctly
authorAmitay Isaacs <amitay@gmail.com>
Tue, 3 Jan 2012 02:51:00 +0000 (13:51 +1100)
committerAmitay Isaacs <amitay@samba.org>
Tue, 3 Jan 2012 04:26:32 +0000 (05:26 +0100)
commit90f06d69f02072d7b76fe2fa80963d6bf82c2bae
tree64eeb0623d6a8235f2b90807cabbf191ce65c4e0
parent4fd1220f9ab3e205620256a9c085bfc8de3ddc63
s4-provision: Fix the problem of DnsProperty values not being set correctly

DnsProperty can have empty 'data' member. To parse Dnsproperty with
empty data, dnsp.idl has a hack as follows:

  [switch_is(wDataLength?id:DSPROPERTY_ZONE_EMPTY)] dnsPropertyData data;

This implies, to set 'data' value, wDataLength has to be set to a non-zero
value first.

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Tue Jan  3 05:26:32 CET 2012 on sn-devel-104
source4/scripting/python/samba/provision/sambadns.py