1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
Commit Graph

7337 Commits

Author SHA1 Message Date
Tim Potter
b6c77fd3bb Merge of --set-auth-user updates from 2.2
(This used to be commit f01d48fbf5)
2002-05-13 00:46:28 +00:00
Tim Potter
086861ff31 Rerun autoconf.
(This used to be commit 2c483c8dce)
2002-05-13 00:24:47 +00:00
Tim Potter
7f92954145 Merge of secrets_init() paranoia fix from 2.2
(This used to be commit e24f6288b6)
2002-05-13 00:23:49 +00:00
Tim Potter
7f807117d7 Merge of Solaris winbindd fixes.
(This used to be commit 4bbc584e6c)
2002-05-13 00:06:35 +00:00
Tim Potter
ee2306d881 Merge from HEAD:
>Added cli_spoolss_enumjobs() function.

>Added cmd_spoolss_enumjobs() function to rpcclient.
>
>The semantics of the src_len argument to rpcstr_pull() seem to have changed
>breaking most of the spoolss commands in rpcclient.  Changed a bunch of
>0's to -1's to fix it.
(This used to be commit dce534d437)
2002-05-07 06:36:22 +00:00
Tim Potter
e8682b6c8e Merge from HEAD:
>DOS error 1307 is returned when an invalid owner for a security descriptor
>is detected.
(This used to be commit 8b5cb1c2dd)
2002-05-07 06:18:50 +00:00
Tim Potter
9935aaec47 Merge from HEAD:
>Added constant and message for invalid security descriptor dos error.
(This used to be commit f16c85caff)
2002-04-24 05:45:04 +00:00
Tim Potter
5c820d0637 Merged [fp]strterminate macros from HEAD to fix compile.
(This used to be commit 9fe4363e15)
2002-04-24 01:17:40 +00:00
Gerald Carter
2699f9b9df printing merge from HEAD
(This used to be commit d3aed37dd8)
2002-04-22 18:48:45 +00:00
Christopher R. Hertel
6f366b7809 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.
(This used to be commit c06a2ece75)
2002-04-22 03:09:23 +00:00
Gerald Carter
33640a7484 merge from SAMBA_2_2
(This used to be commit 305ff4203e)
2002-04-15 13:52:26 +00:00
Tim Potter
d9cfe0f3eb Merge of lsa lookup names/sids patch from HEAD.
(This used to be commit e57c162897)
2002-04-15 05:02:22 +00:00
Tim Potter
59a04032c8 Whoops, removed debug 0 that snuck in.
(This used to be commit dd1fb1b90b)
2002-04-15 04:00:27 +00:00
Tim Potter
fea03cef2b Merge of print server permission handling fixes from HEAD.
(This used to be commit 62ee1f8c3f)
2002-04-15 03:49:53 +00:00
Tim Potter
bffc4efd0f Merge of comment fix.
(This used to be commit 0e3be3603e)
2002-04-15 03:46:30 +00:00
Volker Lendecke
492ab172d4 3 branches might become a pain... :-)
Volker
(This used to be commit 8ecfed59a3)
2002-04-14 12:20:10 +00:00
Andrew Tridgell
4023a61892 merged the mangling test and passdb bugfixes into SAMBA_3_0
(This used to be commit 97eb3a121d)
2002-04-12 10:18:46 +00:00
cvs2svn Import User
ef3197889f This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit 1c221b3e72) 2002-04-12 03:54:14 +00:00
Andrew Tridgell
71c2943d34 nicer measurement of failures and collisions
(This used to be commit 61c61f6b4f)
2002-04-12 03:54:13 +00:00
Andrew Tridgell
a2d5f9a809 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
(This used to be commit 65609c5296)
2002-04-12 03:42:44 +00:00
Andrew Tridgell
3067ec21fb - added a mangling test suite that measures the collision rate on
randomised filenames

