diff options
author | Günther Deschner <gd@samba.org> | 2007-08-20 09:47:13 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:30:07 -0500 |
commit | 18e6f9c6aae5c63596a8d6d96bac1942290513fe (patch) | |
tree | cdf87155aee85e227da0240e60204102d9a743d9 /source3/libgpo/gpo_ldap.c | |
parent | 987d7010f827464191a9f29cdc7a72591c6b806b (diff) | |
download | samba-18e6f9c6aae5c63596a8d6d96bac1942290513fe.tar.gz samba-18e6f9c6aae5c63596a8d6d96bac1942290513fe.tar.bz2 samba-18e6f9c6aae5c63596a8d6d96bac1942290513fe.zip |
r24573: Fix build without LDAP. Thanks Volker for pointing this out.
Guenther
(This used to be commit 1bae53e39f86a9b3b277578a71b906ca1cd0e4fa)
Diffstat (limited to 'source3/libgpo/gpo_ldap.c')
-rw-r--r-- | source3/libgpo/gpo_ldap.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source3/libgpo/gpo_ldap.c b/source3/libgpo/gpo_ldap.c index 856bcd4e68..69587d94a8 100644 --- a/source3/libgpo/gpo_ldap.c +++ b/source3/libgpo/gpo_ldap.c @@ -1,26 +1,24 @@ -/* +/* * Unix SMB/CIFS implementation. * Group Policy Object Support * Copyright (C) Guenther Deschner 2005,2007 - * + * * 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 * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, see <http://www.gnu.org/licenses/>. */ #include "includes.h" -#ifdef HAVE_LDAP - /**************************************************************** parse the raw extension string into a GP_EXT structure ****************************************************************/ @@ -149,6 +147,8 @@ BOOL ads_parse_gp_ext(TALLOC_CTX *mem_ctx, return ret; } +#ifdef HAVE_LDAP + /**************************************************************** parse the raw link string into a GP_LINK structure ****************************************************************/ @@ -158,7 +158,7 @@ static ADS_STATUS gpo_parse_gplink(TALLOC_CTX *mem_ctx, uint32_t options, struct GP_LINK *gp_link) { - ADS_STATUS status = ADS_ERROR(LDAP_NO_MEMORY); + ADS_STATUS status = ADS_ERROR_NT(NT_STATUS_NO_MEMORY); char **link_list; int i; |