summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
2001-10-23get rid of compiler warnings (casts and delete unused variables)Herb Lewis2-9/+7
(This used to be commit 51cb4411df61d1caec9d84809b1a53a6a632f808)
2001-10-22a quick fix to get rpcclient working again. This just disablesAndrew Tridgell1-1/+1
NTLMSSP in cli_establish_connection() What we really need to do is kill off the pwd_cache code. It is horrible, and assumes the challenge comes in the negprot reply. (This used to be commit 3f919b4360b3bfcc133f7d88bc5177e9d93f2db2)
2001-10-22Added xstrdup, removed static version from smbpasswd.cJeremy Allison1-2/+14
Jeremy. (This used to be commit d01a9e5974d80ee8be2f7a20aeaae5826325d035)
2001-10-22Added xmalloc - calls smb_panic on zero size or malloc fail.Jeremy Allison1-1/+27
Added xmemdup - calls xmalloc. Made data_blob() call xmemdup. Defensive programming (I still hate the no error checking... :-). Jeremy. (This used to be commit 2cc262278f9d4892cf2485d7a73d88bc0e7559a8)
2001-10-20Converted a bunch of 0x85 constants to SMBkeepalive.Tim Potter1-4/+4
(This used to be commit b16a15a13ed7d267c6366abaeeb3ccafa5776f5e)
2001-10-20removed an unused variableAndrew Tridgell1-1/+0
(This used to be commit 9355f251656d0233395dae6978c58f4e520e069b)
2001-10-18Merge Gerry's %G change from 2.2.2.Jeremy Allison1-7/+8
Jeremy. (This used to be commit d8262286ddb6105a9d3b0730912447ea2401a3fb)
2001-10-17added basic NTLMSSP support in smbd. This is still quite rough, andAndrew Tridgell1-2/+2
loses things like username mapping. I wanted to get this in then discuss it a bit to see how we want to split up the existing session setup code (This used to be commit b74fda69bf23207c26d8b2af23910d8f2eb89875)
2001-10-14return of vsnprintf doesn't include terminationAndrew Tridgell1-1/+1
thanks to simo for spotting this (This used to be commit acd84ed762a5f50c69c79d13cb18e4204096b304)
2001-10-14bit neater talloc_asprintf() implementationAndrew Tridgell1-19/+11
(This used to be commit 8ca8875cd94dce8827ce8cb857b2d7a959ab7891)
2001-10-13introduce mangle backward compatibility functionsSimo Sorce1-0/+31
add talloc_asprintf() (This used to be commit 7264d611eff871f424d449e1ff1c7ec3f5fdde40)
2001-10-12This file is really old and not used anymore.Tim Potter1-1375/+0
(This used to be commit ffef3c386957b08994f62eca18a29554daa91d3c)
2001-10-11first step in converting the head branch to use lang_tdb.c insteadAndrew Tridgell1-2/+9
of gettext for internationalisation support. There is more to do (This used to be commit ab7f67677a1ade4669e5c2750d0a38422ea616a9)
2001-10-11initial kerberos/ADS/SPNEGO support in libsmb and smbclient. ToAndrew Tridgell2-0/+43
activate you need to: - install krb5 libraries - run configure - build smbclient - run kinit to get a TGT - run smbclient with the -k option to choose kerberos auth (This used to be commit d33057585644e1337bac743e25ed7653bfb39eef)
2001-10-09old fixes I forgot to commitSimo Sorce1-5/+5
(This used to be commit 7895593929f443c6a256d2a13035aee11bed3dbf)
2001-10-09initial support to error report in smbclient, useful when using smbclient -c ↵Simo Sorce1-1/+3
in scripts. Thanks to Claudio Cicali aka FleXer for the initial patch (This used to be commit 53b95b3c0fd087b1cade95fd8de849547ac3bfcb)
2001-10-07fixed lame valid tableAndrew Tridgell1-2/+2
(This used to be commit 67017619afed8fe10abd65d54538348d3ea92b9f)
2001-10-03fixed basic ucs2 operation on big endian boxes. Still a bit more toAndrew Tridgell1-5/+5
do, but at least you can connect now. (This used to be commit 211aeffa1a770716f798fd6ba12ab29a95555526)
2001-10-03switched over to a new method of handling uppercase/lowercase mappingsAndrew Tridgell5-75/+122
for unicode strings. The new method relies on 3 files that are mmap'd at startup to provide the mapping tables. The upcase.dat and lowcase.dat tables should be the same on all systems. The valid.dat table says what characters are valid in 8.3 names, and differs between systems. I'm committing the japanese valid.dat here, in future we need some way of automatically installing and choosing a appropriate table. This commit also adds my mini tdb based gettext replacement in intl/lang_tdb.c. I have not enabled this yet and have not removed the old gettext code as the new code is still being looked at by Monyo. Right now the code assumes that the upcase.dat, lowcase.dat and valid.dat files are installed in the Samba lib directory. That is not a good choice, but I'll leave them there until we work out the new install directory structure for Samba 3.0. simo - please look at the isvalid_w() function and think about using it in your new mangling code. That should be the final step to correctly passing the chargen test code from monyo. (This used to be commit 1c221994f118dd542a158b2db51e07d04d0e9314)
2001-10-02Fixed up the change password bug when not using PAM.Jeremy Allison1-4/+116
The problem is we were trying to use mask_match as a generic wildcard matcher for UNIX strings (like the password prompts). We can't do that - we need a unix_wild_match (re-added into lib/util.c) as the ms_fnmatch semantics for empty strings are completely wrong. This caused partial reads to be accepted as correct passwd change responses when they were not.... Also added paranioa test to stop passwd change being done as root with no %u in the passwd program string. Jeremy. (This used to be commit 9333bbeb7627c8b21a3eaeae1683c34e17d14bf0)
2001-10-02Fixed the bug with member servers in a Samba PDC hosted domain not allowingJeremy Allison2-2/+26
other access. Problem was max time was being set to 0xffffffff, instead of 0x7fffffff. Jeremy. (This used to be commit 94403d841710391ec26539e4b4157439d5778ff7)
2001-10-02Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter26-61/+0
(This used to be commit 2d0922b0eabfdc0aaf1d0797482fef47ed7fde8e)
2001-09-30make strupper() and strlower() not modify the string if it doesn'tAndrew Tridgell2-6/+16
need modifying that makes constant strings OK (This used to be commit 57196635d9b7edfcbfe1708dd22308ab30c02240)
2001-09-30merge from 2.2Gerald Carter1-17/+0
(This used to be commit c308459bda3f3036c305ee7b9307f740aec66811)
2001-09-29Add a few const statements to various odd bits of the tree. (Fixes someAndrew Bartlett3-4/+4
warnings) (This used to be commit b648cc669d16eb40b477c8dc51efeab485a15de5)
2001-09-26OpenSSL merge from 2.2Gerald Carter2-2/+2
(This used to be commit efc6df5a3914da9e7b792ccaccd1403c72c09f78)
2001-09-26Added Elrond patch to make se_access_check use NT datastructures, not Samba.Jeremy Allison1-5/+8
Jeremy. (This used to be commit bca6419447e926e51aeecf3e484228f640cecb84)
2001-09-25- the inactive core of the new mangling code that use tdbSimo Sorce1-0/+107
- some more utils for unicode string manipulation (This used to be commit 4ade36446e7dee1c3828d8c822f047c6e891a644)
2001-09-25fixed the really awful performance problem with the stat cache when itAndrew Tridgell1-8/+10
ran out of primes and used a power of two hash modulus. It ended up sticking all the entries in just a few buckets. Yuck! (This used to be commit fdc9952391027e209fbd24f7794b1c2b551b1f9f)
2001-09-25added a little smbtorture test for dumping the unicode table of aAndrew Tridgell1-1/+0
server. This is just a framework right now - I want this to eventually replace the win32 test code from monyo The interesting this about this test is that it shows up a really horrible performance bug in our stat cache code. I'll see if I can fix it. (This used to be commit eb668b54af4925194c07b217724657f406ec00d0)
2001-09-25allow all ucs2 chars in utf8, rather than mapping some to a singleAndrew Tridgell1-10/+1
char like libiconv does (This used to be commit e13e8b190c70136cb2c3588bdcf7328a7f61d152)
2001-09-25Fixed enumeration of large numbers of groups from a Samba DC.Jeremy Allison1-1/+5
Tidied up debug messages in lib/messages.c Jeremy. (This used to be commit dfb58f227609d6c8a255677b85ec853efa19f602)
2001-09-24fixed a silly off by 1 bugAndrew Tridgell1-0/+3
(This used to be commit e558ab6ac8930e3393291fe12289ad43175b8a1d)
2001-09-22Ignore unmappable (NT Authority, BUILTIN etc.) SIDs in an ACL set.Jeremy Allison1-0/+24
Jeremy. (This used to be commit bc7963bd643422cce081b6284e3bdd49ae3a02ab)
2001-09-19Fix (I hope) compile on HP-UX. Found by the build farm.Andrew Bartlett1-1/+1
(This used to be commit fd5c67d35a3e9eaee6c54151c5fd9381a47c7b14)
2001-09-17fixed ctemp in server and client. It turns out that ctemp on NT is ↵Andrew Tridgell1-3/+4
completely broken, and it's pointless to emulate their brokenness completely in this case, but at least this makes us use approximately the same packet format. The spec is complelet wrong in this case (This used to be commit 2d507ec669def6d49304559e53d6c14af9b290a9)
2001-09-17move to SAFE_FREE()Simo Sorce23-168/+129
(This used to be commit 60e907b7e8e1c008463a88ed2b076344278986ef)
2001-09-15Restore the profiling data shmem parinoia. This whole area needs to beAndrew Bartlett1-0/+10
fixed - an mmaped file or the like would be a good idea. (This used to be commit bc1385fc5e55eeed626615fad92877296064a27e)
2001-09-13added a new global option "hostname lookups = yes/no"Andrew Tridgell1-0/+8
This should finally kill off the remaining places where we attempt reverse lookups of the IP of the client. It may be that some pam modules called via the session code will need "hostname lookups = yes" but I've left it off by default as most sites don't need it and so many sites have broken reverse maps (This used to be commit 2b83ad03965d00bba88fe56452d2990099b75ef1)
2001-09-10convert more code to use XFILEAndrew Tridgell2-7/+7
(This used to be commit fe6679dffba9a92bb35933ad52172c9be0e9ef90)
2001-09-10declare dbf in one spotAndrew Tridgell2-2/+0
(This used to be commit f41c3bb80f1e498a9d27f6e236b0ff3a742764c9)
2001-09-10added xfileAndrew Tridgell1-0/+340
(This used to be commit 7c2fe172c3322433571e73a0bef5c67168dd7c80)
2001-09-10replaced stdio in many parts of samba with a XFILE. XFILE is a cut-downAndrew Tridgell4-42/+22
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-09-08convert more code to using d_printfAndrew Tridgell1-2/+2
(This used to be commit 60d297303488ed583537ca2853828fccd6da2ade)
2001-09-07added "display charset" option in smb.conf, along with d_printf()Andrew Tridgell3-36/+167
which should now be used instead of DEBUG(0) or printf() for interactive messages I have only converted client.c to use d_printf(), and the code hasn't had much testing yet. Eventually we want all interactive code to use d_printf(), plus SWAT (This used to be commit 266d8e67669adb329f25676c4bc4d4c50f223428)
2001-09-06got rid of USE_TDB_MMAP_FLAG as its not needed any moreAndrew Tridgell1-1/+1
(This used to be commit c26e0d3f27a05ecc8bd2390f9aab7f9451524e47)
2001-09-06Started a cleanup of smbpasswd related stuff. I've created a new fileTim Potter1-0/+201
lib/smbpasswd.c which will contain routines related to manipulating smbpasswd entries. - renamed and moved pdb_{get,set}hexpwd() functions - renamed and moved pdb_{decode,encode}acct_ctrl() functions - started hiding references to the cruftalicious NEW_PW_FORMAT_SPACE_PADDED_LEN constant - started gradual rename of references to acct_ctrl to acb_info which is the nomenclature used in MSDN and header files There's still more work to be done. Currently there are several places where smbpasswd entries are iterated etc. Ideally this should all happen through the passdb system. (This used to be commit 4a01e240305fb6fead973beef4937a016b15d744)
2001-09-04Merge of transfer file code from 2.2, fix for readbraw.Jeremy Allison1-66/+39
Jeremy. (This used to be commit c05e79453655abb67fd47a2d3dba88b4c5377e35)
2001-09-04the next stage in the NTSTATUS/WERROR change. smbd and nmbd now compile, but ↵Andrew Tridgell1-2/+2
the client code still needs some work (This used to be commit dcd6e735f709a9231860ceb9682db40ff26c9a66)
2001-09-04Fixed some compiler warnings.Tim Potter1-2/+0
(This used to be commit 06608971ed95c02188a1b2bf7b1f9a2845e04022)