1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

51854 Commits

Author SHA1 Message Date
Michael Adam
d7ca499701 s3:mount.cifs: make "mount.cifs -V" print the version, not usage.
Also make "mount.cifs -h" not exit with error exit code but with return code 0.

Michael
2009-02-24 16:59:55 +01:00
Michael Adam
6e16c5eed5 s3:mount.cifs: don't error exit on explicitly requested help...
Michael
2009-02-24 16:59:54 +01:00
Günther Deschner
89c682c418 s3: re-run make samba3-idl.
Guenther
2009-02-24 12:41:21 +01:00
Günther Deschner
5c5ce2bee6 spoolss: fix _spoolss_SetPrinter level 3.
Guenther
2009-02-24 12:41:21 +01:00
Günther Deschner
e1749a1f78 s3-spoolss: use marshall/unmarshall_sec_desc_buf in nt_printing_setsec/getsec.
Guenther
2009-02-24 12:41:21 +01:00
Günther Deschner
f21ae452a0 s3-lib: add marshall_sec_desc_buf and unmarshall_sec_desc_buf helpers.
Guenther
2009-02-24 12:41:20 +01:00
Oliver Liebel
31f2cddcf5 Added mmr and olc to the OpenLDAP backend provisioning-scripts
These extensions add mmr (multi-master-replication) and olc
(openldap-online-configuration) capabilities to the
provisioning-scripts (provision-backend and provision.py), for use
with the openldap-backend (only versions >=2.4.15!).

Changes / additions made to the provision-backend  -script:
added new command-line-options:
--ol-mmr-urls=<list of whitespace separated ldap-urls> for use with mmr
(can be combined with --ol-olc=yes),
--ol-olc=[yes/no] (activate automatic conversion from static slapd.conf
to olc),
--ol-slaptest=<path to slaptest binary> (needed in conjunction with
--ol-olc=yes)

Changes / additions made to the provision.py -script: added
extensions, that will automatically generate the chosen mmr and/or olc
setup for the openldap backend, according to the to chosen parameters
set in the provision-backend script

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-02-24 21:34:44 +11:00
Günther Deschner
00173c6ce6 s3-spoolss: merge path handling in _spoolss_PrintProcessorDirectory and
_spoolss_PrinterDriverDirectory.

Guenther
2009-02-24 11:03:28 +01:00
Günther Deschner
13995f5212 s3: re-run make samba3-idl.
Guenther
2009-02-24 11:03:28 +01:00
Günther Deschner
aa576c292f spoolss: return subcontext spoolss_DriverInfo in spoolss_GetPrinterDriver2.
Guenther
2009-02-24 11:03:28 +01:00
Günther Deschner
0ca5b72ad9 spoolss: add SPOOLSS_DEFAULT_SERVER_PATH.
Guenther
2009-02-24 11:03:27 +01:00
Andrew Bartlett
022946d196 Make the 'modules.conf' generation in the LDAP selftest simpler
The versions of OpenLDAP that we require don't need us to specify the
location any more - slaptest knows this from it's build time.

Andrew Bartlett
2009-02-24 20:49:59 +11:00
Tim Prouty
997dfbbf54 s3 OneFS: Fix a double free in an error path 2009-02-23 23:22:03 -08:00
Tim Prouty
7bcaaf14fb s3 OneFS: Add a parameter that unconditionally allows execute access 2009-02-23 23:21:48 -08:00
Steven Danneman
8d63c596a0 Refactored sys_fork() and sys_pid() into shared util library
This fixes a bug in 116ce19b, where we didn't clear the pid cache in
become_daemon() and thus the /var/run/smbd.pid didn't match the actual
pid of the parent process.

Currently S4 will clear the pid cache on fork but doesn't yet take
advantage of the pid cache by using sys_pid() instead of the direct
get_pid().
2009-02-23 21:17:12 -08:00
Andrew Tridgell
3a1b4c00eb Merge branch 'master' of ssh://git.samba.org/data/git/samba 2009-02-24 11:40:28 +11:00
Andrew Tridgell
b9860043dc fixed the event context for net vampire 2009-02-24 11:39:44 +11:00
Jeremy Allison
faa1100d22 More warning fixes for Solaris.
Jeremy.
2009-02-23 16:22:43 -08:00
Günther Deschner
bcd6e5ec33 s3-spoolss: fix notify_printer_status_byname.
This took me almost a week to find, so here a little longer explanation:

When a windows client registers printer *status* change notifies using
spoolss_RemoteFindFirstChangeNotify, it registers them to a print server handle,
not a printer handle. We were then correctly monitoring the printer status
changes but were sending out the spoolss_RouterReplyPrinterEx via the back-channel
connection with job_id set to 0 (which we only may do for monitored printer
change status notifies on printer handlers, not print server handles). Windows
was then showing a new empty dummy printer icon in the explorer as it cannot
route the notify event to the approriate local handle. It also discarded the
content of the notify event message of course. With this, printer change notify for
pausing, resuming and purging printers nicely works again here.

Jerry, Tim and all other printing gurus, please check.

Guenther
2009-02-24 01:08:03 +01:00
Günther Deschner
3e796103b2 s3: re-run make samba3-idl.
Guenther
2009-02-24 01:03:19 +01:00
Jelmer Vernooij
fff055f8e3 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2009-02-24 01:02:45 +01:00
Günther Deschner
6532fea2c8 spoolss: add push,pull helper for spoolss_DriverInfo101.
Guenther
2009-02-24 01:02:37 +01:00
Günther Deschner
b8b3a6f1fc spoolss: add spoolss_DriverInfo101 to IDL.
Note that the size_is of the spoolss_DriverFileInfo is not reflected on the ndr.
It is just used as pidl cannot handle a relative pointer to a static array of
structs.

