s3: Remove some unused code
authorVolker Lendecke <vl@samba.org>
Fri, 19 Nov 2010 09:35:04 +0000 (10:35 +0100)
committerVolker Lendecke <vlendec@samba.org>
Fri, 19 Nov 2010 10:21:00 +0000 (11:21 +0100)
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Nov 19 11:21:00 CET 2010 on sn-devel-104

source3/winbindd/winbindd_proto.h
source3/winbindd/winbindd_util.c

index dc56a72152e7a9bdeefe62af3474081389038ecc..9ddfe874803ccb60bce0c6c955e293e62be718ec 100644 (file)
@@ -369,7 +369,6 @@ void rescan_trusted_domains(struct tevent_context *ev, struct tevent_timer *te,
 enum winbindd_result winbindd_dual_init_connection(struct winbindd_domain *domain,
                                                   struct winbindd_cli_state *state);
 bool init_domain_list(void);
-void check_domain_trusted( const char *name, const struct dom_sid *user_sid );
 struct winbindd_domain *find_domain_from_name_noinit(const char *domain_name);
 struct winbindd_domain *find_domain_from_name(const char *domain_name);
 struct winbindd_domain *find_domain_from_sid_noinit(const struct dom_sid *sid);
index afdce47d2d37aecab45f9aaec0f6df274949c358..e27c35fe60828cf285ffa18dd4aaa79f6842f753 100644 (file)
@@ -643,49 +643,6 @@ bool init_domain_list(void)
        return True;
 }
 
-void check_domain_trusted( const char *name, const struct dom_sid *user_sid )
-{
-       struct winbindd_domain *domain;
-       struct dom_sid dom_sid;
-       uint32 rid;
-
-       /* Check if we even care */
-
-       if (!lp_allow_trusted_domains())
-               return;
-
-       domain = find_domain_from_name_noinit( name );
-       if ( domain )
-               return;
-
-       sid_copy( &dom_sid, user_sid );
-       if ( !sid_split_rid( &dom_sid, &rid ) )
-               return;
-
-       /* add the newly discovered trusted domain */
-
-       domain = add_trusted_domain( name, NULL, &cache_methods,
-                                    &dom_sid);
-
-       if ( !domain )
-               return;
-
-       /* assume this is a trust from a one-way transitive
-          forest trust */
-
-       domain->active_directory = True;
-       domain->domain_flags = NETR_TRUST_FLAG_OUTBOUND;
-       domain->domain_type  = NETR_TRUST_TYPE_UPLEVEL;
-       domain->internal = False;
-       domain->online = True;
-
-       setup_domain_child(domain);
-
-       wcache_tdc_add_domain( domain );
-
-       return;
-}
-
 /**
  * Given a domain name, return the struct winbindd domain info for it
  *