1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-28 17:47:29 +03:00

17903 Commits

Author SHA1 Message Date
Gerald Carter
b162a396fe r7624: * removed unmatched tdb_lock_by_string() call (should fix build farm issues)
* comment out services.tdb code until I finish rewriting it
(This used to be commit 707b7822286a6c7e9d1e4ca3d15b99c976f6e704)
2007-10-10 10:57:17 -05:00
Gerald Carter
e9e00ee9c2 r7620: when adding a new printer driver, we should copy the files
(not move) to the W32X86/{2,3}/ directory.  Printmig.exe
copies the driver files for all drivers to print$/W32X86
and the calls AddPrinterDriver() for each driver.  If we
move the file, then adding a driver which shares a file with
a previous driver will fail.

I can now restore drivers in bulk to a Samba 3 server.
(This used to be commit 46cd95c9b48a00a51139d3654352d4399b774a9b)
2007-10-10 10:57:17 -05:00
Jeremy Allison
df4f8fc1c6 r7618: Typo...
Jeremy.
(This used to be commit 65d1365700588949fc5576c7dd525fc530a15ff4)
2007-10-10 10:57:17 -05:00
Jeremy Allison
741b0a97bb r7617: Fix for bug #2801 - delete veto files was broken with the new
large directory code.
Jeremy.
(This used to be commit f397cc08b5628913af4d7f9c2c6d20c778e5d8ca)
2007-10-10 10:57:16 -05:00
Gerald Carter
f2f115c2a2 r7614: convert move_driver_to_download_area() to return WERROR in order to provide better error messages to clients when a AddPrinterDriver[Ex]() call fails
(This used to be commit c98e17446afffc4b12f1a31f6e5cce517fc0a95b)
2007-10-10 10:57:16 -05:00
Gerald Carter
9b43bd3b62 r7613: small changes to _svcctl_open_service() and create_open_service_handle() to prevent invalid service names from being accepted; printmig.exe now migrates drivers successfully
(This used to be commit dafb32c01f06c42f44aeb0d16681c5def4903244)
2007-10-10 10:57:16 -05:00
Gerald Carter
5b678f7a84 r7610: can successfully stop and start the 'spooler' service by setting the state for the 'disable spoolss' parameter in memory for an individual smbd
(This used to be commit f19c10d0c3e7701066b765c712df0636e914bf7e)
2007-10-10 10:57:16 -05:00
Lars Müller
7cbd740c62 r7609: Move top level dir handling in from of the loop. This makes the code
much straither.

copy_top_level_perms() is jra's work.

I modified the copy_top_level_perms() function to use the copy_clistate.

And I don't forget trunk.

Lars
(This used to be commit 2c68568e5232c057d4f76f4bb044c54d18272602)
2007-10-10 10:57:16 -05:00
Günther Deschner
95ce7e65eb r7607: Some minor fixes (typos, const)
Guenther
(This used to be commit 11504681861c9c8b509589d6d22551202d98e390)
2007-10-10 10:57:15 -05:00
Günther Deschner
3f657f41cc r7606: add WERR_NET_NAME_NOT_FOUND. This is what windows returns when
trying to manipulate non-existing shares.

