s3-winbind: Remove unused bool "local"
[obnox/samba/samba-obnox.git] / source3 / winbindd / idmap_ad.c
index 65b518074b5f970773a4692b1eafd8d353f1cc70..bfe7d4b91b5d19c956281cdeb40521520866d3d2 100644 (file)
@@ -56,8 +56,6 @@ struct idmap_ad_context {
        enum wb_posix_mapping ad_map_type; /* WB_POSIX_MAP_UNKNOWN */
 };
 
-NTSTATUS init_module(void);
-
 /************************************************************************
  ***********************************************************************/
 
@@ -65,7 +63,6 @@ static ADS_STATUS ad_idmap_cached_connection_internal(struct idmap_domain *dom)
 {
        ADS_STRUCT *ads;
        ADS_STATUS status;
-       bool local = False;
        fstring dc_name;
        struct sockaddr_storage dc_ip;
        struct idmap_ad_context *ctx;
@@ -103,10 +100,8 @@ static ADS_STATUS ad_idmap_cached_connection_internal(struct idmap_domain *dom)
                }
        }
 
-       if (!local) {
-               /* we don't want this to affect the users ccache */
-               setenv("KRB5CCNAME", WINBIND_CCACHE_NAME, 1);
-       }
+       /* we don't want this to affect the users ccache */
+       setenv("KRB5CCNAME", WINBIND_CCACHE_NAME, 1);
 
        /*
         * At this point we only have the NetBIOS domain name.
@@ -1096,7 +1091,7 @@ static struct nss_info_methods nss_sfu20_methods = {
  Initialize the plugins
  ***********************************************************************/
 
-NTSTATUS idmap_ad_init(void)
+NTSTATUS samba_init_module(void)
 {
        static NTSTATUS status_idmap_ad = NT_STATUS_UNSUCCESSFUL;
        static NTSTATUS status_nss_rfc2307 = NT_STATUS_UNSUCCESSFUL;