ira/wip.git
15 years agoCope with the fact that only _mkdir() exists on Windows and that it
Jelmer Vernooij [Mon, 20 Apr 2009 13:39:48 +0000 (15:39 +0200)]
Cope with the fact that only _mkdir() exists on Windows and that it
doesn't take a mode argument.

15 years agoMove check for syslog out of libreplace to source3/ and source4/.
Jelmer Vernooij [Mon, 20 Apr 2009 13:21:39 +0000 (15:21 +0200)]
Move check for syslog out of libreplace to source3/ and source4/.

This should help compiling talloc on Windows.

15 years agoReproduce a bug with a custom GET_REAL_FILENAME
Volker Lendecke [Fri, 17 Apr 2009 13:08:40 +0000 (15:08 +0200)]
Reproduce a bug with a custom GET_REAL_FILENAME

15 years agos4:selftest: ignore smb2.lease test for now
Stefan Metzmacher [Mon, 20 Apr 2009 13:05:34 +0000 (15:05 +0200)]
s4:selftest: ignore smb2.lease test for now

metze

15 years agoAdd a unit test for security_descriptor.as_sddl() without arguments.
Jelmer Vernooij [Mon, 20 Apr 2009 13:10:17 +0000 (15:10 +0200)]
Add a unit test for security_descriptor.as_sddl() without arguments.

15 years agoMake domain sid argument to as_sddl() optional.
Jelmer Vernooij [Mon, 20 Apr 2009 13:03:21 +0000 (15:03 +0200)]
Make domain sid argument to as_sddl() optional.

15 years agoDo not use the file system GET_REAL_FILENAME for mangled names
Volker Lendecke [Wed, 15 Apr 2009 11:01:09 +0000 (13:01 +0200)]
Do not use the file system GET_REAL_FILENAME for mangled names

15 years agoEnsure we have all the definitions needed in both threaded and non-threaded versions.
Jeremy Allison [Mon, 20 Apr 2009 11:25:26 +0000 (04:25 -0700)]
Ensure we have all the definitions needed in both threaded and non-threaded versions.
Jeremy.

15 years agoFix warning in use of talloc_set_name.
Jeremy Allison [Mon, 20 Apr 2009 11:05:12 +0000 (04:05 -0700)]
Fix warning in use of talloc_set_name.
Jeremy.

15 years agoAttempt to fix build farm on platforms where pthread_once_t is a struct.
Jeremy Allison [Mon, 20 Apr 2009 11:00:06 +0000 (04:00 -0700)]
Attempt to fix build farm on platforms where pthread_once_t is a struct.
Jeremy.

15 years agoFix the pthread_once initialization issue. Make talloc_stackframe use
Jeremy Allison [Mon, 20 Apr 2009 10:04:42 +0000 (03:04 -0700)]
Fix the pthread_once initialization issue. Make talloc_stackframe use
this.
Jeremy.

15 years agoFix the valid NetBIOS name tests.
Jelmer Vernooij [Mon, 20 Apr 2009 09:11:25 +0000 (11:11 +0200)]
Fix the valid NetBIOS name tests.

15 years agoConvert the domain handles to type-safe policy handles
Volker Lendecke [Sun, 19 Apr 2009 20:58:09 +0000 (22:58 +0200)]
Convert the domain handles to type-safe policy handles

15 years agos3-printing: use ARRAY_SIZE() macro in forms functions.
Günther Deschner [Fri, 17 Apr 2009 22:58:12 +0000 (00:58 +0200)]
s3-printing: use ARRAY_SIZE() macro in forms functions.

Guenther

15 years agos3-printing: use sec_initial_uid() instead "0" in print_access_check().
Günther Deschner [Sun, 19 Apr 2009 22:57:53 +0000 (00:57 +0200)]
s3-printing: use sec_initial_uid() instead "0" in print_access_check().

Another babystep in order to make us pass RPC-SPOOLSS.

Guenther

15 years agos4-smbtorture: test all levels in test_GetJob().
Günther Deschner [Mon, 13 Apr 2009 21:56:59 +0000 (23:56 +0200)]
s4-smbtorture: test all levels in test_GetJob().

Guenther

15 years agoMake force_flush_samr_cache use a dom_sid to find what to flush
Volker Lendecke [Sun, 19 Apr 2009 20:01:16 +0000 (22:01 +0200)]
Make force_flush_samr_cache use a dom_sid to find what to flush

