1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

9224 Commits

Author SHA1 Message Date
Jelmer Vernooij
cb2478befb Add 'conf' command to load different smb.conf files
(This used to be commit 9b4deb1e0f36968bf9b83120b12e6692b20df9d4)
2002-08-19 00:19:44 +00:00
Simo Sorce
c9df8aa9cd O_NOFOLLOW does not exist on solaris 8 ??
(This used to be commit 4280300d80d831b78ca50a0a4325b9e239a8bb63)
2002-08-18 20:28:16 +00:00
Andrew Tridgell
c0f37b336b round lock timeouts in lockingX upwards to multiples of 1 second, so a
half second timout rounds to 1 not 0
(This used to be commit 282a64b085162a58560175d14e7ceaef3d6cc9cc)
2002-08-18 20:13:09 +00:00
Jelmer Vernooij
ec91716cb7 Add entry about block.so
(This used to be commit 6973344fb5207341e98576b1ddbe58a745225e10)
2002-08-18 20:12:43 +00:00
Andrew Tridgell
f18c3c757a added exact timing semantics on blocking locks
(This used to be commit aed32eb412cab7f6d0959f9faaaebdb320b2b6a8)
2002-08-18 20:09:02 +00:00
Andrew Tridgell
db9a33fd38 nicer locking timeout test
(This used to be commit 2307869798c99f75d2624bb3c144e780e358a3c9)
2002-08-18 20:06:41 +00:00
Simo Sorce
d433fc4dd3 improvements and bugfix
open calls now understands flags and mode
bug on read
(This used to be commit 751d057713a3fa8a5a141eaed4e8401e7802cfc9)
2002-08-18 19:22:10 +00:00
Simo Sorce
789e6e6b4e A new utility to test VFS system and modules
Just now it is acommandline tool like smbclient and rpcclient that is able to
perform operations on the file system passing through the vfs layer

It is not complete yet, some functions have simply faked up data, but module
loading works yet and basic operations too.

Thanks to Eric Lorimer for helping out with the initial setup.

Simo.
(This used to be commit 42ae5eb82657d4905bdaf247286f95599380afbb)
2002-08-18 18:04:00 +00:00
Gerald Carter
12be900ece * Fix DeletePrinterDataEx() to work with arbitrary registry keys
* Fix delete_all_printer_data() to accept a key name for partial tree
  deletions

* Fix EnumPrinterKey() to work with subkeys

* Fix DeletePrinterKey() to work with ful or partial registry
  trees

* Fix get_printer_subkeys() to return a list of unique keynames
  ( some were getting added twice due to subkeys names )

* fix a couple of typos for good measure
(This used to be commit b6ceb8c2e50b7fcdc614a3b6782db05b60689a85)
2002-08-18 16:52:51 +00:00
Andrew Tridgell
a897c3ceda make the LOCK1 test randomise the time for the blocking lock test
(This used to be commit 28d325227c9b7ab48a47df006204319b21f7e7f7)
2002-08-18 15:46:41 +00:00
Andrew Tridgell
d86b5fff06 be a bit more paranoid about not getting duplicate domain names (can
happen when the LDAP call to get the flatname for the primary domain
fails)
(This used to be commit 8d40f34e2f5188f15f414e807d023bfea7bd8c8e)
2002-08-18 15:46:03 +00:00
Gerald Carter
11fadbee74 fix GetPrinterDataEx() to work with registry subkeys using a depth > 1
(This used to be commit 8799d4f7ccf3b3767c155d29f15cecd142d0db99)
2002-08-18 12:33:41 +00:00
Gerald Carter
50d224a898 fix to allow EnumPrinterKey() to enumerate multiple levels of subkeys.
Works on the top level.  Needs more testing for levels > 1.
(This used to be commit 32a7083843f2bf9a3f32027189dbb0ff92927cd4)
2002-08-18 11:11:48 +00:00
Gerald Carter
caf8f949b6 * small formatting fixes
* Fix EnumPrinterKey() to enumerate all printer keys
  ( this will break if we have more than one level deep of printer keys )
(This used to be commit e72184ce13a5645dc1e1a137468207270ed20ed6)
2002-08-18 02:10:07 +00:00
Gerald Carter
409d7ff3f5 fixed up a few comments
removed now unused getprinterdata)printer() function
(This used to be commit 2d5e4cdc3a4128c6747350d8f66b783218045ce2)
2002-08-18 01:02:32 +00:00
Gerald Carter
66992aff21 * fix Get/SetPrinterDataEx() to work with printer key other
than SPOOL_PRINTERDATA_KEY

* created an internal set/get_printer_dataex() call for reuse in
  Set/GetPrinterData()
