s4-param: Remove unused "idmap trusted only"
authorAndrew Bartlett <abartlet@samba.org>
Thu, 19 Jul 2012 01:56:59 +0000 (11:56 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 19 Jul 2012 06:02:32 +0000 (08:02 +0200)
When we revamp the idmap layer, we will end up just following the s3
options, and this option is not used there either.

Andrew Bartlett

Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

lib/param/loadparm.c
source4/winbind/idmap.c

index 6f66d0b1c800c8dbceb975dad502bcc212a2184e..f6156bd0e0207cb8c31590beac364d31c08c3857 100644 (file)
@@ -1247,16 +1247,6 @@ static struct parm_struct parm_table[] = {
                .enum_list      = NULL,
                .flags          = FLAG_ADVANCED,
        },
-       {
-               .label          = "idmap trusted only",
-               .type           = P_BOOL,
-               .p_class        = P_GLOBAL,
-               .offset         = GLOBAL_VAR(bIdmapTrustedOnly),
-               .special        = NULL,
-               .enum_list      = NULL,
-               .flags          = FLAG_ADVANCED,
-       },
-
        {
                .label          = "ntp signd socket directory",
                .type           = P_STRING,
@@ -1533,7 +1523,6 @@ static struct loadparm_context *global_loadparm_context;
 #include "lib/param/param_functions.c"
 
 /* These functions remain only in lib/param for now */
-FN_GLOBAL_BOOL(idmap_trusted_only, bIdmapTrustedOnly)
 FN_GLOBAL_BOOL(readraw, bReadRaw)
 FN_GLOBAL_BOOL(unicode, bUnicode)
 FN_GLOBAL_BOOL(writeraw, bWriteRaw)
@@ -3396,7 +3385,6 @@ struct loadparm_context *loadparm_init(TALLOC_CTX *mem_ctx)
 #endif
        lpcfg_do_global_parameter(lp_ctx, "template shell", "/bin/false");
        lpcfg_do_global_parameter(lp_ctx, "template homedir", "/home/%WORKGROUP%/%ACCOUNTNAME%");
-       lpcfg_do_global_parameter(lp_ctx, "idmap trusted only", "False");
 
        lpcfg_do_global_parameter(lp_ctx, "client signing", "default");
        lpcfg_do_global_parameter(lp_ctx, "server signing", "default");
index 354507ca6fe1e7afa7288bfd5d36ab4ccc38e5a4..b4aa62e2378d20e374801b246b0665c36c545d0a 100644 (file)
@@ -368,9 +368,6 @@ failed:
  *
  * If no mapping exists, a new mapping will be created.
  *
- * \todo Check if SIDs can be resolved if lpcfg_idmap_trusted_only() == true
- * \todo Fix backwards compatibility for Samba3
- *
  * \param idmap_ctx idmap context to use
  * \param mem_ctx talloc context to use
  * \param sid SID to map to an unixid struct
@@ -549,9 +546,6 @@ static NTSTATUS idmap_sid_to_xid(struct idmap_context *idmap_ctx,
                goto failed;
        }
 
-       /*FIXME: if lpcfg_idmap_trusted_only() == true, check if SID can be
-        * resolved here. */
-
        ret = idmap_get_bounds(idmap_ctx, &low, &high);
        if (ret != LDB_SUCCESS) {
                status = NT_STATUS_NONE_MAPPED;