15 years agoRemove flag "builtin_domain" from disp_info
Volker Lendecke [Sat, 18 Apr 2009 20:23:02 +0000 (22:23 +0200)]
Remove flag "builtin_domain" from disp_info

15 years agoRemove flag "builtin_domain" from samr_info
Volker Lendecke [Sat, 18 Apr 2009 14:58:24 +0000 (16:58 +0200)]
Remove flag "builtin_domain" from samr_info

15 years agoMake get_samr_info_by_sid use recent coding conventions
Volker Lendecke [Sat, 18 Apr 2009 14:54:13 +0000 (16:54 +0200)]
Make get_samr_info_by_sid use recent coding conventions

15 years agoAdd "uint32_t access_granted" to policy handles
Volker Lendecke [Sat, 18 Apr 2009 14:46:53 +0000 (16:46 +0200)]
Add "uint32_t access_granted" to policy handles

All policy handles have a mask of allowed operations attached that were
calculated at creation time, so they should carry this mask. This is the basis
for consolidating all our policy handle access checks.

If you want to do your own more complicated access checks further down, just
pass "0" to policy_handle_find.

15 years agoMake "struct policy" private to srv_lsa_hnd.c
Volker Lendecke [Sat, 18 Apr 2009 14:10:57 +0000 (16:10 +0200)]
Make "struct policy" private to srv_lsa_hnd.c

15 years agoConvert the samr connect_handles to type-safe calls
Volker Lendecke [Sat, 18 Apr 2009 11:38:22 +0000 (13:38 +0200)]
Convert the samr connect_handles to type-safe calls

15 years agoAdd type-safe policy_handle_create/find
Volker Lendecke [Sat, 18 Apr 2009 11:31:20 +0000 (13:31 +0200)]
Add type-safe policy_handle_create/find

15 years agoAdd some const
Volker Lendecke [Sat, 18 Apr 2009 11:30:38 +0000 (13:30 +0200)]
Add some const

15 years agos3-spoolss: remove some direct checks for 0 uid in AddForm,SetForm,DelForm.
Günther Deschner [Fri, 17 Apr 2009 21:18:24 +0000 (23:18 +0200)]
s3-spoolss: remove some direct checks for 0 uid in AddForm,SetForm,DelForm.

Also add some become_root()/unbecome_root() pairs which were missing IMHO.

Guenther

15 years agos3:docs: document the --request-timeout option of net
Stefan Metzmacher [Fri, 3 Apr 2009 10:21:17 +0000 (12:21 +0200)]
s3:docs: document the --request-timeout option of net

metze

15 years agos3:net: add --request-timeout option
Stefan Metzmacher [Thu, 26 Mar 2009 19:32:55 +0000 (20:32 +0100)]
s3:net: add --request-timeout option

metze

15 years agos3:net_rpc: don't shutdown a cli_state passed from the caller
Stefan Metzmacher [Thu, 26 Mar 2009 19:29:24 +0000 (20:29 +0100)]
s3:net_rpc: don't shutdown a cli_state passed from the caller

This fixes a crash bug if we timeout in net rpc trustdom list.

metze

15 years agos3-selftest: enable RPC-SPOOLSS.
Günther Deschner [Mon, 13 Apr 2009 22:01:21 +0000 (00:01 +0200)]
s3-selftest: enable RPC-SPOOLSS.

Guenther

15 years agos4-smbtorture: Skip Job pause and resume on paused printers for Samba 3 for now.
Günther Deschner [Fri, 17 Apr 2009 15:21:19 +0000 (17:21 +0200)]
s4-smbtorture: Skip Job pause and resume on paused printers for Samba 3 for now.

Guenther

15 years agos3-spoolss: add support for _spoolss_EnumPrinterDrivers() level 6.
Günther Deschner [Mon, 13 Apr 2009 22:01:03 +0000 (00:01 +0200)]
s3-spoolss: add support for _spoolss_EnumPrinterDrivers() level 6.

Guenther

15 years agos3-spoolss: add support for _spoolss_EnumPrinterDrivers() level 5.
Günther Deschner [Mon, 13 Apr 2009 22:00:37 +0000 (00:00 +0200)]
s3-spoolss: add support for _spoolss_EnumPrinterDrivers() level 5.

Guenther

