summaryrefslogtreecommitdiffstats
path: root/source/smbd/service.c
Commit message (Collapse)AuthorAgeFilesLines
* sync with SAMBA_2_2 for 2.2.6rc1Gerald Carter2002-10-091-16/+12
|
* merging for 2.2.6pre1Gerald Carter2002-07-271-17/+6
|
* beginning to sync up for 2.2.5 release....Gerald Carter2002-06-171-2/+2
|
* Start of merge to 2_2_RELEASE branch for release.Jeremy Allison2002-04-301-7/+48
| | | | Jeremy.
* Move over to RELEASE branch.Jeremy Allison2002-02-011-48/+50
| | | | Jeremy.
* Sync-up with SAMBA_2_2 branch.Jeremy Allison2001-10-111-0/+4
| | | | Jeremy.
* Syncup getting ready for release.Jeremy Allison2001-07-061-36/+6
| | | | Jeremy.
* - remove template from smbrun(). Now uses /tmp and mkstempAndrew Tridgell2001-04-131-4/+4
| | | | | | | - fixed some uninitialised variable warnings - removed smbrun utility (never used) - removed some incorrect varargs usage - removed smbrun smb.conf option
* As Andrew suggested, make smbrun return a fd for a deleted file which can thenJeremy Allison2001-04-121-4/+4
| | | | | be read. Jeremy.
* Fix for core dump in security = share code with new share security db.Jeremy Allison2001-04-111-22/+22
| | | | Jeremy.
* Added get/set SD's on shares. Check on tcon.Jeremy Allison2001-04-091-0/+23
| | | | Jeremy.
* Fix from Ed Boraas for not core dumping when out of connection structs.Jeremy Allison2001-04-061-1/+0
| | | | Jeremy.
* Patch from Massimo Sivilotti <mass@tanner.com> to log remote machine/ip onJeremy Allison2001-03-261-1/+2
| | | | | connection fail. Jeremy.
* Added ADMIN$ share as an alias for the IPC$ share except refuse guest access.Jeremy Allison2001-03-131-3/+3
| | | | | AS/U wants to do RPC calls down this treeid. Jeremy.
* But Doctor, I had to kill the patient in order to save him....Jeremy Allison2001-02-211-4/+0
| | | | | | | | | | | | | | | | | | | 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.
* smbd/process.c: & type with 0xff for paranioa sake...Jeremy Allison2001-01-241-30/+42
| | | | | | smbd/reply.c smbd/service.c: cause all "add home service" calls to go through a winbindd aware function. Jeremy.
* merge from HEADGerald Carter2001-01-231-2/+6
| | | | jerry
* include/vfs.h:Jeremy Allison2001-01-231-6/+26
| | | | | | | | | | | | | smbd/vfs-wrap.c: smbd/vfs.c: Added fchmod_acl and chmod_acl. lib/substitute.c: smbd/lanman.c: smbd/open.c: smbd/process.c: smbd/reply.c: smbd/service.c: Removed sessetup_user variable. Added current_user_info struct which conatins domain info etc. Added '%D' for client domain parameter. Jeremy.
* synched up with head so that SAMBA_2_2 will compileGerald Carter2000-12-121-1/+3
| | | | (wrong number of args to create_nt_token())
* Raft of changes to sync up with most things in appliance head.Jeremy Allison2000-11-171-38/+20
| | | | | | Added "hide local users" option. Added Andrew's changes for message sending. Jeremy.
* Added a VFS version return to init call. Allows smbd to fail an init ifJeremy Allison2000-11-061-0/+2
| | | | | versions don't match. Jeremy.
* Fix for core dump when build with --with-vfs. Fix from Brad Sahr.Jeremy Allison2000-11-031-3/+12
| | | | Jeremy.
* Patch from Brad Sahr <bsahr@macromedia.com> for WITH_VFS.Jeremy Allison2000-10-281-3/+3
| | | | Jeremy
* Fix to allow smbd to call winbindd if it is running for all group enumeration,Jeremy Allison2000-10-131-10/+6
| | | | | | | | falling back to the UNIX calls on error. This should fix all problems with smbd enumerating all users in all groups in all trusted domains via winbindd. Also changed GETDC to query 1C name rather than 1b name as only the PDC registers 1b. Jeremy.
* Brought Tim's new initgroups winbind functionality. Now need to fixJeremy Allison2000-10-111-1/+0
| | | | | Samba to never call getgrgid/getgrnam when winbindd is running.... Jeremy.
* Restructuring of vfs layer to include a "this" pointer - can be an fsp orJeremy Allison2000-10-061-42/+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.
* Backport of the HEAD vfs changes....Jeremy Allison2000-09-281-5/+5
| | | | Jeremy.
* Added --with-vfs to allow VFS code to be compiled off or on.Jeremy Allison2000-09-261-7/+7
| | | | Jeremy.
* fixed "admin users" option with new security codeAndrew Tridgell2000-08-311-0/+5
|
* Merge from appliance branch.Tim Potter2000-08-281-0/+1
|
* Added an NT_USER_TOKEN structure that is copied/passed around associatedJeremy Allison2000-08-031-65/+73
| | | | | | | 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-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Fix for mounting a printer as a share. Not that there's anythingTim Potter2000-07-251-0/+5
| | | | | | | | | | specifically wrong with this, but Samba is fooled by the client into thinking the printer is a file share. Files copied to the share gather dust in the spool directory and aren't printed. This patch has the effect of not allowing printers to be mounted as file shares. Not sure whether this is the correct solution or not. {Jeremy,JF,Tridge} please check!
* Fixed bug where file access was allowed on IPC$ share.Jeremy Allison2000-05-231-2/+2
| | | | | Return correct error codes on invalid share name. Jeremy.
* added spool_io_printer_driver_info_level_6()Andrew Tridgell2000-05-121-1/+1
| | | | | | thsi function and the associated header structure were autogenerated using a little awk based code geerator I wroe ths evening. I'll commit that next ...
* - changed smb_getpwnam() to use winbind style usernamesAndrew Tridgell2000-05-101-1/+1
| | | | - finished ntdom -> winbind rename in head
* more merging voodooAndrew Tridgell2000-05-101-0/+4
| | | | | | this adds "#define OLD_NTDOMAIN 1" in lots of places. Don't panic - this isn't permanent, it should go after another few merge steps have been done
* a minimal change to get appliance mode to work with winbinddAndrew Tridgell2000-05-041-2/+2
| | | | | | | | | we needed to accept usernames of the form DOMAIN/user, which means we needed to pass the domain to a getpwnam() like routine in certain critical spots. What I'd rather do is get rid of "char *user" everywhere and use the new userdom_struct, but that will have to wait a few days.
* Added sys_fork() and sys_getpid() functions to stop the overheadJeremy Allison2000-05-021-1/+1
| | | | | of doing a system call every time we want to just get our pid. Jeremy.
* Moved deletion of vfs handle into smbd/conn.c as it was being done tooJeremy Allison2000-04-281-16/+0
| | | | | | | | | | soon in smbd/service.c (file operations were being done after the handle was closed). It looks cleaner in smbd/conn.c as it is part of the closing of a conn struct anyway. Jeremy.
* don't copy a null groups listAndrew Tridgell2000-04-221-2/+6
|
* - got rid of the "passive" optionAndrew Tridgell2000-04-191-5/+5
| | | | - cleaned up the standard_sub_*() calls a lot
* finally got sick of the "extern int Client" code and the stupidAndrew Tridgell2000-04-111-5/+3
| | | | | | | | | | | | | | | | assumption that we have one socket everywhere while doing so I discovered a few bugs! 1) the clientgen session retarget code if used from smbd or nmbd would cause a crash as it called close_sockets() which closed our main socket! fixed by removing close_sockets() completely - it is unnecessary 2) the caching in client_addr() and client_name() was bogus - it could easily get fooled and give the wrong result. fixed. 3) the retarget could could recurse, allowing an easy denial of service attack on nmbd. fixed.
* Mega-VFS merge. Yeah baby!Tim Potter2000-02-031-1/+91
| | | | | Synopsis: change every disk access function to work through a vfs_ops structure contained in the connection_struct.
* first cut at using the tdb code for the connections structure, theAndrew Tridgell1999-12-211-4/+4
| | | | | SWAT status page and smbstatus. It made the code _much_ simpler, I wish we'd done a database module a long time ago!
* first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1999-12-131-144/+118
|
* changed function name of get_home_dir() to get_unixhome_dir(), to stopLuke Leighton1999-12-121-2/+2
| | | | | | | clash with gnu readline library. fixed issue with [homes] service not being there - call lp_add_home() just before starting the msrpc processing.
* Copy service name into vfs_connection_struct.Tim Potter1999-07-221-0/+2
|
* improving authentication code (tidyup).Luke Leighton1999-06-291-2/+2
|
* Moved code that changes the pw_passwd entry (i.e shadow password andTim Potter1999-06-131-1/+1
| | | | | | | | weird unixware stuff) into _Get_Pwnam() to fix a memory allocation bug. Note that the Get_Pwnam() function now returns a const struct passwd * as a hint to other developers not to change entries in the struct passwd.