diff options
author | Jeremy Allison <jra@samba.org> | 2001-03-13 00:31:07 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-03-13 00:31:07 +0000 |
commit | 83133bab0ed59e303a183fd91812165f08e88484 (patch) | |
tree | 30f477ca3d7196b968bf0163ddc8e3a7e86268d2 /source/smbd/service.c | |
parent | 0185f8159dbd30820d1ec9ce2aec8eb1cddcfc0b (diff) | |
download | samba-83133bab0ed59e303a183fd91812165f08e88484.tar.gz |
Added ADMIN$ share as alias for IPC$ except no guest connect. AS/U wants
to do RPC calls down this treeid.
Jeremy.
Diffstat (limited to 'source/smbd/service.c')
-rw-r--r-- | source/smbd/service.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/smbd/service.c b/source/smbd/service.c index 02405e8dda5..2c03d4e5141 100644 --- a/source/smbd/service.c +++ b/source/smbd/service.c @@ -234,7 +234,7 @@ connection_struct *make_connection(char *service,char *user,char *password, int snum = find_service(service); if (snum < 0) { - if (strequal(service,"IPC$")) { + if (strequal(service,"IPC$") || strequal(service,"ADMIN$")) { DEBUG(3,("refusing IPC connection\n")); *ecode = ERRnoipc; return NULL; @@ -284,7 +284,7 @@ connection_struct *make_connection(char *service,char *user,char *password, int } /* you can only connect to the IPC$ service as an ipc device */ - if (strequal(service,"IPC$")) + if (strequal(service,"IPC$") || strequal(service,"ADMIN$")) pstrcpy(dev,"IPC"); if (*dev == '?' || !*dev) { @@ -386,7 +386,7 @@ connection_struct *make_connection(char *service,char *user,char *password, int conn->service = snum; conn->used = True; conn->printer = (strncmp(dev,"LPT",3) == 0); - conn->ipc = (strncmp(dev,"IPC",3) == 0); + conn->ipc = ((strncmp(dev,"IPC",3) == 0) || strequal(dev,"ADMIN$")); conn->dirptr = NULL; conn->veto_list = NULL; conn->hide_list = NULL; |