15 years agos3-spoolss: add support for _spoolss_EnumPrinterDrivers() level 4.
Günther Deschner [Mon, 13 Apr 2009 21:58:59 +0000 (23:58 +0200)]
s3-spoolss: add support for _spoolss_EnumPrinterDrivers() level 4.

Guenther

15 years agos4-smbtorture: rework test_EnumPrinterDrivers() a little to succeed with s3.
Günther Deschner [Fri, 17 Apr 2009 15:19:38 +0000 (17:19 +0200)]
s4-smbtorture: rework test_EnumPrinterDrivers() a little to succeed with s3.

Yes, I feel dirty for this but promise to come back and fix appropriately.

Guenther

15 years agos4-smbtorture: Fix RPC-SPOOLSS-WIN for printers with a lot of jobs in the queue.
Günther Deschner [Fri, 17 Apr 2009 15:14:20 +0000 (17:14 +0200)]
s4-smbtorture: Fix RPC-SPOOLSS-WIN for printers with a lot of jobs in the queue.

Guenther

15 years agos3: make installmo and uninstallmo scripts executable
Michael Adam [Fri, 17 Apr 2009 13:53:38 +0000 (15:53 +0200)]
s3: make installmo and uninstallmo scripts executable

Michael

15 years agos3: Fix uninstallmo
Michael Adam [Fri, 17 Apr 2009 13:29:10 +0000 (15:29 +0200)]
s3: Fix uninstallmo

Michael

15 years agos3-selftest: samba 3 also passes RPC-JOIN so enable it.
Günther Deschner [Fri, 17 Apr 2009 13:13:33 +0000 (15:13 +0200)]
s3-selftest: samba 3 also passes RPC-JOIN so enable it.

Guenther

15 years agos3:registry: Prevent creation of keys containing the '/' character.
Michael Adam [Fri, 17 Apr 2009 09:40:17 +0000 (11:40 +0200)]
s3:registry: Prevent creation of keys containing the '/' character.

This creates a broken registry that can only be fixed with
tdbtool, since the '/' sign is used as a key separator after
normalization at a lower level.

This makes e.g. "net conf setparm abc/def comment xyz" fail with
WERR_INVALID_PARAM, which is much more desirable than a broken
registry.tdb.

Michael

15 years agos3-samr: set the builtin_domain bool flag in get_samr_dispinfo_by_sid().
Günther Deschner [Fri, 17 Apr 2009 09:21:20 +0000 (11:21 +0200)]
s3-samr: set the builtin_domain bool flag in get_samr_dispinfo_by_sid().

Volker, please check.

Found by torture test RPC-SAMR-PASSWORDS-PWDLASTSET (which we pass with
this fix).

Guenther

15 years agos3-selftest: enable RPC-SAMR-PASSWORDS-PWDLASTSET whilte testing Samba3.
Günther Deschner [Fri, 17 Apr 2009 09:14:14 +0000 (11:14 +0200)]
s3-selftest: enable RPC-SAMR-PASSWORDS-PWDLASTSET whilte testing Samba3.

Guenther

15 years agos4-smbtorture: disable CreateUser2 tests when running RPC-SAMR-PASSWORDS-PWDLAST
Günther Deschner [Fri, 17 Apr 2009 09:04:44 +0000 (11:04 +0200)]
s4-smbtorture: disable CreateUser2 tests when running RPC-SAMR-PASSWORDS-PWDLAST
against Samba3.

Samba 3 does not (yet) get all the ACB_flag settings right upon creation.

Guenther

15 years agoMerge branch 'master' of /home/jmcd/samba/git.samba.org/samba-master into mymaster
Jim McDonough [Fri, 17 Apr 2009 07:28:01 +0000 (09:28 +0200)]
Merge branch 'master' of /home/jmcd/samba/git.samba.org/samba-master into mymaster

15 years agos3-docs: fix typo in smb.conf.5.
Günther Deschner [Thu, 16 Apr 2009 23:30:54 +0000 (01:30 +0200)]
s3-docs: fix typo in smb.conf.5.

Guenther

15 years agos3-selftest: enable RPC-LSA-LOOKUPSIDS against samba 3.
Günther Deschner [Thu, 16 Apr 2009 23:30:16 +0000 (01:30 +0200)]
s3-selftest: enable RPC-LSA-LOOKUPSIDS against samba 3.

Guenther

