summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-07-19 11:56:59 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-07-19 08:02:32 +0200
commit8822b3b6628e82ce85cb20d2bbbe2d0664b9aa8f (patch)
treebe3f1f99b0aa037b240c7f86fd74a3ef31d0aa54
parentd2ae8179eac88df49dfa0339dc41f0cb70e06fc0 (diff)
downloadsamba-8822b3b6628e82ce85cb20d2bbbe2d0664b9aa8f.tar.gz
samba-8822b3b6628e82ce85cb20d2bbbe2d0664b9aa8f.tar.bz2
samba-8822b3b6628e82ce85cb20d2bbbe2d0664b9aa8f.zip
s4-param: Remove unused "idmap trusted only"
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>
-rw-r--r--lib/param/loadparm.c12
-rw-r--r--source4/winbind/idmap.c6
2 files changed, 0 insertions, 18 deletions
diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c
index 6f66d0b1c8..f6156bd0e0 100644
--- a/lib/param/loadparm.c
+++ b/lib/param/loadparm.c
@@ -1248,16 +1248,6 @@ static struct parm_struct parm_table[] = {
.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,
.p_class = P_GLOBAL,
@@ -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");
diff --git a/source4/winbind/idmap.c b/source4/winbind/idmap.c
index 354507ca6f..b4aa62e237 100644
--- a/source4/winbind/idmap.c
+++ b/source4/winbind/idmap.c
@@ -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;