remove unused WINBINDD_INIT_CONNECTION support
authorStefan Metzmacher <metze@sernet.de>
Wed, 12 Sep 2007 12:53:00 +0000 (14:53 +0200)
committerStefan Metzmacher <metze@sernet.de>
Thu, 11 Oct 2007 15:21:48 +0000 (17:21 +0200)
metze

source/winbindd/winbindd_dual.c
source/winbindd/winbindd_util.c

index 0fb81ee..f6b9f5f 100644 (file)
@@ -695,7 +695,6 @@ const struct winbindd_child_dispatch_table domain_dispatch_table[] = {
        { WINBINDD_LOOKUPNAME,           winbindd_dual_lookupname,            "LOOKUPNAME" },
        { WINBINDD_LOOKUPRIDS,           winbindd_dual_lookuprids,            "LOOKUPRIDS" },
        { WINBINDD_LIST_TRUSTDOM,        winbindd_dual_list_trusted_domains,  "LIST_TRUSTDOM" },
-       { WINBINDD_INIT_CONNECTION,      winbindd_dual_init_connection,       "INIT_CONNECTION" },
        { WINBINDD_GETDCNAME,            winbindd_dual_getdcname,             "GETDCNAME" },
        { WINBINDD_SHOW_SEQUENCE,        winbindd_dual_show_sequence,         "SHOW_SEQUENCE" },
        { WINBINDD_PAM_AUTH,             winbindd_dual_pam_auth,              "PAM_AUTH" },
index 3ec1179..d3e51e3 100644 (file)
@@ -672,46 +672,6 @@ failed:
        TALLOC_FREE(s);
 }
 
-enum winbindd_result winbindd_dual_init_connection(struct winbindd_domain *domain,
-                                                  struct winbindd_cli_state *state)
-{
-       /* Ensure null termination */
-       state->request.domain_name
-               [sizeof(state->request.domain_name)-1]='\0';
-       state->request.data.init_conn.dcname
-               [sizeof(state->request.data.init_conn.dcname)-1]='\0';
-
-       if (strlen(state->request.data.init_conn.dcname) > 0) {
-               fstrcpy(domain->dcname, state->request.data.init_conn.dcname);
-       }
-
-       init_dc_connection(domain);
-
-       if (!domain->initialized) {
-               /* If we return error here we can't do any cached authentication,
-                  but we may be in disconnected mode and can't initialize correctly.
-                  Do what the previous code did and just return without initialization,
-                  once we go online we'll re-initialize.
-               */
-               DEBUG(5, ("winbindd_dual_init_connection: %s returning without initialization "
-                       "online = %d\n", domain->name, (int)domain->online ));
-       }
-
-       fstrcpy(state->response.data.domain_info.name, domain->name);
-       fstrcpy(state->response.data.domain_info.alt_name, domain->alt_name);
-       fstrcpy(state->response.data.domain_info.sid,
-               sid_string_static(&domain->sid));
-       
-       state->response.data.domain_info.native_mode
-               = domain->native_mode;
-       state->response.data.domain_info.active_directory
-               = domain->active_directory;
-       state->response.data.domain_info.primary
-               = domain->primary;
-
-       return WINBINDD_OK;
-}
-
 void winbindd_ndr_child_get_domain_info(struct winbindd_domain *domain,
                                        struct winbindd_cli_state *state)
 {