15 years agos4-smbtorture: add LSA-LOOKUPSIDS to verify bug #6263.
Günther Deschner [Thu, 16 Apr 2009 23:28:41 +0000 (01:28 +0200)]
s4-smbtorture: add LSA-LOOKUPSIDS to verify bug #6263.

Guenther

15 years agos4-smbtorture: Fix crash in RPC-LSA-LOOKUP
Günther Deschner [Thu, 16 Apr 2009 23:26:40 +0000 (01:26 +0200)]
s4-smbtorture: Fix crash in RPC-LSA-LOOKUP

Guenther

15 years agos3-docs: document warn_pwd_expire pam_winbind option in manpage.
Günther Deschner [Thu, 16 Apr 2009 11:03:35 +0000 (13:03 +0200)]
s3-docs: document warn_pwd_expire pam_winbind option in manpage.

Andreas, please check.

Guenther

15 years agoAdd torture tester to ensure we don't regress the ulogoff bug.
Jeremy Allison [Thu, 16 Apr 2009 23:21:31 +0000 (16:21 -0700)]
Add torture tester to ensure we don't regress the ulogoff bug.
Jeremy.

15 years agoFix bug found by Tim Prouty, logging off and then re-using a vuid can cause smbd to
Jeremy Allison [Thu, 16 Apr 2009 23:19:10 +0000 (16:19 -0700)]
Fix bug found by Tim Prouty, logging off and then re-using a vuid can cause smbd to
access a freed structure.
Jeremy.

15 years agoWhen doing a cli_ulogoff don't invalidate the cnum, invalidate the vuid.
Jeremy Allison [Thu, 16 Apr 2009 22:15:10 +0000 (15:15 -0700)]
When doing a cli_ulogoff don't invalidate the cnum, invalidate the vuid.
Jeremy.

15 years agoFix IDL licensing file that got missed when IDL files were moved.
Jeremy Allison [Thu, 16 Apr 2009 19:09:16 +0000 (12:09 -0700)]
Fix IDL licensing file that got missed when IDL files were moved.
Jeremy.

15 years agoDon't look up local user for remote changes, even when root.
Jim McDonough [Thu, 16 Apr 2009 15:14:29 +0000 (17:14 +0200)]
Don't look up local user for remote changes, even when root.

15 years agoAdd notify_onelevel.tdb
Volker Lendecke [Tue, 14 Apr 2009 18:39:14 +0000 (20:39 +0200)]
Add notify_onelevel.tdb

This optimizes non-recursive notifys. For non-recursive notifies we can use a
per-directory file-id indexed notify record. This matters for the Windows
Explorer and IIS cases which do not use recursive notifies. In these cases, we
do not have to shuffle around the whole notify record on every change.

For the cluster case, this improves correctness of the notifies, ctdb only
distributes the tdb seqnum once a second, so we can lose notifies.

15 years agoRename notify_context->db to db_recursive
Volker Lendecke [Tue, 14 Apr 2009 12:56:35 +0000 (14:56 +0200)]
Rename notify_context->db to db_recursive

15 years agoIn net_conf_import, start a transaction when importing a single share.
Martin Schwenke [Thu, 16 Apr 2009 00:25:29 +0000 (10:25 +1000)]
In net_conf_import, start a transaction when importing a single share.

Commit d69c3db9d44ad5d9fd1f5d7a9499f3bd79ecfb47 caused the transaction
start to be conditional but the commit is still unconditional, so an
error occurs when importing a single share.

An alternate fix would be to return the transaction start to be
unconditional but then it would occur before other error checking.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Signed-off-by: Michael Adam <obnox@samba.org>
15 years agotsocket: fix the build without ipv6 support
Stefan Metzmacher [Thu, 16 Apr 2009 05:51:01 +0000 (07:51 +0200)]
tsocket: fix the build without ipv6 support

metze

15 years agos3-lsa: Fix Bug #6263. Unexpected LookupSids reply crashes XP pre-SP3.
Günther Deschner [Wed, 15 Apr 2009 23:42:35 +0000 (01:42 +0200)]
s3-lsa: Fix Bug #6263. Unexpected LookupSids reply crashes XP pre-SP3.

LookupSids needs to bounce back string sids in case of NT_STATUS_NONE_MAPPED.

Guenther
(cherry picked from commit 1c9266c8caa59e287b993393b6050732a0b33547)

