summaryrefslogtreecommitdiff
path: root/source3/smbwrapper
AgeCommit message (Collapse)AuthorFilesLines
2003-04-24Patch from Guenther Deschner to fix build with gcc 3.2Jelmer Vernooij1-6/+6
(This used to be commit f56a18853235e9090fbf962aa981688dc2e15426)
2003-02-24Finish removing setenv replacements from smbwrapper.Andrew Bartlett2-20/+2
(This used to be commit 059ac2d839bf258408490f5ceb786a47cb5acb58)
2003-02-24typoAndrew Bartlett1-1/+1
(This used to be commit a47dee787413daaf0b550a47bbd78125490c356e)
2003-02-24setenv takes 3 arguments...Andrew Bartlett1-4/+4
(This used to be commit 6d18f64ef518cbb3d522cf1f92dc5cbc2e2cb642)
2003-02-19Now we have setenv() in replace.c, we don't need a seperate copy here.Andrew Bartlett1-5/+5
Andrew Bartlett (This used to be commit c4834c46902380455d2ea1dd62661224e8d4eb11)
2002-11-13Fix smbwrapper from the global_* changes.Jeremy Allison2-4/+4
Jeremy. (This used to be commit 6ab12ca80d12fcecf6ad3a534bd73b482d991112)
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)
1998-11-29weekend work. user / group database API.Luke Leighton1-1/+2
- split sam_passwd and smb_passwd into separate higher-order function tables - renamed struct smb_passwd's "smb_user" to "unix_user". added "nt_user" plus user_rid, and added a "wrap" function in both sam_passwd and smb_passwd password databases to fill in the blank entries that are not obtained from whatever password database API instance is being used. NOTE: whenever a struct smb_passwd or struct sam_passwd is used, it MUST be initialised with pwdb_sam_init() or pwd_smb_init(), see chgpasswd.c for the only example outside of the password database APIs i could find. - added query_useraliases code to rpcclient. - dealt with some nasty interdependencies involving non-smbd programs and the password database API. this is still not satisfactorily resolved completelely, but it's the best i can do for now. - #ifdef'd out some password database options so that people don't mistakenly set them unless they recompile to _use_ those options. lots of debugging done, it's still not finished. the unix/NT uid/gid and user-rid/group-rid issues are better, but not perfect. the "BUILTIN" domain is still missing: users cannot be added to "BUILTIN" groups yet, as we only have an "alias" db API and a "group" db API but not "builtin-alias" db API... (This used to be commit 5d5d7e4de7d1514ab87b07ede629de8aa00519a1)
1998-11-21add a error code when failed to get lockAndrew Tridgell1-1/+1
(This used to be commit 05696b4bbfb66bfdbdc19f395efe062ac890bc41)