svn commit: samba r7631 - in branches/SAMBA_4_0/source/smb_server: .
metze at samba.org
metze at samba.org
Thu Jun 16 08:40:11 GMT 2005
Author: metze
Date: 2005-06-16 08:40:10 +0000 (Thu, 16 Jun 2005)
New Revision: 7631
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7631
Log:
- 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
Modified:
branches/SAMBA_4_0/source/smb_server/service.c
Changeset:
Modified: branches/SAMBA_4_0/source/smb_server/service.c
===================================================================
--- branches/SAMBA_4_0/source/smb_server/service.c 2005-06-16 06:56:48 UTC (rev 7630)
+++ branches/SAMBA_4_0/source/smb_server/service.c 2005-06-16 08:40:10 UTC (rev 7631)
@@ -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 @@
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) {
More information about the samba-cvs
mailing list