summaryrefslogtreecommitdiffstats
path: root/source/smbd
Commit message (Collapse)AuthorAgeFilesLines
...
* Keep syncing up POSIX ACL work...Jeremy Allison2000-11-301-110/+111
| | | | Jeremy.
* Work in progress, doesn't compile. Adding the POSIX ACL mapping....Jeremy Allison2000-11-301-22/+198
| | | | Jeremy.
* include/dlinklist.h: Added '{' '}' around DLIST_PROMOTE so it can be used as ↵Jeremy Allison2000-11-281-60/+81
| | | | | | | | | | 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.
* passdb/secrets.c passdb/smbpassfile.c smbd/server.c : Actually *use* the codeJeremy Allison2000-11-271-0/+5
| | | | | | | written to transition from an old DOMAIN.MACHINE.MAC file to secrets.tdb. printing/nt_printing.c: Fix case insensitive name lookups for driver files. John - this should fix the Win9x/WinME problem correctly. Jeremy.
* Fixed messaging so main smbd can get lib/message.c messages.Jeremy Allison2000-11-271-0/+8
| | | | Jeremy.
* Removed unnessesary init.Jeremy Allison2000-11-271-1/+1
| | | | Jeremy.
* This should fix Office failing to print to "FILE:".Jeremy Allison2000-11-241-3/+3
| | | | Jeremy.
* Free talloc'ed memory from the main smbd. Patch from Rich Bollinger, Elliott ↵Jeremy Allison2000-11-221-0/+3
| | | | | | Company Jeremy.
* Don't forget to convert into UNIX character set before callingJeremy Allison2000-11-211-1/+1
| | | | | winbindd. Jeremy.
* combined 2 if statments which used the same conditionGerald Carter2000-11-211-3/+5
| | | | -- jerry
* Fix for off-by-one StrnCpy.Jeremy Allison2000-11-211-1/+1
| | | | Jeremy.
* Fix for updating of print queues changed from a local box. Essentially,Jeremy Allison2000-11-212-5/+10
| | | | | | this makes sure that the change messages sent to ourselves are handled synchronously w.r.t. other smb packets incoming. Jeremy.
* we don't need the separate lp_status() connection records any moreAndrew Tridgell2000-11-171-12/+0
|
* fixed the problem with messages not getting throughAndrew Tridgell2000-11-172-36/+27
| | | | | | | | | | the problem had nothing to do with being your own pid, it was instead a problem with IPC$ connections not being registered in the connections database and an incorrect test for -1 in the messaging code. These changes also mean that IPC$ shares now show up in smbstatus. That is probably a good thing.
* Fix from Jim McDonough @ IBM for OS/2 clients.Jeremy Allison2000-11-161-0/+10
| | | | Jeremy.
* Ok - fixed a bug in our levelII oplock code. We need to break a level II onJeremy Allison2000-11-167-104/+220
| | | | | | | | | a byte range lock (write lock only, but Win2k breaks on read lock also so I do the same) - if you think about why, this is obvious. Also fixed our client code to do level II oplocks, if requested, and fixed the code where we would assume the client wanted level II if it advertised itself as being level II capable - it may not want that. Jeremy.
* Merge from appliance head of JR's changes for driver versioning.Jeremy Allison2000-11-144-73/+141
| | | | Jeremy.
* Large commit which restructures the local password storage API.Gerald Carter2000-11-136-156/+168
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently the only backend which works is smbpasswd (tdb, LDAP, and NIS+) are broken, but they were somewhat broken before. :) The following functions implement the storage manipulation interface /*The following definitions come from passdb/pdb_smbpasswd.c */ BOOL pdb_setsampwent (BOOL update); void pdb_endsampwent (void); SAM_ACCOUNT* pdb_getsampwent (void); SAM_ACCOUNT* pdb_getsampwnam (char *username); SAM_ACCOUNT* pdb_getsampwuid (uid_t uid); SAM_ACCOUNT* pdb_getsampwrid (uint32 rid); BOOL pdb_add_sam_account (SAM_ACCOUNT *sampass); BOOL pdb_update_sam_account (SAM_ACCOUNT *sampass, BOOL override); BOOL pdb_delete_sam_account (char* username); There is also a host of pdb_set..() and pdb_get..() functions for manipulating SAM_ACCOUNT struct members. Note that the struct passdb_ops {} has gone away. Also notice that struct smb_passwd (formally in smb.h) has been moved to passdb/pdb_smbpasswd.c and is not accessed outisde of static internal functions in this file. All local password searches should make use of the the SAM_ACCOUNT struct and the previously mentioned functions. I'll write some documentation for this later. The next step is to fix the TDB passdb backend, then work on spliting the backends out into share libraries, and finally get the LDAP backend going. What works and may not: o domain logons from Win9x works o domain logons from WinNT 4 works o user and group enumeration as implemented by Tim works o file and print access works o changing password from Win9x & NT ummm...i'll fix this tonight :) If I broke anything else, just yell and I'll fix it. I think it should be fairly quite. -- jerry
* More merging of printing stuff from appliance.Tim Potter2000-11-081-3/+3
|
* Added a VFS version return to init call. Allows smbd to fail an init ifJeremy Allison2000-11-062-8/+16
| | | | | versions don't match. Jeremy.
* Fix for admin user being ignored.Jeremy Allison2000-11-041-0/+1
| | | | Jeremy.
* Call standard_sub_advanced() after lp_logon_XX() calls.Jeremy Allison2000-10-301-0/+2
| | | | Jeremy.
* David Lee's utmp patch (finally). Thanks David !Jeremy Allison2000-10-283-90/+609
| | | | Jeremy.
* Sorry JF - no billable hours :-). I fixed the "stream of events" problemJeremy Allison2000-10-261-2/+0
| | | | | | | | | with PCL drivers. The problem was we were updating the changeid on every SETPRINTERDATA/DELETEPRINTERDATA call. We should not do this, we should just update the 'setprinter' called count. We update the changeid on calls to SETPRINTER/ADDPRINTER/ADDPRINTEREX etc. Also fixed the correct returning of the create time on printers. Jeremy.
* Fix for vfs_fstat() crash with new stat code.Jeremy Allison2000-10-201-0/+3
| | | | Jeremy.
* Ok - this is a big patch - and it may break smbd a bit (althoughJeremy Allison2000-10-197-226/+199
| | | | | | | | | | | | | | | | | | | | | | | | | | | I hope not). If you encounter strange file-serving behavior after this patch then back it out. I analysed our stat() usage and realised we were doing approx. 3 stat calls per open, and 2 per getattr/setattr. This patch should fix all that. It causes the stat struct returned from unix_convert() (which now *must* be passed a valid SMB_STRUCT_STAT pointer) to be passed through into the open code. This should prevent the multiple stats that were being done so as not to violate layer encapsulation in the API's. Herb - if you could run a NetBench test with this code and do a padc/par syscall test and also run with the current 2.2.0 code and test the padc/par syscalls I'd appreciate it - you should find the number of stat calls reduced - not sure by how much. The patch depends on unix_convert() actually finding the file and returning a stat struct, or returning a zero'd out stat struct if the file didn't exist. I believe we can guarentee this to be the case - I just wasn't confident enough to make this an assertion before. Ok ok - I did write this whilst at the Miami conference..... sometimes you get a little free time at these things :-). Jeremy.
* Renamed WPrintQueuePurge to WPrintQueueCtrl as this function can purge, pauseTim Potter2000-10-181-4/+4
| | | | or resume a print queue.
* Fix to allow smbd to call winbindd if it is running for all group enumeration,Jeremy Allison2000-10-133-15/+237
| | | | | | | | 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.
* Ignore SIGUSR2. Terminate nmbd if we have no interfaces.Jeremy Allison2000-10-121-0/+5
| | | | Jeremy.
* allow "master" smbd to call message_init so it is not killed by messagesHerb Lewis2000-10-121-4/+4
| | | | | | sent to it's PID Jeremy or Andrew please check this out for other possible side effects.
* use macros for incrementing profile countersHerb Lewis2000-10-122-6/+2
|
* changes to sync with 2.2. treeHerb Lewis2000-10-115-19/+134
| | | | | | | | | | | | | | | | | .cvsignore remove config.h - not in this directory include/profile.h profile changes lib/messages.c added message to return debug level libsmb/clierror.c cast to get rid of compiler warning libsmb/smbencrypt.c cast to get rid of compiler warning profile/profile.c add flush profile stats changes for profile struct rpc_parse/parse_samr.c fix for compiler warning rpc_server/srv_samr.c cast to get rid of compiler warning smbd/ipc.c profile stats message.c profile stats smbd/negprot.c profile stats smbd/nttrans.c profile stats smbd/trans2.c profile stats utils/smbcontrol.c new flush stats command
* Don't initialise groups twice.Tim Potter2000-10-111-1/+0
|
* Remove duplicate group initialisation function.Tim Potter2000-10-111-22/+0
| | | | Don't initialise groups twice.
* Remove lpq as root fix - do this in print_job_start insteadJeremy Allison2000-10-112-10/+0
| | | | | as part of print queue length processing. Jeremy.
* Fixes to periodically scan printing.tdb in idle time and occasionallyJeremy Allison2000-10-102-0/+10
| | | | | | | on exit. Needed to fix printing.tdb from groving to 300Mb+ if being driven by smbclient clients that never ask for status... (effective DOS attack :-). Jeremy.
* a netlogon enum trust query doesn't have a function_code at end.Jean-François Micouleau2000-10-101-1/+1
| | | | | | | | a sam_user_info_24 doesn't have a uint16 at end samr_create_user also creates the unix account now samr_set_userinfo changes the password. J.F.
* Fixed error return messages needed for NTTrans CreateDirectory.Jeremy Allison2000-10-061-0/+16
| | | | | | This patch allows the standard W2k recursive mkdir to work against Samba. Jeremy.
* Herb's warning fixes. Also the POSIX locking fix.Jeremy Allison2000-10-066-130/+169
| | | | | We now use our own vfs layer to do get/set acl calls (hurrah!). Jeremy.
* global_myname is actually a pstring.Tim Potter2000-10-061-1/+1
|
* Inlined many of the vfs_XXX calls as macros for speed.Jeremy Allison2000-10-061-63/+0
| | | | Jeremy.
* Restructuring of vfs layer to include a "this" pointer - can be an fsp orJeremy Allison2000-10-0615-257/+469
| | | | | | | | | | | | | | | 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). Andrew gets credit for this one :-) :-). 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.
* Fix for null passwords being allowed bug.Jeremy Allison2000-10-051-4/+8
| | | | Jeremy.
* Vector get_nt_acl/set_nt_acl via vfs. POSIX ACL support should be addedJeremy Allison2000-10-054-27/+65
| | | | | above this layer. Jeremy.
* Herb's fixes for profiling & compiler warnings.Jeremy Allison2000-10-051-47/+69
| | | | Jeremy.
* Added uid and gid to push_sec_ctx() debug.Tim Potter2000-10-051-2/+3
|
* Made re-init of stat cache explicit rather than being hidden.Jeremy Allison2000-10-041-1/+2
| | | | Jeremy.
* Fixes for the fact that UNICODE sizes are no always 2*no of chars whenJeremy Allison2000-10-031-8/+9
| | | | | in multibyte codepages. Fix from Hiroshi MIURA, Samba User Group Japan staff. Jeremy.
* utf-8 and EUC3 patch from Hiroshi Miura Samba User Group Japan staff.Jeremy Allison2000-10-034-6/+27
| | | | | mkdir high bits patch from Robert Dahlem" <Robert.Dahlem@gmx.net>. jeremy.
* Memleak fix for cache code.Jeremy Allison2000-10-022-5/+27
| | | | Jeremy.