summaryrefslogtreecommitdiff
path: root/source3/smbd/service.c
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2010-05-31 10:52:06 -0400
committerAndreas Schneider <asn@samba.org>2010-05-31 18:21:29 +0200
commit471ed70c497f4eeaca27594d609f41f2b2c689cd (patch)
tree18a3246eeb729a1439cd7cfa42b061a4d251b20b /source3/smbd/service.c
parent6a25668e55929a8111ac0fc5e34b5a83ae936349 (diff)
downloadsamba-471ed70c497f4eeaca27594d609f41f2b2c689cd.tar.gz
samba-471ed70c497f4eeaca27594d609f41f2b2c689cd.tar.bz2
samba-471ed70c497f4eeaca27594d609f41f2b2c689cd.zip
s3:smbd map_username() doesn't need sconn anymore
Signed-off-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/smbd/service.c')
-rw-r--r--source3/smbd/service.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index afd9cad27d..8642544c4f 100644
--- a/source3/smbd/service.c
+++ b/source3/smbd/service.c
@@ -306,7 +306,6 @@ int add_home_service(const char *service, const char *username, const char *home
int find_service(fstring service)
{
int iService;
- struct smbd_server_connection *sconn = smbd_server_conn;
all_string_sub(service,"\\","/",0);
@@ -321,7 +320,7 @@ int find_service(fstring service)
* Try mapping the servicename, it may
* be a Windows to unix mapped user name.
*/
- if(map_username(sconn, service))
+ if(map_username(service))
phome_dir = get_user_home_dir(
talloc_tos(), service);
}
@@ -1158,7 +1157,7 @@ connection_struct *make_connection(struct smbd_server_connection *sconn,
fstring unix_username;
fstrcpy(unix_username,
current_user_info.smb_name);
- map_username(sconn, unix_username);
+ map_username(unix_username);
snum = find_service(unix_username);
}
if (snum != -1) {