#include <time.h>
#include <netdb.h>
-#ifdef HAVE_UUID_UUID_H
-#include <uuid/uuid.h>
-#endif
-
#include <talloc.h>
/*******************************************************************
License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
+#include "includes.h"
+#include "librpc/ndr/libndr.h"
+#include "librpc/gen_ndr/ndr_misc.h"
+
#include "dns.h"
#include <ctype.h>
-#ifdef HAVE_SYS_UUID_H
-#include <sys/uuid.h>
-#endif
static DNS_ERROR LabelList( TALLOC_CTX *mem_ctx,
const char *name,
char *result = NULL;
#if defined(WITH_DNS_UPDATES)
- uuid_t uuid;
-
- /*
- * uuid_unparse gives 36 bytes plus '\0'
- */
- if (!(result = talloc_array(mem_ctx, char, 37))) {
- return NULL;
- }
+ struct GUID guid;
- uuid_generate( uuid );
- uuid_unparse( uuid, result );
+ guid = GUID_random();
+ result = GUID_string(mem_ctx, &guid);
#endif
import Options
def configure(conf):
- conf.CHECK_HEADERS('sys/uuid.h')
+ pass
+ #conf.CHECK_HEADERS('sys/uuid.h')
bld.SAMBA_LIBRARY('addns',
source='dnsquery.c dnsrecord.c dnsutils.c dnssock.c dnsgss.c dnsmarshall.c error.c',
- public_deps='dnshostsfile samba-util gssapi uuid resolv',
+ public_deps='dnshostsfile samba-util gssapi ndr resolv',
private_library=True,
vars=locals())
mandatory=True,
msg="Checking whether setuidx is available")
if Options.options.with_dnsupdate:
- conf.CHECK_HEADERS('uuid/uuid.h')
- conf.CHECK_FUNCS_IN('uuid_generate', 'uuid')
- if not conf.CONFIG_SET('HAVE_UUID_UUID_H') and not conf.CONFIG_SET('HAVE_UUID_GENERATE'):
- Logs.warn("--with-dnsupdate=yes but uuid support not sufficient")
- elif not conf.CONFIG_SET('HAVE_KRB5'):
+ if not conf.CONFIG_SET('HAVE_KRB5'):
Logs.warn("--with-dnsupdate=yes but gssapi support not sufficient")
else:
conf.DEFINE('WITH_DNS_UPDATES', 1)