Guenther
(This used to be commit 2e5cb531ab8a8babbc425b22d17a39c18f602d4f)
2007-10-10 10:57:15 -05:00
Gerald Carter
899bc3a07d r7603: * fix a bug in the SERVICE_ALL_ACCESS security mask
* add calls to start and stop a service (to be filled
  in by the backend routines in services/svc_*.c
(This used to be commit 793d28a946d83beb2576c5c8ce808d32c71c880a)
2007-10-10 10:57:15 -05:00
Gerald Carter
2851e43e48 r7595: start trying to split out the svcctl functions into separate files for better maintenance; add SERVICE_CONTROL_OPS for spoolss service
(This used to be commit 2b0ea30a1a3aebaabd5d328de50e6ad2ef18d45d)
2007-10-10 10:57:15 -05:00
Jeremy Allison
2efcdb2fb8 r7591: Don't call getpeeraddr on a disconnected socket.
Jeremy.
(This used to be commit a9cd218eb607066a65818b534ec5e3ecb55da4cf)
2007-10-10 10:57:15 -05:00
Gerald Carter
9591510721 r7584: cleanup the default printer security descriptor
(This used to be commit 26387fc74c1157157e7e8728003a39d10aeb4cc1)
2007-10-10 10:57:15 -05:00
Gerald Carter
b6153cb78b r7583: * more rearranging and renaming of functions
* add access checks to _svcctl_XXX() calls based on
  the access granted on the handle
(This used to be commit 82b76d4b34834b7f64389b85befe8bfcae04a404)
2007-10-10 10:57:15 -05:00
Gerald Carter
cfe8933754 r7581: fix bad merge
(This used to be commit 55d08311032b75724b525d8e0df506de3e988b15)
2007-10-10 10:57:14 -05:00
Gerald Carter
6109b8ad9d r7578: use global well known DOM_SID objects when possible
(This used to be commit 643dc05eb5a8e41cf9cb1768ef42f5dbc0320846)
2007-10-10 10:57:14 -05:00
Gerald Carter
3c47e65e93 r7577: switching to macro for IS_DC
(This used to be commit e6df9a7ac74a4e4f8de15fc01799bf42dfdd530c)
2007-10-10 10:57:14 -05:00
Gerald Carter
023ac1031b r7576: implement access checks for open_scm and open_service
according to default security descriptor described in MSDN.

no one can get in to due to the permissions, but i'll fix
that next.
(This used to be commit 11902e503ed4f6d6991a9fe7521fe44168274ec8)
2007-10-10 10:57:14 -05:00
Gerald Carter
2265f5c9d7 r7573: you can't make an omlette without break a few eggs....start reworking the svcctl code
(This used to be commit 24b369d12f8d5dbfdc317e5f088b8ae2583f4483)
2007-10-10 10:57:14 -05:00
Gerald Carter
d559edcce2 r7563: svcctl patches from Marcin; have cleaned up formating and am checking the code in to snapshot it before I start changing more things
(This used to be commit 560ce111ce8de37d02bce64d2ca60a5f471d5477)
2007-10-10 10:57:14 -05:00
Jeremy Allison
33a4c0b5a1 r7554: Refactor very messy code in util_sock.c Remove write_socket_data/read_socket_data
as they do nothing that write_socket/read_socket don't do. Add a more useful
error message when read_socket/write_socket error out on the main client fd
for a process (ie. try and list the IP of the client that errored).
Jeremy.
(This used to be commit cbd7578e7c226e6a8002542141b914ed4c7a8269)
2007-10-10 10:57:13 -05:00
Jeremy Allison
a59149b86a r7550: Steal the correct error return for invalid TID on NTcreateX from Samba4
(thanks tridge !).
Jeremy.
(This used to be commit 0288823aacdbec6ba99e944c9f06f051e55c64b8)
2007-10-10 10:57:13 -05:00
Gerald Carter
c7081a0acd r7547: removing unused fields in the REGISTRY_KEY structure associated with open handles
(This used to be commit ffc7bd87d8a03d8269ae6d0b9e314f8f20003a06)
2007-10-10 10:57:13 -05:00
Jeremy Allison
c52e7fdf78 r7544: Fix for bug #2196 from Denis Sbragion <d.sbragion@infotecna.it>.
Allow absolute path (system wide) recycle bin.
Jeremy.
(This used to be commit 451fbbf1d603cb99b0c9f0d39de9ad71a6a12833)
2007-10-10 10:57:13 -05:00
Jeremy Allison
1a60c450dd r7542: Patch from Renaud Duhaut <rd@duhaut.com> for a parameter
"directory_mode" when creating recycle directories.
Bug #1040.
Jeremy.
(This used to be commit 1c94cbd72d93ff8f17d6e1971ff984fa9581f1ce)
2007-10-10 10:57:12 -05:00
Jeremy Allison
9625ed4a36 r7541: Patch from core@road-star.jp for bug #2792. Ensure the shadow copy
module hooks seekdir, telldir, rewinddir to match updated large
directory code.
Jeremy.
(This used to be commit 0cdc62b60b6152cb67e517d70f4e4681dca8f4df)
2007-10-10 10:57:11 -05:00
Günther Deschner
f245e77644 r7537: Print passwords in display charset.
Guenther
(This used to be commit f3bdc20ba3de77ceacfd328ff85322666bd81ca8)
2007-10-10 10:57:11 -05:00
Günther Deschner
9f1335b015 r7534: Add missing cli_srvsvc_net_share_set_info-function and
rpcclient-testers.

Needed in preparation of share-ACL migration in net.

Guenther
(This used to be commit 08d124079f4ed1ad008a83510c05b430c86fbf78)
2007-10-10 10:57:11 -05:00
Günther Deschner
075649d3c2 r7532: compile fix.
Guenther
(This used to be commit 1815e0745e4707f608a4803e67c7a3bd0c0b844a)
2007-10-10 10:57:11 -05:00
Günther Deschner
0fe12bf901 r7529: Apply some const, remove unused variable.
Guenther
(This used to be commit bc419472e295945559cf83f6ed9febff29adcfc1)
2007-10-10 10:57:10 -05:00
Lars Müller
ebb42167c9 r7512: Fix net share migrate files to also migrate the ACLs of the top level
dir of a share.  Till now we excluded '.' and '..' in general.  For the
fix the information about top or lower level dir is stored in the
copy_clistate.  src and dst share are now also part of this struct and
we only pass a pointer to the struct to the functions.

This bug was found by Bill Calero of Novell.  Thanks Bill!

With this checkin no new functionality was added.  But the copy_clistate
already knows about a mode. Later beside the migrate an additional
report mode will be added.

This changes are coordinated with Günther <gd>.

Lars
(This used to be commit 506aaefa3716c7683eef9afe0d1bb5b6e2533c4b)
2007-10-10 10:57:10 -05:00
Lars Müller
bf66eb3a92 r7511: Add three new command line switches to testparm:
--show-all-parameters
        Enumerates all available parameters, grouped in to sections
        [local] and [global] by the class of the parameter.  Each line
        is formated name=type[,enum values],flags
--parameter-name
        Display the setting of the named parameter.  The global section
        is assumed if no other is set with --section-name
--section-name
        Limit the view of testparm to the named section.  Use 'global'
        to only view the settings of the global section.

This fixes bug #2767.

Lars
(This used to be commit a1b82624d739b1066c356dd4b689233f3c36814e)
2007-10-10 10:57:10 -05:00
Jeremy Allison
c3fedee2a6 r7474: A *foul* and *disgusting* hack to ensure that, at the very lowest
level, . and .. are the first two entries returned when reading a
directory. This also means we can't seek to these offsets, but we
will never be doing that anyway (as far as I can think). The reason
we have to do this is that the NT4 explorer will happily display a
folder marked ".." as a clickable folder (and probably would display
"." as a clickable folder too) if these are not in positions zero
and one of the returned file list. W2K seems to have fixed this but
there are too many older systems out there... Never mind, more for
the "Undocumented CIFS talk", coming to a CIFS2005 conference near
you soon.... :-).
Jeremy.
(This used to be commit 7b6e907922b7d98abe4430ea73712a9c6419ea08)
2007-10-10 10:57:10 -05:00
Gerald Carter
46c94b2659 r7472: fix smbpasswd user password change (still worked by bad error messages) due to trying to strdup a NULL pointer
(This used to be commit a48ff479dd4fe99d199ff934aae14ac6e688d8f4)
2007-10-10 10:57:10 -05:00
Gerald Carter
5b0e40fabf r7470: fix block size caculation error when request size > 4096 bytes
(This used to be commit 21e7baa5bc2fdc23c63302c96a40660bf805a5c9)
2007-10-10 10:57:10 -05:00
Gerald Carter
1dfe111a09 r7454: couple of winbindd fixes
* make sure to use our domain as the account name in the net_req_auth2()
  request when running on a Samba DC
