diff options
author | Andrew Bartlett <abartlet@samba.org> | 2005-09-02 03:27:13 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:36:24 -0500 |
commit | cf5ea5630083fdf1d55f56fad9ed84d3e5bdba20 (patch) | |
tree | 4b79259e989fca38e3743ebf7f39c492e65c083e /source4 | |
parent | b3c0dacd20c1d8002b02eceb21036dc74a684d36 (diff) | |
download | samba-cf5ea5630083fdf1d55f56fad9ed84d3e5bdba20.tar.gz samba-cf5ea5630083fdf1d55f56fad9ed84d3e5bdba20.tar.bz2 samba-cf5ea5630083fdf1d55f56fad9ed84d3e5bdba20.zip |
r9942: CN=Configuration is always under the database-wide base dn, so don't
try and pass it down as a parameter.
Andrew Bartlett
(This used to be commit 530d91de7ca4d3763326bc9f5b0e79e77b823778)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/rpc_server/drsuapi/drsuapi_cracknames.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source4/rpc_server/drsuapi/drsuapi_cracknames.c b/source4/rpc_server/drsuapi/drsuapi_cracknames.c index 35955a71b2..c88f7a5261 100644 --- a/source4/rpc_server/drsuapi/drsuapi_cracknames.c +++ b/source4/rpc_server/drsuapi/drsuapi_cracknames.c @@ -43,7 +43,6 @@ static WERROR DsCrackNameOneName(struct drsuapi_bind_state *b_state, TALLOC_CTX static enum drsuapi_DsNameStatus LDB_lookup_spn_alias(krb5_context context, struct ldb_context *ldb_ctx, TALLOC_CTX *mem_ctx, - const struct ldb_dn *base_dn, const char *alias_from, char **alias_to) { @@ -51,7 +50,7 @@ static enum drsuapi_DsNameStatus LDB_lookup_spn_alias(krb5_context context, stru int count; struct ldb_message **msg; struct ldb_message_element *spnmappings; - struct ldb_dn *service_dn = ldb_dn_string_compose(mem_ctx, base_dn, + struct ldb_dn *service_dn = ldb_dn_string_compose(mem_ctx, samdb_base_dn(mem_ctx), "CN=Directory Service,CN=Windows NT" ",CN=Services,CN=Configuration"); char *service_dn_str = ldb_dn_linearize(mem_ctx, service_dn); @@ -117,7 +116,6 @@ static enum drsuapi_DsNameStatus LDB_lookup_spn_alias(krb5_context context, stru static WERROR DsCrackNameSPNAlias(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, - const struct ldb_dn *result_basedn, const char *name, struct drsuapi_DsNameInfo1 *info1) { WERROR wret; @@ -149,7 +147,6 @@ static WERROR DsCrackNameSPNAlias(struct drsuapi_bind_state *b_state, TALLOC_CTX /* MAP it */ namestatus = LDB_lookup_spn_alias(smb_krb5_context->krb5_context, b_state->sam_ctx, mem_ctx, - result_basedn, service, &new_service); if (namestatus != DRSUAPI_DS_NAME_STATUS_OK) { @@ -530,7 +527,7 @@ static WERROR DsCrackNameOneFilter(struct drsuapi_bind_state *b_state, TALLOC_CT return DsCrackNameSPNAlias(b_state, mem_ctx, smb_krb5_context, format_flags, format_offered, format_desired, - result_basedn, name, info1); + name, info1); case DRSUAPI_DS_NAME_FORMAT_USER_PRINCIPAL: return DsCrackNameUPN(b_state, mem_ctx, smb_krb5_context, |