Volker Lendecke
e3db09cf02
Do not vasprint stuff where not necessary
2009-04-20 16:51:44 +02:00
Jelmer Vernooij
31120c9eac
Move syslog check out of m4 library file into configure.in
2009-04-20 16:25:17 +02:00
Jelmer Vernooij
bb0f430064
Error out at runtime when seteuid/setresuid or setegid/setresgid are not
...
available. This means it's possible to compile libreplace when these
functions are not available and use it, as long as this particular
function is not used.
2009-04-20 16:25:17 +02:00
Jelmer Vernooij
20e1ba1c09
Only define waitpid replacement if wait4 is available. (It isn't on
...
Windows.)
2009-04-20 16:25:16 +02:00
Jelmer Vernooij
e5233ccf9e
Cope with the fact that only _mkdir() exists on Windows and that it
...
doesn't take a mode argument.
2009-04-20 16:25:16 +02:00
Jelmer Vernooij
fbf4293d7e
Move check for syslog out of libreplace to source3/ and source4/.
...
This should help compiling talloc on Windows.
2009-04-20 16:25:16 +02:00
Volker Lendecke
a6cb470892
Reproduce a bug with a custom GET_REAL_FILENAME
2009-04-20 15:17:35 +02:00
Stefan Metzmacher
5beaf230ca
s4:selftest: ignore smb2.lease test for now
...
metze
2009-04-20 15:15:40 +02:00
Jelmer Vernooij
5df2795ffc
Add a unit test for security_descriptor.as_sddl() without arguments.
2009-04-20 15:10:29 +02:00
Jelmer Vernooij
294359b7bc
Make domain sid argument to as_sddl() optional.
2009-04-20 15:10:29 +02:00
Volker Lendecke
b5b6ecb58a
Do not use the file system GET_REAL_FILENAME for mangled names
2009-04-20 14:05:13 +02:00
Jeremy Allison
5cbd7556c2
Ensure we have all the definitions needed in both threaded and non-threaded versions.
...
Jeremy.
2009-04-20 04:25:26 -07:00
Jeremy Allison
86b0d56897
Fix warning in use of talloc_set_name.
...
Jeremy.
2009-04-20 04:05:12 -07:00
Jeremy Allison
399c765538
Attempt to fix build farm on platforms where pthread_once_t is a struct.
...
Jeremy.
2009-04-20 04:00:06 -07:00
Jeremy Allison
3d2e95c296
Fix the pthread_once initialization issue. Make talloc_stackframe use
...
this.
Jeremy.
2009-04-20 03:04:42 -07:00
Jelmer Vernooij
03abc846ee
Fix the valid NetBIOS name tests.
2009-04-20 11:11:25 +02:00
Volker Lendecke
4afcde91b9
Convert the domain handles to type-safe policy handles
2009-04-20 08:27:23 +02:00
Günther Deschner
62480385c1
s3-printing: use ARRAY_SIZE() macro in forms functions.
...
Guenther
2009-04-20 01:06:01 +02:00
Günther Deschner
d9aaf3759a
s3-printing: use sec_initial_uid() instead "0" in print_access_check().
...
Another babystep in order to make us pass RPC-SPOOLSS.
Guenther
2009-04-20 00:59:36 +02:00
Günther Deschner
5f0c9c57f5
s4-smbtorture: test all levels in test_GetJob().
...
Guenther
2009-04-20 00:59:36 +02:00
Volker Lendecke
dd073a333e
Make force_flush_samr_cache use a dom_sid to find what to flush
2009-04-19 22:58:06 +02:00
Volker Lendecke
46317ce214
Remove flag "builtin_domain" from disp_info
2009-04-19 11:39:47 +02:00
Volker Lendecke
bf196df52f
Remove flag "builtin_domain" from samr_info
2009-04-19 09:27:15 +02:00
Volker Lendecke
386511b8e1
Make get_samr_info_by_sid use recent coding conventions
2009-04-19 09:27:15 +02:00
Volker Lendecke
35e6a0e618
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.
2009-04-19 09:27:15 +02:00
Volker Lendecke
9b3f2e69f7
Make "struct policy" private to srv_lsa_hnd.c
2009-04-19 09:27:14 +02:00
Volker Lendecke
fa4ff87acd
Convert the samr connect_handles to type-safe calls
2009-04-18 13:58:48 +02:00
Volker Lendecke
c9bc1728f9
Add type-safe policy_handle_create/find
2009-04-18 13:58:48 +02:00
Volker Lendecke
fd558b37f6
Add some const
2009-04-18 13:58:48 +02:00
Günther Deschner
81b18464be
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
2009-04-17 23:20:22 +02:00
Stefan Metzmacher
cdbbc81bad
s3:docs: document the --request-timeout option of net
...
metze
2009-04-17 21:46:48 +02:00
Stefan Metzmacher
257809558b
s3:net: add --request-timeout option
...
metze
2009-04-17 21:46:47 +02:00
Stefan Metzmacher
c0dfe0cf80
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
2009-04-17 21:46:46 +02:00
Günther Deschner
6f90cdaf63
s3-selftest: enable RPC-SPOOLSS.
...
Guenther
2009-04-17 17:28:23 +02:00
Günther Deschner
fe2828c353
s4-smbtorture: Skip Job pause and resume on paused printers for Samba 3 for now.
...
Guenther
2009-04-17 17:27:42 +02:00
Günther Deschner
6900d61d36
s3-spoolss: add support for _spoolss_EnumPrinterDrivers() level 6.
...
Guenther
2009-04-17 17:27:32 +02:00
Günther Deschner
5e563ee508
s3-spoolss: add support for _spoolss_EnumPrinterDrivers() level 5.
...
Guenther
2009-04-17 17:27:26 +02:00
Günther Deschner
d76837f6da
s3-spoolss: add support for _spoolss_EnumPrinterDrivers() level 4.
...
Guenther
2009-04-17 17:27:18 +02:00
Günther Deschner
cb9c0cefaf
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
2009-04-17 17:25:14 +02:00
Günther Deschner
81253ec146
s4-smbtorture: Fix RPC-SPOOLSS-WIN for printers with a lot of jobs in the queue.
...
Guenther
2009-04-17 17:23:59 +02:00
Michael Adam
d43a49d449
s3: make installmo and uninstallmo scripts executable
...
Michael
2009-04-17 15:57:30 +02:00
Michael Adam
bf1b7ba480
s3: Fix uninstallmo
...
Michael
2009-04-17 15:57:30 +02:00
Günther Deschner
4f9d3400e5
s3-selftest: samba 3 also passes RPC-JOIN so enable it.
...
Guenther
2009-04-17 15:14:44 +02:00
Michael Adam
8c023fea86
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
2009-04-17 11:46:14 +02:00
Günther Deschner
0ba833f3ee
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
2009-04-17 11:21:20 +02:00
Günther Deschner
490f6c418d
s3-selftest: enable RPC-SAMR-PASSWORDS-PWDLASTSET whilte testing Samba3.
...
Guenther
2009-04-17 11:16:00 +02:00
Günther Deschner
32add69632
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
2009-04-17 11:15:58 +02:00
Jim McDonough
1214bf606d
Merge branch 'master' of /home/jmcd/samba/git.samba.org/samba-master into mymaster
2009-04-17 09:28:01 +02:00
Günther Deschner
05ea8daaca
s3-docs: fix typo in smb.conf.5.
...
Guenther
2009-04-17 01:32:45 +02:00
Günther Deschner
deb719a62e
s3-selftest: enable RPC-LSA-LOOKUPSIDS against samba 3.
...
Guenther
2009-04-17 01:32:45 +02:00