summaryrefslogtreecommitdiffstats
path: root/source/smbwrapper/smbw.c
Commit message (Collapse)AuthorAgeFilesLines
* r17021: remove unsupported smbwrapper codeGerald Carter2007-10-101-1562/+0
|
* r16945: Sync trunk -> 3.0 for 3.0.24 code. Still needJeremy Allison2007-10-101-18/+18
| | | | | | | to do the upper layer directories but this is what everyone is waiting for.... Jeremy.
* r13212: r12414@cabra: derrell | 2006-01-28 17:52:17 -0500Derrell Lipman2007-10-101-1/+1
| | | | | | | | | | | | lp_load() could not be called multiple times to modify parameter settings based on reading from multiple configuration settings. Each time, it initialized all of the settings back to their defaults before reading the specified configuration file. This patch adds a parameter to lp_load() specifying whether the settings should be initialized. It does, however, still force the settings to be initialized the first time, even if the request was to not initialize them. (Not doing so could wreak havoc due to uninitialized values.)
* r5968: derrell's large file fix for libsmbclient (BUG 2505)Gerald Carter2007-10-101-1/+1
|
* r4236: More *alloc fixes.Jeremy Allison2007-10-101-10/+10
| | | | Jeremy.
* Enclose usage of st_blksize and st_blocks struct stat members inTim Potter2003-10-141-0/+8
| | | | | | | #ifdef HAVE_STAT_ST_BLKSIZE and #ifdef HAVE_STAT_ST_BLOCKS, respectively. Fixes bug 550 reported by Joachim Schmitz <schmitz@hp.com>.
* Patch from Guenther Deschner to fix build with gcc 3.2Jelmer Vernooij2003-04-241-6/+6
|
* Fix smbwrapper from global* changes.Jeremy Allison2002-11-131-3/+3
| | | | Jeremy.
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* Got medieval on another pointless extern. Removed extern struct ipzeroTim Potter2001-11-261-3/+2
| | | | | | | and replaced with two functions: void zero_ip(struct in_adder *ip); BOOL is_zero_ip(struct in_addr ip);
* W2K doesn't seem to respond to *#0 names in node status. Ensure nameJeremy Allison2001-11-211-1/+1
| | | | | lookup uses password server parameter when looking for PDCs. Jeremy.
* Store some path names in global variables initialized to configureMartin Pool2001-11-191-3/+2
| | | | default, rather than in preprocessor macros.
* charset_initialise() doesn't exist anymore.Tim Potter2001-10-171-2/+0
| | | | | Why don't we build smbwrapper on a build farm machine to spot this sort of thing earlier?
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-021-1/+0
|
* move to SAFE_FREE()Simo Sorce2001-09-171-16/+14
|
* fixed compilation error in smbwAndrew Tridgell2001-09-161-11/+1
|
* merge from 2.2Gerald Carter2001-09-141-0/+2
|
* declare dbf in one spotAndrew Tridgell2001-09-101-1/+0
|
* replaced stdio in many parts of samba with a XFILE. XFILE is a cut-downAndrew Tridgell2001-09-101-2/+2
| | | | | | | | | replacemnt of stdio that doesn't suffer from the 8-bit filedescriptor limit that we hit with nasty consequences on some systems I would eventually prefer us to have a configure test to see if we need to replace stdio, but for now this code needs to be tested widely so I'm enabling it by default.
* strchr and strrchr are macros when compiling with optimisation in gcc, so we ↵Andrew Tridgell2001-07-041-2/+2
| | | | can't redefine them. damn.
* The big character set handling changeover!Andrew Tridgell2001-07-041-2/+0
| | | | | | | This commit gets rid of all our old codepage handling and replaces it with iconv. All internal strings in Samba are now in "unix" charset, which may be multi-byte. See internals.doc and my posting to samba-technical for a more complete explanation.
* setup workgroup when foundAndrew Tridgell2001-02-201-0/+1
|
* implemented a much nicer name_status() interface. It now returns aAndrew Tridgell2000-12-201-3/+13
| | | | | | | list of structures rather than the dodgy parsing code we had before this also gets smbw working correctly with no initial workgroup (using name_status_find on __MSBROWSE__ returns)
* Added support for SERVICESF shared variable to change configuration fileTim Potter2000-12-131-1/+4
| | | | used in lp_load().
* added support for browsing the list of workgroups at the top level inAndrew Tridgell2000-12-111-56/+67
| | | | smbw
* Fetch authentication info before actually using it.Tim Potter2000-11-111-2/+2
|
* Added a authentication hook to smbwrapper which allows a (username,Tim Potter2000-11-011-11/+46
| | | | workgroup, password) tuple to be provided by another function.
* 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