summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Simplified server pipe implementation by changing arguments passed downTim Potter2000-06-167-170/+259
| | | | | | | through to the individual pipe api calls. Instead of passing two prs_struct pointers, we now pass the pipes_struct pointer which contains the former information as well as other useful stuff like the vuid. (This used to be commit 96addba216bad2189120d78f5531d5caa6f37880)
* support both read and write locks inside the tdbAndrew Tridgell2000-06-151-1/+6
| | | | (This used to be commit d0a1f96e0f699f8e3ceb0e0d826423cd643803e7)
* - use read locks when possibleAndrew Tridgell2000-06-151-42/+44
| | | | | - don't use as many locks on a store (This used to be commit ee12b10d21022287baf4432d1df743c4b28223b2)
* use the right MMAP flagAndrew Tridgell2000-06-151-1/+1
| | | | (This used to be commit a2f5977ac34d02cd64acd0022cb5bc065eab713f)
* open files with O_NONBLOCK when available. This is necessary toAndrew Tridgell2000-06-151-1/+6
| | | | | | | | prevent possible deadlocks with kernel leases and harmless when kernel leases are not used. basically we don't ever want smbd to block (This used to be commit 9fd67b94a7e43c9dcbe098940b88879ae8743c00)
* added support for kernel level share modes. These are a (small) hack,Andrew Tridgell2000-06-156-132/+233
| | | | | | I suspect we will either get rid of them or do them properly at some stage. (This used to be commit fabe1f350e1fc58db33d22cebd38652950697ced)
* add -d debuglevel optionAndrew Tridgell2000-06-151-1/+5
| | | | (This used to be commit 448f21325f8ff53f3ff5e45c22e07f7164529bc9)
* Removed some debugs.Tim Potter2000-06-151-12/+0
| | | | (This used to be commit 6faa963b232b4c4d883c1b346c73b2f2b6da6370)
* Added nsswitch/common.o to SMBD_OBJ1Tim Potter2000-06-141-1/+1
| | | | (This used to be commit 6c743427dfa2fbd6f3ab47991165db9e705eba20)
* Changed server side lsa_lookup_sids function to look up SIDs that we areTim Potter2000-06-141-28/+74
| | | | | not authoritative for using winbindd. (This used to be commit a39cdffb141a8e4188b00dfb6eb3317f134cddda)
* #include nsswitch/winbind_nss.hTim Potter2000-06-141-0/+2
| | | | (This used to be commit ce40ba9fba62d4debc43ab53b8564fc24d1f9e3b)
* Merge from TNG.Tim Potter2000-06-142-55/+157
| | | | (This used to be commit e5cb97dda89fe23612b75861232591e4831733e0)
* Merged parse_domain_user() from TNG.Tim Potter2000-06-141-0/+20
| | | | (This used to be commit f64ac9d9068901862290f7b25874156d6f0d4d73)
* allow the notify implementation to choose the select timeout changeAndrew Tridgell2000-06-147-17/+21
| | | | (This used to be commit b1441d9622609af5ef598c5e1e1f5af438dc0731)
* fixed autoconf test for kernel change notify supportAndrew Tridgell2000-06-143-131/+203
| | | | (This used to be commit 92d0382c9e1d6d31e6047ca3d78523a3204d36f8)
* ZERO_STRUCT() of info3 structure before using it.Tim Potter2000-06-141-0/+2
| | | | (This used to be commit efe7f818c927a925f2dee1ef4f6040c137e0c84e)
* If I use nmblookup to search for node ZOOB#1B and there is no such nameChristopher R. Hertel2000-06-131-4/+6
| | | | | | | | | | | | | | | | registered within the search space, nmblookup would report name_query failed to find name ZOOB I've changed it to report any non-zero type, so the above message becomes name_query failed to find name ZOOB#1B If the query is for ZOOB or even ZOOB#00 then the old style error message is given. Chris -)----- (This used to be commit 5ecf0c61718afbc7106e853d327428bd72f77690)
* Removed a patch that Andrew had added because 'insure' was incorrectlyChristopher R. Hertel2000-06-131-9/+0
| | | | | | reporting a memory leak in the cache module. I've modified the cache code to prevent insure getting confused, so the patch can now be removed. (This used to be commit 50599b0fa2b78109e3bd2cf50007dc69c4059955)
* proto updateAndrew Tridgell2000-06-131-1/+7
| | | | (This used to be commit 7d0f9258589c2856dbc54a10ee35c26201d16f41)
* argv parsing fixesAndrew Tridgell2000-06-131-2/+2
| | | | (This used to be commit 502751cc62df7395683dc45d15887535baa5656b)
* allow for lots of connections per serverAndrew Tridgell2000-06-131-75/+76
| | | | (This used to be commit 4bbc218922d2b1f40d50a611a389c9956851050f)
* allow posix locking database to be opened read-only (for smbstatus)Andrew Tridgell2000-06-132-11/+11
| | | | (This used to be commit b9d78738bb30da3d989dfacc95cfde529f2afca5)
* add some bracketsAndrew Tridgell2000-06-131-1/+1
| | | | (This used to be commit bf67721ef5cc6d5ad1762fca320ef612025b4593)
* added -L switch to tell smbtorture to use oplocksAndrew Tridgell2000-06-132-4/+7
| | | | (This used to be commit 73033d0803317c7de017cac7f7669f4afb08e7c0)
* use DN_ATTRIB kernel change notify attributeAndrew Tridgell2000-06-131-3/+7
| | | | (This used to be commit 9f542484d11b7b908d3170b702b3bad82ba71525)
* fixed the change notify bit definitionsAndrew Tridgell2000-06-131-1/+2
| | | | (This used to be commit 17d3c3a14885a42889d69459e7b3af7040a45499)
* always use the DN_CREATE mask (NT expects file creation always toAndrew Tridgell2000-06-131-8/+3
| | | | | cause a notify) (This used to be commit 20a06b7fb7c855e874b79b86251d597e7797b3c0)
* forgot to checkin select.cAndrew Tridgell2000-06-131-0/+107
| | | | (This used to be commit 719bc2f130393a55058f5c45ca6fbd30a78de2dc)
* Created manpage for wbinfo program.Tim Potter2000-06-136-101/+501
| | | | | Misc documentation updates for winbindd manpage. (This used to be commit 1f225fddd93d8569d9836310e2f0a56be7f4250e)
* enable the Linux change notify code and change some notify debug codeAndrew Tridgell2000-06-124-16/+65
| | | | (This used to be commit c6be511fcc1be79619a0184f03d4c33dbfe12f04)
* totally rewrote the async signal, notification and oplock notificationAndrew Tridgell2000-06-1217-584/+698
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | handling in Samba. This was needed due to several limitations and races in the previous code - as a side effect the new code is much cleaner :) in summary: - changed sys_select() to avoid a signal/select race condition. It is a rare race but once we have signals doing notification and oplocks it is important. - changed our main processing loop to take advantage of the new sys_select semantics - split the notify code into implementaion dependent and general parts. Added the following structure that defines an implementation: struct cnotify_fns { void * (*register_notify)(connection_struct *conn, char *path, uint32 flags); BOOL (*check_notify)(connection_struct *conn, uint16 vuid, char *path, uint32 flags, void *data, time_t t); void (*remove_notify)(void *data); }; then I wrote two implementations, one using hash/poll (like our old code) and the other using the new Linux kernel change notify. It should be easy to add other change notify implementations by creating a sructure of the above type. - fixed a bug in change notify where we were returning the wrong error code. - rewrote the core change notify code to be much simpler - moved to real-time signals for leases and change notify Amazingly, it all seems to work. I was very surprised! (This used to be commit 44766c39e0027c762bee8b33b12c621c109a3267)
* fixed a bug in BlockSignals() for systems that don't haveAndrew Tridgell2000-06-121-4/+2
| | | | | sigprocmask() (This used to be commit abf06fa90ba49f6a1ec5458d056f8b8cf20b6512)
* fixed comments at top of moduleAndrew Tridgell2000-06-121-2/+3
| | | | (This used to be commit 02577ab7d275dfb49e104f3358cb3caa66b3b09e)
* split all the change notify code out into a separate moduleAndrew Tridgell2000-06-124-409/+439
| | | | | | | | | smbd/notify.c. All the data structures are now private to that module. this is in preparation for Linux kernel support for change notify (coming soon to a CVS tree near you) (This used to be commit 1bb0aad4f66dbfa2d0f767ea90f926affff20b17)
* a better test for oplocks being enabled in this kernelAndrew Tridgell2000-06-111-1/+18
| | | | (This used to be commit cc0e919fdcb116c8f9688a4f5d7803fc8d7f9588)
* fixed Linux capabilities handlingAndrew Tridgell2000-06-112-33/+39
| | | | | | | I used a trick where CAP_LEASE isn't claimed until it is needed. This means we avoid a system call per setreuid(), and never call capset() unless a user tries to get a oplock on a file that they don't own (This used to be commit afa98d511f70f455d599c3a36dd25e49fe74ac09)
* Linux kernel oplocks now seem to work, but need a _lot_ of testingAndrew Tridgell2000-06-1116-79/+166
| | | | | | I had to modify sys_select() to not loop on EINTR. I added a wrapper called sys_select_intr() which gives the old behaviour. (This used to be commit b28cc4163bc2faaa80c5782fc02c8f03c410cdeb)
* parsing code for reply[open|close]printer in preparation of the eventJean-François Micouleau2000-06-103-1/+126
| | | | | | | stuff. J.F. (This used to be commit 1871d4a3f64401f9a6f749ce26d1715e3bcdeac3)
* a first pass at Linux kernel oplocks supportAndrew Tridgell2000-06-106-26/+212
| | | | (This used to be commit 3253085d9883a181c04b9c9ecf7d0ccdfbcee88d)
* continued the split of the kernel level oplocks code into a moreAndrew Tridgell2000-06-107-429/+436
| | | | | | modular form. In this pass I added oplock_irix.c and added a "struct kernel_oplocks" that describes a kernel oplock implementation. (This used to be commit b5ceab810292602ea9a81696c20a781c16b706c2)
* continued the split of the kernel level oplocks code into a moreAndrew Tridgell2000-06-104-782/+617
| | | | | | | | | | modular form. In this pass I added oplock_irix.c and added a "struct kernel_oplocks" that describes a kernel oplock implementation. I also removed the maintainence mode from the Makefile. It was causing too much trouble. If someone really likes it they can keep a patch around to enable it themselves. (This used to be commit fbeb9804344ab3aa1dd6635a5524aa09065e04f5)
* (Correct) fix for desired_access being zero in map_share_mode().Jeremy Allison2000-06-091-12/+12
| | | | | Jeremy. (This used to be commit cc447fbe3cd77d57e18c3d1dff94a95d6032c311)
* Fix from Elrond for hash table corruption. Should fix stat cache bug (IJeremy Allison2000-06-092-3/+11
| | | | | | sincerely hope :-). Thanks elrond ! Jeremy. (This used to be commit 0d59e8c6bf49e06f11b386f9d805474771365f52)
* Luke, I am moving the code back into passdb/passdb.c, this the correctJeremy Allison2000-06-097-70/+65
| | | | | | | | | | | | | | place to do this, not in smbd/passwd.c Please don't change this without asking first, I have run this past Andrew so talk to him (I'm on vacation next week). I also removed the g_newXXX macros. There are essentially a private C extension, not used anywhere else in the code, and add no functionality over malloc(XX) and make the code harder to understand (everyone knows what malloc does). Jeremy. (This used to be commit e1b1b6fb6794ba02e1fea510a981fa0ce0d12b58)
* do some standard_sub_advanced() in api_net_sam_logon on lp_logon_xxx().Jean-François Micouleau2000-06-093-5/+18
| | | | | | | | and if you have unix realname=yes, you get the gecos name when locking the station. J.F. (This used to be commit b5ad24ae0b15643df5832e2369fb4e43c98a1359)
* untiltime should be 0 by default to cover the whole 24 hours.Jean-François Micouleau2000-06-091-3/+3
| | | | | J.F. (This used to be commit 53aff484a6a37c83fd2e21d48fd1a5fcbad2f511)
* clean up oplock capability code ready for Linux codeAndrew Tridgell2000-06-096-559/+559
| | | | (This used to be commit 70dcc791b45ac64fc536ef449e4e6b53b2b68fd4)
* the Linux F_GETLEASE value has changedAndrew Tridgell2000-06-091-1/+1
| | | | (This used to be commit 2a3c994a96dc96f379c4cffbcc3ca314c3d6d292)
* some templates needed for the new aparser stuffAndrew Tridgell2000-06-092-0/+27
| | | | (This used to be commit e13089b040d5df4e611a120ec7fce20757dc196a)
* split some of the irix kernel oplocks code into a functionAndrew Tridgell2000-06-091-68/+74
| | | | (This used to be commit 6b888d600d95e2595c3f79494edcc55e88e2980d)