methods->alternate_name is not used anymore -- remove it
authorvlendec <vlendec@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Sat, 12 Nov 2005 18:22:12 +0000 (18:22 +0000)
committervlendec <vlendec@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Sat, 12 Nov 2005 18:22:12 +0000 (18:22 +0000)
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@11704 0c0555d6-39d7-0310-84fc-f1cc0bd64818

source/nsswitch/winbindd.h
source/nsswitch/winbindd_ads.c
source/nsswitch/winbindd_cache.c
source/nsswitch/winbindd_passdb.c
source/nsswitch/winbindd_reconnect.c
source/nsswitch/winbindd_rpc.c

index 3adf7717d6da3d6fd35c864cc12b9e2bc2e11b42..00a023305590558b02b01365ac2b23f44f97b3fb 100644 (file)
@@ -275,9 +275,6 @@ struct winbindd_methods {
                                    char ***names,
                                    char ***alt_names,
                                    DOM_SID **dom_sids);
-
-       /* setup the list of alternate names for the domain, if any */
-       NTSTATUS (*alternate_name)(struct winbindd_domain *domain);
 };
 
 /* Used to glue a policy handle and cli_state together */
index 32bc641b6a6143e8b21ee2d0a777e61c09ea2f25..ac24b35229cf5ba352f97f099343fe7ea0e547f3 100644 (file)
@@ -933,42 +933,6 @@ static NTSTATUS trusted_domains(struct winbindd_domain *domain,
        return result;
 }
 
-/* find alternate names list for the domain - for ADS this is the
-   netbios name */
-static NTSTATUS alternate_name(struct winbindd_domain *domain)
-{
-       ADS_STRUCT *ads;
-       ADS_STATUS rc;
-       TALLOC_CTX *ctx;
-       const char *workgroup;
-
-       DEBUG(3,("ads: alternate_name\n"));
-
-       ads = ads_cached_connection(domain);
-       
-       if (!ads) {
-               domain->last_status = NT_STATUS_SERVER_DISABLED;
-               return NT_STATUS_UNSUCCESSFUL;
-       }
-
-       if (!(ctx = talloc_init("alternate_name"))) {
-               return NT_STATUS_NO_MEMORY;
-       }
-
-       rc = ads_workgroup_name(ads, ctx, &workgroup);
-
-       if (ADS_ERR_OK(rc)) {
-               fstrcpy(domain->name, workgroup);
-               fstrcpy(domain->alt_name, ads->config.realm);
-               strupper_m(domain->alt_name);
-               strupper_m(domain->name);
-       }
-
-       talloc_destroy(ctx);
-
-       return ads_ntstatus(rc);        
-}
-
 /* the ADS backend methods are exposed via this structure */
 struct winbindd_methods ads_methods = {
        True,
@@ -983,7 +947,6 @@ struct winbindd_methods ads_methods = {
        lookup_groupmem,
        sequence_number,
        trusted_domains,
-       alternate_name
 };
 
 #endif
index 83ded01d4ea90a6923723fdca933328fda60e797..2d03e452ad6993ce1be6972901e34a4f7b7f5142 100644 (file)
@@ -1401,18 +1401,6 @@ static NTSTATUS trusted_domains(struct winbindd_domain *domain,
                                               names, alt_names, dom_sids);
 }
 
-/* find the alternate names for the domain, if any */
-static NTSTATUS alternate_name(struct winbindd_domain *domain)
-{
-       get_cache(domain);
-
-       DEBUG(10,("alternate_name: [Cached] - doing backend query for info for domain %s\n",
-               domain->name ));
-
-       /* we don't cache this call */
-       return domain->backend->alternate_name(domain);
-}
-
 /* Invalidate cached user and group lists coherently */
 
 static int traverse_fn(TDB_CONTEXT *the_tdb, TDB_DATA kbuf, TDB_DATA dbuf, 
@@ -1467,7 +1455,6 @@ struct winbindd_methods cache_methods = {
        lookup_groupmem,
        sequence_number,
        trusted_domains,
-       alternate_name
 };
 
 static BOOL init_wcache(void)
index 238e80f31b16aff3a8802e90f8ba113bf48f134c..c32aa01a38a5d7bb7cb0c9d868c7989fc56dfbba 100644 (file)
@@ -378,17 +378,6 @@ static NTSTATUS trusted_domains(struct winbindd_domain *domain,
        return nt_status;
 }
 
-/* find alternate names list for the domain 
- * should we look for netbios aliases?? 
-                               SSS     */
-static NTSTATUS alternate_name(struct winbindd_domain *domain)
-{
-       DEBUG(3,("pdb: alternate_name\n"));
-
-       return NT_STATUS_OK;
-}
-
-
 /* the rpc backend methods are exposed via this structure */
 struct winbindd_methods passdb_methods = {
        False,
@@ -403,5 +392,4 @@ struct winbindd_methods passdb_methods = {
        lookup_groupmem,
        sequence_number,
        trusted_domains,
-       alternate_name
 };
index 1a90717db317ba9c8125ad918eead00fc8306301..77df9c1513c79bfcb1f3244d3651b1d0d86a6954 100644 (file)
@@ -242,19 +242,6 @@ static NTSTATUS trusted_domains(struct winbindd_domain *domain,
        return result;
 }
 
-static NTSTATUS alternate_name(struct winbindd_domain *domain)
-{
-       NTSTATUS result;
-
-       result = msrpc_methods.alternate_name(domain);
-
-       if (NT_STATUS_EQUAL(result, NT_STATUS_UNSUCCESSFUL))
-               result = msrpc_methods.alternate_name(domain);
-
-       return result;
-}
-
-
 /* the rpc backend methods are exposed via this structure */
 struct winbindd_methods reconnect_methods = {
        False,
@@ -269,5 +256,4 @@ struct winbindd_methods reconnect_methods = {
        lookup_groupmem,
        sequence_number,
        trusted_domains,
-       alternate_name
 };
index 63e24877008d2e8bdfc27acb3f31968d455bbda1..6179189e30904cec6654dc7809f975ef014f668b 100644 (file)
@@ -883,13 +883,6 @@ static NTSTATUS trusted_domains(struct winbindd_domain *domain,
        return result;
 }
 
-/* find alternate names list for the domain - none for rpc */
-static NTSTATUS alternate_name(struct winbindd_domain *domain)
-{
-       return NT_STATUS_OK;
-}
-
-
 /* the rpc backend methods are exposed via this structure */
 struct winbindd_methods msrpc_methods = {
        False,
@@ -904,5 +897,4 @@ struct winbindd_methods msrpc_methods = {
        lookup_groupmem,
        sequence_number,
        trusted_domains,
-       alternate_name
 };