summaryrefslogtreecommitdiffstats
path: root/source3/smbd/reply.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Andrew - please look this over. I've fixed a long standing (maybe 4-5Jeremy Allison2001-06-221-1/+17
| | | | | | | | | | years old) bug when chainging a sessionsetup_and_X and tcon together. The wrong username was being entered into the tdb, even though the correct user was used for accessing files. This is related to the fact that authorise_login() is not used for sessionsetup, but only for tcon auths. Jeremy. (This used to be commit 0187cd6aef7586d7ad4bdc70c50f3f2e7c69519c)
* Following info from TAKAHASHI Motonobu <monyo@samba.gr.jp>,Jeremy Allison2001-06-211-5/+5
| | | | | | | Samba Users Group Japan, ensure that we don't use dos_to_unix(xx,True), but always use dos_to_unix(xx,False) to prevent overwriting. Jeremy. (This used to be commit 244aec8ea623fec828add3ab09c5003bf32bd5c7)
* Extra debug in open.c, fix for bad debug message in reply.cJeremy Allison2001-06-191-1/+1
| | | | | Jeremy. (This used to be commit 2c2fc8513699eb39721ac1d65fa1fdaecde526a8)
* Removed commented out msdfs code that was being called anyway.Tim Potter2001-06-121-2/+0
| | | | (This used to be commit a542f4513ab792363fd5772582c6d317aa913257)
* *Wonderful* patch from Andrew Bartlett that will help ensure tdb's areJeremy Allison2001-06-091-4/+8
| | | | | | cleaned on clients abending connections. Thanks Andrew ! Jeremy. (This used to be commit 1b3977c5367a0b713b194f369abd9872ae01ac2a)
* Set correct reply word in large writeX (greater than 64k) replies.Jeremy Allison2001-06-051-2/+5
| | | | | | Also added smbtorture test for this. Jeremy. (This used to be commit 6d65556ae8bea45a203defaded8436cbb56965e1)
* Deal with incorrect large writes from old NT4.x clients.Jeremy Allison2001-06-051-1/+5
| | | | | | We still need to set the large write reply correctly. Jeremy. (This used to be commit 810dae29b8b45e91c0c35a4d96202c08b13d4e82)
* return an error code on password attack, rather than exiting.Andrew Tridgell2001-05-251-4/+7
| | | | | otherwise security scanners may think we are vulnerable! (This used to be commit ee8cb88682421464016d56209eecea764bddc032)
* Fixup the large_writex problem (a large_writex can send a full 64k of data,Jeremy Allison2001-05-241-2/+3
| | | | | | we already have space for this we just need to understand the length correctly). Jeremy. (This used to be commit 19145bae720bbcc32dcab380c62a33d1f0e3eef0)
* Defensive brlock and locking database cleaning code.Jeremy Allison2001-05-221-42/+40
| | | | | Jeremy. (This used to be commit d7aa42e4593b02ee6e487f7a4633bd7e7620ef2f)
* Fixes to get pam_auth() functionality working again.Tim Potter2001-05-171-1/+1
| | | | (This used to be commit 083b74c743f0026693fa0fbe665ed08a3ac706b8)
* Patch from Simo:Gerald Carter2001-05-071-5/+5
| | | | | | | o sed 's/pdb_clear_sam/pdb_free_sam/g' o add pdb_reset_sam() o password changing should be ok now as well. (This used to be commit 96d0e7c3301ad990f6c83b9c216720cb32661fb5)
* Big cleanup of passdb and backends.Jean-François Micouleau2001-05-041-3/+11
| | | | | | | | I did some basic tests but I have probably broken something. Notably the password changing. So don't cry ;-) J.F. (This used to be commit a4a4c02b12f030a3b9e6225b999c90689dfc4719)
* - fixed some compiler warningsAndrew Tridgell2001-04-281-2/+2
| | | | | - fixed slprintf and vsprintf macros (This used to be commit c986a3c51e8cdbc1230edbe0f4a91138c4ada29d)
* merge from 2.2Andrew Tridgell2001-04-181-1/+6
| | | | (This used to be commit f52a5014ee325f9d91f266f88eac51b6136a75b9)
* Removed mktemp from HEAD - same as done in 2.2.Jeremy Allison2001-04-181-7/+16
| | | | | Jeremy. (This used to be commit 121b59669fbcd1aaedb08011ff36169fc6561c55)
* Merge of Andrew's changes in 2.2.Jeremy Allison2001-04-131-2/+2
| | | | | Jeremy. (This used to be commit fc76681812b1469208ad6c8847afdfc68bc6db49)
* As Andrew suggested, make smbrun return a fd for a deleted file which can thenJeremy Allison2001-04-131-2/+2
| | | | | | be read. Jeremy. (This used to be commit e7d59d6de89a5fdd201e4b5c6072dab08b1519db)
* Got "medieval on our ass" about adding the -1 to slprintf.Jeremy Allison2001-04-081-1/+1
| | | | | Jeremy. (This used to be commit 94747b4639ed9b19f7d0fb896e43aa392a84989a)
* converted reply_printqueueAndrew Tridgell2001-03-161-3/+3
| | | | (This used to be commit 70d6b09ac9fbd612960fa02fad5adbf6d87c24ce)
* converted reply_searchAndrew Tridgell2001-03-161-7/+9
| | | | (This used to be commit 0331f93a8117d4c295cda327c3a290296ff621d0)
* fixed srvstr_push() callAndrew Tridgell2001-03-131-1/+1
| | | | (This used to be commit dca433d035dfb6e94ee659477c71edaa4549644d)
* converted a bunch more fns to unicodeAndrew Tridgell2001-03-131-14/+12
| | | | (This used to be commit fbb3bf12df5c79cac9445be21f1997234479b472)
* simpler and more correct srvstr_push()Andrew Tridgell2001-03-131-6/+6
| | | | | | | it now uses outbuf not inbuf for the unicode flag, which allows for some server fns to be ascii and means one less parameter in push calls (This used to be commit a6dd6662267eeddf368ff0ffba76b45761bf4eeb)
* converted reply_tcon()Andrew Tridgell2001-03-131-40/+22
| | | | (This used to be commit 1e92d340ceb5be8e7d50cc7c889b2053ed67bad3)
* converted a bunch more server functions to unicodeAndrew Tridgell2001-03-131-10/+20
| | | | (This used to be commit a074600a09387c2034ffb6651abad69bdc14145e)
* - convert chkpathAndrew Tridgell2001-03-131-4/+5
| | | | | - devicename in tconx is always ascii (This used to be commit 242a6a96d10beeb54e93226ae50bd361486e1c0d)
* this patch does a number of things:Andrew Tridgell2001-03-131-20/+20
| | | | | | | | | | | | | | | | - removes SMB_ALIGNMENT. That macro caused all sorts of problems with getting unicode aligned right in sub-protocols (such as SMBtrans and SMBtrans2). I believe the performance reasons for having SMB_ALIGNMENT has gone away with the new variants of the SMB protocol anyway, as newer commands tend to have their own internal alignment. - fix the locations where we set smb_flg2 to absolute values. We must never do this if we want a hope of coping with unicode. - add initial support for unicode on the wire in smbd. Currently enabled using SMBD_USE_UNICODE environment variable. (This used to be commit b98b1435e9d8f8622444c9ff33082977e661f16b)
* Merge of new 2.2 code into HEAD (Gerald I hate you :-) :-). Allows new SAMRJeremy Allison2001-03-111-2/+0
| | | | | | | RPC code to merge with new passdb code. Currently rpcclient doesn't compile. I'm working on it... Jeremy. (This used to be commit 0be41d5158ea4e645e93e8cd30617c038416e549)
* converted reply_open, reply_open_and_x and reply_fcloseAndrew Tridgell2001-03-101-8/+11
| | | | (This used to be commit 2c8da0ae22309f153bde4e29095b60996fa8fcc5)
* started support for unicode on the wire in smbd. Using a very similarAndrew Tridgell2001-03-101-36/+33
| | | | | | | | | | method to what was used in the client I now have session setup and tconx working. Currently this is enabled with SMBD_USE_UNICODE environment variable. Once the code is complete this will become a smb.conf option. (This used to be commit 7684c1e67294266d018c6f0cab58f1a9d797174f)
* merge of 'lanman auth' and 'min protocol' from 2.2Gerald Carter2001-03-091-11/+22
| | | | (This used to be commit 1d84da779a0fe3219d77686a493d2b2fa1f8072a)
* configure configure.in smbd/posix_acls.c smbd/dosmode.c: Fix for zero ↵Jeremy Allison2001-02-161-3/+2
| | | | | | | | permission W2K profiles. libsmb/cliconnect.c rpc_client/cli_login.c smbd/reply.c: codepage fixes from Tim. Jeremy. (This used to be commit 3ded1e6bd5f79948e437ce5b1799705945f36ad2)
* Merge of i18n fixes from appliance branch. Samba can now talk to a networkTim Potter2001-02-141-2/+5
| | | | | | with a PDC that has international netbios name and domain name. There's still quite a bit of i18n stuff to fix though... (This used to be commit 79045bd72ace9144e7dd73785b1d10a71b0d15aa)
* Merge of JohnR's changes to appliance-head, JF's changes to 2.2,Jeremy Allison2001-02-121-5/+5
| | | | | | updated the POSIX_ACL code to be in sync. Jeremy. (This used to be commit c0517d6f4e3079feca1309fd1ea7b21e83f0de02)
* smbd/process.c: & type with 0xff for paranioa sake...Jeremy Allison2001-01-241-4/+1
| | | | | | | smbd/reply.c smbd/service.c: cause all "add home service" calls to go through a winbindd aware function. Jeremy. (This used to be commit a72d12e992e2755e925032aef1aa99be74bf6652)
* only add the service name and client machine name to list of users namesGerald Carter2001-01-231-1/+6
| | | | | | | | for a session when in share mode security --jerry (This used to be commit 22d6c2c163dd578365bff85ef95abfa59fe356ea)
* include/vfs.h:Jeremy Allison2001-01-231-3/+3
| | | | | | | | | | | | | | 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. (This used to be commit 2844ec3d511680609d6794b8718001a1bda9e89f)
* rpc_server/srv_samr.c:Jeremy Allison2001-01-111-5/+37
| | | | | | | | | | | | | smbd/reply.c: Added fix needed for appliances. When using winbindd - a new user may exist (from winbind) but have no home directory. Extend add user script so it is called with a %H substitution when a user exists but their home directory does not. Thanks to Alex Win at VA Linux for finding this one and testing the fix. libsmb/clidgram.c: Fixed missing return statements. smbd/uid.c: Fixed typo in debug. Jeremy. (This used to be commit 7ba0a2192b89954604dd793c537b4a17c2d1ac07)
* Extra part of fix that Gerald missed (sorry).Jeremy Allison2000-12-121-1/+1
| | | | | Jeremy. (This used to be commit ebf754400f443452948020d68e29f597f1b2d60c)
* Don't forget to convert into UNIX character set before callingJeremy Allison2000-11-211-1/+1
| | | | | | winbindd. Jeremy. (This used to be commit 00cd72c385f1e5d075dbacf834b68769b5ac38f3)
* Ok - fixed a bug in our levelII oplock code. We need to break a level II onJeremy Allison2000-11-161-7/+18
| | | | | | | | | | 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. (This used to be commit 213cd0b5192307cd4b0026cae94b2f52fb1b0c02)
* Merge from appliance head of JR's changes for driver versioning.Jeremy Allison2000-11-141-23/+42
| | | | | Jeremy. (This used to be commit cdbd2e99775642dc2e92004be9014bf38a92d80f)
* Large commit which restructures the local password storage API.Gerald Carter2000-11-131-7/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 (This used to be commit 0b92d0838ebdbe24f34f17e313ecbf61a0301389)
* Ok - this is a big patch - and it may break smbd a bit (althoughJeremy Allison2000-10-191-55/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. (This used to be commit 66a5c05ec46b641224fbe01b30bd7e83571a2a1b)
* 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. (This used to be commit 94f4024481fcd0cb6647af1bd4364033be020641)
* Herb's warning fixes. Also the POSIX locking fix.Jeremy Allison2000-10-061-1/+1
| | | | | | We now use our own vfs layer to do get/set acl calls (hurrah!). Jeremy. (This used to be commit dfe77c7046cbd65ee52aea7439f21503c1eac41d)
* Restructuring of vfs layer to include a "this" pointer - can be an fsp orJeremy Allison2000-10-061-98/+358
| | | | | | | | | | | | | | | | 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. (This used to be commit b07611f8159b0b3f42e7e02611be9f4d56de96f5)
* utf-8 and EUC3 patch from Hiroshi Miura Samba User Group Japan staff.Jeremy Allison2000-10-031-2/+1
| | | | | | mkdir high bits patch from Robert Dahlem" <Robert.Dahlem@gmx.net>. jeremy. (This used to be commit b40191d27180ab1e59935086073c4d312552f717)
* fixed a harmess mixup of bitops and a booleanAndrew Tridgell2000-09-291-1/+1
| | | | (This used to be commit 0e0f3dc577ceab540be6505a86697b14a2136b9f)