* make sure to lookup the correct domain (not default to ours) when getting an async
  getpwnam() call
(This used to be commit c9c3e3c122a6a04847c448d298b6f1adb4f35a60)
2007-10-10 10:57:09 -05:00
Jeremy Allison
6d39f3bdce r7452: Set sparse flag if needed. Based on code from jpeach@sgi.com.
Fixes bug #2774.
Jeremy.
(This used to be commit 5d366047debed68f36d44d34233ba4670e412d1e)
2007-10-10 10:57:09 -05:00
Gerald Carter
958624a9fc r7450: fix my bone head mistake with ntlm authentcation and 'map to guest = bad uid'; make sure the authentication suceeds
(This used to be commit 5de1ffce2f2a0a340f6591939b8f63a3d96a627e)
2007-10-10 10:57:09 -05:00
Jeremy Allison
db0b2f9ebe r7447: Sync up a little between HEAD and 3.0 in preparation for moving
the AIO code across.
Jeremy.
(This used to be commit e9604e65f4337a4163398f1f2c71e13da7993ed4)
2007-10-10 10:57:09 -05:00
Gerald Carter
129b461673 r7440: * merge registry server changes from trunk (so far) for more
printmig.exe work
* merge the sys_select_signal(char c) change from trunk
  in order to keeo the winbind code in sync
