Jelmer Vernooij [Wed, 25 Feb 2009 11:49:37 +0000 (12:49 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Conflicts:
source4/scripting/python/samba/provision.py
Günther Deschner [Wed, 25 Feb 2009 11:09:15 +0000 (12:09 +0100)]
s3-spoolss: use is_valid_policy_hnd to check for valid policy handles.
Guenther
Günther Deschner [Wed, 25 Feb 2009 00:23:40 +0000 (01:23 +0100)]
s3-spoolss: remove rpccli_spoolss_getprinter.
Guenther
Günther Deschner [Tue, 24 Feb 2009 23:12:58 +0000 (00:12 +0100)]
s3-spoolss: remove rpccli_spoolss_setprinter.
Guenther
Günther Deschner [Tue, 10 Feb 2009 22:37:00 +0000 (23:37 +0100)]
s3-spoolss: remove rpccli_spoolss_addprinterex.
Guenther
Günther Deschner [Wed, 25 Feb 2009 00:11:01 +0000 (01:11 +0100)]
s3-spoolss: use rpccli_spoolss_addprinterex wrapper.
Guenther
Günther Deschner [Wed, 25 Feb 2009 09:58:53 +0000 (10:58 +0100)]
s3-net: use rpccli_spoolss_getprinter and rpccli_spoolss_SetPrinter.
Guenther
Günther Deschner [Sat, 14 Feb 2009 02:08:06 +0000 (03:08 +0100)]
s3-rpcclient: use rpccli_spoolss_SetPrinter and rpccli_spoolss_getprinter.
Guenther
Günther Deschner [Sat, 14 Feb 2009 02:07:01 +0000 (03:07 +0100)]
s3-spoolss: add rpccli_spoolss_getprinter convenience wrapper.
Guenther
Volker Lendecke [Wed, 25 Feb 2009 09:54:19 +0000 (10:54 +0100)]
Attempt to fix the OpenChange build -- sorry for the break
Günther Deschner [Wed, 25 Feb 2009 00:07:50 +0000 (01:07 +0100)]
s3-spoolss: add rpccli_spoolss_addprinterex convenience wrapper.
Guenther
Andrew Bartlett [Wed, 25 Feb 2009 09:27:43 +0000 (20:27 +1100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba into master-devel
Oliver Liebel [Wed, 25 Feb 2009 09:26:27 +0000 (20:26 +1100)]
WHATSNEW updates
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Tim Prouty [Wed, 25 Feb 2009 07:38:42 +0000 (23:38 -0800)]
s4 heimdal: Link libintl correctly
Tim Prouty [Wed, 25 Feb 2009 08:11:31 +0000 (00:11 -0800)]
s3: Fix 'assignment differ in signedness' warning
Stefan Metzmacher [Wed, 25 Feb 2009 07:42:33 +0000 (08:42 +0100)]
s4:build: add some comments to the SMB_EXT_LIB() definition
metze
Andrew Bartlett [Wed, 25 Feb 2009 06:52:00 +0000 (17:52 +1100)]
Credit tridge's work on fixing GnuTLS
Andrew Bartlett [Wed, 25 Feb 2009 06:43:07 +0000 (17:43 +1100)]
Work around ndr_unpack failing on structures with relative pointers.
This disgusting hack works around the fact that
ndr_pull_struct_blob_all will always fail on structures with relative
pointers. So, map ndr_unpack to ndr_pull_struct_blob_all only if we
don't have any relative pointers in this structure.
Andrew Bartlett
Tim Prouty [Wed, 25 Feb 2009 05:53:30 +0000 (21:53 -0800)]
s3 OneFS: Fix uninitialized variable
Steve French [Wed, 25 Feb 2009 02:53:46 +0000 (20:53 -0600)]
Fix guest mounts
guest session setup, login (user id) as anonymous.
This patch is for samba bugzilla bug 4640.
Signed-off-by: Shirish Pargaonkar <shirishp@us.ibm.com>
Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@samba.org>
Andrew Bartlett [Wed, 25 Feb 2009 02:15:53 +0000 (13:15 +1100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba into master-devel
Andrew Bartlett [Wed, 25 Feb 2009 02:14:36 +0000 (13:14 +1100)]
Prepare for a quick alpha7 release to help simo meet Fedora deadlines
While there isn't much in this release, there is enough to be worth
cutting the tarball, and not much cost in doing so.
Andrew Bartlett
Jeremy Allison [Wed, 25 Feb 2009 02:03:49 +0000 (18:03 -0800)]
Allow set attributes on a stream fnum to be redirected to the base filename.
Fixes the new RAW-STREAMS torture test.
Jeremy.
Jeremy Allison [Wed, 25 Feb 2009 01:33:47 +0000 (17:33 -0800)]
Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba
Jeremy Allison [Wed, 25 Feb 2009 01:32:22 +0000 (17:32 -0800)]
Added torture test from a usage case from the Apple OS/X client.
Setting an attribute on a stream fnum must change the attribute
on the base file.
Jeremy.
Dan Sledz [Tue, 24 Feb 2009 07:21:13 +0000 (23:21 -0800)]
s3: Rename auth_onefs_wb and pdb_onefs_sam
auth_onefs_wb.c -> auth_wbc.c
pdb_onefs_sam.c -> pdb_wbc_sam.c
No changes to functionality
Dan Sledz [Tue, 24 Feb 2009 22:12:48 +0000 (14:12 -0800)]
s3: onefs_acl.c cleanup
Remove some duplicate code.
Add a \n to a debugging statement
todd stecher [Mon, 23 Feb 2009 18:24:33 +0000 (10:24 -0800)]
S3: Add in profile counters for new vfs and syscall entries.
Oliver Liebel [Tue, 24 Feb 2009 23:27:19 +0000 (10:27 +1100)]
Updates to the recent cn=config support for the OpenLDAP backend
- removed workaround for olcSyncprovConfig - creation (works perfect now
with 2.4.15, release was today)
- added 1 message-helpline, which is displayed when running
provision-backend with olc and/or mmr setup
- corrected 1 wrong slapcommand-helpline
- slapd.conf is removed now in case of olc-setup
- added 1 copyright-line to provision.py and provision-backend
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Günther Deschner [Tue, 24 Feb 2009 23:30:14 +0000 (00:30 +0100)]
s3-spoolss: remove some left-over hand marshalling code and structs.
Guenther
Jeremy Allison [Tue, 24 Feb 2009 23:28:06 +0000 (15:28 -0800)]
Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba
Jeremy Allison [Tue, 24 Feb 2009 23:27:47 +0000 (15:27 -0800)]
Make S4 build on OpenSolaris.
Jeremy.
Günther Deschner [Tue, 24 Feb 2009 22:45:14 +0000 (23:45 +0100)]
error-codes: print out WERR_UNKNOWN_PRINT_MONITOR.
Guenther
Günther Deschner [Tue, 24 Feb 2009 21:53:05 +0000 (22:53 +0100)]
s3-spoolss: remove rpccli_spoolss_addprinterdriver.
Guenther
Günther Deschner [Wed, 18 Feb 2009 23:43:23 +0000 (00:43 +0100)]
s3-rpcclient: use rpccli_spoolss_AddPrinterDriver.
Guenther
Tim Prouty [Tue, 24 Feb 2009 22:07:29 +0000 (14:07 -0800)]
s3: Fix a bug that prevent core files from being created
Removed an erroneous free() that was causing the corepath to be NULL
during dump_core(). This prevented dump_core() from actually calling
abort() to create a core file. The bug was introduced in December by:
07e0094365e8dc360a83eec2e7cf9b1d5d8d6d00
Günther Deschner [Tue, 24 Feb 2009 21:26:09 +0000 (22:26 +0100)]
s3-spoolss: remove old rpccli_spoolss_getprinterdriver wrapper.
Guenther
Günther Deschner [Tue, 24 Feb 2009 21:23:56 +0000 (22:23 +0100)]
s3-net: use rpccli_spoolss_AddPrinterDriver and rpccli_spoolss_getprinterdriver2
wrapper.
Guenther
Günther Deschner [Tue, 24 Feb 2009 21:20:30 +0000 (22:20 +0100)]
s3-rpcclient: use rpccli_spoolss_getprinterdriver2 wrapper.
Guenther
Günther Deschner [Tue, 24 Feb 2009 21:18:22 +0000 (22:18 +0100)]
s3-spoolss: add rpccli_spoolss_getprinterdriver2 convenience wrapper.
Guenther
Jeremy Allison [Tue, 24 Feb 2009 20:35:33 +0000 (12:35 -0800)]
Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba
Jeremy Allison [Tue, 24 Feb 2009 20:19:06 +0000 (12:19 -0800)]
Fix the build. Looks like no one ever compiled this on a system
with a libintl.h before.
Jeremy.
Volker Lendecke [Tue, 24 Feb 2009 20:08:07 +0000 (21:08 +0100)]
Fix some C++ warnings
Volker Lendecke [Mon, 23 Feb 2009 07:56:35 +0000 (08:56 +0100)]
Add more conventional async_recv
Volker Lendecke [Mon, 23 Feb 2009 07:53:01 +0000 (08:53 +0100)]
Add more conventional async_send
Volker Lendecke [Sun, 22 Feb 2009 23:21:27 +0000 (00:21 +0100)]
Remove unused param_connect struct
Volker Lendecke [Sun, 22 Feb 2009 23:20:24 +0000 (00:20 +0100)]
Remove unused recvall
Volker Lendecke [Sun, 22 Feb 2009 23:18:29 +0000 (00:18 +0100)]
Use read_packet for wb_resp_read
Volker Lendecke [Sun, 22 Feb 2009 23:06:56 +0000 (00:06 +0100)]
Use read_packet for wb_req_read
Volker Lendecke [Sun, 22 Feb 2009 22:18:04 +0000 (23:18 +0100)]
Remove read_pkt
Volker Lendecke [Sun, 22 Feb 2009 22:17:15 +0000 (23:17 +0100)]
Replace read_pkt by read_packet in np_read
Volker Lendecke [Sun, 22 Feb 2009 22:13:34 +0000 (23:13 +0100)]
Add async read_packet
Volker Lendecke [Sun, 22 Feb 2009 22:12:56 +0000 (23:12 +0100)]
Fix async writev
Volker Lendecke [Sun, 22 Feb 2009 21:03:06 +0000 (22:03 +0100)]
Remove async sendall
Volker Lendecke [Sun, 22 Feb 2009 21:01:35 +0000 (22:01 +0100)]
Use async_writev in np_write
Volker Lendecke [Sun, 22 Feb 2009 20:55:03 +0000 (21:55 +0100)]
Use async writev for wb_resp_write
Volker Lendecke [Sun, 22 Feb 2009 20:41:57 +0000 (21:41 +0100)]
Use async writev in wb_req_write
Volker Lendecke [Sun, 22 Feb 2009 19:16:32 +0000 (20:16 +0100)]
Add async writev
Volker Lendecke [Sun, 22 Feb 2009 18:49:18 +0000 (19:49 +0100)]
Convert async_connect to tevent_req
Volker Lendecke [Sun, 22 Feb 2009 18:48:46 +0000 (19:48 +0100)]
tevent.h requires bool and uint[16|32|64]_t
Volker Lendecke [Sun, 22 Feb 2009 18:47:54 +0000 (19:47 +0100)]
Add tevent_req_is_unix_error
Volker Lendecke [Sun, 22 Feb 2009 10:53:50 +0000 (11:53 +0100)]
Convert name_mangle() to use talloc
Jeremy Allison [Tue, 24 Feb 2009 19:37:57 +0000 (11:37 -0800)]
Start fixing Solaris build failures.
Jeremy.
Stefan Metzmacher [Tue, 24 Feb 2009 13:23:12 +0000 (14:23 +0100)]
s3:Makefile: build libcli/ldap files
metze
Stefan Metzmacher [Tue, 24 Feb 2009 15:49:26 +0000 (16:49 +0100)]
libcli/ldap: move generic ldap control encoding code to ldap_message.c
As they can we static there, we pass the specific handlers as parameter
where we need to support controls.
metze
Stefan Metzmacher [Tue, 24 Feb 2009 13:45:01 +0000 (14:45 +0100)]
s4:libcli/ldap: don't use 'void **out' as arguments as the behavior is not defined in C.
metze
Stefan Metzmacher [Tue, 24 Feb 2009 11:50:43 +0000 (12:50 +0100)]
libcli/ldap: move ldap_ndr from source4/ to toplevel
metze
Stefan Metzmacher [Tue, 24 Feb 2009 11:29:59 +0000 (12:29 +0100)]
libcli/ldap: fix compiler warnings
metze
Stefan Metzmacher [Tue, 24 Feb 2009 15:52:37 +0000 (16:52 +0100)]
libcli/ldap: move ldap_errors.h to the toplevel and install it
metze
Stefan Metzmacher [Tue, 24 Feb 2009 11:13:41 +0000 (12:13 +0100)]
libcli/ldap: move ldap_message.[ch] from source4/ to the toplevel
metze
Stefan Metzmacher [Tue, 24 Feb 2009 11:09:11 +0000 (12:09 +0100)]
s4:libcli/ldap: remove reference to DEBUG()
This prepares using ldap_message.c in source3/ later
metze
Stefan Metzmacher [Tue, 24 Feb 2009 10:40:18 +0000 (11:40 +0100)]
s4:libcli: split out LIBCLI_LDAP_MESSAGE subsystem
metze
Stefan Metzmacher [Tue, 24 Feb 2009 13:06:27 +0000 (14:06 +0100)]
s3: remove unused smb_ldap.h
metze
Stefan Metzmacher [Tue, 24 Feb 2009 14:28:54 +0000 (15:28 +0100)]
s3:example/VFS: fix the build
metze
Michael Adam [Tue, 24 Feb 2009 15:58:33 +0000 (16:58 +0100)]
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
Michael Adam [Tue, 24 Feb 2009 15:57:30 +0000 (16:57 +0100)]
s3:mount.cifs: don't error exit on explicitly requested help...
Michael
Günther Deschner [Tue, 24 Feb 2009 11:38:53 +0000 (12:38 +0100)]
s3: re-run make samba3-idl.
Guenther
Günther Deschner [Tue, 24 Feb 2009 11:37:04 +0000 (12:37 +0100)]
spoolss: fix _spoolss_SetPrinter level 3.
Guenther
Günther Deschner [Tue, 24 Feb 2009 11:19:01 +0000 (12:19 +0100)]
s3-spoolss: use marshall/unmarshall_sec_desc_buf in nt_printing_setsec/getsec.
Guenther
Günther Deschner [Tue, 24 Feb 2009 10:34:57 +0000 (11:34 +0100)]
s3-lib: add marshall_sec_desc_buf and unmarshall_sec_desc_buf helpers.
Guenther
Oliver Liebel [Tue, 24 Feb 2009 00:37:58 +0000 (11:37 +1100)]
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>
Günther Deschner [Tue, 24 Feb 2009 09:34:40 +0000 (10:34 +0100)]
s3-spoolss: merge path handling in _spoolss_PrintProcessorDirectory and
_spoolss_PrinterDriverDirectory.
Guenther
Günther Deschner [Tue, 24 Feb 2009 09:43:53 +0000 (10:43 +0100)]
s3: re-run make samba3-idl.
Guenther
Günther Deschner [Tue, 24 Feb 2009 09:41:05 +0000 (10:41 +0100)]
spoolss: return subcontext spoolss_DriverInfo in spoolss_GetPrinterDriver2.
Guenther
Günther Deschner [Tue, 24 Feb 2009 09:40:21 +0000 (10:40 +0100)]
spoolss: add SPOOLSS_DEFAULT_SERVER_PATH.
Guenther
Andrew Bartlett [Tue, 24 Feb 2009 09:41:50 +0000 (20:41 +1100)]
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
Tim Prouty [Tue, 24 Feb 2009 01:43:47 +0000 (17:43 -0800)]
s3 OneFS: Fix a double free in an error path
Tim Prouty [Mon, 23 Feb 2009 04:50:30 +0000 (20:50 -0800)]
s3 OneFS: Add a parameter that unconditionally allows execute access
Steven Danneman [Tue, 24 Feb 2009 04:46:11 +0000 (20:46 -0800)]
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().
Andrew Tridgell [Tue, 24 Feb 2009 00:40:28 +0000 (11:40 +1100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Andrew Tridgell [Tue, 24 Feb 2009 00:39:44 +0000 (11:39 +1100)]
fixed the event context for net vampire
Jeremy Allison [Tue, 24 Feb 2009 00:22:43 +0000 (16:22 -0800)]
More warning fixes for Solaris.
Jeremy.
Günther Deschner [Mon, 23 Feb 2009 10:43:32 +0000 (11:43 +0100)]
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
Günther Deschner [Tue, 24 Feb 2009 00:03:19 +0000 (01:03 +0100)]
s3: re-run make samba3-idl.
Guenther
Jelmer Vernooij [Tue, 24 Feb 2009 00:02:45 +0000 (01:02 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Günther Deschner [Mon, 23 Feb 2009 23:47:32 +0000 (00:47 +0100)]
spoolss: add push,pull helper for spoolss_DriverInfo101.
Guenther
Günther Deschner [Mon, 23 Feb 2009 23:45:25 +0000 (00:45 +0100)]
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
Jelmer Vernooij [Tue, 24 Feb 2009 00:02:26 +0000 (01:02 +0100)]
expand tabs in python file, consistent with the rest of the file.
Günther Deschner [Mon, 23 Feb 2009 21:58:33 +0000 (22:58 +0100)]
spoolss: generate size functions for printer driver structs.
Guenther
Günther Deschner [Mon, 23 Feb 2009 21:59:42 +0000 (22:59 +0100)]
error-codes: add WERR_INVALID_USER_BUFFER.
Guenther