(This used to be commit 4eb8ffba032971cf83a0fcec7ca3730b4ded0bf0)
2002-08-18 00:59:47 +00:00
Andrew Tridgell
28d89d3e66 get the error code right in case of a blocking lock timeout.
(This used to be commit 01d35694ae0497ee11a7677eecc597336e6b59ca)
2002-08-17 23:57:48 +00:00
Andrew Tridgell
c2831ae82c amazing! we've had a reversed comparison in our blocking lock code
since 1998 and nobody noticed. It means that sometimes smbd would sit
there forever, and smbd would never get the timing part of blocking
locks right.
(This used to be commit 5d4df58b6d4de548d8aa0a49ec307dce7cd1515a)
2002-08-17 23:30:18 +00:00
Samba Release Account
b3ce3a877c preparing for release of 3.0-alpha19
(This used to be commit 227472286f479bddfac7ea958b779fc4459a9e1e)
2002-08-17 21:11:13 +00:00
Samba Release Account
2727f74132 preparing for release of 19
(This used to be commit be5a649ed4c06aa1ffb709f1d3ff8ed26919bf1c)
2002-08-17 20:59:17 +00:00
Jelmer Vernooij
be4b8b3e7f Update whatsnew for 3.0alpha19
(This used to be commit 9617b8f0081adb68230870db2311a7b83b84a13e)
2002-08-17 20:54:11 +00:00
Jelmer Vernooij
36e9005cc2 Better coding style
(This used to be commit 09cb706dd1347ff29893ef33214332990be86b43)
2002-08-17 16:27:27 +00:00
Jelmer Vernooij
3312086d7a Better coding style
Move out last Makefile.pdb dependencies
(This used to be commit 2dc8b48632b0f14834db79f851a06469d2c0c00b)
2002-08-17 16:25:39 +00:00
Jelmer Vernooij
d5f8f1be7e Update indent arguments, they're now correct.
(This used to be commit 7f2d506bab0b649f707a25dec856639b18eee625)
2002-08-17 16:15:20 +00:00
Jelmer Vernooij
ee92edf7da paramater -> parameter
(This used to be commit 0db310d82c9d8f403c41e158662be1260c609542)
2002-08-17 13:52:02 +00:00
Gerald Carter
cb36e520b3 * the printing code should now be back to the working state it was
before the swap from NT_PRINTER_PARAM to REGISTRY_VALUE.

* XxxPrinterDataEx() functions have not been expanded to support
  keys other than SPOOL_PRINTERDATA_KEY yet

* fixed apparent long standing bug regarding the dependentfiles
  list in the DRIVER_INFO struct
(This used to be commit d59b0eb1236cf5bb9371030a94eb60d4131c15fb)
2002-08-17 13:17:41 +00:00
Andrew Bartlett
8f5f2eb454 Change which session key we negotiate. This uses the NT-based session key that
we previously expected, rather than the LM based key.

A Win2k SPNEGO enabled join goes a *lot* further with this option on.

Andrew Bartlett
(This used to be commit b224938e4e843288630cdc7c3c3931b241bd0e1a)
2002-08-17 07:31:54 +00:00
Andrew Bartlett
e2cd994c90 Quick hack to get around the inadequacy of pdb_smbpasswd. This should make the
build farm happy again, and allow the 'guest account' to be added to smbpasswd.

Andrew Bartlett
(This used to be commit 5e5cd2874527dd9a213c4bfcf98a425c39f3f2e2)
2002-08-17 07:21:01 +00:00
Andrew Bartlett
8690b271a6 Move tridge's getgrouplist() replacement function from replace.c to a new
'system_smbd.c' file, where it can link with become_root() and unbecome_root(),
and therefore avoiding some nasty 'it workes on linux' bugs.

(The replacement function is implemented in terms of initgroups(), which is
naturally only avaliable to root).

Andrew Bartlett
(This used to be commit a91018dd026be3db473bb1cf1f4981295f9758e4)
2002-08-17 07:09:22 +00:00
Andrew Bartlett
717b27c005 Add const.
(This used to be commit fb28abd120310a591bdf5fa1afc5521443c3d34c)
2002-08-17 06:36:18 +00:00
Andrew Bartlett
c4ebde6b4b Add 'const'.
(This used to be commit 8955f3d63a9d9e5da76331996fba42dc105737da)
2002-08-17 06:34:41 +00:00
Andrew Bartlett
22404245b4 Becouse of changes to the meaning of this feild over time, this doesn't
actually work.  Also, the idea of 'loopback winbind' isn't that bad an idea
anyway (potential PDC/BDC applications).

Given all that, remove it...

Andrew Bartlett
(This used to be commit fc0d6e53fce1d05b16ec58c0bdc38aa8da4422c0)
2002-08-17 05:26:58 +00:00
Andrew Bartlett
ba1d348265 The idea of this function is not to touch the argument, so make it const too...
(This used to be commit 8a63fe45058b15c15d79e15387e908564cfe5c2d)
2002-08-17 04:56:38 +00:00
Andrew Bartlett
a27ec4a011 Rework the 'guest account get's RID 501' code again...
This moves it right into the passdb subsystem, where we can do this in
just one (or 2) places.  Due to the fact that this code can be in a tight loop,
I've had to make 'guest account' a 'const' paramater, where % macros cannot be
used.  In any case, if the 'guest account' varies, we are in for some nasty
cases in the other code, so it's useful anyway.

