summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* This commit was manufactured by cvs2svn to create tagsamba-misc-tags/SAMBA_TNG_2_5_GOODcvs2svn Import User2000-04-241-401/+0
| | | 'SAMBA_TNG_2_5_GOOD'.
* preparing for release of alpha.2.5Samba Release Account2000-04-2463-67/+65
|
* merge.Luke Leighton2000-04-242-24/+64
|
* sizeof(fstring) needed, not sizeof(arg).Luke Leighton2000-04-244-4/+4
|
* memory over-read. insure strikes again.Luke Leighton2000-04-231-1/+1
|
* more insure stuff.Luke Leighton2000-04-234-107/+114
|
* insure is cool.Luke Leighton2000-04-238-9/+48
|
* replaced Memcpy with memcpy_zero.Luke Leighton2000-04-2310-176/+177
|
* back to square 1 (again) - rpcclient now works.Luke Leighton2000-04-232-4/+6
|
* count wrong in RNetShareEnumLuke Leighton2000-04-231-1/+2
|
* more mergeLuke Leighton2000-04-233-70/+8
|
* mergeLuke Leighton2000-04-234-17/+28
|
* This commit was manufactured by cvs2svn to create branch 'SAMBA_TNG'.cvs2svn Import User2000-04-231-0/+91
|\
| * split fsp specific routines out of printing.c to fix linking problemAndrew Tridgell2000-04-232-65/+91
| | | | | | | | in TNG
| * fixed two uninitialised memory referencesAndrew Tridgell2000-04-231-2/+2
| |
| * trick to get full stack trace when using the free version of insureAndrew Tridgell2000-04-231-0/+24
| |
| * insure caught an uninitialised memory reference - ensure it starts asAndrew Tridgell2000-04-231-0/+2
| | | | | | | | zero
| * avoided a memory leak in the ubi code by deleting a mangled cacheAndrew Tridgell2000-04-231-1/+11
| | | | | | | | | | | | entry before adding to ensure that we don't ever add a duplicate entry this code can be removed when ubi gets fixed
| * fixed a prs memory leak (weren't freeing input buffer)Andrew Tridgell2000-04-231-0/+1
| |
| * if using insure then don't close fd 2Andrew Tridgell2000-04-231-1/+4
| |
| * return NULL for a zero size memdupAndrew Tridgell2000-04-221-0/+1
| |
| * don't copy a null groups listAndrew Tridgell2000-04-221-2/+6
| |
| * fixed overlapping strcpy() found by insureAndrew Tridgell2000-04-221-9/+6
| |
| * fixed uninitialised snumAndrew Tridgell2000-04-221-0/+1
| |
| * This is a *big* checkin that may break some things, but implements theJeremy Allison2000-04-2217-562/+598
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | new open mechanism Andrew & I discussed. config.sub: configure: Included the QNX patch. include/vfs.h: smbd/vfs-wrap.c: smbd/vfs.c: Added ftruncate vfs call (needed). Note that we will also need locking calls in the vfs (to be added). lib/util_unistr.c: nmbd/nmbd_processlogon.c: Fix for NT domain logons causing nmbd to core dump. Also fix for sidsize DOS bug. locking/locking.c: Check value of ret before using it for memdup. printing/printing.c: Convert print_fsp_open to return an allocated fsp. rpc_server/srv_lsa.c: Fix for NT domain logons. I have removed all use of lp_share_modes() from the code (although I left the parameter in the table for backwards compatibility). It no longer makes sense for this to exist. smbd/close.c: Removed lp_share_modes(). smbd/fileio.c: Fixed parameters to unlock_share_entry call in panic code. smbd/files.c: Correctly set the unix_ERR_code to ERRnofids on fsp allocation fail. smbd/nttrans.c: smbd/reply.c: smbd/trans2.c: Changed all occurrences of open_file_shared/open_directory/ open_file_stat to return an fsp from the call. smbd/open.c: Changed all occurrences of open_file_shared/open_directory/ open_file_stat to return an fsp from the call. In addition I have fixed a long standing race condition in the deny mode processing w.r.t. two smbd's creating a file. Andrew, please note that your original idea of using open with O_EXCL in this case would not work (I went over the races very carefully) and so we must re-check deny modes *after* the open() call returns. This is because there is a race between the open with O_EXCL and the lock of the share mode entry. Imagine the case where the first smbd does the open with O_EXCL and a deny mode of DENY_ALL, but is pre-empted before it locks the share modes and creates the deny mode entry for DENY_ALL. A second smbd could then come in with O_RDONLY and a deny mode of DENY_NONE and the two opens would be allowed. The *only* way to fix this race is to lock the share modes after the open and then do the deny mode checks *after* this lock in the case where the file did not originally exist. This code will need extensive testing but seems to initially work. Jeremy.
| * use sys_fsusage() not disk_free() in printing.cAndrew Tridgell2000-04-191-3/+3
| |
* | Major work on architecture of nss client, winbindd and NT serverTim Potter2000-04-231-20/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | communications. Client state now indexed by file descriptor rather than pid number closing a possible security hole. The lsa and samr pipe handles now cached on a per-domain basis which speeds things up dramatically. However it has exposed some problems in the rpc client code. Use and group enumeration code and types simplified quite a bit. Still some work to do in moving yet more state back towards the nss client. The eventual goal is to have nss clients unaffected by the stopping and restarting of the winbind daemon. Some scalability issues still to be addressed.
* | Removed LIBSURS_OBJ from winbind objects.Tim Potter2000-04-231-2/+4
| |
* | Major work on architecture of nss client, winbindd and NT serverTim Potter2000-04-235-597/+452
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | communications. Client state now indexed by file descriptor rather than pid number closing a possible security hole. The lsa and samr pipe handles now cached on a per-domain basis which speeds things up dramatically. However it has exposed some problems in the rpc client code. Use and group enumeration code and types simplified quite a bit. Still some work to do in moving yet more state back towards the nss client. The eventual goal is to have nss clients unaffected by the stopping and restarting of the winbind daemon. Some scalability issues still to be addressed.
* | From HEAD:Elrond2000-04-223-11/+12
| | | | | | | | | | | | | | | | | | reply.c: > fixed overlapping strcpy() found by insure service.c: > don't copy a null groups list In TNG this was already fixed by returning NULL from memdup(NULL)
* | Directly from HEAD:Elrond2000-04-224-14/+10
| | | | | | | | | | installscripts.sh installswat.sh makeyodldocs.sh smbtar
* | moved parse_misc.o and parse_rpc.o from RPC_PARSE_OBJ2 toElrond2000-04-221-7/+9
| | | | | | | | | | | | | | | | | | | | LIBSMB_OBJ, cause libsmb anyway depended on them. Now could remove $(RPC_PARSE_OBJ2) from nmbd and smbclient, and both got 30k smaller. Split PRINTING_OBJ into PRINTING_OBJ and PRINTBACKEND_OBJ, like HEAD. Now swat links, but spoolssd still doesn't link. (Of course, smbd also doesn't compile)
* | From HEAD:Elrond2000-04-221-3/+14
| | | | | | | | | | | | | | | | | | | | > printing/printing.c: Convert print_fsp_open to return an allocated fsp. Now at leat smbd/open.c compiles, but spoolssd and swat don't link any more, cause printing.c now depends on smbd/files.c, which in turn depends on whatever. I guess, swat will not link in HEAD either...
* | From HEAD:Elrond2000-04-221-6/+10
| | | | | | | | | | | | | | | | | | | | | | > nmbd/nmbd_processlogon.c: Fix for NT domain logons causing nmbd to core dump. I didn't see this in the diff. > Also fix for sidsize DOS bug. Saw that. Luke: Can you take a _short_ look at the diff of nmbd_processlogon.c in TNG and HEAD, this looks like unicode-stuff.
* | merge from last 2 days (not compiled).Luke Leighton2000-04-2214-382/+404
| |
* | Made some things static, some of those turned out to beElrond2000-04-208-133/+116
| | | | | | | | | | | | | | | | | | | | | | unused currently, if you need them, make them public again: lib/msrpc-client.c, rpc_client/cli_connect.c, rpc_parse/parse_lsa.c, rpcclient/display_dfs.c merged a little of util_sid.c from HEAD (more cosmetic and ordering) dropped in profile.c from HEAD
* | Split WINBINDD_OBJ into WINBINDD_OBJ1, which containts theElrond2000-04-202-1921/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | winbindd-specific objects and from which the prototypes are generated, and WINBINDD_OBJ, which contains WINBINDD_OBJ1 and library-objects. Did this, cause proto.h just again included all the prototypes for rpc_client and rpc_parse. proto.h went down from 6466 lines / 288k to 4578 lines / 197k ... hope, Tim isn't too angry, that I touched his area.
* | More games with string handling.Tim Potter2000-04-201-4/+10
| |
* | Code review by tridge.Tim Potter2000-04-203-835/+558
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modified daemon architecture to manage partial reads and writes of client data properly. Also keep client socket file descriptors open for as long as possible. Moved client state back a level from inside winbindd_{user,group}.c into winbindd.c All winbindd_* functions now take a winbindd_state pointer as argument rather than selected bits of the request structure. Lots of code moved to winbind_utils.c String handling cleaned up.
* | Code review by tridge.Tim Potter2000-04-201-155/+12
| | | | | | | | | | | | | | | | Cleaned up string handling. Cut out huge swathes of code into winbindd_util.c Renamed a bunch of types.
* | Code review by tridge.Tim Potter2000-04-201-24/+48
| | | | | | | | | | | | | | | | Cleaned up string handling. Moved across group and user state for {set,get,end}{pw,gr}ent() functions. Added externals for domain name, uid and gid lists.
* | Code review by tridge.Tim Potter2000-04-201-0/+503
| | | | | | | | | | Moved across common functions from winbindd.c, winbindd_{user,group}.c and winbindd_surs.c
* | Code review by tridge.Tim Potter2000-04-201-101/+0
| | | | | | | | Moved functions into ntdom.c as they are now only used by the client.
* | Code review by tridge.Tim Potter2000-04-201-111/+199
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Checked result of all system calls == -1 instead of < 0. Cleaned up string handling. Copied across next_token() function from lib/util_string.c and removed call to strtok() function. Keep connection to winbindd UNIX domain socket open rather than closing it after each transaction. Process pid now not required to be passed to winbindd.
* | Removed dependency of libnss_ntdom.so to any other Samba objects.Tim Potter2000-04-201-6/+6
| |
* | added client-side net_enum_trust_dom_list because am trying to track downLuke Leighton2000-04-206-0/+97
| | | | | | | | a reliability-bug.
* | preparing for release of alpha.2.4.2Samba Release Account2000-04-2063-63/+63
| |
* | debugging data-transfer interface (again).Luke Leighton2000-04-202-10/+14
| |
* | Made some things static, will look later, why protos fromElrond2000-04-193-12/+2
| | | | | | | | | | ncacn_np_use.c end up in both proto.h and rpc_client_proto.h.
* | new unicode map files (ranges)Luke Leighton2000-04-190-0/+0
| |