(This used to be commit a112c5570a7f8ddddde1af0fa665f40a6067e8cf)
2007-10-10 10:57:09 -05:00
Volker Lendecke
d197ddd4c3 r7423: Fix the build on sol10
(This used to be commit e8fde1bd92e8b19c8b5ce22f92cb048de773be1c)
2007-10-10 10:57:09 -05:00
Gerald Carter
fed660877c r7415: * big change -- volker's new async winbindd from trunk
(This used to be commit a0ac9a8ffd4af31a0ebc423b4acbb2f043d865b8)
2007-10-10 10:57:08 -05:00
Jeremy Allison
66bb4f03c3 r7412: Now we're not memset'ing ensure we're valgrind clean.
Jeremy.
(This used to be commit 0d303ab2f30f6047fc3f2f6fc4916e93704959d2)
2007-10-10 10:57:08 -05:00
Gerald Carter
dacdfbc98c r7398: commiting abartlet's patch for kerberos authentication when using a keytab and security != ads
(This used to be commit 3faaa5c3eb3b2057984586e069a47cb210c99140)
2007-10-10 10:57:08 -05:00
Gerald Carter
0da9b4b336 r7396: cleaning up vestiges of winbind local accounts code
(This used to be commit c57c23cf52184171ac588c2919dc4ee4e68f2431)
2007-10-10 10:57:08 -05:00
Gerald Carter
377f947930 r7395: * new feature 'map to guest = bad uid' (based on patch from
aruna.prabakar@hp.com).

This re-enables the Samba 2.2 behavior where a user that was
successfully authenticated by a remote DC would be mapped
to the guest account if there was not existing UNIX account
for that user and we could not create one.
(This used to be commit b7455fbf81f4e47c087c861f70d492a328730a9b)
2007-10-10 10:57:08 -05:00
Günther Deschner
4bc39f05b7 r7391: - Added client-support for various lsa_query_trust_dom_info-calls and a
rpcclient-tester for some info-levels.

  Jerry, I tried to adopt to prs_pointer() where possible and to not
  interfere with your work for usrmgr.

- Add "net rpc trustdom vampire"-tool.

  This allows to retrieve Interdomain Trust(ed)-Relationships from
  NT4-Servers including cleartext-passwords (still stored in the local
  secrets.tdb).

  The net-hook was done in cooperation with Lars Mueller
  <lmuelle@suse.de>.

  To vampire trusted domains simply call:

        net rpc trustdom vampire -S nt4dc -Uadmin%pass

Guenther
(This used to be commit 512585293963a1737f831af697ea1dc092d63cb0)
2007-10-10 10:57:07 -05:00
Volker Lendecke
eeca550731 r7390: Revision 7371 did not help :-(
(This used to be commit a405e7f479cb71be5634b79f2d7847fcf018f516)
2007-10-10 10:57:07 -05:00
Jeremy Allison
04e07e8cc9 r7385: Rewrite the RPC bind parsing functions to follow the spec. I haven't yet
tested this so I may have screwed this up - however it now follows the
DCE spec. valgrinded tests to follow....
Jeremy.
(This used to be commit 877e0a61f5821c89149b1403d08675dd7db8039e)
2007-10-10 10:57:07 -05:00