summaryrefslogtreecommitdiffstats
path: root/source4/rpc_server/drsuapi
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-10-07 11:37:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:39:32 -0500
commitdddaa5204e9742837c7eb91c5e0ea08939df672f (patch)
tree303394270f5eb58439acdba81ca78259157fb663 /source4/rpc_server/drsuapi
parent1377cca5f4beb43cf67fcc65eed79f14178d6349 (diff)
downloadsamba-dddaa5204e9742837c7eb91c5e0ea08939df672f.tar.gz
samba-dddaa5204e9742837c7eb91c5e0ea08939df672f.tar.xz
samba-dddaa5204e9742837c7eb91c5e0ea08939df672f.zip
r10811: Revert accidental commit, I still need to finish the displayName and
syntatical mapping work. Andrew Bartlett (This used to be commit 7ec5084f63148d748b6bc87d6817363b079eebe1)
Diffstat (limited to 'source4/rpc_server/drsuapi')
-rw-r--r--source4/rpc_server/drsuapi/drsuapi_cracknames.c55
1 files changed, 0 insertions, 55 deletions
diff --git a/source4/rpc_server/drsuapi/drsuapi_cracknames.c b/source4/rpc_server/drsuapi/drsuapi_cracknames.c
index fae84484ee0..866faf49b94 100644
--- a/source4/rpc_server/drsuapi/drsuapi_cracknames.c
+++ b/source4/rpc_server/drsuapi/drsuapi_cracknames.c
@@ -41,11 +41,6 @@ static WERROR DsCrackNameOneName(struct drsuapi_bind_state *b_state, TALLOC_CTX
uint32_t format_flags, uint32_t format_offered, uint32_t format_desired,
const char *name, struct drsuapi_DsNameInfo1 *info1);
-static WERROR DsCrackNameOneSyntactical(TALLOC_CTX *mem_ctx,
- uint32_t format_offered, uint32_t format_desired,
- const struct ldb_dn *name_dn, const char *name,
- struct drsuapi_DsNameInfo1 *info1);
-
static enum drsuapi_DsNameStatus LDB_lookup_spn_alias(krb5_context context, struct ldb_context *ldb_ctx,
TALLOC_CTX *mem_ctx,
const char *alias_from,
@@ -354,14 +349,6 @@ static WERROR DsCrackNameOneName(struct drsuapi_bind_state *b_state, TALLOC_CTX
WERR_TALLOC_CHECK(result_filter);
break;
}
- case DRSUAPI_DS_NAME_FORMAT_DISPLAY: {
- domain_filter = NULL;
-
- result_filter = talloc_asprintf(mem_ctx, "(|(displayName=%s)(samAccountName=%s))",
- name, name);
- WERR_TALLOC_CHECK(result_filter);
- break;
- }
case DRSUAPI_DS_NAME_FORMAT_SID_OR_SID_HISTORY: {
struct dom_sid *sid = dom_sid_parse_talloc(mem_ctx, name);
@@ -437,11 +424,6 @@ static WERROR DsCrackNameOneName(struct drsuapi_bind_state *b_state, TALLOC_CTX
}
}
-
- if (format_flags & DRSUAPI_DS_NAME_FLAG_SYNTACTICAL_ONLY) {
- return DsCrackNameOneSyntactical(mem_ctx, format_offered, format_desired,
- name_dn, name, info1);
- }
return DsCrackNameOneFilter(b_state, mem_ctx,
smb_krb5_context,
@@ -451,32 +433,6 @@ static WERROR DsCrackNameOneName(struct drsuapi_bind_state *b_state, TALLOC_CTX
info1);
}
-static WERROR DsCrackNameOneSyntactical(TALLOC_CTX *mem_ctx,
- uint32_t format_offered, uint32_t format_desired,
- const struct ldb_dn *name_dn, const char *name,
- struct drsuapi_DsNameInfo1 *info1)
-{
- if (format_offered != DRSUAPI_DS_NAME_FORMAT_FQDN_1779) {
- info1->status = DRSUAPI_DS_NAME_STATUS_NO_SYNTACTICAL_MAPPING;
- return WERR_OK;
- }
-
- switch (format_desired) {
- case DRSUAPI_DS_NAME_FORMAT_CANONICAL:
- break;
- case DRSUAPI_DS_NAME_FORMAT_CANONICAL_EX:
- break;
- default:
- info1->status = DRSUAPI_DS_NAME_STATUS_NO_SYNTACTICAL_MAPPING;
- return WERR_OK;
- }
-
-
-
- return WERR_OK;
-
-}
-
static WERROR DsCrackNameOneFilter(struct drsuapi_bind_state *b_state, TALLOC_CTX *mem_ctx,
struct smb_krb5_context *smb_krb5_context,
uint32_t format_flags, uint32_t format_offered, uint32_t format_desired,
@@ -660,17 +616,6 @@ static WERROR DsCrackNameOneFilter(struct drsuapi_bind_state *b_state, TALLOC_CT
info1->status = DRSUAPI_DS_NAME_STATUS_OK;
return WERR_OK;
}
- case DRSUAPI_DS_NAME_FORMAT_DISPLAY: {
- info1->result_name = samdb_result_string(result_res[0], "displayName", NULL);
- if (!info1->result_name) {
- info1->result_name = samdb_result_string(result_res[0], "sAMAccountName", NULL);
- }
- if (!info1->result_name) {
- info1->status = DRSUAPI_DS_NAME_STATUS_NOT_FOUND;
- } else {
- info1->status = DRSUAPI_DS_NAME_STATUS_OK;
- }
- }
default:
return WERR_OK;
}