summaryrefslogtreecommitdiff
path: root/source3/smbd
AgeCommit message (Collapse)AuthorFilesLines
2002-03-10failed timed locks always give LOCK_CONFLICT not LOCK_NOT_GRANTEDAndrew Tridgell1-0/+6
(This used to be commit ec71c1a66f9fd4b9cb4cad5a9b5b17e20de7aeb1)
2002-03-09a more informitive debug message when a SID can't be validatedAndrew Tridgell1-1/+2
(This used to be commit c55737fb25dfed4697b93a600e3bd770f84bf464)
2002-03-07get the right return code for batch vs exclusive oplocksAndrew Tridgell1-5/+12
(This used to be commit 91fc5b2de577019d7646f3c29173b27605d9ba12)
2002-03-07Fixed delete on close semantics - preparing for share mode rewrite.Jeremy Allison2-13/+14
Jeremy. (This used to be commit 25dd73be29bbf0a080fe0bcbe5c478545d1e8db7)
2002-03-06Reformat preparing for changes to come...Jeremy Allison1-155/+155
Jeremy. (This used to be commit b56df25d48a7adaa49b0bd44f8ff7be81b970da2)
2002-03-05Added Herb's fix to override log level from command line.Jeremy Allison1-0/+2
Jeremy. (This used to be commit 439839be99e6e418eb5782a2fe0630d0ef5fb3c5)
2002-03-05Mask off the aDIR on setfileinfo.Jeremy Allison3-0/+10
Jeremy. (This used to be commit d9cb1bf20ac8a739102b03d9a70e34fe5cb2f0f7)
2002-03-05Fixed compiler warning about unused variables.Tim Potter1-5/+5
(This used to be commit 7bb0dda8ee1d61a0e8448070f1a71fcd13be5d40)
2002-03-04Canonicalise pathnames returned to Windows directory separators.Jeremy Allison1-0/+1
Found by Andrew at connectathon with some new tests Jeremy. (This used to be commit 4aaa4f52b8fc712f5f879ae5c47ba4601281b4e8)
2002-03-02Fix lseek-on-pipe problem in VFS (where it belongs IMHO).Jeremy Allison2-18/+19
Jeremy. (This used to be commit ebef2e7bc87fcbae794426c39044a7d23f43722d)
2002-03-01Various comment fixes from Rafal Szczesniak <mimir@diament.ists.pwr.wroc.pl>Andrew Bartlett1-1/+1
(This used to be commit 3bf4b42771d115500941be374bfdd9b8c2fdba4a)
2002-02-27this allows us to support foreign SIDs in winbindd and smbdAndrew Tridgell1-2/+13
this means "xcopy /o" has a chance of working with ACLs that contain ACEs that use SIDs that the Samba server has no knowledge of. It's a bit hackish, Tim, can you look at my uid.c changes? (This used to be commit fe2db3148587937aa7b674c1c99036d42a3776b3)
2002-02-27Added "nt status support" parameter. Fix offline synchronisation.Jeremy Allison4-28/+32
Jeremy. (This used to be commit 9243a9778e52999d5c62cba484640637b24994d8)
2002-02-27Fixed usage of uninitialised variable in strict_allocate_ftruncate()Tim Potter1-1/+3
(This used to be commit b1d56956fec0de0e8591d85eb5eeec939494e6d4)
2002-02-27This should fix up the level 0 'convert_string' debug messages that we haveAndrew Bartlett1-1/+1
been seing since the unicode conversion. It looks like a simple oversight in the move away from StrnCpy (which takes amount of space -1 as an arg) to push_ascii etc which take the absolute amount of space. Andrew Bartlett (This used to be commit 4447c6bd4d9c273ef5bf4eb23726923ee58bf38d)
2002-02-26This is a nasty hack to fix "xcopy /o" from win2000 on a Samba shareAndrew Tridgell2-16/+53
The hack passes the true ntcreate desired_access down to open_file_shared1() from the ntcreatex function. This is used to determine if share modes should be used in denying this open. This hack will become unnecessary when we redo open.c to use the proper NTCreateX semantics rather than trying to jam the ntcreate semantics into openX semantics. (This used to be commit d09ae0c667a94fcf870c0fc7f97119266a650d45)
2002-02-25This fixes 4 info levels in a trans2 find_first that should not be nullAndrew Tridgell1-4/+6
terminated for the filenames. this is what caused win2k to go into a loop sending 20000 packets to set an acl on a directory. It didn't recognise ".." with a null termination as being ".." (This used to be commit a75a2e9e2f11e27ca8a7fbad8c0108a2aee0a690)
2002-02-22don't do an ADS init when not in ADS modeAndrew Tridgell1-5/+4
(This used to be commit 68693ba4e80257bf895b1c8db18c138d5d9919bb)
2002-02-21this fixes the security tab on mapped drives for unicode clients.Andrew Tridgell1-19/+12
Jeremy, this is wrong in 2.2.x (This used to be commit 367358c7389555f413b3c690c012ef067859fc22)
2002-02-19in dos_unmangle() the only function call was to *mangle()*. Adding theAndrew Bartlett1-1/+1
'un' dramaticly increses the functionality of this code :-). Andrew Bartlett (This used to be commit 15b9b63db57901fbfa3d62b64212742f361ee519)
2002-02-15Merge of smbclient print crash bug fix from app head.Tim Potter1-2/+4
(This used to be commit a56298d56ae67a764e9b9a43c1c568b7125e1c18)
2002-02-09Do the reverse DNS lookup, but only if 'hostname lookups = yes'Andrew Bartlett1-5/+7
Andrew Bartlett (This used to be commit dfecd6a4534743a3e140eafc9836911286793951)
2002-02-05check for empty parameters in qpathinfoAndrew Tridgell1-0/+4
(This used to be commit c78b16c1f850562b65acb6143e55b1aefc075753)
2002-02-04better debug messages!Simo Sorce1-8/+8
(This used to be commit e3bb6867454307ae592115e205d32ddd53988678)
2002-01-31Fix from Michael Steffens <michael_steffens@hp.com> to make signalJeremy Allison3-3/+3
processing work correctly in winbindd. This is a really good patch that gives full select semantics to the Samba modified select. Jeremy. (This used to be commit 3af16ade173cac24c1ac5eff4a36b439f16ac036)
2002-01-30Removed version number from file header.Tim Potter48-95/+48
Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
2002-01-30merge from 2.2Gerald Carter1-1/+8
(This used to be commit 69a9c005c21833bdf22b72aaa3704bd14f627840)
2002-01-29Fix "strict allocate" to write the data out on ftruncate with extend.Jeremy Allison1-8/+70
Jeremy. (This used to be commit 48fc42c7104d118bd43c80c801866ebd03be1638)
2002-01-29Since we have dynamic initialisation in the group mapping code, makeTim Potter1-5/+0
init_group_mapping() a static function and don't call it from any client programs. Not sure whether I've made a bigger mess here or not... (This used to be commit 3c887d9021269aaa9fc0bc771af8589077e6208e)
2002-01-27Some more 'winbind default domain' support patches from Alexander BokovoyAndrew Bartlett2-7/+3
<a.bokovoy@sam-solutions.net>. This patch is designed to remove the 'special cases' required for this support. In particular this now kills off winbind_initgroups, as it appears no longer to be required. Andrew Bartlett (This used to be commit f1d8d509766e9169d39332559162cfec249bfc70)
2002-01-27Yes, dev is an 'input/output' paramater...Andrew Bartlett1-2/+2
Andrew Bartlett (This used to be commit 8cac618174365825e8b1824f70cb42afbce5e500)
2002-01-26 - Provide sid->name lookup support for non-unix accounts.Andrew Bartlett1-36/+33
- Rework the name -> sid lookup function to always try local lookup first (for local domain names) before trying winbind. This seems to eliminate my winbind feedback loop problems. (I don't use winbind for nsswitch, where there are almost certainly further issues). Andrew Bartlett (This used to be commit 25cadce67bc8effd4248ab993ae78e1d8511d994)
2002-01-26Rework lookup_name() to take seperate username/domain args, and to removeAndrew Bartlett1-31/+24
varioius crazy 'if winbind didn't find it' cases. This makes winbind default domain support easier to intergrate with smbd. (This used to be commit 3e71521957d579f00249679de837490aca5ba92f)
2002-01-26Fix up a security issue with the way we handle domain groups retuned on theAndrew Bartlett1-0/+3
info3. These are RIDs, and it only makes sense to combine them with the domain SID returned with them. This is important for trusted domains, where that sid might be other than the one we currently reterive from the secrets.tdb. Also remove the become_root()/unbecome_root() wrapper from around both remaining TDB users: Both are now initialised at smbd startup. Andrew Bartlett (This used to be commit 554842e0a55155193f25aefca6480b89d5c512ca)
2002-01-25Fixed display of "remote downlevel document" in old print job submissionJeremy Allison2-2/+2
case. Jeremy. (This used to be commit 248770d73072e36fd9812ec5986dce5380dfab33)
2002-01-25merge from 2.2Gerald Carter1-1/+1
(This used to be commit 7dc1c34145d66f4bbc5c6ce0bca4b224088366af)
2002-01-25Fix a 'const' warning.Andrew Bartlett1-1/+1
(This used to be commit 56be51d648da971bcf1250470b29918e43dc622b)
2002-01-25micro fix :-)Simo Sorce1-0/+1
(This used to be commit 8929f07a15e7c6f6dbc72b1c50b45eb4c321d516)
2002-01-25minor fixesSimo Sorce1-3/+5
(This used to be commit 04f492980b73800b60dde764fdeb43f2eab79624)
2002-01-24handle filenames like .bashrc better in the new mangling codeAndrew Tridgell1-8/+12
(This used to be commit 05adb30eabceea0ebbd7a7831533e2d4f20e58c8)
2002-01-23Check request flag for unicode capability and respond accordingly, rather ↵Jim McDonough1-1/+2
than only doing unicode. smbfs didn't work. (This used to be commit 95857a3515d67effb1242ca07daa5643458bb2f0)
2002-01-23Oops...Andrew Bartlett1-1/+1
(This used to be commit 9b63a872239bf7757c802bb3db3761cf3ec66e85)
2002-01-23Change the order of this a bit - as unix password change can fail.Andrew Bartlett1-11/+12
This due for abstraction into chgpasswd.c shortly. Andrew Bartlett (This used to be commit 635942ae21793136814a84b1d344f411a5d6e242)
2002-01-22Ensure fsp->size is correct so readraw's return correct data.Jeremy Allison1-9/+14
Jeremy. (This used to be commit 443d2530a7fe32392bdb8c7d38a10b7071392b13)
2002-01-21Found and fixed the logic bug in write cache code. Amazingly helpfulJeremy Allison1-4/+10
work from Juergen.Hasch@de.bosch.com in tracking this down. Jermy. (This used to be commit 40060fe3459cf103a143c324f99c2233a8e53825)
2002-01-21One less Get_Pwnam_Modify call!Andrew Bartlett1-5/+0
(the passdb backend is case-insensitive, so there isn't any point to this). Andrew Bartlett (This used to be commit 5e868b403340d84d68c1831a09bf1a4dd710da90)
2002-01-20Spelling fixes.Tim Potter1-7/+7
(This used to be commit e67c7c5852624bcdd5c565ea5f00b143aaf7fee4)
2002-01-20This is another *BIG* change...Andrew Bartlett1-2/+2
Samba now features a pluggable passdb interface, along the same lines as the one in use in the auth subsystem. In this case, only one backend may be active at a time by the 'normal' interface, and only one backend per passdb_context is permitted outside that. This pluggable interface is designed to allow any number of passdb backends to be compiled in, with the selection at runtime. The 'passdb backend' paramater has been created (and documented!) to support this. As such, configure has been modfied to allow (for example) --with-ldap and the old smbpasswd to be selected at the same time. This patch also introduces two new backends: smbpasswd_nua and tdbsam_nua. These two backends accept 'non unix accounts', where the user does *not* exist in /etc/passwd. These accounts' don't have UIDs in the unix sense, but to avoid conflicts in the algroitmic mapping of RIDs, they use the values specified in the 'non unix account range' paramter - in the same way as the winbind ranges are specifed. While I was at it, I cleaned up some of the code in pdb_tdb (code copied directly from smbpasswd and not really considered properly). Most of this was to do with % macro expansion on stored data. It isn't easy to get the macros into the tdb, and the first password change will 'expand' them. tdbsam needs to use a similar system to pdb_ldap in this regard. This patch only makes minor adjustments to pdb_nisplus and pdb_ldap, becouse I don't have the test facilities for these. I plan to incoroprate at least pdb_ldap into this scheme after consultation with Jerry. Each (converted) passdb module now no longer has any 'static' variables, and only exports 1 init function outside its .c file. The non-unix-account support in this patch has been proven! It is now possible to join a win2k machine to a Samba PDC without an account in /etc/passwd! Other changes: Minor interface adjustments: pdb_delete_sam_account() now takes a SAM_ACCOUNT, not a char*. pdb_update_sam_account() no longer takes the 'override' argument that was being ignored so often (every other passdb backend). Extra checks have been added in some places. Minor code changes: smbpasswd no longer attempts to initialise the passdb at startup, this is now done on first use. pdbedit has lost some of its 'machine account' logic, as this behaviour is now controlled by the passdb subsystem directly. The samr subsystem no longer calls 'local password change', but does the pdb interactions directly. This allow the ACB_ flags specifed to be transferred direct to the backend, without interference. Doco: I've updated the doco to reflect some of the changes, and removed some paramters no longer applicable to HEAD. (This used to be commit ff354c99c585068af6dc1ff35a1f109a806b326b)
2002-01-20Kill off another ugly wart from the side of the passdb subsystem.Andrew Bartlett1-0/+2
This time its the pdb_getsampwuid() function - which was only being used by the SAMR rpc subsystem to gain a 'user session key'. This 'user session key' is actually generated at login time, and the other changes here simply move that data around. This also means that (when I check some details) we will be able to use the user session key, even when we are not actually the DC, becouse its one of the components of the info3 struct returned on logon. Andrew Bartlett (This used to be commit 799ac01fe08a338e4e94289f5d6767ebf905c1fa)
2002-01-20Kill off the old varient of 'check_plaintext_password' (new version justAndrew Bartlett2-103/+28
committed in auth/auth_compat.c and use the new version to make the plaintext password change slightly sane... (Needs testing). Andrew Bartlett (This used to be commit 996d0cd89cf9da5e9749f136f013cc4a8b977ee0)