metze [Wed, 14 Dec 2005 18:22:38 +0000 (18:22 +0000)]
don't crash when an error happens while connecting and the packet_context isn't inplace yet
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12238
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
abartlet [Wed, 14 Dec 2005 17:16:06 +0000 (17:16 +0000)]
I hate SWAT code being outside 'source'. Add in code to push the
user's session info into ldb structure for the ldb tests.
Andrew Bartlett
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12232
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Wed, 14 Dec 2005 10:56:43 +0000 (10:56 +0000)]
prepare for a generic periodic processing scheduling of
pull,push,scavenging and reread-config events
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12230
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Wed, 14 Dec 2005 08:46:52 +0000 (08:46 +0000)]
fix the expire time for released records
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12229
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Wed, 14 Dec 2005 08:38:25 +0000 (08:38 +0000)]
fix the expire time for RELEASED records
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12228
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
abartlet [Wed, 14 Dec 2005 07:22:25 +0000 (07:22 +0000)]
I realised that I wasn't yet seeing authenticated LDAP for the ldb
backend.
The idea is that every time we open an LDB, we can provide a
session_info and/or credentials. This would allow any ldb to be remote
to LDAP. We should also support provisioning to a authenticated ldap
server.
(They are separate so we can say authenticate as foo for remote, but
here we just want a token of SYSTEM).
Andrew Bartlett
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12227
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
jelmer [Tue, 13 Dec 2005 21:42:03 +0000 (21:42 +0000)]
Use some more common functions
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12219
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
jelmer [Tue, 13 Dec 2005 21:00:52 +0000 (21:00 +0000)]
Use common functions for generating lists
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12218
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Tue, 13 Dec 2005 19:45:24 +0000 (19:45 +0000)]
add my copyright
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12217
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
jelmer [Tue, 13 Dec 2005 19:38:12 +0000 (19:38 +0000)]
Couple of small fixes: reduce include/includes.h a bit, simplify headers
in build/smb_build/, remove unused pstring macros
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12216
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Tue, 13 Dec 2005 17:39:24 +0000 (17:39 +0000)]
remove unused element
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12211
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
jelmer [Tue, 13 Dec 2005 16:48:37 +0000 (16:48 +0000)]
Fix some issues with XML entities.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12209
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
jelmer [Tue, 13 Dec 2005 16:25:07 +0000 (16:25 +0000)]
Remove obsolete scons directory
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12208
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
jelmer [Tue, 13 Dec 2005 16:11:45 +0000 (16:11 +0000)]
More improvements to the Debian package by Steinar Gunderson.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12207
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
jelmer [Tue, 13 Dec 2005 13:14:23 +0000 (13:14 +0000)]
Fix some issues in NOEMIT
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12206
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
jelmer [Tue, 13 Dec 2005 01:56:04 +0000 (01:56 +0000)]
Support 'TFS' command in conformance files
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12205
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
jelmer [Mon, 12 Dec 2005 21:56:40 +0000 (21:56 +0000)]
Remove some lines that I accidently added more then once
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12201
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Mon, 12 Dec 2005 21:31:42 +0000 (21:31 +0000)]
- move the the winsreplication client and server code to the packet_context
system
- this needs to be in one big patch, because of the merging code,
that changes client in server connections and the other way around
- use socket_connect_send/_recv() in the client code
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12200
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
jelmer [Mon, 12 Dec 2005 19:45:47 +0000 (19:45 +0000)]
Some more Debian updates. Thanks to Steinar H. Gunderson
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12198
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
jelmer [Mon, 12 Dec 2005 19:33:09 +0000 (19:33 +0000)]
Some improvements to the Debian package. Thanks to Steinar Gunderson
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12197
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
jelmer [Sun, 11 Dec 2005 14:44:38 +0000 (14:44 +0000)]
Use BASE_HEX rather then BASE_DEC by default for bitmaps. Patch by Guy
Harris. Fixes #3313
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12181
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
abartlet [Sun, 11 Dec 2005 08:31:46 +0000 (08:31 +0000)]
Allow our KDC to use LDAP to get to the backend database.
To avoid a circular depenency, it is not allowed to use Krb5 as an
authentication mechanism, so this must be removed from the list. An
extension to the credentials system allows this function.
Also remove proto.h use for any of the KDC, and use NTSTATUS returns
in more places.
Andrew Bartlett
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12179
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
abartlet [Sun, 11 Dec 2005 08:27:14 +0000 (08:27 +0000)]
Make ldb_ildap work against localhost again, by setting the event
context into the ldb opaque. I'm sure this was done before, and must
have been lost by some other change.
Andrew Bartlett
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12178
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
mimir [Sat, 10 Dec 2005 10:10:44 +0000 (10:10 +0000)]
More comments.
rafal
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12162
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Sat, 10 Dec 2005 09:18:03 +0000 (09:18 +0000)]
Fix a memleak and do the -O1 janitor :-)
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12161
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
tridge [Fri, 9 Dec 2005 23:43:02 +0000 (23:43 +0000)]
added ldif handlers for the ntSecurityDescriptor attribute, so when
displaying security descriptors in ldbsearch or ldbedit you can see
the SDDL version.
This also allows us to specify security descriptors in our
setup/*.ldif files in SDDL format, which is much more convenient than
the NDR binary format!
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12158
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
tridge [Fri, 9 Dec 2005 23:40:14 +0000 (23:40 +0000)]
ldb_dump_results() is useful to call from within gdb, so you can see a
set of results
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12157
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
tridge [Fri, 9 Dec 2005 23:39:00 +0000 (23:39 +0000)]
added samdb_domain_sid(), a routine to get the domain sid by looking
up the rootDomainNamingContext in the rootdse, then getting the
objectsid from the root of the domain
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12156
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Fri, 9 Dec 2005 21:49:11 +0000 (21:49 +0000)]
Torture test for bug # 3303.
Jeremy, to run this against Samba3 at all you need to insert a "goto line 957"
in line 548. Without this we fail some tests before # 16 and bail out.
While looking at it, you wanted to fix the directory-based ones a while
ago.... :-))
Volker
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12154
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Fri, 9 Dec 2005 20:42:09 +0000 (20:42 +0000)]
work arround the fact that epoll reports EPOLLERR and EPOLLHUP, even if
you don't ask for.
with this patch the epoll mode behaves like the select mode
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12153
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Fri, 9 Dec 2005 20:14:55 +0000 (20:14 +0000)]
match the select mode of the standard events system and the liboop system,
and report errors as read events
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12151
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Fri, 9 Dec 2005 19:36:40 +0000 (19:36 +0000)]
Reformatting
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12150
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
idra [Fri, 9 Dec 2005 18:33:30 +0000 (18:33 +0000)]
add the docs for the paged results control
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12148
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Fri, 9 Dec 2005 17:49:48 +0000 (17:49 +0000)]
as epoll notifies EPOLLERR and EPOLLHUP implicit,
let our code make it explicit, to make it clear
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12146
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Fri, 9 Dec 2005 17:30:14 +0000 (17:30 +0000)]
- move epoll related code into one big #ifdef, and use dummy #define's
for the case where, epoll isn't available at compile time
- only pass the private std_event_context, to the local function,
to get rid of the talloc_get_type() calls
- use the private pointer to std_event_context_init() to decide if we want to
disable epoll at runtime
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12141
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Fri, 9 Dec 2005 16:43:19 +0000 (16:43 +0000)]
- add an additional_flags field to the fd_event struct, so that
the events backend can store private flags
- add function to access the gtk event loop ops struct
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12140
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
tridge [Fri, 9 Dec 2005 06:22:09 +0000 (06:22 +0000)]
- fixed up the ace object flags checking
- allow for arbitrary access masks in sddl_encode_ace()
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12139
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
tridge [Fri, 9 Dec 2005 05:21:47 +0000 (05:21 +0000)]
added use of 2 letter SID codes in sddl_encode_sid()
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12138
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
tridge [Fri, 9 Dec 2005 04:54:30 +0000 (04:54 +0000)]
added sddl_encode(), the reverse of the sddl_decode() function added a
couple of days ago. Doesn't yet encode using the shorthand for well
known SIDs.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12137
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
tridge [Fri, 9 Dec 2005 04:11:44 +0000 (04:11 +0000)]
fixed a bug in NetWkstaTransportEnum() from the recent merge with ethereal idl
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12136
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
mimir [Fri, 9 Dec 2005 00:04:38 +0000 (00:04 +0000)]
Move named pipe connect on smb2 function to async implementation.
Completely untested, it's a bit difficult without having vista
around (yet), so - Andrew, please test it and let me know what's
wrong.
rafal
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12135
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Thu, 8 Dec 2005 14:17:58 +0000 (14:17 +0000)]
add --enable-socket-wrapper
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12128
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Thu, 8 Dec 2005 14:06:42 +0000 (14:06 +0000)]
add --option=rpc_login:samr_auth=yes, to work against w2k3
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12127
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Thu, 8 Dec 2005 10:23:56 +0000 (10:23 +0000)]
get rid of the local ->terminate hacks, we do that genericly now
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12126
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Thu, 8 Dec 2005 09:13:28 +0000 (09:13 +0000)]
make the deferred connection termination the default,
so that I can remove all the other versions of it
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12125
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Thu, 8 Dec 2005 08:48:35 +0000 (08:48 +0000)]
we don't need this comment twice
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12124
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Thu, 8 Dec 2005 08:31:59 +0000 (08:31 +0000)]
handle fde == NULL at the correct level
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12123
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Thu, 8 Dec 2005 07:52:52 +0000 (07:52 +0000)]
add forward declaration for packet_context
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12122
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Thu, 8 Dec 2005 07:50:38 +0000 (07:50 +0000)]
remove some dublicate code
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12121
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
tridge [Thu, 8 Dec 2005 01:13:45 +0000 (01:13 +0000)]
got rid of composite_trigger_done() and composite_trigger_error(), and
instead make the normal composite_done() and composite_error()
functions automatically trigger a delayed callback if the caller has
had no opportunity to setup a async callback
this removes one of the common mistakes in writing a composite function
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12116
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Wed, 7 Dec 2005 08:11:50 +0000 (08:11 +0000)]
bring SMB sesssetup_spnego in sync with SMB2 sesssetup
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12115
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Wed, 7 Dec 2005 07:28:43 +0000 (07:28 +0000)]
- smb2_keepalive() acts on the smb2_transport
- smb2_logoff() acts on the smb2_session
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12114
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Wed, 7 Dec 2005 07:14:13 +0000 (07:14 +0000)]
in SMB2 we should only allocate a new session
when the client sends UID = 0, otherwise we return
NT_STATUS_USER_SESSION_DELETED
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12113
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
mimir [Tue, 6 Dec 2005 19:48:47 +0000 (19:48 +0000)]
Formatting.
rafal
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12105
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
mimir [Tue, 6 Dec 2005 19:48:06 +0000 (19:48 +0000)]
Move to (sync) smb_composite_connect from smbcli_tree_full_connection()
This is one of the last places using the latter function.
rafal
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12104
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
mimir [Tue, 6 Dec 2005 19:44:49 +0000 (19:44 +0000)]
Comments and a bit of formatting.
rafal
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12103
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Tue, 6 Dec 2005 17:59:20 +0000 (17:59 +0000)]
for SMB2 we need to allocate tcons per session
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12102
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Tue, 6 Dec 2005 17:42:04 +0000 (17:42 +0000)]
revert my last commit, I breaks the build and I don't know why...
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12101
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Tue, 6 Dec 2005 14:17:06 +0000 (14:17 +0000)]
the most SMB2 opcodes need a valid session and tcon,
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12095
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Tue, 6 Dec 2005 14:14:43 +0000 (14:14 +0000)]
- implement dummy smb2srv_tcon()
- implement smb2srv_tdis()
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12094
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Tue, 6 Dec 2005 14:11:55 +0000 (14:11 +0000)]
add missing file
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12093
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Tue, 6 Dec 2005 13:26:24 +0000 (13:26 +0000)]
- add dummy functions for the missing SMB2 opcodes
- implement keepalive and logoff
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12092
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Tue, 6 Dec 2005 12:33:32 +0000 (12:33 +0000)]
the SMB2 specific level are not available via SMB
(get rid of the compiler warnings)
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12091
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Tue, 6 Dec 2005 11:52:16 +0000 (11:52 +0000)]
use the _trigger_error() function in the function
that allocated the composite_context
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12090
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
mimir [Tue, 6 Dec 2005 11:11:11 +0000 (11:11 +0000)]
Couple of fixes in cases of memory outage before we sort
out how and when to use composite_error() and composite_trigger_error().
Spotted by Metze.
rafal
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12089
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
mimir [Tue, 6 Dec 2005 08:58:21 +0000 (08:58 +0000)]
Use a structure to pass arguments to dcerpc connection functions
and move migrated (async) code to a new file.
rafal
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12088
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
mimir [Tue, 6 Dec 2005 08:56:13 +0000 (08:56 +0000)]
Split dcerpc pipe connection functions into separate file.
It's going to contain async functions and ncacn_np is the
first.
rafal
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12087
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
tridge [Tue, 6 Dec 2005 05:25:03 +0000 (05:25 +0000)]
reverted the utf8string change in xattr.idl. See the discussion on
samba-technical on why this should stay as a simple null terminated
string (basically to make hand-written parsers easier)
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12086
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
tridge [Tue, 6 Dec 2005 03:53:51 +0000 (03:53 +0000)]
wkssvc.idl updated based on work by Ronnie Sahlberg to bring the
Samba4 and ethereal IDL into line, so ethereal doesn't lose any
existing strucutres when switching to idl
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12085
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
tridge [Tue, 6 Dec 2005 03:51:54 +0000 (03:51 +0000)]
added a comment on what is appropriate for parameter_control
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12084
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
tridge [Tue, 6 Dec 2005 00:12:32 +0000 (00:12 +0000)]
fixed a valgrind error found by kukks in the transs server handling
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12082
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
mimir [Mon, 5 Dec 2005 22:34:45 +0000 (22:34 +0000)]
Fix to the comment for sake of completness...
rafal
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12079
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Mon, 5 Dec 2005 22:22:05 +0000 (22:22 +0000)]
fix the build on hosts with old compilers
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12078
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Mon, 5 Dec 2005 15:47:15 +0000 (15:47 +0000)]
remove NBT-WINSREPLICATION-QUICK test, as we now pass the NBT-WINSREPLICATION
test
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12075
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Mon, 5 Dec 2005 15:26:49 +0000 (15:26 +0000)]
in accept() we need to set socket name of the child socket by looking
up what address the client has used, as the socket is maybe bound to '0.0.0.0'
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12074
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Mon, 5 Dec 2005 15:22:38 +0000 (15:22 +0000)]
fix vlgrind error, calculate the correct size for memcpy()
and don't assume out_len is >= sizeof(*in_addr)
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12073
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Mon, 5 Dec 2005 12:47:32 +0000 (12:47 +0000)]
fix sgroup,active,owned vs. sgroup,non-active case
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12072
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Mon, 5 Dec 2005 12:25:19 +0000 (12:25 +0000)]
- implement MHOMED merging
- implement late release demands
we now pass the full NBT-WINSREPLICATION torture test
but only with non-socket_wrapper mode
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12071
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Mon, 5 Dec 2005 12:18:16 +0000 (12:18 +0000)]
make sure a unique record with multiple addresses becauses mhomed
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12070
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Mon, 5 Dec 2005 10:24:07 +0000 (10:24 +0000)]
fix typo
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12069
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Mon, 5 Dec 2005 10:15:56 +0000 (10:15 +0000)]
a better fix to prevent crashing, on errors
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12068
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Mon, 5 Dec 2005 10:03:10 +0000 (10:03 +0000)]
print out some more details
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12067
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Mon, 5 Dec 2005 07:56:22 +0000 (07:56 +0000)]
- add a unique,active,owner vs. unique,active,replica tests where
we respond with the replicas address to the challenge
- fix some skip checks
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12066
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Mon, 5 Dec 2005 06:55:20 +0000 (06:55 +0000)]
fix compiler warning
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12065
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
tridge [Mon, 5 Dec 2005 06:05:02 +0000 (06:05 +0000)]
pass back the socket level error correctly (so we get
NT_STATUS_CONNECTION_REFUSED when a KDC is not listening)
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12064
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
tridge [Mon, 5 Dec 2005 06:01:22 +0000 (06:01 +0000)]
fixed the krb5 client code to handle ICMP port unreachable errors, and
error out immediatelly. This prevents a long timeout
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12063
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
abartlet [Mon, 5 Dec 2005 04:10:13 +0000 (04:10 +0000)]
SASL negotiation now requires a gensec_security context, so that we
only try permitted mechanims.
Andrew Bartlett
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12062
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
abartlet [Mon, 5 Dec 2005 03:42:28 +0000 (03:42 +0000)]
Add missing file to previous commit. This provides a hook on which to
attach a restriction on available GENSEC mechanisms.
Andrew Bartlett
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12061
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
abartlet [Mon, 5 Dec 2005 03:20:40 +0000 (03:20 +0000)]
Work towards allowing the credentials system to allow/deny certain
GENSEC mechansims. This will allow a machine join to an NT4 domain to
avoid even trying kerberos, or a sensitive operation to require it.
Andrew Bartlett
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12060
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
abartlet [Mon, 5 Dec 2005 01:38:26 +0000 (01:38 +0000)]
Use random keytab names (so we get different keytabs, rather than
share the MEMORY: keytab).
Andrew Bartlett
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12059
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
abartlet [Mon, 5 Dec 2005 01:36:53 +0000 (01:36 +0000)]
Set an anonymous fallback, if the machine account isn't available.
Andrew Bartlett
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12058
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
tridge [Mon, 5 Dec 2005 00:43:50 +0000 (00:43 +0000)]
fixed authentication in ldb client tools
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12057
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
abartlet [Sun, 4 Dec 2005 12:17:02 +0000 (12:17 +0000)]
Some clarification fixes for the keytab code, and use the right
function for enctype to string.
Andrew Bartlett
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12056
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
abartlet [Sat, 3 Dec 2005 00:47:51 +0000 (00:47 +0000)]
Fix malloc corruption caused by double-free(), where realloc(ptr, 0)
is equivilant to free().
This is the issue tridge was seeing in the MEMORY: keytab code.
Andrew Bartlett
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12037
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
abartlet [Sat, 3 Dec 2005 00:46:23 +0000 (00:46 +0000)]
Fix more KDC memory leaks (and there are probably still more...).
Andrew Bartlett
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12036
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
abartlet [Fri, 2 Dec 2005 22:37:07 +0000 (22:37 +0000)]
Fix memory leaks in the KDC.
Andrew Bartlett
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12035
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Fri, 2 Dec 2005 15:51:39 +0000 (15:51 +0000)]
do some extra sleeping to give the server the chance to handle our reply
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12024
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Fri, 2 Dec 2005 15:40:26 +0000 (15:40 +0000)]
use the NBTD IRPC proxy calls for implementing the challenge and release demand
conflict cases
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12023
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Fri, 2 Dec 2005 15:37:52 +0000 (15:37 +0000)]
add NBTD IRPC proxy calls for wins challenge and wins release demand,
used for replication conflicts
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12022
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Fri, 2 Dec 2005 15:30:25 +0000 (15:30 +0000)]
remove shortpath for winsdb_lookup, this isn't needed
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@12021
0c0555d6-39d7-0310-84fc-
f1cc0bd64818