Guenther
2009-02-24 01:02:28 +01:00
Jelmer Vernooij
b9cf189404 expand tabs in python file, consistent with the rest of the file. 2009-02-24 01:02:26 +01:00
Günther Deschner
0449d5c285 spoolss: generate size functions for printer driver structs.
Guenther
2009-02-24 01:02:16 +01:00
Günther Deschner
1a9bb33a7d error-codes: add WERR_INVALID_USER_BUFFER.
Guenther
2009-02-24 01:01:57 +01:00
Jelmer Vernooij
dcb2e7d577 expand tabs in python file, consistent with the rest of the file. 2009-02-24 01:00:09 +01:00
Jelmer Vernooij
10c047c6f4 Fix finding of setup data. 2009-02-24 00:58:29 +01:00
Andrew Tridgell
0016b9cee8 added a missing linefeed 2009-02-24 10:48:11 +11:00
Jeremy Allison
2033b44c3f More warning fixes for Solaris.
Jeremy.
2009-02-23 15:44:34 -08:00
Jeremy Allison
0b62cdbed0 Quieten down a boatload of shadowed variable warnings on Solaris.
Makes real problems easier to spot.
Jeremy.
2009-02-23 15:03:29 -08:00
Simo Sorce
1cd7fe7194 Fix headers, ldb_includes.h is a private header,
do not reference it from ldb.h
2009-02-23 17:38:11 -05:00
Derrell Lipman
cf7539abfb Make char* parameters const
- Use const in function signatures whenever appropriate, to help prevent
  errant scribbling on users' buffers. smbc_set_credentials() always acted as
  if its formal parameters were const char *, and changing the formal
  declaration to specify that should not cause any change to the ABI. It is
  still allowable to pass a writable buffer to a function which specifies that
  it will not write to the buffer.

  I'm making this change only in master.

Derrell
2009-02-23 13:50:25 -05:00
Simo Sorce
ca24822234 Fix GDB_PROVISION mode 2009-02-23 13:33:39 -05:00
Simo Sorce
689b8f5bb3 Make all transactions nested in ldb. The current samba4 code expects this
behavior anyway, and given we can only have one transaction active per
ldb context this is the only sane model we can support.

Fix ldb_tdb transactions, we could return back with an error with neither
committing nor canceling the actual tdb transaction in some error paths
within the ltdb commit and cancel transaction paths.

Added also some debugging to trace what was going on.
2009-02-23 13:33:19 -05:00
Günther Deschner
fda0158c14 s3-spoolss: remove cli_spoolss_notify.c completly.
All of the spoolss change notify code uses pidl generated functions now.

Guenther
2009-02-23 16:40:52 +01:00
Günther Deschner
443743d423 s3-spoolss: remove old SPOOL_NOTIFY_OPTION definitions.
Guenther
2009-02-23 16:26:11 +01:00
Günther Deschner
2234984fd0 s3-spoolss: remove old spoolss_RemoteFindFirstPrinterChangeNotifyEx.
Guenther
2009-02-23 16:26:11 +01:00
Günther Deschner
fc703a1492 s3-spoolss: remove SPOOL_NOTIFY_INFO_DATA and SPOOL_NOTIFY_INFO alltogether.
Guenther
2009-02-23 16:26:11 +01:00
Günther Deschner
0295008a87 s3-spoolss: remove old spoolss_RouterReplyPrinterEx.
Guenther
2009-02-23 16:26:00 +01:00
Günther Deschner
ce8ca0e68a s3-spoolss: remove old spoolss_RouterRefreshPrinterChangeNotify.
Guenther
2009-02-23 16:20:12 +01:00
Günther Deschner
c1e76d0dd9 s3-spoolss: use pidl for _spoolss_RemoteFindFirstPrinterChangeNotifyEx.
Guenther
2009-02-23 16:17:38 +01:00
Günther Deschner
b3f6d69108 s3-spoolss: use spoolss_NotifyOption and spoolss_NotifyType instead of SPOOL_NOTIFY_OPTION and SPOOL_NOTIFY_OPTION_TYPE.
Guenther
2009-02-23 16:17:37 +01:00
Günther Deschner
2efa7cf6d9 s3-spoolss: add dup_spoolss_NotifyOption.
Guenther
2009-02-23 16:17:37 +01:00
Günther Deschner
418691c2e7 s3-spoolss: use more idl types in spoolss server.
Guenther
2009-02-23 16:17:36 +01:00
Günther Deschner
9b453f9248 s3-spoolss: fix memleak of spoolss_Notify array in _spoolss_RouterRefreshPrinterChangeNotify.
Guenther
2009-02-23 16:17:35 +01:00
Günther Deschner
9af13015b2 s3-spoolss: use rpccli_spoolss_RouterReplyPrinterEx.
Guenther
2009-02-23 16:17:35 +01:00
Günther Deschner
5116f50eb8 s3-spoolss: use pidl for _spoolss_RouterRefreshPrinterChangeNotify.
Guenther
2009-02-23 16:17:35 +01:00
Günther Deschner
6259fac904 s3-spoolss: use struct spoolss_NotifyInfo instead of SPOOL_NOTIFY_INFO.
Guenther
2009-02-23 16:17:35 +01:00
Günther Deschner
03a15f2381 s3-spoolss: use struct spoolss_Notify instead of SPOOL_NOTIFY_INFO_DATA.
Guenther
2009-02-23 16:17:34 +01:00