summaryrefslogtreecommitdiff
path: root/source3/winbindd/idmap_hash
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-12-01 04:17:55 +0100
committerMichael Adam <obnox@samba.org>2008-12-01 04:37:20 +0100
commit757a1f5132747807f7870097fab358b150f2790b (patch)
tree56fff2f24e619f85afa6dc7f291f507593d5ddd0 /source3/winbindd/idmap_hash
parent8340d100f6048776f6fd87704a10e7c103714ae7 (diff)
downloadsamba-757a1f5132747807f7870097fab358b150f2790b.tar.gz
samba-757a1f5132747807f7870097fab358b150f2790b.tar.bz2
samba-757a1f5132747807f7870097fab358b150f2790b.zip
s3:winbindd/nss_info: change nss_map_{to|from}_alias to take nss_domain_entry
instead of just the domain name Michael
Diffstat (limited to 'source3/winbindd/idmap_hash')
-rw-r--r--source3/winbindd/idmap_hash/idmap_hash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/winbindd/idmap_hash/idmap_hash.c b/source3/winbindd/idmap_hash/idmap_hash.c
index a050f99bc8..7dd94aede0 100644
--- a/source3/winbindd/idmap_hash/idmap_hash.c
+++ b/source3/winbindd/idmap_hash/idmap_hash.c
@@ -304,14 +304,14 @@ done:
*********************************************************************/
static NTSTATUS nss_hash_map_to_alias(TALLOC_CTX *mem_ctx,
- const char *domain,
+ struct nss_domain_entry *e,
const char *name,
char **alias)
{
NTSTATUS nt_status = NT_STATUS_UNSUCCESSFUL;
const char *value;
- value = talloc_asprintf(mem_ctx, "%s\\%s", domain, name);
+ value = talloc_asprintf(mem_ctx, "%s\\%s", e->domain, name);
BAIL_ON_PTR_NT_ERROR(value, nt_status);
nt_status = mapfile_lookup_key(mem_ctx, value, alias);
@@ -325,7 +325,7 @@ done:
*********************************************************************/
static NTSTATUS nss_hash_map_from_alias(TALLOC_CTX *mem_ctx,
- const char *domain,
+ struct nss_domain_entry *e,
const char *alias,
char **name)
{