diff options
author | Volker Lendecke <vlendec@samba.org> | 1998-01-05 22:54:32 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 1998-01-05 22:54:32 +0000 |
commit | 8d50079a6e2d25e6a09d4830e140f83c6917acf2 (patch) | |
tree | 005fa7ce0704cea6275b305643b175507e770222 /source3/include | |
parent | 4bfffb86e3ad1c9eae0d5bd5a7067cb011304028 (diff) | |
download | samba-8d50079a6e2d25e6a09d4830e140f83c6917acf2.tar.gz samba-8d50079a6e2d25e6a09d4830e140f83c6917acf2.tar.bz2 samba-8d50079a6e2d25e6a09d4830e140f83c6917acf2.zip |
Added 3 commands:
smbmount: This is a stripped down smbclient that communicates with
the Linux 2.1.x kernel to supply authenticated smb connections for
smbfs mount points.
smbmnt/smbumount: setuid commands that do the actual smb mount system
call after having done the appropriate security checks
(This used to be commit ccbbc4e647ad900b215dae949d5bcd45671c68c8)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/proto.h | 2 | ||||
-rw-r--r-- | source3/include/smb.h | 19 |
2 files changed, 20 insertions, 1 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index 1245b21039..e26c1889a1 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -114,7 +114,7 @@ BOOL cli_send_trans_request(char *outbuf,int trans, int ldata,int lparam,int lsetup, int mdata,int mparam,int msetup); BOOL cli_send_session_request(char *inbuf,char *outbuf); -BOOL cli_send_login(char *inbuf,char *outbuf,BOOL start_session,BOOL use_setup); +BOOL cli_send_login(char *inbuf,char *outbuf,BOOL start_session,BOOL use_setup, struct connection_options *options); void cli_send_logout(void ); BOOL cli_open_sockets(int port ); BOOL cli_reopen_connection(char *inbuf,char *outbuf); diff --git a/source3/include/smb.h b/source3/include/smb.h index 401459becc..ebf0945855 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -1628,6 +1628,25 @@ struct connect_record time_t start; }; +/* This is used by smbclient to send it to a smbfs mount point */ +struct connection_options { + int protocol; + /* Connection-Options */ + uint32 max_xmit; + uint16 server_uid; + uint16 tid; + /* The following are LANMAN 1.0 options */ + uint16 sec_mode; + uint16 max_mux; + uint16 max_vcs; + uint16 rawmode; + uint32 sesskey; + /* The following are NT LM 0.12 options */ + uint32 maxraw; + uint32 capabilities; + uint16 serverzone; +}; + #ifndef LOCKING_VERSION #define LOCKING_VERSION 4 #endif /* LOCKING_VERSION */ |