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
Andrew Bartlett
ddcc355f2b
s3:ntlmssp Remove use of talloc(NULL) in NTLMSSP code
2009-04-20 11:55:49 +02:00
Jelmer Vernooij
03abc846ee
Fix the valid NetBIOS name tests.
2009-04-20 11:11:25 +02:00
Andrew Bartlett
02ecdd8f29
libcli/auth: Don't pass back lm_sess_key as the same pointer as user_sess_key
...
This ensures that a talloc_free() of both pointers won't double-free
(sharing pointers like this is evil anyway).
Andrew Bartlett
2009-04-20 10:54:57 +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
Andrew Bartlett
7a54cd041e
Remove unused headers
2009-04-19 22:01:09 +02:00
Andrew Bartlett
8ee7b4ce29
s3:auth Fix segfault: Always initialise returned session keys
2009-04-19 21:50:13 +02:00
Andrew Bartlett
0c771bfc70
s3:ntlmssp Fix segfault: msrpc_gen now uses talloc()
2009-04-20 05:19:48 +10: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
Günther Deschner
c794ba71b7
s4-smbtorture: add LSA-LOOKUPSIDS to verify bug #6263 .
...
Guenther
2009-04-17 01:32:45 +02:00
Günther Deschner
b0a0d2a0ae
s4-smbtorture: Fix crash in RPC-LSA-LOOKUP
...
Guenther
2009-04-17 01:32:44 +02:00
Günther Deschner
5517c0bcdd
s3-docs: document warn_pwd_expire pam_winbind option in manpage.
...
Andreas, please check.
Guenther
2009-04-17 01:32:44 +02:00
Jeremy Allison
37b1b9cfe9
Add torture tester to ensure we don't regress the ulogoff bug.
...
Jeremy.
2009-04-16 16:22:37 -07:00
Jeremy Allison
d55ec4fd23
Fix bug found by Tim Prouty, logging off and then re-using a vuid can cause smbd to
...
access a freed structure.
Jeremy.
2009-04-16 16:22:30 -07:00
Jeremy Allison
265829c32f
When doing a cli_ulogoff don't invalidate the cnum, invalidate the vuid.
...
Jeremy.
2009-04-16 15:16:28 -07:00
Jeremy Allison
6fc8ed7b1f
Fix IDL licensing file that got missed when IDL files were moved.
...
Jeremy.
2009-04-16 12:09:16 -07:00