15 years agoFix bug #6089 - Winbind samr_OpenDomain not possible with Samba 3.2.6+
Jeremy Allison [Wed, 15 Apr 2009 22:40:00 +0000 (15:40 -0700)]
Fix bug #6089 - Winbind samr_OpenDomain not possible with Samba 3.2.6+
What a difference a name makes... :-). Just because something is missnamed
SAMR_ACCESS_OPEN_DOMAIN, when it should actually be SAMR_ACCESS_LOOKUP_DOMAIN,
don't automatically use it for a security check in _samr_OpenDomain().
Jeremy.

15 years agos4-smbtorture: Fix crash bugs in RPC-SAMR_ACCESSMASK.
Günther Deschner [Wed, 15 Apr 2009 20:47:15 +0000 (22:47 +0200)]
s4-smbtorture: Fix crash bugs in RPC-SAMR_ACCESSMASK.

Also disable security descriptor based tests while testing samba3.

Guenther

15 years agos3-examples: make sure to match correct key name in adssearch.
Günther Deschner [Wed, 15 Apr 2009 15:07:48 +0000 (17:07 +0200)]
s3-examples: make sure to match correct key name in adssearch.

Guenther

15 years agos4-smbtorture: define TORTURE_DEFAULT_SERVICE and set to netlogon.
Günther Deschner [Tue, 14 Apr 2009 21:30:13 +0000 (23:30 +0200)]
s4-smbtorture: define TORTURE_DEFAULT_SERVICE and set to netlogon.

Guenther

15 years agoEnable software rollout through AD
Matthias Dieter Wallnöfer [Tue, 14 Apr 2009 00:08:42 +0000 (10:08 +1000)]
Enable software rollout through AD

This enables the sofware rollout feature in Samba4

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
15 years agoEnsure a tls key is only generated once - wrap create & destroy in a mutex.
Jeremy Allison [Tue, 14 Apr 2009 22:19:39 +0000 (15:19 -0700)]
Ensure a tls key is only generated once - wrap create & destroy in a mutex.
Change the function names to add _once to the tls_create & tls_destroy to
make this obvious.
Jeremy.

15 years agos3-spoolss: Fix format of description string in spoolss_PrinterInfo1.
Günther Deschner [Tue, 14 Apr 2009 21:19:25 +0000 (23:19 +0200)]
s3-spoolss: Fix format of description string in spoolss_PrinterInfo1.

This is what windows does and should get us closer to show the appropriate
printer location string in explorer.

Guenther

15 years agonetdomjoin-gui: make sure to grey out change fields when not running as root.
Günther Deschner [Tue, 14 Apr 2009 20:39:36 +0000 (22:39 +0200)]
netdomjoin-gui: make sure to grey out change fields when not running as root.

Guenther

15 years agoTry and fix the S4 build - include thread includes.
Jeremy Allison [Tue, 14 Apr 2009 20:02:29 +0000 (13:02 -0700)]
Try and fix the S4 build - include thread includes.
Jeremy.

15 years agoMake talloc_stack threadsafe using TLS. Volker please
Jeremy Allison [Tue, 14 Apr 2009 19:23:22 +0000 (12:23 -0700)]
Make talloc_stack threadsafe using TLS. Volker please
check. Passes make test and basic valgrind testing.
Jeremy.

15 years agolibwbclient: Fix undocumented arguments doxygen warnings.
Günther Deschner [Tue, 14 Apr 2009 14:27:05 +0000 (16:27 +0200)]
libwbclient: Fix undocumented arguments doxygen warnings.

Guenther
(cherry picked from commit f2b3fbf0c04a6f9484853da263174a472eb6bb6d)

15 years agos3-nsswitch: fix make test_wbpad.
Günther Deschner [Tue, 14 Apr 2009 12:55:24 +0000 (14:55 +0200)]
s3-nsswitch: fix make test_wbpad.

Guenther

15 years agosocket_wrapper: fix the build on systems without ipv6 support
Stefan Metzmacher [Tue, 14 Apr 2009 10:45:48 +0000 (12:45 +0200)]
socket_wrapper: fix the build on systems without ipv6 support

metze

15 years agos4-smbtorture: make sure samba3 does not regress in EnumServicesStatusW call.
Günther Deschner [Tue, 14 Apr 2009 10:10:22 +0000 (12:10 +0200)]
s4-smbtorture: make sure samba3 does not regress in EnumServicesStatusW call.

Guenther

