summaryrefslogtreecommitdiffstats
path: root/source/include/smb.h
Commit message (Collapse)AuthorAgeFilesLines
* beginning to sync up for 2.2.5 release....Gerald Carter2002-06-171-6/+16
|
* Start of merge to 2_2_RELEASE branch for release.Jeremy Allison2002-04-301-21/+32
| | | | Jeremy.
* Move over to RELEASE branch.Jeremy Allison2002-02-011-44/+103
| | | | Jeremy.
* Sync-up with SAMBA_2_2 branch.Jeremy Allison2001-10-111-227/+57
| | | | Jeremy.
* Syncup getting ready for release.Jeremy Allison2001-07-061-1/+19
| | | | Jeremy.
* Added other_safe_chars to alpha_strcpy(). Better fix for problem.Jeremy Allison2001-06-231-0/+2
| | | | Jeremy.
* portability fixed for sco1.samba.orgAndrew Tridgell2001-04-131-2/+2
|
* Updated Major/Minor version from 4.20 to 4.50John Terpstra2001-04-131-9/+13
|
* This is a big, rather ugly patch. Whilst investigating the files not truncatedJeremy Allison2001-03-301-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | when copying to a full disk problem, I discovered that we were not allowing the delete on close flag to be set properly, this led to other things, and after investigation of the proper delete on close semantics and their relationship to the file_share_delete flag I discovered there were some cases where we weren't doing the deny modes properly. And this after only 5 years working on them..... :-) :-). So here's the latest attempt. I realised the delete on close flag needs to be set across all smbds with a dev/ino pair open - in addition, the delete on close flag, allow share delete and delete access requested all need to be stored in the share mode tdb. The "delete_on_close" entry in the fsp struct is now redundant and should really be removed. This may also mean we can get rid of the "iterate_fsp" calls that I didn't like adding in the first place. Whilst doing this patch, I also discovered we needed to do the se_map_generic() call for file opens and POSIX ACL mapping, so I added that also. This code, although ugly, now passes the deny mode torture tests plus the delete on close tests I added. I do need to add one more multiple connection delete on close test to make sure I got the semantics exactly right, plus we should also (as Andrew suggested) move to random testing here. The good news is that NT should now correctly delete the file on disk full error when copying to a disk :-). Jeremy.
* Moved cruft out of smb.h into ntdomain.h where it belongs. dc structJeremy Allison2001-03-111-45/+0
| | | | | | | | | now in pipe struct (where used) rather than user_struct. Secured machine account password changing in srv_netlog_nt.c - ensure that only the given machine can change its own password. May need to free this up later for NT admin tools, but this is a fail-safe secure position for now. Jeremy.
* Sync up include files between 2.2 and HEAD except for the account info.Jeremy Allison2001-03-111-0/+10
| | | | Jeremy.
* include/rpc_spoolss.h: Added JOB_STATUS_XXX defines.Jeremy Allison2001-02-231-1/+4
| | | | | | | | | | | | | include/smb.h: Added LPQ_xx enums to correspond with the NT JOB_STATUS_XXX. We need these to be different as we're storing LPQ_xx enums in the tdb already. rpc_server/srv_spoolss_nt.c: Don't need to return status strings as we're now returning status codes. smbd/lanman.c: Change the RAP status codes to have "RAP" in the name. printing/printing.c: Keep track of the status of a job. Allow a job to be deleted from one smbd when being submitted by another. Made logic in mutex clearer. Jeremy.
* But Doctor, I had to kill the patient in order to save him....Jeremy Allison2001-02-211-4/+4
| | | | | | | | | | | | | | | | | | | This will probably break 2.2 for a while. Do *NOT* checkout unless you like core dumps. This is the first merge of the TNG SAMR code into 2.2. It will eventually give us a wonderful PDC, but maybe painful in the short term. It had to be done however, and this touches almost every file (mostly just removing the OLD_NT_DOMAIN) stuff. I removed some SAMR functionality from rpcclient that would no longer compile. Also changed fstring to 256 bytes to better match an NT pathname. Jeremy.
* Merges from appliance-head. Added max print jobs parameter that limits totalJeremy Allison2001-01-231-0/+1
| | | | | number of print jobs in the system. Tidyups for messages.c. Jeremy.
* Moving over of posix_acl code into 2.2. Needs testing !Jeremy Allison2001-01-121-0/+1
| | | | Jeremy.
* Big merge to sync up appliance-head and 2.2.Jeremy Allison2001-01-081-0/+10
| | | | Jeremy.
* Syncup of smbcacls from HEAD. Removal of C++ comments.Jeremy Allison2000-12-041-0/+3
| | | | Jeremy.
* include/dlinklist.h: Added '{' '}' around DLIST_PROMOTE so it can be used as ↵Jeremy Allison2000-11-281-1/+3
| | | | | | | | | | a single statement after an 'if'. Tracking this down took 4 hours from my life and ANDREW I WANT THEM BACK !!!!! :-). include/smb.h smbd/password.c: Fixed the bug veritas reported with realloc of the validated_users array growing without bounds. This is now a linked list as god (Andrew) intended :-). Jeremy.
* Fix from Jim McDonough @ IBM for OS/2 clients.Jeremy Allison2000-11-161-0/+1
| | | | Jeremy.
* Changes from APPLIANCE_HEAD:David O'Neill2000-11-161-1/+6
| | | | - stuff that got missed for virtual lp
* Fix for growing printing.tdb by adding check on job creation.Jeremy Allison2000-10-111-0/+1
| | | | | This also updates the printing.tdb db version to 2. Jeremy.
* Integrated support for NT and OS/2 lpq parsing. Code fromJeremy Allison2000-10-071-1/+1
| | | | | | | | | Jim McDonough Infoprint Manager Development Linux Technology Center IBM Boulder Jeremy.
* Fix for printf attribute from Mattias Gronlund <Mattias.Gronlund@sa.erisoft.se>Jeremy Allison2000-10-061-2/+2
| | | | | Added "codepage directory" patch from Peter.Polkinghorne@brunel.ac.uk Jeremy.
* includes.h always include profile.hHerb Lewis2000-10-061-7/+0
| | | | | | | | | | | | | | | smb.h move FLUSH_REASONS to profile.h now that it is included by all profile.h add FLUSH_REASONS, add external declarations for profile_starttime, profile_endtime, do_profile_flag which are defined in profile/profile.c Modify PROFILE macros profile.c always include this function. It is still called under an #ifdef WITH_PROFILE but we need the above variables so we might as well include the function as well. fileio.c use new PROFILE macros to make code cleaner looking reply.c fix a typo in one START_PROFILE call statcache.c use new PROFILE macros to make code cleaner looking vfs_wrap.c use new PROFILE macros to make code cleaner looking added time profiling to each call.
* Restructuring of vfs layer to include a "this" pointer - can be an fsp orJeremy Allison2000-10-061-1/+2
| | | | | | | | | | | | | | a conn struct depending on the call. We need this to have a clean NT ACL call interface. This will break any existing VFS libraries (that's why this is pre-release code). In addition - added Herb's WITH_PROFILE changes - Herb - please examine the changes I've made to the smbd/reply.c code you added. The original code was very ugly and I have replaced it with a START_PROFILE(x)/END_PROFILE(x) pair using the preprocessor. Please check this compiles ok with the --with-profile switch. Jeremy.
* move flush write cache reasons back to smb.h for nowHerb Lewis2000-10-051-0/+7
|
* move write cache flush reasons definitions to profile.hHerb Lewis2000-10-051-8/+0
| | | | new profile counters structure.
* Win32 API is explicit that EnumPrinterData returns ERROR_MORE_DATA notJeremy Allison2000-09-081-0/+1
| | | | | | ERROR_INSUFICIENT_BUFFER when working out what space is needed. This fix gives us the same return that WinNT does. Jeremy.
* Documentation on NT_USER_TOKEN. Requested by Sander.Jeremy Allison2000-08-231-0/+5
| | | | Jeremy.
* Tidied up security rights definitions.Jeremy Allison2000-08-101-7/+8
| | | | Jeremy.
* Added an NT_USER_TOKEN structure that is copied/passed around associatedJeremy Allison2000-08-031-1/+11
| | | | | | | with the current user. This will allow se_access_check() to quickly do a SD check without having to translate uid/gid's to SIDs. Still needs work on pipe calls. Jeremy.
* Started to canonicalize our handling of uid -> sid code in order toJeremy Allison2000-08-021-8/+12
| | | | | | | | | | | | | | | | | | | | | | | | | get ready and fix se_access_check(). Added cannonical lookup_name(), lookup_sid(), uid_to_sid(), gid_to_sid() functions that look via winbind first the fall back on local lookup. All Samba should use these rather than trying to call winbindd code directly. Added NT_USER_TOKEN struct in user_struct, contains list of NT sids associated with this user. se_access_check() should use this (cached) value rather than attempting to do the same thing itself when given a uid/gid pair. More work needs to be done to preserve these things accross security context changes (especially with the tricky pipe problem) but I'm beginning to see how this will be done..... probably by registering a new vuid for an authenticated RPC pipe and not treating the pipe calls specially. More thoughts needed - but we're almost there... Jeremy.
* A rather big change set ! (listed in no particular order)Jean-François Micouleau2000-07-251-0/+2
| | | | | | | | | | | | | | | | | | | | | - changed the default forms flag to 2 - all short architecture name are uppercased - get_short_archi() is now case unsensitive - the drivers TDB is indexed by archi/version/name - implemented code to move drivers from the upload area to the download area. Someone else need to look at that code. - don't return anymore a default driver if it doesn't exist in the TDB. Instead return an error. - cleaned prs_unistr. - #ifdef out jeremy's new SD parsing in printer_info_2 - removed the unused MANGLE_CODE - #ifdef out the security checking in update_printer() as it doesn't work for me. Zap your ntdrivers.tdb, it won't work anymore. J.F.
* reverted a some previous additions.Gerald Carter2000-07-151-15/+4
| | | | | | | Removed msrpc_local struct --jerry
* don't need shmem any moreAndrew Tridgell2000-07-061-29/+0
|
* Some more sec_ctx changes. Modified some fields in the pipe_structTim Potter2000-07-031-4/+5
| | | | | structure so authenticated pipe users can have their unix groups set when become_authenticated_pipe_user() is called.
* first pass at merging rpcclient from TNG to HEAD. You can get aGerald Carter2000-07-031-0/+35
| | | | | | | | | | | | | | semi-connection and a rpcclient prompt, but no functionality there yet. Will be a few more days on that. The changes to the header files were minor. A few struct's and a few additional fields to existing ones. No deletions. **minimal change necessary** :-) Well, maybe not minimal, but I tried. All other programs compile, link and run ok from what I can tell so I don;t think I broke anything. --jerry
* A neater way of solving the S_ISSOCK, S_ISFIFO problem.Tim Potter2000-06-211-47/+0
| | | | Moved the S_* macros from smb.h to includes.h
* #include nsswitch/winbind_nss.hTim Potter2000-06-141-0/+2
|
* allow the notify implementation to choose the select timeout changeAndrew Tridgell2000-06-141-0/+1
|
* fixed the change notify bit definitionsAndrew Tridgell2000-06-131-1/+2
|
* totally rewrote the async signal, notification and oplock notificationAndrew Tridgell2000-06-121-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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!
* a first pass at Linux kernel oplocks supportAndrew Tridgell2000-06-101-4/+1
|
* continued the split of the kernel level oplocks code into a moreAndrew Tridgell2000-06-101-1/+13
| | | | | modular form. In this pass I added oplock_irix.c and added a "struct kernel_oplocks" that describes a kernel oplock implementation.
* Luke, I am moving the code back into passdb/passdb.c, this the correctJeremy Allison2000-06-091-1/+6
| | | | | | | | | | | | | 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.
* reverted jeremy's changes that removed NET_USER_INFO_3. will you pleaseLuke Leighton2000-06-091-2/+1
| | | | not just undercut work in progress, thank you.
* include/smb.h: Removed NET_USER_3 struct from user struct. It doesn't belong ↵Jeremy Allison2000-06-081-1/+2
| | | | | | | | | | | | | there (yet) as there is no infrastructure for it. Replaced it with a dynamic array of group SIDs plus a user. passdb/passdb.c: Added setup_user_sids() function. This is where the lookup should be done, eventually calling winbind. smbd/password.c: Changed to call setup_user_sids(). Removed spurious DEBUG(0) statements. smbd/reply.c: Removed extra parameter to register_vuid(). Jeremy.
* added a NET_USER_INFO_3 struct to user_struct.Luke Leighton2000-06-081-18/+20
| | | | register_vuid fills it with constructed info.
* - changed HAVE_KERNEL_OPLOCKS to HAVE_KERNEL_OPLOCKS_IRIXAndrew Tridgell2000-06-081-2/+2
| | | | - added autoconf test for HAVE_KERNEL_OPLOCKS_LINUX
* lp_server_role() + use in srv_reg.Luke Leighton2000-05-281-0/+10
|