diff options
author | Andrew Bartlett <abartlet@samba.org> | 2010-06-01 21:11:14 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-06-07 23:34:28 +1000 |
commit | fc956cfcbb53103ed46a3729364e88536d569dc9 (patch) | |
tree | 12464f914d37587354e7a5f625867cfc9f0b485b /source3/auth/auth_sam.c | |
parent | deabae191b34bdd350c7fe6c0c9ad05defa8d08c (diff) | |
download | samba-fc956cfcbb53103ed46a3729364e88536d569dc9.tar.gz samba-fc956cfcbb53103ed46a3729364e88536d569dc9.tar.bz2 samba-fc956cfcbb53103ed46a3729364e88536d569dc9.zip |
s3:auth Rename user_info->domain -> user_info->mapped.domain_name
This is closer to the structure I want for a common struct
auth_usersupplied_info.
Andrew Bartlett
Diffstat (limited to 'source3/auth/auth_sam.c')
-rw-r--r-- | source3/auth/auth_sam.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/auth/auth_sam.c b/source3/auth/auth_sam.c index 97ffc28fe7..ffbe5b4804 100644 --- a/source3/auth/auth_sam.c +++ b/source3/auth/auth_sam.c @@ -74,8 +74,8 @@ static NTSTATUS auth_samstrict_auth(const struct auth_context *auth_context, DEBUG(10, ("Check auth for: [%s]\n", user_info->mapped.account_name)); - is_local_name = is_myname(user_info->domain); - is_my_domain = strequal(user_info->domain, lp_workgroup()); + is_local_name = is_myname(user_info->mapped.domain_name); + is_my_domain = strequal(user_info->mapped.domain_name, lp_workgroup()); /* check whether or not we service this domain/workgroup name */ @@ -84,7 +84,7 @@ static NTSTATUS auth_samstrict_auth(const struct auth_context *auth_context, case ROLE_DOMAIN_MEMBER: if ( !is_local_name ) { DEBUG(6,("check_samstrict_security: %s is not one of my local names (%s)\n", - user_info->domain, (lp_server_role() == ROLE_DOMAIN_MEMBER + user_info->mapped.domain_name, (lp_server_role() == ROLE_DOMAIN_MEMBER ? "ROLE_DOMAIN_MEMBER" : "ROLE_STANDALONE") )); return NT_STATUS_NOT_IMPLEMENTED; } @@ -92,7 +92,7 @@ static NTSTATUS auth_samstrict_auth(const struct auth_context *auth_context, case ROLE_DOMAIN_BDC: if ( !is_local_name && !is_my_domain ) { DEBUG(6,("check_samstrict_security: %s is not one of my local names or domain name (DC)\n", - user_info->domain)); + user_info->mapped.domain_name)); return NT_STATUS_NOT_IMPLEMENTED; } default: /* name is ok */ |