Andrew Bartlett
3e36aefc66
s3-privs Only store low bits of luid in privileges table
...
Samba only uses the low bits, and this makes the code simpler.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-09-11 18:46:05 +10:00
Andrew Bartlett
e113af6fb1
privs Add my Copyright
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-09-11 18:46:05 +10:00
Andrew Bartlett
86233ec135
s3-privs Remove comment already moved to security.idl
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-09-11 18:46:04 +10:00
Andrew Bartlett
82f84ff382
s3-privs Use constants from security.idl
...
The values in security.idl have been updated to match these.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-09-11 18:46:04 +10:00
Andrew Bartlett
fcaa86f402
s3-privs Further changes to remove SE_PRIV
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-09-11 18:46:04 +10:00
Andrew Bartlett
821b9e61aa
privs Move privilege bitmasks to security.idl
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-09-11 18:46:04 +10:00
Andrew Bartlett
99aae4a0ee
s3:privs Change to new host endian neutral privilages tdb format
...
These values are stored in account_policy.tdb, and the old format,
using a 128 bit bitmap was not endian neutral.
The previous endian-dependent format was introduced in
46e5effea9
replacing a 32 bit number which was used at the time.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-09-11 18:46:04 +10:00
Andrew Bartlett
c79336e48a
s3:Change SE_PRIV to uint64_t
...
This removes the SE_PRIV typedef
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-09-11 18:46:03 +10:00
Andrew Bartlett
42a98a570b
s3:privileges Change SE_PRIV to be just a uint64_t
...
We don't need 128 possible privileges here, as we only use 12.
This reverts some of 46e5effea9
by Jerry back in 2005, where he introduced the SE_PRIV structure
to replace the uint32_t used at the time.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-09-11 18:46:03 +10:00
Jeremy Allison
a89b0ef53b
Add check missing from previous patch after talloc_strdup().
...
Jeremy.
2010-09-10 23:33:18 -07:00
Jeremy Allison
1787c1dfc3
Factor out the recent changes into a function - check_parent_exists().
...
Fix this to ensure that if "start" is manipulated, then "dirpath"
is changed also.
Ensures that when the path:
/a/long/file/name/path.txt
is processed, we first stat:
/a/long/file/name/path.txt
and if this fails, we try to stat:
/a/long/file/name
if this path exists (the normal case when creating a new
entry in a directory) then we no longer do the individual
path name walk, but only do case insensitive lookup on the
last component. If the stat fails we do the full pathname
walk as normal in 3.5.x and below. Metze, examine this
change for your back-port.
Jeremy.
2010-09-10 23:28:15 -07:00
Volker Lendecke
f76983ae3f
s3: Simplify the logic in generate_krb5_ccache
...
gd, jra, others, please check!
2010-09-11 00:02:02 +02:00
Björn Jacke
306465a5a4
s3/winbind: use mono time for startup timeout check
2010-09-10 23:10:26 +02:00
Günther Deschner
d4d34bddd7
s3-selftest: add print_test_extended (as called from RPC-PRINTER) to knownfail list.
...
Guenther
2010-09-10 23:07:49 +02:00
Günther Deschner
68c9877796
s3-printing: fix non-ads build after prototype changes.
...
Guenther
2010-09-10 22:41:56 +02:00
Volker Lendecke
aa00d331a6
s3: Simplify generate_krb5_ccache slightly
...
strequal deals with a NULL string input just fine
2010-09-10 12:36:07 -07:00
Jeremy Allison
e850958928
Check all SMB_MALLOC returns correctly. Found by Andreas Moroder <andreas.moroder@gmx.net>.
...
Jeremy
2010-09-10 11:56:26 -07:00
Stefan Metzmacher
c91bdd2b0e
s3:torture: fix printf output, lines can't start with lower case "test"
...
metze
2010-09-10 17:21:33 +02:00
Stefan Metzmacher
a489fb3ee2
s3:torture: fix run_uid_regression_test
...
metze
2010-09-10 17:21:33 +02:00
Stefan Metzmacher
cd8e2fd9fa
s3-errormap: map ERRSRV/ERRbaduid to NT_STATUS_USER_SESSION_DELETED
...
metze
2010-09-10 17:21:32 +02:00
Günther Deschner
bf7ca3f5e7
s3-spoolss: Fix _spoolss_GetPrinter().
...
In the error case, we need to TALLOC_FREE(r->out.info), don't ask :-)
Guenther
2010-09-10 17:11:12 +02:00
Andreas Schneider
fc1a5dbffb
s3-spoolss: Don't leak memory on the session counter list.
...
Thanks Günther, please check.
2010-09-10 16:10:46 +02:00
Simo Sorce
ed2c06f9da
s3-spoolss: Allow multiple client backchannels.
...
When we run spoolssd we need to support multiple clients connecting.
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-09-10 15:49:04 +02:00
Simo Sorce
a736385b97
s3-spoolss: Split function to send notification.
...
More digestible this way.
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-09-10 15:49:04 +02:00
Simo Sorce
9db2be245e
s3-spoolss: Use a single structure for all the back channel data.
...
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-09-10 15:49:03 +02:00
Simo Sorce
433ac757dc
s3-spoolss: Rename Printer_entry to struct printer_handle.
...
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-09-10 15:49:03 +02:00
Simo Sorce
4a8d042afa
s3-spoolss: Move Printer_entry to srv_spoolss_nt.c
...
It is used only there, and it is a good idea to make this one private and
opaque to the rest of the code.
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-09-10 15:49:03 +02:00
Simo Sorce
e257e68b4b
s3-spoolss: Allocate printer entries on the pipe struct.
...
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-09-10 15:49:03 +02:00
Simo Sorce
0e5b1a67d2
s3-spoolss: Rename session counter structure and use talloc.
...
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-09-10 15:49:03 +02:00
Günther Deschner
c59961dd81
s3-dsgetdcname: cleanup receive_getdc_response a little.
...
Guenther
2010-09-10 13:21:41 +02:00
Günther Deschner
33fdf8dac2
s3-build: use proper RPC_X_OBJ target names.
...
Guenther
2010-09-10 13:20:13 +02:00
Günther Deschner
4577fb3163
s3-waf: use proper RPC_X_SRC names.
...
This allows to build using waf without --enable-developer and should also fix
support for rpc server modules.
Guenther
2010-09-10 13:20:13 +02:00
Günther Deschner
7b1efc7282
s3-build: only link LIBNDR_XATTR_OBJ where needed.
...
Guenther
2010-09-10 11:29:26 +02:00
Günther Deschner
32a1b21f1c
s3-waf: only link LIBNDR_XATTR_SRC where needed.
...
Guenther
2010-09-10 11:29:20 +02:00
Günther Deschner
a1392ee9a0
s3-build: link ndr_notify only where needed.
...
Guenther
2010-09-10 11:27:52 +02:00
Günther Deschner
b15ac83bda
s3-waf: link ndr_notify only where needed.
...
Guenther
2010-09-10 11:26:35 +02:00
Günther Deschner
ed239fc784
s3-build: link ndr_named_pipe_auth only where needed.
...
Guenther
2010-09-10 11:24:28 +02:00
Günther Deschner
f8b10a738c
s3-waf: link ndr_named_pipe_auth only where needed.
...
Guenther
2010-09-10 11:23:59 +02:00
Günther Deschner
26ea51c7ab
s3-spoolss: allow a short printername w/o servername.
...
Verified with RPC-SPOOLSS-PRINTSERVER-enumprinters_old test.
Guenther
2010-09-10 00:31:27 +02:00
Jeremy Allison
718fd39f10
Fox missing SMB_MALLOC return checks noticed by "Andreas Moroder <andreas.moroder@gmx.net>".
...
Jeremy.
2010-09-09 15:29:03 -07:00
Jeremy Allison
e6b85c2a7b
More paranoia to ensure SD's can't be set on read-only shares.
...
Jeremy.
2010-09-09 15:28:43 -07:00
Günther Deschner
9962462278
s3-selftest: rename printer "print4" to "lp".
...
This should trigger a false error condition in our code.
Guenther
2010-09-10 00:26:26 +02:00
Volker Lendecke
789a162989
s3: Ensure NULL termination for "workstation" in auth_crap
2010-09-09 14:26:28 -07:00
Günther Deschner
9f4c1a2a7b
s3-nmbd: use NETLOGON_NT_VERSION_1 in LOGON_PRIMARY_RESPONSE.
...
Guenther
2010-09-09 23:14:08 +02:00
Volker Lendecke
18962ea385
s3: These assignments are overwritten immediately
...
Dump them
2010-09-09 14:08:23 -07:00
Günther Deschner
71b95703f9
s3-nmbd: use autogenerated marshalling for LOGON_SAM_LOGON_REQUEST.
...
Guenther
2010-09-09 23:07:11 +02:00
Günther Deschner
36d7efa75a
s3-nmbd: use autogenerated marshalling for LOGON_PRIMARY_QUERY.
...
Couldn't find any reproducer for a short request, so removing it for now.
Guenther
2010-09-09 23:07:11 +02:00
Günther Deschner
bfda968e07
s3-nmbd: use autogenerated marshalling for LOGON_REQUEST.
...
Guenther
2010-09-09 23:07:11 +02:00
Günther Deschner
f002b7fa1b
s3-nmbd: handle source_name in one location in nmbd_process_logon().
...
Guenther
2010-09-09 23:07:11 +02:00
Günther Deschner
5fc7d14b06
s3-nmbd: use nbt_netlogon_packet in process_logon_packet().
...
Guenther
2010-09-09 23:07:11 +02:00