summaryrefslogtreecommitdiffstats
path: root/source/smbd
Commit message (Collapse)AuthorAgeFilesLines
...
* Cleanups!Andrew Bartlett2002-05-221-1/+1
| | | | | | | | | | Make some code static, add some const to the PAM code, and make the plaintext password code actually function - particulary without the requirement to modify the 'struct passwd' (which it assumed was made up of fstrings) This kills some particularly ugly code in lib/util_pw.c Andrew Bartlett
* Merge of receive_local_message fix from 2.2.5.Jeremy Allison2002-05-224-51/+35
| | | | Jeremy.
* Tricky fix. If we were waiting for an oplock break response message fromJeremy Allison2002-05-211-0/+11
| | | | | | | | another smbd and an incoming SIGUSR1 message arrived we'd break out of the wait early - as we have to use sys_select() to wait for an oplock response message, not sys_select_intr() (which ignores EINTR errors) because of the real time signal kernel interface. Jeremy.
* Stop smbd looping when hide unreadable is true and .. is unreadable.Jeremy Allison2002-05-201-65/+72
| | | | Jeremy.
* Merge from 2.2.Jeremy Allison2002-05-202-2/+3
| | | | Jeremy.
* Spelling fix.Tim Potter2002-05-191-1/+1
|
* A few things in this commit:Andrew Bartlett2002-05-183-26/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cleanup some of the code in net_rpc_join re const warnings and fstrings. Passdb: Make the %u and %U substituions in passdb work. This is done by declaring these paramters to be 'const' and doing the substitution manually. I'm told this is us going full circle, but I can't really see a better way. Finally these things actually seem to work properly... Make the lanman code use the pdb's recorded values for homedir etc rather than the values from lp_*() Add code to set the plaintext password in the passdb, where it can decide how to store/set it. For use with a future 'ldap password change' option, or somthing like that... Add pdb_unix, so as to remove the 'not in passdb' special cases from the local_lookup_*() code. Quite small, as it uses the new 'struct passwd -> SAM_ACCOUNT' code that is now in just one place. (also used by pdb_smbpasswd) Other: Fix up the adding of [homes] at session setup time to actually pass the right string, that is the unix homedir, not the UNC path. Fix up [homes] so that for winbind users is picks the correct name. (bad interactions with the default domain code previously) Change the rpc_server/srv_lsa_nt.c code to match NT when for the SATUS_NONE_MAPPED reply: This was only being triggered on no queries, now it is on the 'no mappings' (ie all mappings failed). Checked against Win2k. Policy Question: Should SID -> unix_user.234/unix_group.364 be considered a mapping or not? Currently it isn't. Andrew Bartlett
* Make --with-ldapsam 'go away'. This is now a standard, stable, featureAndrew Bartlett2002-05-171-3/+6
| | | | | and there is no real reason for it to depend on more than the abilty to compile the code.
* Check paramters for NULL.Andrew Bartlett2002-05-171-0/+4
|
* This removes --with-ssl from Samba.Andrew Bartlett2002-05-174-317/+0
| | | | | | | | | | | | | | | | | This option was badly maintained, useless and confused our users and distirbutors. (its SSL, therfore it must be good...) No windows client uses this protocol without help from an SSL tunnel. I can't see any reason why setting up a unix-side SSL wrapper would be any more difficult than the > 10 config options this mess added to samba in any case. On the Samba client end, I think the LIBSMB_PROG hack should be sufficient to start stunnel on the unix side. We might extend this to take %i and %p (IP and port) if there is demand. Andrew Bartlett
* Get the sco boxes compiling again - use the sys_ intefaces for all the dl*Andrew Bartlett2002-05-172-2/+2
| | | | funcitons.
* Fix bug where creating a file and setting a security descriptor atomicallyJeremy Allison2002-05-161-47/+68
| | | | | | that only contains an "everyone" DACL doesn't apply this to user and group entries also. Jeremy.
* Removed lp_strip_dot code - ensured that mangling code treats names endingJeremy Allison2002-05-143-32/+45
| | | | | | in '.' as invalid long filenames (special treatment for '.' and '..' which are valid - yes Andrew I did this without strlen :-) :-). Jeremy.
* Fix bug where setting end of file length to 8 was hitting erroneousJeremy Allison2002-05-131-0/+4
| | | | | | check for OS/2 EA set. This caused Macromedia movie files to not export correctly onto a Samba share. Originally spotted by Michel Stoop stoop@ncg.nl. Jeremy.
* Sync'ing SAMBA_2_2 with HEAD.Shirish Kalele2002-05-091-8/+15
|
* Fix build farm bug.Jeremy Allison2002-04-291-1/+1
| | | | Jeremy.
* Added 2.2.x mangle fix to old mangle code in HEAD.Jeremy Allison2002-04-291-2/+1
| | | | Jeremy.
* smbd/fileio.c: debug changes so read/write/seek calls can be logged for ↵Jeremy Allison2002-04-241-382/+393
| | | | | | | name, pos, size easily. Might help with access problem. Jeremy.
* move to the FNV1 hash alghorithm seem goodSimo Sorce2002-04-242-4/+15
| | | | | | the test revealed 15 collision with 1 Million long file names :-) Simo.
* patch from Alexander Bokovoy needed for dlopen on bsd systemsAndrew Tridgell2002-04-241-2/+11
|
* made a couple of variables staticAndrew Tridgell2002-04-241-3/+4
|
* When doing a non-io open the stat failing is no cause for a debug zeroJeremy Allison2002-04-231-2/+6
| | | | | to be printed, it just means file not found. Jeremy.
* try to cope better with the take ownership operation for foreign SIDsAndrew Tridgell2002-04-202-3/+63
| | | | | what we do is map to the authenticated user when the sid is unmappable and dos filemodes are enabled
* Fix different args to sys_fcntl without going varargs....Jeremy Allison2002-04-192-9/+9
| | | | Jeremy.
* add NetUserEnum and NetGroupEnum lanmap API calls, untested. I don't haveJean-François Micouleau2002-04-191-94/+152
| | | | | | | anymore a SNAP/DELL NAS to test. from Kevin Stefanik. J.F.
* Added sys_fcntl (not to be used everywhere). Added sys_read/sys_writeJeremy Allison2002-04-193-11/+11
| | | | | for transfer_file. Jeremy.
* Fixed sendto in oplock code.Jeremy Allison2002-04-191-2/+2
| | | | Jeremy.
* Fix oplock recvfrom.Jeremy Allison2002-04-191-1/+1
| | | | Jeremy.
* fixed the fallback to a BDC for ADS connectionsAndrew Tridgell2002-04-182-2/+2
|
* - fixed the is_mangled() interface to handle multiple componentsAndrew Tridgell2002-04-181-5/+42
| | | | - fixed the no-extension case of reverse mangling
* Fixed the AFP_Resource:$DATA filename creation bug.Jeremy Allison2002-04-171-239/+255
| | | | Jeremy.
* make sure we don't walk past the end of the current SMB buffer whenAndrew Tridgell2002-04-167-45/+49
| | | | | pulling a string this might explain a serious filename corruption bug that Quantum QA spotted
* make sure that we leave the tree unused after disconnectingAndrew Tridgell2002-04-151-0/+4
|
* merge from SAMBA_2_2Gerald Carter2002-04-151-1/+1
|
* this fixes the displaying of free disk space for DOS6 clients. Win2000Andrew Tridgell2002-04-151-14/+37
| | | | | changes its behaviour based on the negotiated protocol for the SMBdskattr SMB
* it looks like it is possible for a w2k client to send a spnego auth without ↵Andrew Tridgell2002-04-141-1/+6
| | | | sending the negotiate - try to cope
* win2000 does not check the permissions on the share directory onAndrew Tridgell2002-04-141-3/+19
| | | | | | | tconx, so win2000 clients don't expect a permissions error in tconx. We now match this behaviour, by only checking that the directory exists during tconx and relying on the permissions on other calls to protect directories
* two time handling bugfixesAndrew Tridgell2002-04-131-1/+9
| | | | | | | | - the pending mtime overrides the current file time in setfileinfo - a later wtime can override a mtime on setfileinfo this fixes the date of file copies in win2000
* Better handling of uid/gid -> RID and RID -> uid/gid code.Andrew Bartlett2002-04-131-2/+3
| | | | | | | | | | | | | | | | | | | All uids and gids must create valid RIDs, becouse other code expects this, and can't handle the failure case. (ACL code in particular) Allow admins to adjust the base of the RID algorithm, so avoid clashes with users brought in from NT (for example). Put all the algorithm code back in one place, so that this change is global. Better coping with NULL sid pointers - but it still breaks a lot of stuff. BONUS: manpage entry for new paramater :-) counter based rids for normal users in tdbsam is disabled for the timebeing, idra and I will work out some things here soon I hope. Andrew Bartlett
* Tidy up winbindd debug. Added Bill Moran's hide unreadable fix.Jeremy Allison2002-04-131-1/+9
| | | | Jeremy.
* fixed the display of the 'size on disk' property of files from w2k.Andrew Tridgell2002-04-121-4/+5
|
* - added a mangling test suite that measures the collision rate onAndrew Tridgell2002-04-121-0/+14
| | | | | | randomised filenames - fixed several mangling bugs that the test suite pointed out
* Much better support for both non-algorithic RIDs (where the RID is stored inAndrew Bartlett2002-04-111-5/+15
| | | | | | | | | | | | | the passdb) and RIDs not in the passdb, due to being NIS users etc. The main fix here is to add become_root()/unbecome_root() at critical places. This (finally) fixes the bug where you could not see local users's names in a file's security properties as non-root. Tested. The similar bug in uid_to_sid is also fixed, but is not (yet) Tested. Andrew Bartlett
* don't try to return a voidAndrew Tridgell2002-04-111-1/+1
|
* - the 36^6 hash space gives 31 bits, not 32 bits. We need to mask theAndrew Tridgell2002-04-111-2/+4
| | | | | hash to suit - the prefix ends at the last dot, not the first
* a few debug statements (disabled)Andrew Tridgell2002-04-111-2/+7
|
* don't treat '.' as FLAG_ASCII, instead handle it separatelyAndrew Tridgell2002-04-111-2/+2
|
* - tidier flag checking codeAndrew Tridgell2002-04-111-8/+40
| | | | - finished the is_mangled() function
* added some more commentsAndrew Tridgell2002-04-111-5/+15
|
* some optimisations to the new mangling systemAndrew Tridgell2002-04-111-16/+44
|