summaryrefslogtreecommitdiff
path: root/source3/smbwrapper
AgeCommit message (Collapse)AuthorFilesLines
2003-10-22Put strcasecmp/strncasecmp on the banned list (except for needed callsJeremy Allison1-2/+2
in iconv.c and nsswitch/). Using them means you're not thinking about multibyte at all and I really want to discourage that. Jeremy. (This used to be commit d7e35dfb9283d560d0ed2ab231f36ed92767dace)
2003-10-14Enclose usage of st_blksize and st_blocks struct stat members inTim Potter1-0/+8
#ifdef HAVE_STAT_ST_BLKSIZE and #ifdef HAVE_STAT_ST_BLOCKS, respectively. Fixes bug 550 reported by Joachim Schmitz <schmitz@hp.com>. (This used to be commit 18adfdbe0c6ed79ba8ac07956b1e7abc226556c3)
2003-04-24Patch from Guenther Deschner to fix build with gcc 3.2Jelmer Vernooij1-6/+6
(This used to be commit ab631b31fbabc25cd74ca46fd583cd857538953c)
2003-04-23Parinoia for compleatly broken SMB servers that don't send back the rightAndrew Bartlett1-2/+3
fstype for IPC$ - assume the device type is IPC. Andrew Bartlett (This used to be commit 5ec78042124589d7d4e377581c187712950c93b2)
2003-04-23Make this safe for -DDEVELOPER checks.Andrew Bartlett1-2/+2
Andrew Bartlett (This used to be commit 39fb77d8c1d9dddf00e8063198157bf77fb58a8f)
2003-03-17Fix building --with-smbwrapper.Tim Potter2-24/+6
(This used to be commit 1fb5c92bfb96d966a31d5a4d882a411b9c0b497c)
2003-02-19Merge minor library fixes from HEAD to 3.0.Andrew Bartlett1-5/+5
- setenv() replacement - mimir's ASN1/SPNEGO typo fixes - (size_t)-1 fixes for push_* returns - function argument signed/unsigned correction - ASN1 error handling (ensure we don't use initiailsed data) - extra net ads join error checking - allow 'set security discriptor' to fail - escape ldap strings in libads. - getgrouplist() correctness fixes (include primary gid) Andrew Bartlett (This used to be commit e9d6e2ea9a3dc01d3849b925c50702cda6ddf225)
2002-11-13Fix smbwrapper from global* changes.Jeremy Allison2-4/+4
Jeremy. (This used to be commit fcbf865162562e359ca4be44a689506d54636e18)
2002-01-30Removed version number from file header.Tim Potter10-20/+10
Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
2002-01-30Unused file.Tim Potter1-22/+0
(This used to be commit 78013c0eccc1fed356781cf2fbba3025fcbb080c)
2001-11-26Got medieval on another pointless extern. Removed extern struct ipzeroTim Potter1-3/+2
and replaced with two functions: void zero_ip(struct in_adder *ip); BOOL is_zero_ip(struct in_addr ip); (This used to be commit 778f5f77a66cda76348a7c6f64cd63afe2bfe077)
2001-11-21W2K doesn't seem to respond to *#0 names in node status. Ensure nameJeremy Allison1-1/+1
lookup uses password server parameter when looking for PDCs. Jeremy. (This used to be commit 54c968913d6553c6d834b068234ab176917075eb)
2001-11-19Store some path names in global variables initialized to configureMartin Pool2-4/+3
default, rather than in preprocessor macros. (This used to be commit 79ec88f0da40faebe1e587f1b3e87b5f2b184f58)
2001-10-17charset_initialise() doesn't exist anymore.Tim Potter1-2/+0
Why don't we build smbwrapper on a build farm machine to spot this sort of thing earlier? (This used to be commit 234943c066f7cc549b84980cef51116f30f3f7c4)
2001-10-11remove unused function in mangle.cSimo Sorce2-5/+10
fix some alloc leaks spotted by andreas moroder. (This used to be commit 39409a20f69078709c63f6f867c042e66d5c7de3)
2001-10-02Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter4-8/+0
(This used to be commit 2d0922b0eabfdc0aaf1d0797482fef47ed7fde8e)
2001-09-17move to SAFE_FREE()Simo Sorce3-28/+24
(This used to be commit a95943fde0ad89ae3f2deca2f7ba9cb5ab612b74)
2001-09-16fixed compilation error in smbwAndrew Tridgell1-11/+1
(This used to be commit d1e9fb7778268a626b0550fa350d55d8eec7706e)
2001-09-14merge from 2.2Gerald Carter1-0/+2
(This used to be commit 0e4d2384dee905c730d011595337ff5ecc260a13)
2001-09-10convert more code to use XFILEAndrew Tridgell1-1/+1
(This used to be commit fe6679dffba9a92bb35933ad52172c9be0e9ef90)
2001-09-10declare dbf in one spotAndrew Tridgell2-2/+0
(This used to be commit f41c3bb80f1e498a9d27f6e236b0ff3a742764c9)
2001-09-10replaced stdio in many parts of samba with a XFILE. XFILE is a cut-downAndrew Tridgell2-4/+4
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. (This used to be commit 1af8bf34f1caa3e7ec312d8109c07d32a945a448)
2001-08-23compile fixSimo Sorce1-1/+1
(This used to be commit c53c5eca157aae3cb48da9ef0157c153a65307da)
2001-08-12this is a big global fix for the ptr = Realloc(ptr, size) bug.Simo Sorce1-1/+4
many possible mem leaks, and segfaults fixed. someone should port this fix to 2.2 also. (This used to be commit fa8e55b8b465114ce209344965c1ca0333b84db9)
2001-07-04strchr and strrchr are macros when compiling with optimisation in gcc, so we ↵Andrew Tridgell2-3/+3
can't redefine them. damn. (This used to be commit c41fc06376d1a2b83690612304e85010b5e5f3cf)
2001-07-04The big character set handling changeover!Andrew Tridgell2-3/+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. (This used to be commit debb471267960e56005a741817ebd227ecfc512a)
2001-04-16Grr - fixed compile error in smbwrapper stuff.Tim Potter1-1/+1
(This used to be commit 11a7c5e3d61348dc8c5dfdc782a95974a1547e4d)
2001-04-12Added a caching system to smbsh. Previously access to workgroup or serverTim Potter2-7/+214
directories under /smb generated net share enum or net server enum calls. For large networks this could result in bad performance. We now cache these results and only call net * enums after the cache timeout has exceeded. (This used to be commit 1e38eef54d729aeb7fe905b344cf1480c686a348)
2001-04-11To stop people complaining about the mktemp call, move it into lib/util.c. ↵Jeremy Allison1-5/+4
Thanks to Andrew for all this code. Fixed extra line in lib/sysacls.c that broke XFS ACL code. Jeremy. (This used to be commit 9b32b8a8cfc8ddb93c14d5581f433d2e93f89ed2)
2001-02-20setup workgroup when foundAndrew Tridgell1-0/+1
(This used to be commit 33aefc76e8594196e09094f65e5aa0bbfe47f357)
2001-01-16Fix for no master browser present.Tim Potter1-3/+4
(This used to be commit 24c78fdf5fb940b32724474241c464206b83be2f)
2001-01-15Compile fix for smbw_dir_add function.Tim Potter1-4/+5
(This used to be commit d7920a670b7706fc1d794edcfe6baacc5bb26403)
2001-01-05Needed a callback arg on cli_list ...Richard Sharpe1-2/+2
(This used to be commit d45e667a74fc2fcbf69c4819d480269c03dbfae4)
2001-01-05Added extra argument to calls to smbw_share_add()Tim Potter1-8/+8
(This used to be commit d006e6adca0548dad334d871c5d440b1d32ac879)
2001-01-04I need a callback arg for cli_NetServerEnum and cli_RNetShareEnum, so I hadRichard Sharpe1-5/+6
to modifiy any routine that calls it to pass NULL and so forth. Should have no impact. It compiles OK. (This used to be commit 7f862e387f935a2125481338eee850afcb8d82ba)
2001-01-02Return an empty directory for a stat on a share we aren't allowed toTim Potter1-7/+17
connect to. This gives a permission denied when a cd is attempted, but not a permission denied in the directory listing one level up. (This used to be commit 9255e526244578e092abc306491d5862469da775)
2000-12-20implemented a much nicer name_status() interface. It now returns aAndrew Tridgell1-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) (This used to be commit f2be88a8738a39ca5c98936edb7537cd701348a1)
2000-12-13Added support for SERVICESF shared variable to change configuration fileTim Potter1-1/+4
used in lp_load(). (This used to be commit 4d80ee4f41ac3d61579c9cf23cb815d7fe5da5db)
2000-12-11added support for browsing the list of workgroups at the top level inAndrew Tridgell2-57/+77
smbw (This used to be commit 8f97d59186ee3b52f623d30dfb7b195ec721ec0c)
2000-11-11Fetch authentication info before actually using it.Tim Potter1-2/+2
(This used to be commit 600eb0eb0036631b7e6d8aa7cddbc378368c002c)
2000-11-01Added a authentication hook to smbwrapper which allows a (username,Tim Potter2-11/+56
workgroup, password) tuple to be provided by another function. (This used to be commit 644c78d64a6d7b7e44414c579de660321a0a6b34)
2000-07-06added -L optionAndrew Tridgell1-2/+8
(This used to be commit ae80ca637cd4de6d18f995a4b6e1e1e21ab63581)
2000-07-06got smbw to compile again on LinuxAndrew Tridgell2-3/+4
(This used to be commit 614fd4119ce5aa37acd03321dc6ef263ae16bdc5)
2000-03-16removed extra arguements from make_nmb_name callsHerb Lewis1-3/+3
(This used to be commit d97f5d57d07b03c1df69099625b9d3faabe3f605)
1999-12-13first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell6-55/+19
(This used to be commit 453a822a76780063dff23526c35408866d0c0154)
1999-06-13Return a (void *)0 instead of NULL in readdir64() wrapper.Tim Potter1-2/+1
(This used to be commit d78224a7d27097fa00d9e2a7b02efd7383d833ff)
1999-06-13Return a #error if no functions could be found to wrap around.Tim Potter1-0/+43
(This used to be commit 36f9ce7993adc5a26e808842233108f28b8fdebf)
1999-01-29removed encrypt-password code pre-cli_session_setup(), session setupLuke Leighton1-6/+2
fn decides whether to encrypt password or not. (This used to be commit 6d14db6a6c101e86b3c62d5098a05d29ae4e9cd8)
1999-01-27- got client code cleartext passwords working again in cli_session_setup.Luke Leighton1-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 (This used to be commit 2a509e9606f8aefbefa6e7b49878726464dbed44)
1998-12-07issues spotted by herb.Luke Leighton1-1/+1
(This used to be commit 57e025494692b1e54d4d83192e6c15d4d1454353)