s3-winbindd: another attempt to fix the non-ldap build.
authorGünther Deschner <gd@samba.org>
Tue, 21 Sep 2010 07:18:27 +0000 (00:18 -0700)
committerGünther Deschner <gd@samba.org>
Tue, 21 Sep 2010 07:20:00 +0000 (00:20 -0700)
Guenther

source3/winbindd/winbindd_cache.c
source3/winbindd/winbindd_proto.h

index c2ce0a27135a92950e2989a4b6ff59e25175b005..f7ab726e4995680426422a7396dd9f3170b21ea3 100644 (file)
@@ -4550,6 +4550,8 @@ static void wcache_save_user_pwinfo(struct winbindd_domain *domain,
        centry_free(centry);
 }
 
+#ifdef HAVE_ADS
+
 NTSTATUS nss_get_info_cached( struct winbindd_domain *domain, 
                              const struct dom_sid *user_sid,
                              TALLOC_CTX *ctx,
@@ -4609,6 +4611,7 @@ do_query:
        return nt_status;       
 }
 
+#endif
 
 /* the cache backend methods are exposed via this structure */
 struct winbindd_methods cache_methods = {
index f43c08f4171d430ca9f3d3d8412c73360747cf5c..fa3cc1083407e3efae260950da3e82db65b39ab6 100644 (file)
@@ -152,6 +152,7 @@ bool wcache_tdc_fetch_list( struct winbindd_tdc_domain **domains, size_t *num_do
 bool wcache_tdc_add_domain( struct winbindd_domain *domain );
 struct winbindd_tdc_domain * wcache_tdc_fetch_domain( TALLOC_CTX *ctx, const char *name );
 void wcache_tdc_clear( void );
+#ifdef HAVE_ADS
 struct ads_struct;
 NTSTATUS nss_get_info_cached( struct winbindd_domain *domain, 
                              const struct dom_sid *user_sid,
@@ -159,6 +160,7 @@ NTSTATUS nss_get_info_cached( struct winbindd_domain *domain,
                              struct ads_struct *ads, LDAPMessage *msg,
                              const char **homedir, const char **shell,
                              const char **gecos, gid_t *p_gid);
+#endif
 bool wcache_store_seqnum(const char *domain_name, uint32_t seqnum,
                         time_t last_seq_check);
 bool wcache_fetch_ndr(TALLOC_CTX *mem_ctx, struct winbindd_domain *domain,