summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-06-16 08:40:10 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:18:15 -0500
commit3b9dfb0da3e6e7afff7be60b571493bb288d385f (patch)
tree3a2e49810a0e54eb781983379260eb4581d0ba1e /source4
parent51041427f2efc098c868238295c25315ab899d43 (diff)
downloadsamba-3b9dfb0da3e6e7afff7be60b571493bb288d385f.tar.gz
samba-3b9dfb0da3e6e7afff7be60b571493bb288d385f.tar.bz2
samba-3b9dfb0da3e6e7afff7be60b571493bb288d385f.zip
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)
Diffstat (limited to 'source4')
-rw-r--r--source4/smb_server/service.c41
1 files 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) {