summaryrefslogtreecommitdiff
path: root/source3/smbd/lanman.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-05-11 01:02:52 +0200
committerVolker Lendecke <vl@samba.org>2008-05-25 11:43:56 +0200
commitf4d8141174cf75984978e80b6a040b98423089f6 (patch)
tree94ad90c79004f3aa4f49d8a36a4d8a506c63a563 /source3/smbd/lanman.c
parent37aaa8d8f9806c146ae6c20e3664422c824b84f5 (diff)
downloadsamba-f4d8141174cf75984978e80b6a040b98423089f6.tar.gz
samba-f4d8141174cf75984978e80b6a040b98423089f6.tar.bz2
samba-f4d8141174cf75984978e80b6a040b98423089f6.zip
Remove reference to current_user_info from lanman.c
(This used to be commit f52d7c3faba4aa815d95883775f4859251406161)
Diffstat (limited to 'source3/smbd/lanman.c')
-rw-r--r--source3/smbd/lanman.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c
index d6c76c54c1..fce58d069b 100644
--- a/source3/smbd/lanman.c
+++ b/source3/smbd/lanman.c
@@ -28,7 +28,6 @@
#include "includes.h"
extern struct current_user current_user;
-extern userdom_struct current_user_info;
#ifdef CHECK_TYPES
#undef CHECK_TYPES
@@ -105,7 +104,7 @@ static int CopyExpanded(connection_struct *conn,
conn->connectpath,
conn->server_info->gid,
get_current_username(),
- current_user_info.domain,
+ pdb_get_domain(conn->server_info->sam_account),
buf);
if (!buf) {
*p_space_remaining = 0;
@@ -156,7 +155,7 @@ static int StrlenExpanded(connection_struct *conn, int snum, char *s)
conn->connectpath,
conn->server_info->gid,
get_current_username(),
- current_user_info.domain,
+ pdb_get_domain(conn->server_info->sam_account),
buf);
if (!buf) {
return 0;
@@ -186,7 +185,7 @@ static char *Expand(connection_struct *conn, int snum, char *s)
conn->connectpath,
conn->server_info->gid,
get_current_username(),
- current_user_info.domain,
+ pdb_get_domain(conn->server_info->sam_account),
buf);
}
@@ -3005,14 +3004,15 @@ static bool api_RNetServerGetInfo(connection_struct *conn,uint16 vuid,
SIVAL(p,6,0);
} else {
SIVAL(p,6,PTR_DIFF(p2,*rdata));
- comment = talloc_sub_advanced(ctx,
- lp_servicename(SNUM(conn)),
- conn->server_info->unix_name,
- conn->connectpath,
- conn->server_info->gid,
- get_current_username(),
- current_user_info.domain,
- comment);
+ comment = talloc_sub_advanced(
+ ctx,
+ lp_servicename(SNUM(conn)),
+ conn->server_info->unix_name,
+ conn->connectpath,
+ conn->server_info->gid,
+ get_current_username(),
+ pdb_get_domain(conn->server_info->sam_account),
+ comment);
if (comment) {
return false;
}
@@ -3111,7 +3111,7 @@ static bool api_NetWkstaGetInfo(connection_struct *conn,uint16 vuid,
p += 4;
SIVAL(p,0,PTR_DIFF(p2,*rdata));
- strlcpy(p2,current_user_info.smb_name,PTR_DIFF(endp,p2));
+ strlcpy(p2,conn->server_info->sanitized_username,PTR_DIFF(endp,p2));
p2 = skip_string(*rdata,*rdata_len,p2);
if (!p2) {
return False;