15 years agos3-svcctl: fix memcpy in _svcctl_EnumServicesStatusW().
Günther Deschner [Tue, 14 Apr 2009 10:08:55 +0000 (12:08 +0200)]
s3-svcctl: fix memcpy in _svcctl_EnumServicesStatusW().

Make sure we are not copying more than what we have as valid data.

Fix from Jeremy. Thanks a lot for watching this so closely!

Guenther

15 years agos3-spoolss: remove unused dup_nt_devicemode().
Günther Deschner [Tue, 14 Apr 2009 10:00:39 +0000 (12:00 +0200)]
s3-spoolss: remove unused dup_nt_devicemode().

Guenther

15 years agos4-smbtorture: print SPOOLSS_JOB_CONTROL flags in RPC-SPOOLSS test.
Günther Deschner [Mon, 13 Apr 2009 23:08:23 +0000 (01:08 +0200)]
s4-smbtorture: print SPOOLSS_JOB_CONTROL flags in RPC-SPOOLSS test.

Guenther

15 years agos3:charcnv remove now unused malloc() based conversion functions
Andrew Bartlett [Wed, 18 Mar 2009 06:36:35 +0000 (17:36 +1100)]
s3:charcnv remove now unused malloc() based conversion functions

15 years agoAdd some harmless use of talloc_tos() in ntlm_auth
Andrew Bartlett [Tue, 14 Apr 2009 02:43:34 +0000 (12:43 +1000)]
Add some harmless use of talloc_tos() in ntlm_auth

15 years agoConvert Samba3 to use the common lib/util/charset API
Andrew Bartlett [Thu, 19 Mar 2009 01:20:11 +0000 (12:20 +1100)]
Convert Samba3 to use the common lib/util/charset API

This removes calls to push_*_allocate() and pull_*_allocate(), as well
as convert_string_allocate, as they are not in the common API

To allow transition to a common charcnv in future, provide Samba4-like
strupper functions in source3/lib/charcnv.c

(the actual implementation remains distinct, but the API is now shared)

Andrew Bartlett

15 years agoSolve some of the conflict between Samba3 and Samba4 push_string
Andrew Bartlett [Tue, 17 Mar 2009 03:04:43 +0000 (14:04 +1100)]
Solve some of the conflict between Samba3 and Samba4 push_string

This renames push_string in Samba3 into push_string_base and
push_string_check for the two different use cases.

This should allow push_string to be imported from Samba4, using it's
calling conventions.

