diff options
author | James Peach <jpeach@samba.org> | 2006-01-31 22:41:53 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:51:40 -0500 |
commit | 5113bb843842b2d605f4af8c0b43fef9875b6bc1 (patch) | |
tree | 62de851bcf62c0180e99c57cbbee34ea7f5fbc50 /source4/dsdb | |
parent | ad01edb37bdf7e1087eb18ed903b37dbc0241af1 (diff) | |
download | samba-5113bb843842b2d605f4af8c0b43fef9875b6bc1.tar.gz samba-5113bb843842b2d605f4af8c0b43fef9875b6bc1.tar.bz2 samba-5113bb843842b2d605f4af8c0b43fef9875b6bc1.zip |
r13264: Move declaration before code.
(This used to be commit 6e55241a843f80cc513d06266b54b38ce48c51ed)
Diffstat (limited to 'source4/dsdb')
-rw-r--r-- | source4/dsdb/samdb/cracknames.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/source4/dsdb/samdb/cracknames.c b/source4/dsdb/samdb/cracknames.c index 06ba532d40..8cc95e503c 100644 --- a/source4/dsdb/samdb/cracknames.c +++ b/source4/dsdb/samdb/cracknames.c @@ -55,7 +55,12 @@ static enum drsuapi_DsNameStatus LDB_lookup_spn_alias(krb5_context context, stru TALLOC_CTX *tmp_ctx; struct ldb_dn *service_dn; char *service_dn_str; - + + const char *directory_attrs[] = { + "sPNMappings", + NULL + }; + tmp_ctx = talloc_new(mem_ctx); if (!tmp_ctx) { return DRSUAPI_DS_NAME_STATUS_RESOLVE_ERROR; @@ -65,10 +70,6 @@ static enum drsuapi_DsNameStatus LDB_lookup_spn_alias(krb5_context context, stru "CN=Directory Service,CN=Windows NT" ",CN=Services,CN=Configuration"); service_dn_str = ldb_dn_linearize(tmp_ctx, service_dn); - const char *directory_attrs[] = { - "sPNMappings", - NULL - }; ret = ldb_search(ldb_ctx, service_dn, LDB_SCOPE_BASE, "(objectClass=nTDSService)", directory_attrs, &res); |