diff options
author | Simo Sorce <ssorce@redhat.com> | 2010-05-27 03:41:56 -0400 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-05-28 00:55:53 +0200 |
commit | d9cffc01be58184312a6a7b55bd523cf8daefa78 (patch) | |
tree | a7037d21510273479d752c9c7964264ac12524a1 /source3/smbd/service.c | |
parent | 6713f3d945f09a732e620641771d9ff403aca9ef (diff) | |
download | samba-d9cffc01be58184312a6a7b55bd523cf8daefa78.tar.gz samba-d9cffc01be58184312a6a7b55bd523cf8daefa78.tar.bz2 samba-d9cffc01be58184312a6a7b55bd523cf8daefa78.zip |
s3:auth use info3 in auth_serversupplied_info
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/smbd/service.c')
-rw-r--r-- | source3/smbd/service.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c index 689f0e2f07..afd9cad27d 100644 --- a/source3/smbd/service.c +++ b/source3/smbd/service.c @@ -589,7 +589,7 @@ static NTSTATUS create_connection_server_info(struct smbd_server_connection *sco } } else { if (!user_ok_token(vuid_serverinfo->unix_name, - pdb_get_domain(vuid_serverinfo->sam_account), + vuid_serverinfo->info3->base.domain.string, vuid_serverinfo->ptok, snum)) { DEBUG(2, ("user '%s' (from session setup) not " "permitted to access this share " @@ -788,7 +788,7 @@ connection_struct *make_connection_snum(struct smbd_server_connection *sconn, conn->connectpath, conn->server_info->utok.gid, conn->server_info->sanitized_username, - pdb_get_domain(conn->server_info->sam_account), + conn->server_info->info3->base.domain.string, lp_pathname(snum)); if (!s) { *pstatus = NT_STATUS_NO_MEMORY; @@ -915,7 +915,7 @@ connection_struct *make_connection_snum(struct smbd_server_connection *sconn, conn->connectpath, conn->server_info->utok.gid, conn->server_info->sanitized_username, - pdb_get_domain(conn->server_info->sam_account), + conn->server_info->info3->base.domain.string, lp_rootpreexec(snum)); DEBUG(5,("cmd=%s\n",cmd)); ret = smbrun(cmd,NULL); @@ -953,7 +953,7 @@ connection_struct *make_connection_snum(struct smbd_server_connection *sconn, conn->connectpath, conn->server_info->utok.gid, conn->server_info->sanitized_username, - pdb_get_domain(conn->server_info->sam_account), + conn->server_info->info3->base.domain.string, lp_preexec(snum)); ret = smbrun(cmd,NULL); TALLOC_FREE(cmd); @@ -1257,7 +1257,7 @@ void close_cnum(connection_struct *conn, uint16 vuid) conn->connectpath, conn->server_info->utok.gid, conn->server_info->sanitized_username, - pdb_get_domain(conn->server_info->sam_account), + conn->server_info->info3->base.domain.string, lp_postexec(SNUM(conn))); smbrun(cmd,NULL); TALLOC_FREE(cmd); @@ -1273,7 +1273,7 @@ void close_cnum(connection_struct *conn, uint16 vuid) conn->connectpath, conn->server_info->utok.gid, conn->server_info->sanitized_username, - pdb_get_domain(conn->server_info->sam_account), + conn->server_info->info3->base.domain.string, lp_rootpostexec(SNUM(conn))); smbrun(cmd,NULL); TALLOC_FREE(cmd); |