summaryrefslogtreecommitdiffstats
path: root/source3/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fixes to add "paranoid" option to popen. Checks some basic things.Jeremy Allison2000-03-161-1/+56
| | | | | Jeremy (This used to be commit 3b8cbb10de322fd7a1063fb5b681790b10d24ab0)
* Fix from NAKAJI Hiroyuki for a trailing '\n\ in asctime.Jeremy Allison2000-03-151-0/+2
| | | | | Jeremy. (This used to be commit 87df97c9365a185e4ea6bac7b832b8cf38144624)
* Fixups for compiles with gcc flags -Wall -Wshadow -Wstrict-prototypes ↵Jeremy Allison2000-03-101-5/+5
| | | | | | | | -Wpointer-arith -Wcast-qual Partially implemented rpc daemon redirect (needs more work). Jeremy. (This used to be commit a462191698fa589ceac4afd14c652adf699eccad)
* changed prs_unistr to parse empty and non-empty strings the same way.Jean-François Micouleau2000-03-061-14/+20
| | | | | | | | | | | | | fixed typo in SPOOLSS_SYNT some cleanup of unused functions wrote make_spoolss_enumprinter and make_spoolss_openprinterex for rpcclient as I'm trying to keep in sync the parsing code between HEAD and TNG. Will commit changes to TNG after lunch. J.F. (This used to be commit 025cdb345f6de287a41d4449b2662dbc5e762bf2)
* lib/system.c: Fixed gcc warnings.Jeremy Allison2000-02-231-1/+0
| | | | | | | nmbd/nmbd_processlogon.c: Use "True" and "False" instead of 1 and 0. Others - preparing for multiple pdu write code. Jeremy. (This used to be commit 9f879ec396230deba34fbe5e82d8a65f92137c54)
* Fix for crash bug from Paul Tyler <pct@ansto.gov.au>.Jeremy Allison2000-02-211-10/+11
| | | | | Jeremy. (This used to be commit 89aa4d8ca9cc9e8e6dd4566076c0cace8b82d838)
* Fixes for Eastern Europe code page.Jeremy Allison2000-02-181-0/+1
| | | | | Jeremy. (This used to be commit 0ec82d661a27a02322e5c8da20a18f33bfb24a3e)
* Added support for SO_REUSEPORT for systems that have it.Jeremy Allison2000-02-161-1/+11
| | | | | Jeremy. (This used to be commit 377515cf9624720362c0b76969b9381d9972a13f)
* Added replacement functions sys_popen and sys_pclose. These are basedJeremy Allison2000-02-153-15/+244
| | | | | | | | | | on the glibc source code and are safer than the traditional popen as they don't use a shell to exec the requested command. Now we have these functions they can be tightened up (environment etc.) as required to make a safe popen. It should now be safe to add the environement variable loading code to loadparm.c Jeremy. (This used to be commit b52e92b09d4ca3b66e534f520468dee27065d048)
* Fixed wildcard match bug with '****' with smbclient. Found by Andrew (damn ↵Jeremy Allison2000-02-091-2/+3
| | | | | | | him! :-). Jeremy. (This used to be commit c8ca70f99ee2eae5e29ddf0dd4bc231fbcd188f2)
* Moved over lib/util_sec (with added fixes) as the HEAD sourceJeremy Allison2000-02-081-4/+50
| | | | | | seems to have drifted a little. Jeremy. (This used to be commit ebcdb4afee04cc3b94e60b1de86c2b534d4e233e)
* Hum, I should remove my gloves when I'm in front of an xterm :)Jean-François Micouleau2000-02-071-2/+2
| | | | | | | fixed a stupid bug in unistr2_to_ascii that I introduced fixed getprinterdata() (This used to be commit 2f544a807714024c0fe2ddc26e11c9ddcb47e81f)
* Jeremy can you check lib/util_unistr.c for codepages support ?Jean-François Micouleau2000-02-072-0/+109
| | | | | | | | I added 2 UNICODE <-> ASCII functions which _don't_ honor codepage support. J.F. (This used to be commit b81dc7b7f832cae2e66076398a134fbb6c1f78ca)
* Comments to use vfs_* functions instead of dos_* unless reallyTim Potter2000-02-032-4/+16
| | | | | accessing files on local disk. (This used to be commit b55f63da7e6a3c306ce668c77ed63a41d33240db)
* Added hash-based stat cache code from Ying Chen.Jeremy Allison2000-01-261-0/+320
| | | | | Jeremy. (This used to be commit b62a1bd6328f5894ae1a2fef3ef6fc66304ade52)
* Second set of inline optimisation fixes from Ying Chen <ying@almaden.ibm.com>.Jeremy Allison2000-01-263-42/+61
| | | | | | | Stop makeing function calls for every use of skip_multibyte_char. This function is called several *million* times during a NetBench run :-). Jeremy. (This used to be commit e5a3deba46ea2d4cb49a6c4b73edd766fe8b5a5c)
* First set of speed improvements from Ying Chen <ying@almaden.ibm.com>.Jeremy Allison2000-01-251-137/+1
| | | | | | Inline several commonly used functions as macros. Jeremy. (This used to be commit fc0219c7cc4b83e6db17d5b3be70d74fd7971089)
* made cvs main up-to-date with samba_tng, with addition of process id toLuke Leighton2000-01-212-7/+12
| | | | | msrpc loop-back interface. (This used to be commit adbf97c0a93149e17496b002ecc8ecdb3f360ed5)
* make string_init() staticAndrew Tridgell2000-01-162-2/+2
| | | | | use string_set() instead, to avoid the bug Richard discovered (This used to be commit fdcbf6b52d8373bf8f35718a9649788415c23342)
* Added "inherit permissions" patch.Jeremy Allison2000-01-142-0/+31
| | | | | | Fixed locking bug found by Andrew. Jeremy. (This used to be commit 38dffd360dc2e44bfc9e751f017e24f81ff0f2fa)
* Fix problems with broken libc fvct returns.Jeremy Allison2000-01-121-1/+8
| | | | | Jeremy. (This used to be commit 6b61f2fe66a62082fdab998ec7bbb1184b9583d7)
* Fixed pointer arithmetic found by IRIX compiler.Jeremy Allison2000-01-111-1/+1
| | | | | Jeremy. (This used to be commit 20d72e8959fc800836369e4c970f7cb84b95ac9a)
* Fixed bug in unix_mask_match() that caused veto files not to work.Jeremy Allison2000-01-111-31/+9
| | | | | Jeremy. (This used to be commit f5fedf80bce84dba1468631202337077511bcd25)
* this looks like a big commit, but it isn't really :)Andrew Tridgell2000-01-072-6/+4
| | | | | | | | | This fixes our netbios scope handling. We now have a 'netbios scope' option in smb.conf and the scope option is removed from make_nmb_name() this was prompted by a bug in our PDC finding code where it didn't append the scope to the query of the '*' name. (This used to be commit b563be824b8c3141c49558eced7829b48d4ab26f)
* Generic wildcard matching fix from weidel@multichart.de.Jeremy Allison2000-01-061-19/+80
| | | | | Jeremy. (This used to be commit 8b790cf3e21dd415e1daba24f5eba219e824cdc4)
* implemented talloc() as described on samba-technical. This fixes theAndrew Tridgell2000-01-051-0/+96
| | | | | | | | lp_string() bug properly. we still need to add lp_talloc_free() calls in all the main event loops, I've only put it in smbd and nmbd thus far. (This used to be commit aa7f81552540f5dca2c146f5edd805611d5b390f)
* simple mods to add msrpc pipe redirection. default behaviour: fall backLuke Leighton2000-01-037-2/+1327
| | | | | to using internal msrpc code in smbd. (This used to be commit 8976e26d46cb991710bc77463f7f928ac00dd4d8)
* got rid of mem_manAndrew Tridgell2000-01-031-7/+0
| | | | | | | | yamd is much better, and doesn't require any source code changes if you haven't seen yamd then take a look at http://www3.hmc.edu/~neldredge/yamd/ its excellent! (This used to be commit 25b13f8b79d648188036f027f45bc78ec117cc88)
* Converted most of the functions in lib/util_str.c to smb_ucs2_t equivalents.Jeremy Allison1999-12-291-37/+875
| | | | | Jeremy. (This used to be commit 1ba42aca2163c534f6be4e4a733604e3dffe0ed8)
* Fixed range checking in unicode to multibyte function. Oops.Jeremy Allison1999-12-231-9/+15
| | | | | Jeremy. (This used to be commit 61e06c44b47834ed297aacee6d59c40796b4ffb5)
* Added wtoupper/wtolower.Jeremy Allison1999-12-231-0/+19
| | | | | Jeremy. (This used to be commit 2e03ed62542152264ca5315b9ee9bb045b7f0b03)
* Samba now includes a full ucs2 upper to lower case (and vica versa) map table.Jeremy Allison1999-12-231-0/+56
| | | | | Jeremy. (This used to be commit d7b72d4cbfb6bd1925abc7f95c1180d3d65856a5)
* include/includes.h: Trimmed down unicode directory entry to be POSIX complient.Jeremy Allison1999-12-222-3/+18
| | | | | | | lib/system.c: Trimmed down unicode directory entry to be POSIX complient. lib/util_unistr.c: Added wstrdup(). Jeremy. (This used to be commit ca64f4ab00c6d54022ba9bd4b869523566a242d7)
* First cut at unicode sys_xx functions. Now to start moving upwards.....Jeremy Allison1999-12-221-0/+169
| | | | | Jeremy. (This used to be commit b5eb009cc3cfd1adc044e91911d59acdb54c30cb)
* Ok - we now have the following functions for UNICODE support :Jeremy Allison1999-12-221-0/+127
| | | | | | | | | | | | | | | | | | unicode_to_unix() unix_to_unicode() unicode_to_dos() dos_to_unicode() wstrlen() safe_wstrcpy() safe_wstrcat() wstrcmp() wstrncmp() wstrstr() wstrchr() wstrrchr() wstrtok() Jeremy. (This used to be commit ae34e2589ac32b7144607b77bd0d42bc74b42aff)
* Added new unicode functions - not used yet, but are the basis for theJeremy Allison1999-12-211-1/+209
| | | | | | internal unicode conversion of Samba. Jeremy. (This used to be commit 302412df64aa4b6572b13ef61dfd68c3f8ebbb8b)
* converted all our existing shared memory code to use a tdb databaseAndrew Tridgell1999-12-211-0/+21
| | | | | | | | | | | | | | instead of either sysv or mmap shared memory or lock files. this means we can now completely remove locking_shm.c locking_slow.c shmem.c shmem_sysv.c and lots of other things also got simpler locking.c got a bit larger, but is much better compartmentalised now (This used to be commit e48c2d9937eea0667b8cd3332e49c06314ef31e7)
* lib/fnmatch.c from 2.0.6Andrew Tridgell1999-12-171-0/+200
| | | | (This used to be commit dadad3ed675c8ec141abef7836f64de9da13b14d)
* interfaces.c from 2.0.6Andrew Tridgell1999-12-171-0/+401
| | | | (This used to be commit 4e1458b8c161f87339eba251c2179946d3b0405a)
* util_sec.c from 2.0.6Andrew Tridgell1999-12-171-0/+326
| | | | (This used to be commit 955d187139365d16f3fca1abd3853ca4e49f244c)
* Unicode conversion fix in Japanese environment from Motonobu TAKAHASHI.Jeremy Allison1999-12-132-2/+1319
| | | | | Jeremy. (This used to be commit decc6ebca29abd78754c275352de58b0de2e2aa5)
* 2nd phase of head branch sync with SAMBA_2_0 - this delets all the files ↵Andrew Tridgell1999-12-1318-6540/+0
| | | | | | that were in the head branch but weren't in SAMBA_2_0 (This used to be commit d7b208786590b5a28618590172b8d523627dda09)
* first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1999-12-1325-3050/+2890
| | | | (This used to be commit 453a822a76780063dff23526c35408866d0c0154)
* changed function name of get_home_dir() to get_unixhome_dir(), to stopLuke Leighton1999-12-122-5/+5
| | | | | | | | clash with gnu readline library. fixed issue with [homes] service not being there - call lp_add_home() just before starting the msrpc processing. (This used to be commit 054195df9b6187c663ede5cf4489499abbdc29fc)
* final part of "first" phase converting over to msrpc daemon architecture.Luke Leighton1999-12-123-252/+241
| | | | | | | | | | | | | done a minimal amout of clean-up in the Makefile, removing unnecessary modules from the link stage. this is not complete, yet, and will involve some changes, for example to smbd, to remove dependencies on the password database API that shouldn't be there. for example, smbd should not ever call getsmbpwXXX() it should call the Samr or Lsa API. this first implementation has minor problems with not reinstantiating the same services as the caller. the "homes" service is a good example. (This used to be commit caa50525220b0d0250fa139367593c2de2c12135)
* delineation between smb and msrpc more marked. smbd now constructsLuke Leighton1999-12-125-53/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pdus, and then feeds them over either a "local" function call or a "remote" function call to an msrpc service. the "remote" msrpc daemon, on the other side of a unix socket, then calls the same "local" function that smbd would, if the msrpc service were being run from inside smbd. this allows a transition from local msrpc services (inside the same smbd process) to remote (over a unix socket). removed reference to pipes_struct in msrpc services. all msrpc processing functions take rpcsrv_struct which is a structure containing state info for the msrpc functions to decode and create pdus. created become_vuser() which does everything not related to connection_struct that become_user() does. removed, as best i could, connection_struct dependencies from the nt spoolss printing code. todo: remove dcinfo from rpcsrv_struct because this stores NETLOGON-specific info on a per-connection basis, and if the connection dies then so does the info, and that's a fairly serious problem. had to put pretty much everything that is in user_struct into parse_creds.c to feed unix user info over to the msrpc daemons. why? because it's expensive to do unix password/group database lookups, and it's definitely expensive to do nt user profile lookups, not to mention pretty difficult and if you did either of these it would introduce a complication / unnecessary interdependency. so, send uid/gid/num_groups/gid_t* + SID+num_rids+domain_group_rids* + unix username + nt username + nt domain + user session key etc. this is the MINIMUM info identified so far that's actually implemented. missing bits include the called and calling netbios names etc. (basically, anything that can be loaded into standard_sub() and standard_sub_basic()...) (This used to be commit aa3c659a8dba0437c17c60055a6ed30fdfecdb6d)
* OK. This code works on a RedHat 6.0 system. However smbpasswdGerald Carter1999-12-091-2/+9
| | | | | | | | | | | | | | | | | | time out of sending the session setup on Solaris 2.6. No idea. I'll work on it some tomorrow. This is to fix the "Unable to setup password vectors" thingy. Also changed an inet_aton() to inet_addr() as the former is not very portable :-) Luke, I set the redir flag to false because the connection to the smb-agent was failing and smbpasswd bombed. Double check me on this one. -jc (This used to be commit e1d2b174caf5f0c48a8fac25778f72a868ec6eb7)
* jerry spotted that get_domain_sids() was being called with the wrongLuke Leighton1999-12-082-13/+3
| | | | | | arguments: get_any_dc_name() was being called with a server name not a domain name. oops. (This used to be commit 631814302d6992138cfe024ba7bd456cc7e0d3bf)
* ABOUT TIME!!!!!!!!Luke Leighton1999-12-084-109/+123
| | | | | | | | | | | | | | | | damn, this one is bad. started, at least two days ago, to add an authentication mechanism to the smbd<->msrpc redirector/relay, such that sufficient unix / nt information could be transferred across the unix socket to do a become_user() on the other side of the socket. it is necessary that the msrpc daemon inherit the same unix and nt credentials as the smbd process from which it was spawned, until such time as the msrpc daemon receives an authentication request of its own, whereupon the msrpc daemon is responsible for authenticating the new credentials and doing yet another become_user() etc sequence. (This used to be commit 30c7fdd6ef10ecd35594311c1b250b95ff895489)
* the first independent msrpc daemon - lsarpcd.Luke Leighton1999-12-066-9/+547
| | | | | | | | | | | | | | | | one horrible cut / paste job from smbd, plus a code split of shared components between the two. the job is not _yet_ complete, as i need to be able to do a become_user() call for security reasons. i picked lsarpcd first because you don't _need_ security on it (microsoft botched so badly on this one, it's not real. at least they fixed this in nt5 with restrictanonymous=0x2). fixing this involves sending the current smb and unix credentials down the unix pipe so that the daemon it eventually goes to can pick them up at the other end. i can't believe this all worked!!! (This used to be commit 2245b0c6d13c7c5886e81f9137b05df883598c26)