Andrew Bartlett
(This used to be commit 8718e5e7b2651edad15f52a4262dc745df7ad70f)
2002-08-17 04:51:27 +00:00
Gerald Carter
f56e06476f fix seg fault in _spoolss_enumprinterkey after changes...
add SPOOL_PNPDATA_KEY define
(This used to be commit cdaa3f55e1fcc38b1d7a63d502a9fea3b92bf193)
2002-08-17 00:38:20 +00:00
Tim Potter
3a226d149d Return access granted in create_user2.
(This used to be commit 8ebc295f4a487993474390e0686d2aa9313be8d1)
2002-08-16 17:35:38 +00:00
Gerald Carter
31514f67ae fix small bug in enumprinterdataex due to my changes (still more lurking
though).
(This used to be commit 2feb89601fc45dea13fe45a55a9c058726a5de84)
2002-08-16 16:46:50 +00:00
Gerald Carter
4ed429481c Fairly large change to printing code.
* removed support for PHANTOM_DEVMODE printer data

* s/NT_PRINTER_PARAM/REGISTRY_VALUE/g - This was a good bit
  of work.  Everything seems stable, but is not complete.

* support for printer data keys other than PrinterDriverData
  in the store and fetch routines.  Still needs to be plugged
  into the XxxPrinterDataEx() calls.

Tested against NT4.0 & 2k.  Like I said, it's not done, but doesn't
crash so it shouldn't upset anyone (unless you're trying to build
a Samba printer server off of HEAD).  More work to come.  Should
settle by Monday.


jerry
(This used to be commit 7ba7c04c0e961618c82c2112b9627af114c6cc42)
2002-08-16 15:36:37 +00:00
Andrew Bartlett
b84315e2d5 Return the error if get_group_domain_entries() fails.
(This used to be commit bc9e9e3e2e0d861f34de26a9ef8b627a86c9954d)
2002-08-16 08:47:10 +00:00
Andrew Bartlett
fbaf4d07ae Make the 'guest account' always have a RID of DOMAIN_USER_RID_GUEST.
Andrew Bartlett
(This used to be commit 4725d7d04936335cbd85bd6ac5096c50fed93671)
2002-08-16 08:46:03 +00:00
Jim McDonough
51f62926b3 Re-add the last empty item to the NTLMSSP info list, but this time do it
with an empty string, not a NULL pointer...

Also, check for security=ads before giving a kerberos spnego response.
(This used to be commit 6eca417d1c29c7c18455f8290cad86fb1444e615)
2002-08-16 08:09:55 +00:00
Andrew Bartlett
b92cda9772 Add some const to the 'in' paramaters for these functions.
Andrew Bartlett
(This used to be commit 23f332178526877e9670515eb7c614b81fca21a9)
2002-08-16 07:56:08 +00:00
Andrew Bartlett
54e964a0fb Fix segfault in the new NTLMSSP code. jmcd: can you look at this - what
exactly were you trying to do here?

Andrew Bartlett
(This used to be commit 81b675b54d86d196fb2035dc5d22781160518beb)
2002-08-16 07:04:37 +00:00
Tim Potter
88d321becd Merge of netbios namecache code from APPLIANCE_HEAD.
Tridge suggested a generic caching mechanism for Samba to avoid the
proliferation of little cache files hanging around limpet like in the
locks directory.  Someone should probably implement this at some
stage.
(This used to be commit dad31483b3bd1790356ef1e40ac62624a403bce8)
2002-08-16 00:25:48 +00:00
Tim Potter
298f956eaf The unused variable was actually needed. The correct fix is to move
it inside an #ifdef HAVE_ADS to avoid the warning and breaking the
build.  (-:
(This used to be commit a8c4febdb760beb669048c2bf2bb0a0b1c5ed472)
2002-08-15 22:03:22 +00:00
Tim Potter
9b38f76ab1 Rename unknown_0 field in create_user2 reply in the actual struct.
(This used to be commit 482d873c26bf02e27ffcd92042b476eda765a5ff)
2002-08-15 19:40:34 +00:00
Tim Potter
ef4ff1bc48 Rename unknown_0 field in create_user2 reply in the actual struct.
Remove 9th place leading zero from some constants.
(This used to be commit 876e7b2bf45aad40282fd0ccddadf01df23d8d41)
2002-08-15 19:37:34 +00:00
Tim Potter
14c7250ab4 Removed unused variable.
(This used to be commit 23f1b839e6287089511cd51ceed298d6a6d65a89)
2002-08-15 19:34:57 +00:00
Gerald Carter
3941058359 large set of updates converting some of the textdocs to SGML/DocBook.
I think these were originally from Jelmer, but I've lost
the original message.

Also had some syntax errors in the manpages (does no one regenerate
after making changes to the SGML source?)

Still have some developer specific docs to add from Jelmer in the next
go around....
(This used to be commit 5f673b788314325699a64377d514dda435e6c478)
2002-08-15 13:56:33 +00:00
Simo Sorce
10712f9a22 *** empty log message ***
(This used to be commit cb72eead70509eddaa051571f3eed3c46304b5f8)
2002-08-15 13:25:25 +00:00