1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-04 05:18:06 +03:00
Commit Graph

8294 Commits

Author SHA1 Message Date
Tim Potter
f16c85caff Merge from HEAD:
>Added constant and message for invalid security descriptor dos error.
0001-01-01 00:00:00 +00:00
Tim Potter
9fe4363e15 Merged [fp]strterminate macros from HEAD to fix compile. 0001-01-01 00:00:00 +00:00
Gerald Carter
d3aed37dd8 printing merge from HEAD 0001-01-01 00:00:00 +00:00
Christopher R. Hertel
c06a2ece75 Copying commit from HEAD.
My seven-year-old daughter calls me 'Captain Pedantic'.  I don't know which
is freakier... the name or the fact that a seven-year-old knows what it
means.

Small change to correct the value we place in the DGM_LENGTH field of
NBT Datagram messages.  We have been counting the full datagram, but it's
fairly clear in the RFCs that we should only count the source name,
destination name, and payload.  We've been overcharging by 14 bytes
(the size of the NBT DGM header).

This fix brings us in line with what Windows does, and what the RFCs
say should be done.  I'm a little surprised that this didn't cause any
bugs or error messages.  I guess no one actually checks this field.
0001-01-01 00:00:00 +00:00
Gerald Carter
c72db22a3f merge from HEAD 0001-01-01 00:00:00 +00:00
Gerald Carter
305ff4203e merge from SAMBA_2_2 0001-01-01 00:00:00 +00:00
Tim Potter
e57c162897 Merge of lsa lookup names/sids patch from HEAD. 0001-01-01 00:00:00 +00:00
Tim Potter
dd1fb1b90b Whoops, removed debug 0 that snuck in. 0001-01-01 00:00:00 +00:00
Tim Potter
62ee1f8c3f Merge of print server permission handling fixes from HEAD. 0001-01-01 00:00:00 +00:00
Tim Potter
0e3be3603e Merge of comment fix. 0001-01-01 00:00:00 +00:00
Volker Lendecke
8ecfed59a3 3 branches might become a pain... :-)
Volker
0001-01-01 00:00:00 +00:00
Andrew Tridgell
97eb3a121d merged the mangling test and passdb bugfixes into SAMBA_3_0 0001-01-01 00:00:00 +00:00
cvs2svn Import User
1c221b3e72 This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'. 0001-01-01 00:00:00 +00:00
Andrew Tridgell
61c61f6b4f nicer measurement of failures and collisions 0001-01-01 00:00:00 +00:00
Andrew Tridgell
65609c5296 better mangling test. We now test that we can create by long name and
delete by short name, and that we can create by short name and delete
by long name

our old mangling code fails this test.

also tweaked the random filename generation to produce more likely
collisions
0001-01-01 00:00:00 +00:00
Andrew Tridgell
858fa7efc3 - added a mangling test suite that measures the collision rate on
randomised filenames

