diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-04-13 08:41:10 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-04-13 08:55:15 +0200 |
commit | ad9e4073574125b01b3992081be9b2a4d6852cbf (patch) | |
tree | 4bde84e3f1962d64200366a1ddb3d7bcef6e42c8 /source4/dsdb/samdb/cracknames.c | |
parent | 8e4c34880a11b2b8a7b5fbb228c26301865a4b4d (diff) | |
download | samba-ad9e4073574125b01b3992081be9b2a4d6852cbf.tar.gz samba-ad9e4073574125b01b3992081be9b2a4d6852cbf.tar.bz2 samba-ad9e4073574125b01b3992081be9b2a4d6852cbf.zip |
Revert "s4:prefer "samdb_*_dn" basedn calls over the "ldb_get_*_dn" functions"
We should use the "ldb_get_*_basedn" calls since they are available in the LDB
library.
Diffstat (limited to 'source4/dsdb/samdb/cracknames.c')
-rw-r--r-- | source4/dsdb/samdb/cracknames.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/cracknames.c b/source4/dsdb/samdb/cracknames.c index bce00bdb9d..5a807f8431 100644 --- a/source4/dsdb/samdb/cracknames.c +++ b/source4/dsdb/samdb/cracknames.c @@ -99,7 +99,7 @@ static enum drsuapi_DsNameStatus LDB_lookup_spn_alias(krb5_context context, stru } service_dn = ldb_dn_new(tmp_ctx, ldb_ctx, "CN=Directory Service,CN=Windows NT,CN=Services"); - if ( ! ldb_dn_add_base(service_dn, samdb_config_dn(ldb_ctx))) { + if ( ! ldb_dn_add_base(service_dn, ldb_get_config_basedn(ldb_ctx))) { return DRSUAPI_DS_NAME_STATUS_RESOLVE_ERROR; } service_dn_str = ldb_dn_alloc_linearized(tmp_ctx, service_dn); @@ -817,7 +817,7 @@ static WERROR DsCrackNameOneFilter(struct ldb_context *sam_ctx, TALLOC_CTX *mem_ search_dn = samdb_result_dn(sam_ctx, mem_ctx, domain_res->msgs[0], "ncName", NULL); } else { dsdb_flags = DSDB_SEARCH_SEARCH_ALL_PARTITIONS; - search_dn = samdb_root_dn(sam_ctx); + search_dn = ldb_get_root_basedn(sam_ctx); } /* search with the 'phantom root' flag */ |