- fixed several mangling bugs that the test suite pointed out
(This used to be commit 858fa7efc3)
2002-04-12 03:26:19 +00:00
Andrew Bartlett
4c0399915c 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
(This used to be commit 79327a305e)
2002-04-11 23:43:40 +00:00
Jeremy Allison
440a0099ea 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.
(This used to be commit 4369a58765)
2002-04-11 18:52:09 +00:00
Andrew Tridgell
5928c293ff added strndup() for systems that don't have it
(This used to be commit 7e92fb7453)
2002-04-11 15:27:22 +00:00
Andrew Tridgell
41b8137169 don't try to return a void
(This used to be commit 51b4de0ae3)
2002-04-11 14:59:27 +00:00
Andrew Tridgell
560a51f46b 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.
(This used to be commit dfa990170b)
2002-04-11 14:30:31 +00:00
Andrew Tridgell
5c0e682c4a - 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
(This used to be commit 91a3ccd3e7)
2002-04-11 14:20:18 +00:00
Andrew Tridgell
1ed0c5ea70 a few debug statements (disabled)
(This used to be commit 582f753eac)
2002-04-11 14:03:30 +00:00
Andrew Tridgell
4c889cb8b6 don't treat '.' as FLAG_ASCII, instead handle it separately
(This used to be commit ecdddd674f)
2002-04-11 13:35:28 +00:00
Andrew Tridgell
bf9cb3c5f3 - tidier flag checking code
- finished the is_mangled() function
(This used to be commit 128bec2071)
2002-04-11 12:14:55 +00:00
Andrew Tridgell
ef88357403 added some more comments
(This used to be commit 8d6f2e2399)
2002-04-11 11:46:42 +00:00
Andrew Tridgell
b1f04740ad some optimisations to the new mangling system
(This used to be commit 30b35d0c1f)
2002-04-11 10:52:59 +00:00
Andrew Tridgell
714518e550 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.
(This used to be commit bb173c1a7e)
2002-04-11 09:56:38 +00:00
Tim Potter
60fd2ec8cc 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.
(This used to be commit 094a51edb9)
2002-04-11 05:05:08 +00:00
Tim Potter
d0e6af62d6 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.
(This used to be commit 6c7b5e15c2)
2002-04-11 05:04:05 +00:00
Gerald Carter
e1e8c5b396 removed unnecessary memset
(This used to be commit 233a24792e)
2002-04-11 03:15:02 +00:00
Jeremy Allison
8e2f3ec1d1 Correctly emulate NT in printer handle opening access rights.
Jeremy.
(This used to be commit 42ae2334f2)
2002-04-11 02:59:31 +00:00
Andrew Tridgell
9cd0306baa 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.
(This used to be commit be23d87a17)
2002-04-11 02:20:56 +00:00
Gerald Carter
d3fa6d5de6 s/werror_str/dos_errstr/g to fix compile
(This used to be commit d7c9b00253)
2002-04-11 02:13:56 +00:00
Gerald Carter
ed72efbd3b merge from 2.2
(This used to be commit 7db47c6647)
2002-04-11 02:08:36 +00:00
Gerald Carter
83ece07995 WERROR merge from SAMBA_2_2
(This used to be commit 32dc5dbbfb)
2002-04-11 01:50:18 +00:00
Gerald Carter
b40e73e2ca specversion merge from SAMBA_2_2
(This used to be commit d87aa35d48)
2002-04-11 01:48:38 +00:00
Tim Potter
81ca81e85b Added a whole bunch more permission constants.
(This used to be commit f8673bd499)
2002-04-11 01:35:53 +00:00
Jeremy Allison
977b867010 Removed duplicate _LARGEFILE64_SOURCE added in error.
Jeremy.
(This used to be commit 678f4f455e)
2002-04-11 00:42:38 +00:00
Jeremy Allison
8c1f1034fa Ensure VFS modules will build correctly by adding defines for CPPFLAGS
defines into acconfig.h - only defined if seen.
Jeremy.
(This used to be commit 9f2753a149)
2002-04-11 00:37:31 +00:00
Jim McDonough
6e0b34fb3c 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.
(This used to be commit b69f11170c)
2002-04-10 13:29:23 +00:00
Jim McDonough
85a7948337 Add a few option externs for net_ads.c
(This used to be commit 4e3265c3c9)
2002-04-10 13:28:28 +00:00
Jim McDonough
69f41523b3 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()
(This used to be commit 7aa5fa6172)
2002-04-10 13:28:03 +00:00
Jim McDonough
e26420cc1f Add ads ldap server controls
(This used to be commit 9126f008ef)
2002-04-10 13:25:40 +00:00
Tim Potter
b99d3f27df Fixed missing alignment in spoolss_io_q_enumjobs() function.
(This used to be commit e878cdc9f5)
2002-04-10 07:21:03 +00:00