- fixed several mangling bugs that the test suite pointed out
0001-01-01 00:00:00 +00:00
Andrew Bartlett
79327a305e Much better support for both non-algorithic RIDs (where the RID is stored in
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
0001-01-01 00:00:00 +00:00
Jeremy Allison
4369a58765 HP2500C driver writes devmode with private data that ends
on a 2 byte boundary. We then miss-parse the desired_access. Also added
other fixes to ensure we align after private data (discussed with Gerry).
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
7e92fb7453 added strndup() for systems that don't have it 0001-01-01 00:00:00 +00:00
Andrew Tridgell
51b4de0ae3 don't try to return a void 0001-01-01 00:00:00 +00:00
Andrew Tridgell
dfa990170b possibly fix the 15000 user problem
I think its caused by a rpc operation failing and us giving invalid
data back to the cache layer. Using talloc_zero() should solve this.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
91a3ccd3e7 - the 36^6 hash space gives 31 bits, not 32 bits. We need to mask the
hash to suit
- the prefix ends at the last dot, not the first
0001-01-01 00:00:00 +00:00
Andrew Tridgell
582f753eac a few debug statements (disabled) 0001-01-01 00:00:00 +00:00
Andrew Tridgell
ecdddd674f don't treat '.' as FLAG_ASCII, instead handle it separately 0001-01-01 00:00:00 +00:00
Andrew Tridgell
128bec2071 - tidier flag checking code
- finished the is_mangled() function
0001-01-01 00:00:00 +00:00
Andrew Tridgell
8d6f2e2399 added some more comments 0001-01-01 00:00:00 +00:00
Andrew Tridgell
30b35d0c1f some optimisations to the new mangling system 0001-01-01 00:00:00 +00:00
Andrew Tridgell
bb173c1a7e this adds a completely new hash based mangling scheme
the hash for this scheme is *much* larger (approximately 31 bits) and
the code is written to be very fast, correctly handling multibyte
while not doing any actual multi-byte conversions in the vast majority
of cases

you can select this scheme using "mangling method = hash2", although I
may make it the default if it works out well.
0001-01-01 00:00:00 +00:00
Tim Potter
094a51edb9 Implemented a setup_logging() function that takes two keywords:
interactive and logfilename.  These can be used to send Samba DEBUG()
output to stdout or to a logfile which makes automated testing much
funkier.

Also added get_debuglevel() and set_debuglevel() functions.

Make open_pipe_creds() accept None as a anonymous credential.
0001-01-01 00:00:00 +00:00
Tim Potter
6c7b5e15c2 Implemented a setup_logging() function that takes two keywords:
interactive and logfilename.  These can be used to send Samba DEBUG()
output to stdout or to a logfile which makes automated testing much
funkier.

Also added get_debuglevel() and set_debuglevel() functions.
0001-01-01 00:00:00 +00:00
Tim Potter
8bb798ab3d Ignore bin directory. 0001-01-01 00:00:00 +00:00
Gerald Carter
233a24792e removed unnecessary memset 0001-01-01 00:00:00 +00:00
Jeremy Allison
42ae2334f2 Correctly emulate NT in printer handle opening access rights.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
be23d87a17 This split the mangling code up to allow for the possibility of multiple
mangling implementation, selectable using "mangling method = " in smb.conf

It also tidies the interface a little, although it is still nasty.
0001-01-01 00:00:00 +00:00
Gerald Carter
d7c9b00253 s/werror_str/dos_errstr/g to fix compile 0001-01-01 00:00:00 +00:00
Gerald Carter
7db47c6647 merge from 2.2 0001-01-01 00:00:00 +00:00
Gerald Carter
32dc5dbbfb WERROR merge from SAMBA_2_2 0001-01-01 00:00:00 +00:00
Gerald Carter
d87aa35d48 specversion merge from SAMBA_2_2 0001-01-01 00:00:00 +00:00
Tim Potter
f8673bd499 Added a whole bunch more permission constants. 0001-01-01 00:00:00 +00:00
Jeremy Allison
678f4f455e Removed duplicate _LARGEFILE64_SOURCE added in error.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
9f2753a149 Ensure VFS modules will build correctly by adding defines for CPPFLAGS
defines into acconfig.h - only defined if seen.
Jeremy.
0001-01-01 00:00:00 +00:00
Jim McDonough
b69f11170c Rename of ads_do_search_all2() to ads_do_search_all() and removal of
server sort controls.  Also put option externs in the net.h include.
0001-01-01 00:00:00 +00:00
Jim McDonough
4e3265c3c9 Add a few option externs for net_ads.c 0001-01-01 00:00:00 +00:00
Jim McDonough
7aa5fa6172 A few more updates:
- Add doxygen comments
- remove server sort control (ms implementation was not reliable)
- rename ads_do_search_all2() to ads_do_search_all_fn()
0001-01-01 00:00:00 +00:00
Jim McDonough
9126f008ef Add ads ldap server controls 0001-01-01 00:00:00 +00:00
Tim Potter
e878cdc9f5 Fixed missing alignment in spoolss_io_q_enumjobs() function. 0001-01-01 00:00:00 +00:00
Tim Potter
952eb866f4 Added cli_spoolss_enumjobs() function. 0001-01-01 00:00:00 +00:00
Jeremy Allison
16015c07ea Added Shirish's client side caching policy change.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
da794d3bbd fixed a return value for a help function 0001-01-01 00:00:00 +00:00
Tim Potter
b618b5943d Moved definition of winbind username/password secrets into secrets.h 0001-01-01 00:00:00 +00:00