summaryrefslogtreecommitdiffstats
path: root/source/smbwrapper/smbw.c
Commit message (Collapse)AuthorAgeFilesLines
* got smbw to compile again on LinuxAndrew Tridgell2000-07-061-1/+2
|
* removed extra arguements from make_nmb_name callsHerb Lewis2000-03-161-3/+3
|
* first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1999-12-131-6/+9
|
* removed encrypt-password code pre-cli_session_setup(), session setupLuke Leighton1999-01-291-6/+2
| | | | fn decides whether to encrypt password or not.
* - got client code cleartext passwords working again in cli_session_setup.Luke Leighton1999-01-271-2/+6
| | | | | | | | | | | | | | | | | | | needed this for some tests. - removed code that said "if lm password is not encrypted then encrypt both lm and nt passwords". actually it said "if lm password length is not 24 bytes and we're in security=user mode..." it didn't bother to check whether the nt password was NULL or not, and doing the encryption inside cli_session_setup is the wrong place. - checked all instances where cli_session_setup is called with cleartext passwords that are expected to then be encrypted (see above) with the test "if pwlen != 24...". there was only one: all the others either provide encrypted passwords, do null sessions or use cli_establish_connection. * recommendation: use cli_establish_connection() in smbwrapper/smbw.c
* Added the same open()/fopen()/creat()/mmap() -> sys_XXX calls.Jeremy Allison1998-11-171-1/+1
| | | | | | | | | | Tidied up some of the mess (no other word for it). Still doesn't compile cleanly. There are calls with incorrect parameters that don't seem to be doing the right thing. This code still needs surgery :-(. Jeremy.
* fixes for OSF1 compilationAndrew Tridgell1998-11-131-0/+6
|
* Makefile.in: Removed rpc_server/srv_ldap_helpers.c per J.F.'s instructions.Jeremy Allison1998-11-091-2/+2
| | | | | | | | | | | | | client/client.c: client/clitar.c: include/client.h: smbwrapper/smbw_dir.c: smbwrapper/smbw_stat.c: smbwrapper/smbw.c: lib/util.c: Converted all use of 'mode' to uint16. smbd/quotas.c: Fixed stupid comment bug I put in there :-(. printing/printing.c: Fix from J.F. to new code. Jeremy.
* handle the case of an intermediate binary not loading smbwrapper.soAndrew Tridgell1998-10-241-2/+1
| | | | (for example /usr/bin/man because it is setgid).
* volker was concerned about unique inode numbers and smbsh. This set ofAndrew Tridgell1998-10-241-1/+3
| | | | | | changes uses the unique index number from a SMB_QUERY_FILE_ALL_INFO to try to provide inode numbers. If it is 0 then use the hash of the filename as before.
* make sure that apps can't close one of the internal smbw fileAndrew Tridgell1998-10-241-2/+19
| | | | | descriptors by catching close attempts on those fds and returning EBADF.
* fixed problems with PWD - we no longer use the PWD env variableAndrew Tridgell1998-10-231-6/+14
| | | | | | instead the shared variable area is used. this fixes problems with /bin/sh under solaris
* removed setenv(), replaced with smbw_setenv()Andrew Tridgell1998-10-201-0/+1
|
* smbd/nttrans.c smbd/trans2.c: First fixes for NT5.0beta2. That redirectorJeremy Allison1998-10-201-3/+3
| | | | | | has some *horrible* bugs ! smbwrapper/shared.c smbwrapper/smbsh.c smbwrapper/smbw.c: Fixed gcc warnings. Jeremy.
* added command line options to smbshAndrew Tridgell1998-10-191-0/+6
|
* - don't use env variables for passwords and usernames (yeah!)Andrew Tridgell1998-10-191-15/+36
| | | | | | - added a shared variable area based on a unlinked open file, and implement a general get/set interface to it - cache hostname lookups and master ip lookups in shared variable area
* Small tidyups for gcc in 'preen' mode....Jeremy Allison1998-10-171-0/+4
| | | | Jeremy.
* changed some debug levelsAndrew Tridgell1998-10-161-3/+8
|
* Re-added code to tell the user how many open files theyJeremy Allison1998-10-161-1/+1
| | | | | have. Needed for server diagnosis purposes... Jeremy.
* tridge, i had to put a #ifdef _STAT_VER_LINUX_OLD round a bit of codeLuke Leighton1998-10-141-0/+2
| | | | | that didn't have _STAT_VER_LINUX_OLD defined. maybe you want to sort this out properly...
* dce/rpc.Luke Leighton1998-10-091-1/+1
|
* dce/rpcLuke Leighton1998-10-081-1/+1
|
* - fixed a bunch of warnings and minor errorsAndrew Tridgell1998-10-081-1/+1
| | | | | | - got smbtorture to compile - removed %D from some of lukes code - Luke, what is %D? it ain't portable anyway
* don't prototype the acl() functionsAndrew Tridgell1998-10-071-5/+5
|
* restore errno after smbw initialisationAndrew Tridgell1998-10-071-0/+5
|
* - updated docs to say OSF1 worksAndrew Tridgell1998-10-071-2/+2
| | | | - more solaris acl fixes
* yet another attempt at making this stuff portable. This time I useAndrew Tridgell1998-10-071-0/+109
| | | | minimal includes in wrapped.c
* more OSF1 changes as well as changes to allow us to use the standardAndrew Tridgell1998-10-071-1/+1
| | | | includes.h in wrapped.c, thus making porting much simpler
* do an anonymous login if the username/password is rejected.Andrew Tridgell1998-10-071-1/+3
|
* implemented unix semantics for rename in smbwrapperAndrew Tridgell1998-10-061-4/+26
|
* added a wrapper for fork()Andrew Tridgell1998-10-061-0/+69
| | | | | in a fork we have to close all server connections otherwise we can end up with two processes writing to the same socket.
* fixed a bug in time setting (utime() call)Andrew Tridgell1998-10-061-2/+5
|
* implemented attribute mapping and chmod. file attributes are mapped inAndrew Tridgell1998-10-061-3/+8
| | | | the same manner as smbd. See the README for a full explanation.
* added SMBW_PREFIX environment variable (allowing you to specify rootAndrew Tridgell1998-10-061-16/+26
| | | | | | | | of smb filesystem) fixed "cd /smb" bug updated README with full list of environment variables.
* use smbw_errno() not smbw_error()Andrew Tridgell1998-10-061-1/+1
|
* - fixed errno return in smbw_open()Andrew Tridgell1998-10-051-4/+1
| | | | | - updated README a bit - fixed Linux compilation of utime()
* got smbwrapper working on IRIX 6.4. Things got a bit tricky,Andrew Tridgell1998-10-051-2/+3
| | | | especially as the headers get the syscall numbers wrong!
* ported smbwrapper to SunOS4. It seems to work. pity so many binaries onAndrew Tridgell1998-10-051-5/+22
| | | | my SunOS box are statically linked.
* got rid of all assembly code and gcc special features. I'm hoping toAndrew Tridgell1998-10-051-31/+0
| | | | get smbsh working with the normal sun compiler
* removed requirement of having a smb.conf for smbwrapper to work.Andrew Tridgell1998-10-051-3/+1
|
* - added pread pread64 pwrite pwrite64 and open64Andrew Tridgell1998-10-051-3/+71
| | | | - fixed utime() for null tbuf
* added a function set_maxfiles() to set our file rlimit to the maxAndrew Tridgell1998-10-051-0/+2
| | | | possible and return the max.
* - modified resolve_name() to take a name_typeAndrew Tridgell1998-10-041-2/+6
| | | | | | - cleaned up resolve_name() (split into separate functions for each resolver) - if can't find local master then use #1B name - support listing of foreign workgroups in /smb/
* support NetServerEnum in smbwrapper. You can now do a ls in /smb/ andAndrew Tridgell1998-10-041-4/+27
| | | | | it will list all servers in your workgroup. You can set your workgroup with the SMBW_WORKGROUP environment variable.
* use *SMBSERVER convention in smbwrapper to allow us to connect toAndrew Tridgell1998-10-041-3/+9
| | | | servers that we don't know the netbios name of.
* add support for unlink() on printer shares in smbwrapper. unlink()Andrew Tridgell1998-10-041-1/+9
| | | | will remove the job from the pirnt queue.
* added support for printing via smbwrapperAndrew Tridgell1998-10-041-2/+1
| | | | | | You can print using "cp filename /smb/SERVER/PRINTER/jobname" You can list the current printqueue using ls
* add support for dup() and dup2()Andrew Tridgell1998-10-041-17/+145
|
* refuse symlinks to or from a smb pathAndrew Tridgell1998-10-041-2/+2
|
* modified cli_read() and cli_write() to issue multiple outstandingAndrew Tridgell1998-10-041-2/+3
| | | | | | | | | read/write requests for large reads. up to max_mux requests may be outstanding. This gives _much_ better throughput and should allow smbsh to saturate just about any network. this is an implementation of the "fast SMB" method I described on the CIFS list a couple of months back.