Stefan Metzmacher
56aae35a23
tsocket: fix the build without ipv6 support
...
metze
2009-04-16 09:31:14 +02:00
Andrew Bartlett
34193cffc0
Fix crash bug in NTLMSSP caused by msrpc_parse() moving to talloc
2009-04-16 14:08:00 +10:00
Andrew Bartlett
b57c8ff440
Use an absolute path to ensure that we can always regenerate tables.c
...
I had trouble building Samba3 in a merged build, perhaps because I was
also building Samba4 in that tree.
Andrew Bartlett
2009-04-16 12:06:35 +10:00
Andrew Bartlett
fa37dbf960
Fix building the now common msrpc_parse code
2009-04-16 10:17:57 +10:00
Andrew Bartlett
0879cbaf2b
Fix building the common libcli/samsync code
2009-04-16 10:17:34 +10:00
Andrew Bartlett
dbcd80ed01
Fix Samba4 build errors with common libcli/samsync
2009-04-16 10:17:17 +10:00
Günther Deschner
14304fc5e5
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 1c9266c8ca
)
2009-04-16 01:52:56 +02:00
Jeremy Allison
d9804ae3cc
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.
2009-04-15 15:40:00 -07:00
Günther Deschner
e6aa3f2d09
s4-smbtorture: Fix crash bugs in RPC-SAMR_ACCESSMASK.
...
Also disable security descriptor based tests while testing samba3.
Guenther
2009-04-15 22:50:05 +02:00
Günther Deschner
6fe012ff78
s3-examples: make sure to match correct key name in adssearch.
...
Guenther
2009-04-15 22:49:57 +02:00
Günther Deschner
f1fd39c09f
s4-smbtorture: define TORTURE_DEFAULT_SERVICE and set to netlogon.
...
Guenther
2009-04-15 22:48:54 +02:00
Andrew Bartlett
4678d1c6f4
Merge branch 'master' of ssh://git.samba.org/data/git/samba into libcli-auth-merge-without-netlogond
2009-04-15 14:36:13 +10:00
Andrew Bartlett
86b50a0e6e
Add missing header, remove generated header
...
(This isn't a rename, honest :-)
2009-04-15 14:23:33 +10:00
Andrew Bartlett
0b4e9ce45a
common:libcli/auth Add missing samsync config.mk
2009-04-15 14:00:24 +10:00
Matthias Dieter Wallnöfer
92d321006d
Enable software rollout through AD
...
This enables the sofware rollout feature in Samba4
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-04-15 12:27:02 +10:00
Jeremy Allison
8e06e945b6
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.
2009-04-14 15:19:39 -07:00
Günther Deschner
4721be488c
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
2009-04-14 23:21:47 +02:00
Günther Deschner
ca3de0103b
netdomjoin-gui: make sure to grey out change fields when not running as root.
...
Guenther
2009-04-14 23:06:30 +02:00
Jeremy Allison
0f1b402848
Try and fix the S4 build - include thread includes.
...
Jeremy.
2009-04-14 13:02:29 -07:00
Jeremy Allison
27a3118bcf
Make talloc_stack threadsafe using TLS. Volker please
...
check. Passes make test and basic valgrind testing.
Jeremy.
2009-04-14 12:23:22 -07:00
Günther Deschner
48f14949b1
libwbclient: Fix undocumented arguments doxygen warnings.
...
Guenther
(cherry picked from commit f2b3fbf0c0
)
2009-04-14 20:05:21 +02:00
Günther Deschner
1b9384a11f
s3-nsswitch: fix make test_wbpad.
...
Guenther
2009-04-14 14:56:59 +02:00
Stefan Metzmacher
74707e8e8e
socket_wrapper: fix the build on systems without ipv6 support
...
metze
2009-04-14 12:47:18 +02:00
Günther Deschner
a2ef1fee69
s4-smbtorture: make sure samba3 does not regress in EnumServicesStatusW call.
...
Guenther
2009-04-14 12:13:32 +02:00
Günther Deschner
fa302020ee
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
2009-04-14 12:13:24 +02:00
Günther Deschner
e3ceb0c653
s3-spoolss: remove unused dup_nt_devicemode().
...
Guenther
2009-04-14 12:13:17 +02:00
Günther Deschner
4a2dfbf3c9
s4-smbtorture: print SPOOLSS_JOB_CONTROL flags in RPC-SPOOLSS test.
...
Guenther
2009-04-14 12:13:08 +02:00
Andrew Bartlett
32062013c3
s3: Fix ntlm_auth and winbindd to use new common libcli/auth APIs
2009-04-14 19:33:04 +10:00
Andrew Bartlett
d78cdc5fe2
Rework to use new API for common netlogon credential chaining
2009-04-14 16:23:45 +10:00
Andrew Bartlett
1cee31f588
Link in the common samsync decryption code
2009-04-14 16:23:45 +10:00
Andrew Bartlett
53afa1adac
libcli/auth Push schannel check into common libcli/auth
...
This means we have a single choke point to ensure the remote client is
using schannel.
Andrew Bartlett
2009-04-14 16:23:44 +10:00
Andrew Bartlett
baf7274fed
Make Samba3 use the new common libcli/auth code
...
This is particuarly in the netlogon client (but not server at this
stage)
2009-04-14 16:23:44 +10:00
Andrew Bartlett
5095d7b1c8
Rework Samba4 to use the new common libcli/auth code
...
In particular, this is the rename from creds_ to netlogon_creds_, as
well as other links to use the new common crypto.
Andrew Bartlett
2009-04-14 16:23:44 +10:00
Andrew Bartlett
eed0c4f6c9
Rework netlogon credentials for the top level
...
This makes constructor functions that return the allocated structure,
rather than having the caller pass them in, and makes the server init
function also check the first credential.
The rename of creds_ to netlogon_creds should make it more clear what
this code works with.
Andrew Bartlett
2009-04-14 16:23:43 +10:00
Andrew Bartlett
f23eea294a
Push schannel_state.c into the top level.
...
This is the server side state for netlogon credential chaining
Andrew Bartlett
2009-04-14 16:23:43 +10:00
Andrew Bartlett
df8e1908ef
Use common samsync delta decryption functions in libnet_samsync.c
...
Andrew Bartlett
2009-04-14 16:23:43 +10:00
Andrew Bartlett
27815a71a9
More work to adapt to merged libcli/auth function prototypes
2009-04-14 16:23:42 +10:00
Andrew Bartlett
fe0f0e5670
Adapt to common crypto functions: sam_pwd_hash() -> sam_rid_crypt()
2009-04-14 16:23:42 +10:00
Andrew Bartlett
7cff049e7e
libcli/auth Don't compile against un-needed Samba4 headers
2009-04-14 16:23:42 +10:00
Andrew Bartlett
6c8f7e4005
Port Samba4 to the new combined libcli/auth functions
...
For example, some of the new shared functionality was previously in the wkssvc
torture test.
Andrew Bartlett
2009-04-14 16:23:41 +10:00
Andrew Bartlett
a19966375a
Move ntlm_check.h into the common libcli/auth
2009-04-14 16:23:41 +10:00
Andrew Bartlett
f28f113d8e
Rework Samba3 to use new libcli/auth code (partial)
...
This commit is mostly to cope with the removal of SamOemHash (replaced
by arcfour_crypt()) and other collisions (such as changed function
arguments compared to Samba3).
We still provide creds_hash3 until Samba3 uses the credentials code in
netlogon server
Andrew Bartlett
2009-04-14 16:23:35 +10:00
Andrew Bartlett
fd3be5c4e5
Merge smbencrypt.c between Samba3 and Samba4
2009-04-14 14:19:42 +10:00
Andrew Bartlett
8e73b652f9
Rework trivial msrpc parser to use convert_string_talloc()
...
Also avoid still string conversions when trying to match NTLMSSP in
the header of the NTLMSSP packet.
This also changes a few things to avoid const warnings.
Andrew Bartlett
2009-04-14 14:19:40 +10:00
Andrew Bartlett
9feea7fa4c
Move MSRPC-PARSE into the common libcli/auth
...
This is a depenceny of smbencrypt.c
2009-04-14 14:19:39 +10:00
Andrew Bartlett
872cb0257c
Move DRSUAPI per-attribute decryption into a common file
...
This file (contining metze's decryption routines) is now also be used by
Samba3's DRSUAPI implementation
Andrew Bartlett
2009-04-14 14:19:39 +10:00
Andrew Bartlett
927a8b3304
Move libcli/auth to the top level
2009-04-14 14:19:39 +10:00
Andrew Bartlett
786447dea0
s3:charcnv remove now unused malloc() based conversion functions
2009-04-14 12:54:13 +10:00
Andrew Bartlett
97af7f1ed1
Add some harmless use of talloc_tos() in ntlm_auth
2009-04-14 12:54:12 +10:00
Andrew Bartlett
3b3e21bd9b
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
2009-04-14 12:53:56 +10:00