15 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba into master-devel
Andrew Bartlett [Tue, 14 Apr 2009 00:55:53 +0000 (10:55 +1000)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba into master-devel

15 years agos4:ldb Make it possible to re-run ldap.py again
Andrew Bartlett [Tue, 14 Apr 2009 00:52:33 +0000 (10:52 +1000)]
s4:ldb Make it possible to re-run ldap.py again

The parentGUID test didn't clean up after itself correctly.

Andrew Bartlett

15 years agos3-rpcclient: add set_job command.
Günther Deschner [Mon, 13 Apr 2009 21:11:23 +0000 (23:11 +0200)]
s3-rpcclient: add set_job command.

Guenther

15 years agos4-smbtorture: fix two valgrind warnings.
Günther Deschner [Mon, 13 Apr 2009 18:44:19 +0000 (20:44 +0200)]
s4-smbtorture: fix two valgrind warnings.

Guenther

15 years agos4-smbtorture: disable test_SecondaryClosePrinter when running against s3 for now.
Günther Deschner [Mon, 13 Apr 2009 15:06:37 +0000 (17:06 +0200)]
s4-smbtorture: disable test_SecondaryClosePrinter when running against s3 for now.

Guenther

15 years agos4-smbtorture: move test_ReplyOpenPrinter from RPC-SPOOLSS to RPC-SPOOLSS-NOTIFY.
Günther Deschner [Mon, 13 Apr 2009 15:05:12 +0000 (17:05 +0200)]
s4-smbtorture: move test_ReplyOpenPrinter from RPC-SPOOLSS to RPC-SPOOLSS-NOTIFY.

Guenther

15 years agos3-spoolss: fix typo in fill_printer_driver_info3().
Günther Deschner [Mon, 13 Apr 2009 21:40:46 +0000 (23:40 +0200)]
s3-spoolss: fix typo in fill_printer_driver_info3().

Guenther

15 years agos3-loadparm: Fix resume command typo for "printing = vlp".
Günther Deschner [Mon, 13 Apr 2009 15:03:46 +0000 (17:03 +0200)]
s3-loadparm: Fix resume command typo for "printing = vlp".

Guenther

15 years agos3-spoolss: Fix permission checks for _spoolss_AddForm,SetForm and DelForm.
Günther Deschner [Mon, 13 Apr 2009 13:20:47 +0000 (15:20 +0200)]
s3-spoolss: Fix permission checks for _spoolss_AddForm,SetForm and DelForm.

Found by smbtorture test.

Guenther

15 years agos3: re-run make samba3-idl.
Günther Deschner [Mon, 13 Apr 2009 14:02:02 +0000 (16:02 +0200)]
s3: re-run make samba3-idl.

Guenther

15 years agospoolss: add spoolss_DriverAttributes bitmask.
Günther Deschner [Mon, 13 Apr 2009 14:01:30 +0000 (16:01 +0200)]
spoolss: add spoolss_DriverAttributes bitmask.

Guenther

15 years agos3-spoolss: use enumprinterdrivers_level() for level 3 enum.
Günther Deschner [Mon, 13 Apr 2009 13:42:32 +0000 (15:42 +0200)]
s3-spoolss: use enumprinterdrivers_level() for level 3 enum.

Guenther

15 years agos3-spoolss: use enumprinterdrivers_level() for level 2 enum.
Günther Deschner [Mon, 13 Apr 2009 13:40:39 +0000 (15:40 +0200)]
s3-spoolss: use enumprinterdrivers_level() for level 2 enum.

Guenther

15 years agos3-spoolss: use enumprinterdrivers_level() for level 1 enum.
Günther Deschner [Mon, 13 Apr 2009 13:31:52 +0000 (15:31 +0200)]
s3-spoolss: use enumprinterdrivers_level() for level 1 enum.

Guenther

15 years agos3-spoolss: add generic enumprinterdrivers_level function.
Günther Deschner [Mon, 13 Apr 2009 13:27:55 +0000 (15:27 +0200)]
s3-spoolss: add generic enumprinterdrivers_level function.

Guenther

15 years agos4-smbtorture: use printerinfo level 1 name, not description in
Günther Deschner [Mon, 13 Apr 2009 12:48:32 +0000 (14:48 +0200)]
s4-smbtorture: use printerinfo level 1 name, not description in
test_EnumPrinters_old().

Guenther

15 years agos3: re-run make samba3-idl.
Günther Deschner [Mon, 13 Apr 2009 12:16:04 +0000 (14:16 +0200)]
s3: re-run make samba3-idl.

Guenther

15 years agospoolss: fix order of strings in PrinterInfo1 structs.
Günther Deschner [Mon, 13 Apr 2009 12:15:21 +0000 (14:15 +0200)]
spoolss: fix order of strings in PrinterInfo1 structs.

Guenther

15 years agoUse convert_string_talloc, thanks Andrew!
Volker Lendecke [Mon, 13 Apr 2009 07:29:32 +0000 (09:29 +0200)]
Use convert_string_talloc, thanks Andrew!

15 years agoWe have to deny a level 2 oplock if kernel oplocks are enabled
Volker Lendecke [Wed, 8 Apr 2009 06:29:23 +0000 (08:29 +0200)]
We have to deny a level 2 oplock if kernel oplocks are enabled

The second r/o opener of a file is supposed to get a level2 oplock. The first
opener due to the protection in process_oplock_break_message() has been forced
to break to no oplock. The second opener according to locking.tdb gets a level2
oplock. Further down in open_file_ntcreate we try to set this level2 oplock in
the kernel, and the non-clustered Linux kernel disallows this. The rules for
the kernel leases are a bit baroque, but the attempt to do the SETLEASE
correctly fails and we end up with no oplock for any client.

In the clustered case however the linux kernel on the second opening node has
not seen the open fd of the first node, it is only the cluster fs that has this
information. If the cluster fs does not have the very same notion of leases as
the local kernel has, we can end up with a WRLCK style kernel lease for the
second opener where locking.tdb only indicates a level2 oplock. Getting a
kernel oplock break signal with just a level2 oplock in locking.tdb is
something smbd is not prepared for. For example after sending out the break in
response to the kernel signal we set a timeout, waiting for a reply.

More work needs to be done to make level2 kernel oplocks real for us. This
patch addresses a real problem we have right now without them.