diff options
author | Günther Deschner <gd@samba.org> | 2008-02-29 20:52:35 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-02-29 20:52:35 +0100 |
commit | c5249935d49456c58beac32565402212e98421d4 (patch) | |
tree | 4fff2932154bacb78c6e6ee438e056e5dbb2b131 | |
parent | 72b8392f9c48d87dcd351ec3a24cc6f68516011f (diff) | |
download | samba-c5249935d49456c58beac32565402212e98421d4.tar.gz samba-c5249935d49456c58beac32565402212e98421d4.tar.bz2 samba-c5249935d49456c58beac32565402212e98421d4.zip |
Fix the build w/o ldap.
Guenther
(This used to be commit 5f592d030b7e94331a634e0d625aefc60cfb1f70)
-rw-r--r-- | source3/libgpo/gpo_util.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/libgpo/gpo_util.c b/source3/libgpo/gpo_util.c index b9053d0ae5..f2d7c6924a 100644 --- a/source3/libgpo/gpo_util.c +++ b/source3/libgpo/gpo_util.c @@ -1,7 +1,7 @@ /* * Unix SMB/CIFS implementation. * Group Policy Object Support - * Copyright (C) Guenther Deschner 2005-2007 + * Copyright (C) Guenther Deschner 2005-2008 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -762,6 +762,9 @@ ADS_STATUS gp_get_machine_token(ADS_STRUCT *ads, ADS_STATUS status; NTSTATUS ntstatus; +#ifndef HAVE_ADS + return ADS_ERROR_NT(NT_STATUS_NOT_SUPPORTED); +#endif status = ads_get_sid_token(ads, mem_ctx, dn, &ad_token); if (!ADS_ERR_OK(status)) { return status; |