From 3b9dfb0da3e6e7afff7be60b571493bb288d385f Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 16 Jun 2005 08:40:10 +0000 Subject: r7631: - remove unused function, as the disgn of samba4 doesn't allow the old style auto homedir share stuff - add TODO: for checking the password on share mode security metze (This used to be commit d9a0c61801f19e55a41c573ea96565946314ecb3) --- source4/smb_server/service.c | 41 ++--------------------------------------- 1 file changed, 2 insertions(+), 39 deletions(-) diff --git a/source4/smb_server/service.c b/source4/smb_server/service.c index bb74a5c2d9..fefd0692fc 100644 --- a/source4/smb_server/service.c +++ b/source4/smb_server/service.c @@ -23,45 +23,6 @@ #include "smbd/service_stream.h" - -/**************************************************************************** - Add a home service. Returns the new service number or -1 if fail. -****************************************************************************/ -int add_home_service(const char *service, const char *username, const char *homedir) -{ - int iHomeService; - - if (!service || !homedir) - return -1; - - if ((iHomeService = lp_servicenumber(HOMES_NAME)) < 0) - return -1; - - /* - * If this is a winbindd provided username, remove - * the domain component before adding the service. - * Log a warning if the "path=" parameter does not - * include any macros. - */ - - { - const char *p = strchr(service,*lp_winbind_separator()); - - /* We only want the 'user' part of the string */ - if (p) { - service = p + 1; - } - } - - if (!lp_add_home(service, iHomeService, username, homedir)) { - return -1; - } - - return lp_servicenumber(service); - -} - - /** * Find a service entry. service is always in dos codepage. * @@ -145,6 +106,8 @@ static NTSTATUS make_connection(struct smbsrv_request *req, enum ntvfs_type type; const char *type_str; + /* TODO: check the password, when it's share level security! */ + /* the service might be of the form \\SERVER\SHARE. Should we put the server name we get from this somewhere? */ if (strncmp(service, "\\\\", 2) == 0) { -- cgit