1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00
Commit Graph

1379 Commits

Author SHA1 Message Date
Stefan Metzmacher
777e1c23be r13624: as abartlet requested, move the saslauthd parsing stuff to a seperate file
metze
(This used to be commit 3c8bc98c1b)
2007-10-10 13:52:01 -05:00
Stefan Metzmacher
417dbaa127 r13621: add an idl structure to parse saslauthd requests
metze
(This used to be commit d003654b1c)
2007-10-10 13:52:01 -05:00
Andrew Bartlett
9d1954c25d r13583: Realise that the member server name appears in all calls that use the
credentials.

Consistantly rename these elements in the IDL to computer_name.

Fix the server-side code to always lookup by this name.

Add new, even nastier tests to RPC-SCHANNEL to prove this.

Andrew Bartlett
(This used to be commit 341a0abeb4)
2007-10-10 13:51:58 -05:00
Andrew Bartlett
eefb440791 r13582: Indent
(This used to be commit 06ddac2bb1)
2007-10-10 13:51:58 -05:00
Rafal Szczesniak
5fa874453f r13572: Comments to async pipe open functions and copyright note.
rafal
(This used to be commit 7dde77942b)
2007-10-10 13:51:57 -05:00
Rafal Szczesniak
2b2dfc0117 r13568: Comments to async rpc connect functions.
rafal
(This used to be commit 9ef2275f61)
2007-10-10 13:51:57 -05:00
Rafal Szczesniak
32a3aa932d r13561: Turn all dcerpc connect and socket functions to async version.
Now, each rpc interface (named pipe, tcp/ip, lrpc and unix
socket) works asynchronously.
Comments to follow.

rafal
(This used to be commit 789f9d43db)
2007-10-10 13:51:57 -05:00
Andrew Bartlett
f2d76bddd5 r13334: Add comments describing what these functions do.
We still need many more, but it is a start...

Andrew Bartlett
(This used to be commit b2bda127f6)
2007-10-10 13:51:45 -05:00
James Peach
bf75891495 r13242: cc-1009 cc: WARNING File = librpc/idl/nbt.idl, Line = 579
cc-1009 cc: WARNING File = librpc/idl/nbt.idl, Line = 580
  A "/*" appears inside a comment.
(This used to be commit 53ac5a2fb2)
2007-10-10 13:51:36 -05:00
Jelmer Vernooij
713b296441 r13210: Revert my named pipes patch until it passes not just 'make quicktest' but
also 'make test'
(This used to be commit e3d0676aee)
2007-10-10 13:51:35 -05:00
Jelmer Vernooij
ad6303f82f r13208: Clearly separate named pipes from the IPC$ NTVFS type.
This allows the easy addition of additional named pipes and removes the
circular dependencies between the CIFS, RPC and RAP servers.

Simple tests for a custom named pipe included.
(This used to be commit 898d15acbd)
2007-10-10 13:51:34 -05:00
Stefan Metzmacher
96ca571f42 r13131: windows sends termination here, this fixes access with regedit
metze
(This used to be commit 79293227d6)
2007-10-10 13:51:28 -05:00
Stefan Metzmacher
efe7ed72b5 r13044: I finally understand that the [charset()] and [string] properties
are independent...

fix some warnings

metze
(This used to be commit 6ae621437c)
2007-10-10 13:51:19 -05:00
Stefan Metzmacher
5bd9b3b808 r13002: fix compiler warning
metze
(This used to be commit 3365ad950b)
2007-10-10 13:51:16 -05:00
Stefan Metzmacher
e88285db2d r12982: fix parsing of LDAP DIRSYNC cookies
metze
(This used to be commit 31d2bf3ca1)
2007-10-10 13:51:14 -05:00
Stefan Metzmacher
f6c0c82046 r12933: fix parsing of browse packets based on the infos on http://ubiqx.org/cifs/Browsing.html
metze
(This used to be commit 811683e556)
2007-10-10 13:51:09 -05:00
Andrew Bartlett
a5a79e8b8c r12865: Upgrade the librpc and libnet code.
In librpc, always try SMB level authentication, even if trying
schannel, but allow fallback to anonymous.  This should better
function with servers that set restrict anonymous.

There are too many parts of Samba that get, parse and modify the
binding parameters.  Avoid the extra work, and add a binding element
to the struct dcerpc_pipe

The libnet vampire code has been refactored, to reduce extra layers
and to better conform with the standard argument pattern.  Also, take
advantage of the new libnet_Lookup code, so we don't require the silly
'password server' smb.conf parameter.

To better support forcing traffic to be sealed for the vampire
operation, the dcerpc_bind_auth() function now takes an auth level
parameter.

Andrew Bartlett
(This used to be commit d65b354959)
2007-10-10 13:50:55 -05:00
Stefan Metzmacher
d68b0b12b9 r12856: make the logic much more sane
metze
(This used to be commit ed4a3e53fd)
2007-10-10 13:50:54 -05:00
Andrew Bartlett
f55ea8bb3d r12804: This patch reworks the Samba4 sockets layer to use a socket_address
structure that is more generic than just 'IP/port'.

It now passes make test, and has been reviewed and updated by
metze. (Thankyou *very* much).

This passes 'make test' as well as kerberos use (not currently in the
testsuite).

The original purpose of this patch was to have Samba able to pass a
socket address stucture from the BSD layer into the kerberos routines
and back again.   It also removes nbt_peer_addr, which was being used
for a similar purpose.

It is a large change, but worthwhile I feel.

Andrew Bartlett
(This used to be commit 88198c4881)
2007-10-10 13:49:57 -05:00
Stefan Metzmacher
806b3fdbc1 r12803: if we free the ndr structure how should we access the private pointer anymore?
thanks valgrind!

metze
(This used to be commit ab58decf82)
2007-10-10 13:49:57 -05:00
Rafal Szczesniak
1f10e729c0 r12800: Replace tmp_ctx with mem_ctx to make variables name more
consistent along the file.

rafal
(This used to be commit aaccb91cca)
2007-10-10 13:49:57 -05:00
Stefan Metzmacher
022553500b r12772: - create variables for the %(patsubst ...) statements for the idl files
- this also fixes the build on BSD systems

metze
(This used to be commit 31ff172773)
2007-10-10 13:49:52 -05:00
Andrew Bartlett
caa913ead4 r12753: Try to fix the build after a 'make clean'. (the wildcards will not
expand because they don't exist yet).  Thanks again to HotaruT.

Andrew Bartlett
(This used to be commit d3abfecec5)
2007-10-10 13:49:50 -05:00
Jelmer Vernooij
63d718e243 r12696: Reduce the size of include/structs.h
(This used to be commit 6391761601)
2007-10-10 13:49:40 -05:00
Jelmer Vernooij
25bb00fbcd r12693: Move core data structures out of smb.h into core.h
torture prototypes in seperate header
(This used to be commit 73610639b2)
2007-10-10 13:49:39 -05:00
Jelmer Vernooij
bc4aebfaec r12670: Make a couple of dependencies stricter
Re-introduce and use the OUTPUT_TYPE property for MODULEs to force
specific modules to always be included
(This used to be commit f9eede3d40)
2007-10-10 13:49:35 -05:00
Jelmer Vernooij
912f556dba r12651: Remove STR_LARGE_SIZE as it's no longer used
(This used to be commit 8e95aee6fb)
2007-10-10 13:49:35 -05:00
Jelmer Vernooij
f54ef2a8f6 r12650: Remove support for NULLTERM flag (is already covered by tridge's
fixes to [validate])
(This used to be commit aa880bf196)
2007-10-10 13:49:34 -05:00
Andrew Tridgell
767ce19bf8 r12635: use the new [validate] value() checking to fix the string types for
the LSA pipe. Strangely, windows is not consistent for the LookupSids
call. Sometimes the name is terminated and sometimes not?! It might
depend on the type of rid (alias, group etc) ?
(This used to be commit c0b7e0619a)
2007-10-10 13:49:10 -05:00
Andrew Tridgell
ff5c9a1273 r12634: make the [validate] binding string switch also check to see if the
string form of the structure we receive matches the generated
form. This has the effect of checking things like value() attributes.
(This used to be commit f2e68ec649)
2007-10-10 13:49:10 -05:00
Jelmer Vernooij
2cb372f7a4 r12623: Another round of fixes for the prototypes of tables.c
(This used to be commit fb5b22e3dc)
2007-10-10 13:49:06 -05:00
Jelmer Vernooij
046a54f963 r12622: Move table.c prototypes to seperate header to prevent circular dependencies
with proto.h
(This used to be commit 9e0ba38037)
2007-10-10 13:49:06 -05:00
Jelmer Vernooij
aa9f67163c r12620: Get rid of automatically generated lists of init functions of subsystems.
This allows Samba libraries to be used by other projects (and parts of
Samba to be built as shared libraries).
(This used to be commit 44f0aba715)
2007-10-10 13:49:06 -05:00
Jelmer Vernooij
d4de4c2d21 r12608: Remove some unused #include lines.
(This used to be commit 70e7449318)
2007-10-10 13:49:03 -05:00
Jelmer Vernooij
46aa296cc9 r12592: Remove some useless dependencies
(This used to be commit ca8db1a0cd)
2007-10-10 13:49:00 -05:00
Jelmer Vernooij
87fd7b5484 r12574: Bring tables.pl back to life and move registration of interfaces
now completely to a new subsystem.
(This used to be commit bbacfaaea5)
2007-10-10 13:48:56 -05:00
Jelmer Vernooij
b9fa7bc48e r12558: Support [flag(NULLTERM)] on [charset()] arrays
(This used to be commit 2e5a6eb219)
2007-10-10 13:47:57 -05:00
Jelmer Vernooij
2cd5ca7d25 r12542: Move some more prototypes out to seperate headers
(This used to be commit 0aca5fd513)
2007-10-10 13:47:55 -05:00
Jelmer Vernooij
d49f11df21 r12517: Don't generate empty init functions
(This used to be commit 832a1092c9)
2007-10-10 13:47:51 -05:00
Jelmer Vernooij
00ace36e07 r12516: Fix drsuapi and netlogon javascript bindings
(This used to be commit b46eeba9fc)
2007-10-10 13:47:51 -05:00
Jelmer Vernooij
0ad7b308a1 r12514: Move DCE/RPC interface table to a seperate file
Be a bit more strict when checking for duplicate interfaces
(This used to be commit b1286a6d27)
2007-10-10 13:47:49 -05:00
Jelmer Vernooij
e748b53e43 r12513: Similar change as my previous commit, but now for transfer syntaxes.
Avoids converting a static string to GUID every time we check whether
a transfer syntax is equal to that of NDR.
(This used to be commit 8dcfcaf75a)
2007-10-10 13:47:49 -05:00
Jelmer Vernooij
d658de65d3 r12512: Use GUID structs in API functions everywhere rather then converting back and
forth between GUID structs and strings in several places.
(This used to be commit 3564e2f967)
2007-10-10 13:47:48 -05:00
Jelmer Vernooij
8270e1e310 r12511: Remove authservice from binding string
(This used to be commit 2188168209)
2007-10-10 13:47:48 -05:00
Jelmer Vernooij
acd6a086b3 r12510: Change the DCE/RPC interfaces to take a pointer to a
dcerpc_interface_table struct rather then a tuple of interface
name, UUID and version.

This removes the requirement for having a global list of DCE/RPC interfaces,
except for these parts of the code that use that list explicitly
(ndrdump and the scanner torture test).

This should also allow us to remove the hack that put the authservice parameter
in the dcerpc_binding struct as it can now be read directly from
dcerpc_interface_table.

I will now modify some of these functions to take a dcerpc_syntax_id
structure rather then a full dcerpc_interface_table.
(This used to be commit 8aae0f168e)
2007-10-10 13:47:48 -05:00
Jelmer Vernooij
09c44f6cae r12500: Use init functions explicitly in a few more places. 'gensec' and 'librpc'
are the only two subsystems left to convert.
(This used to be commit f6bbc72996)
2007-10-10 13:47:46 -05:00
Jelmer Vernooij
d8e35f8828 r12498: Eliminate INIT_OBJ_FILES and ADD_OBJ_FILES. We were not using
the difference between these at all, and in the future the
fact that INIT_OBJ_FILES include smb_build.h will be sufficient to
have recompiles at the right time.
(This used to be commit b24f2583ed)
2007-10-10 13:47:45 -05:00
Jelmer Vernooij
620d375320 r12465: Merge Parse::Pidl::Samba4::NDR::Header into Parse::Pidl::Samba4::NDR::Parser.
Small optimization to avoid including NDR headers multiple times
(This used to be commit 6967b98849)
2007-10-10 13:47:42 -05:00
Jelmer Vernooij
557ad72e7a r12461: Some updates to the srvsvc IDL from Ronnie Sahlberg
(This used to be commit ff7ef98f34)
2007-10-10 13:47:42 -05:00
Rafal Szczesniak
b19d882458 r12294: Move dcerpc_pipe_open_sock() to async implementation.
rafal
(This used to be commit 02e7980034)
2007-10-10 13:47:27 -05:00
Jelmer Vernooij
ab31a44216 r12254: Add some (hopefully correct) descriptions for libraries that are installed.
Install pkg-config files.
(This used to be commit a86abe84e2)
2007-10-10 13:47:24 -05:00
Rafal Szczesniak
737d59abc9 r12162: More comments.
rafal
(This used to be commit 2d69e4b13e)
2007-10-10 13:47:16 -05:00
Andrew Tridgell
499e51b5a9 r12136: fixed a bug in NetWkstaTransportEnum() from the recent merge with ethereal idl
(This used to be commit 5ce6a62f2e)
2007-10-10 13:47:13 -05:00
Rafal Szczesniak
38b0dde114 r12135: 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
(This used to be commit b9e7522bd4)
2007-10-10 13:47:12 -05:00
Andrew Tridgell
111a920fdb r12116: 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
(This used to be commit f9413ce792)
2007-10-10 13:47:11 -05:00
Rafal Szczesniak
3b85d04025 r12103: Comments and a bit of formatting.
rafal
(This used to be commit 4a12711c31)
2007-10-10 13:47:09 -05:00
Stefan Metzmacher
2184ad5af7 r12101: revert my last commit, I breaks the build and I don't know why...
metze
(This used to be commit dc664df873)
2007-10-10 13:47:09 -05:00
Stefan Metzmacher
3adb3013b1 r12090: use the _trigger_error() function in the function
that allocated the composite_context

metze
(This used to be commit 998a7f8572)
2007-10-10 13:47:08 -05:00
Rafal Szczesniak
b38783f40a r12089: 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
(This used to be commit 218db3ebc0)
2007-10-10 13:47:07 -05:00
Rafal Szczesniak
d1c41cb83f r12088: Use a structure to pass arguments to dcerpc connection functions
and move migrated (async) code to a new file.

rafal
(This used to be commit 79b231bc53)
2007-10-10 13:47:07 -05:00
Rafal Szczesniak
18cfac7c71 r12087: Split dcerpc pipe connection functions into separate file.
It's going to contain async functions and ncacn_np is the
first.

rafal
(This used to be commit 3fe2df5fe3)
2007-10-10 13:47:07 -05:00
Andrew Tridgell
5245679015 r12086: 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)
(This used to be commit 0f1de4b1db)
2007-10-10 13:47:07 -05:00
Andrew Tridgell
d55ab321b2 r12085: 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
(This used to be commit afccf73ecf)
2007-10-10 13:47:07 -05:00
Andrew Tridgell
08377f458e r12084: added a comment on what is appropriate for parameter_control
(This used to be commit 040d798a88)
2007-10-10 13:47:06 -05:00
Stefan Metzmacher
7416dd1889 r12022: add NBTD IRPC proxy calls for wins challenge and wins release demand,
used for replication conflicts

metze
(This used to be commit d7d14cb2bd)
2007-10-10 13:47:00 -05:00
Andrew Tridgell
f4edfc21e5 r12016: fixed a valgrind error
(This used to be commit 482548031e)
2007-10-10 13:47:00 -05:00
Andrew Tridgell
f5ed8cc829 r12010: - added support for domain specific SID codes in SDDL strings
- added a bunch more tests to LOCAL-SDDL (all the ones from our schema)

- fixed 'mixed coded declarations' bug
(This used to be commit c30e7698e8)
2007-10-10 13:46:59 -05:00
Andrew Tridgell
c6f954f116 r12004: added some SEC_ADS_* security flags. Needed for a SDDL parser.
(This used to be commit dc1b83cc13)
2007-10-10 13:46:58 -05:00
Rafal Szczesniak
3584f2cac1 r12001: Replace smbcli_full_connection call with composite connect used
in sync version. This step makes it easer to move further to async
dcerpc connect routine.

rafal
(This used to be commit 87b016d553)
2007-10-10 13:46:57 -05:00
Andrew Tridgell
6615907b94 r11980: ronnie worked out that opcode 0xb in SMB2 is in fact ioctl, and that
it only appeared to be like a SMBtrans request as it was being called
with function 0x11c017 which is "named pipe read write"

I wonder if this means we could do DCE/RPC over SMB using ntioctl
calls as well?
(This used to be commit f2b8857797)
2007-10-10 13:46:53 -05:00
Stefan Metzmacher
fd18ab334a r11973: make it easier to find bugs
metze
(This used to be commit 247f90c28d)
2007-10-10 13:46:53 -05:00
Andrew Tridgell
36a5e35353 r11970: fixed a valgrind error. The auth info from the alter_context reply was
being freed before being given to gensec_update()
(This used to be commit cf2cb4279e)
2007-10-10 13:46:52 -05:00
Andrew Tridgell
2f74901802 r11891: - added pipe_flags field in smb2_trans
- while running dcerpc over SMB2, the server will occasionally send us
  a oh-so-useful STATUS_PENDING result meaning "I don't have a result
  for you yet, but I'm working on it". These can be discarded :-)
(This used to be commit 24588a9c49)
2007-10-10 13:46:42 -05:00
Andrew Tridgell
ced449b016 r11889: added support for dcerpc ncacn_np over SMB2. You use it by giving the
flag 'smb2' in the dcerpc binding string. This gives a pretty good
test to the new SMB2 trans call.
(This used to be commit f99bef585d)
2007-10-10 13:46:42 -05:00
Andrew Tridgell
e3e066fcb4 r11872: another attempt at fixing the data_blob_free in async dcerpc bind,
after volker gently pointed out that I should be wearing a paper bag
over my head for the last attempt :-)
(This used to be commit 7e132761fc)
2007-10-10 13:46:39 -05:00
Andrew Tridgell
090898de71 r11871: fixed a problem volker found with the async bind code, and a callback
destroying the dcerpc pipe
(This used to be commit 0b91602fa4)
2007-10-10 13:46:39 -05:00
Volker Lendecke
35741ad8b1 r11835: Restore comments
(This used to be commit 94591bdb65)
2007-10-10 13:46:36 -05:00
Andrew Tridgell
0df8dcb7c9 r11824: fixed a valgrind error in the dcerpc_smb code
(This used to be commit 128b5ea7b3)
2007-10-10 13:46:34 -05:00
Andrew Tridgell
11e9b40f13 r11819: simplified the async rpc bind code a little.
- removed the struct dcerpc_request_state as all the state
   information is already available on the dcerpc_pipe structure, so just
   use that

 - added a single dcerpc_recv_data() handler for receiving packets
   from the transport layer. This then does the initial decoding of
   the dcerpc packet, and then looks at the packet type in order to
   work out who to dispatch it to. This should allow in-flight async
   rpc requests to still work while a new bind or alter context is
   happening

 - ensure that if the transport indicates the connection is dead that
   any in-flight bind or alter context requests are given an error

 - removed full_request_private and instead use separate bind_private
   and alter_private pointers

 - added a few comments for some bits I found hard to understand
(This used to be commit 938e372bff)
2007-10-10 13:46:33 -05:00
Andrew Tridgell
38d540e9fe r11817: fixed the problem with the RPC join tests. The problem was that
revision 11809 had removed the change to the session key function
after authentication succeeds.
(This used to be commit c04c78d617)
2007-10-10 13:46:33 -05:00
Andrew Tridgell
b495bb246c r11816: this fixes some of the problems with the recent async rpc changes and
ncacn_ip_tcp/ncalrpc. The problem was that svn revision 11809 removed
the logic that forced the CONNECT auth type for authenticated binds
which don't have an explicit SIGN or SEAL flag set.
(This used to be commit e7a1f11e8b)
2007-10-10 13:46:32 -05:00
Volker Lendecke
a6852523d6 r11812: Convert winbind to the async bind routines. Also remove tridge's hack for the
winbind "bug" :-)

Volker
(This used to be commit fb9a3c7ef3)
2007-10-10 13:46:32 -05:00
Volker Lendecke
02aba4c339 r11810: Fix talloc hierarchy
(This used to be commit e1bf1c326f)
2007-10-10 13:46:31 -05:00
Volker Lendecke
f2dedc629c r11809: Make dcerpc_bind_auth async.
This also removes dcerpc_bind_auth_password, the only user of
dcerpc_bind_auth. And this was not only passwords anyway.

Andrew Bartlett, as usual: Please take a close look.

Thanks,

Volker
(This used to be commit 2ff2dae3d0)
2007-10-10 13:46:31 -05:00
Volker Lendecke
b03f5c4478 r11807: Make dcerpc_alter_context async. Same thing: Please look at this
closely. Survives RPC-ALTERCONTEXT.

Volker
(This used to be commit 1875c4808f)
2007-10-10 13:46:31 -05:00
Volker Lendecke
957869d2f4 r11806: Minor cleanup
(This used to be commit e75080b26d)
2007-10-10 13:46:30 -05:00
Volker Lendecke
82b4335dd2 r11805: dcerpc_bind_auth is only used in dcerpc_bind_auth_password
(This used to be commit 16bc6b64f9)
2007-10-10 13:46:30 -05:00
Volker Lendecke
46685f3e20 r11804: Asyncify the anonymous bind, convert the calls in xplogin.c.
Tridge et al, please take a close look at this. It survives my basic rpc-login
test as well as rpc-lsa, but this is critical I think.

Volker
(This used to be commit bf1a55f44c)
2007-10-10 13:46:30 -05:00
Stefan Metzmacher
ab33c314a4 r11783: - make the VIUD field in smbsrv_session 64bit, as SMB2 needs it
- add an idtree_limit to limit the max VUID we give the clients
  it's UINT16_MAX (0xffff) for the SMB protocol
- add auth_time to the smbsrv_session statistics
- use the session_info as marker for finished and non-finished
  session setups

metze
(This used to be commit 7eb10048b2)
2007-10-10 13:46:26 -05:00
Stefan Metzmacher
3f968be9d5 r11782: - make the TID 32bit in the smbsrv_tcon structure, as SMB2 uses
them
- add a idtree_limit to the tcons substructure of smbsrv_connection
  this controls what the highest TID is we give away to the client
  it's UINT16_MAX (0xFFFF) for the SMB protocol

metze
(This used to be commit f3bf5a2c09)
2007-10-10 13:46:26 -05:00
Stefan Metzmacher
509be8d902 r11781: rename tree to tcons to match the sessions substructure of smbsrv_connection
metze
(This used to be commit acd3e644e0)
2007-10-10 13:46:26 -05:00
Andrew Tridgell
614950aed3 r11713: separate out the setting of the fde in the packet context from the
enabling of packet serialisation
(This used to be commit 6a47cd65a8)
2007-10-10 13:46:17 -05:00
Stefan Metzmacher
1598aaca95 r11676: as tridge uses 0x%llx in his latest commits...
try to use it every where and see how portable it is

metze
(This used to be commit 66a94de5dd)
2007-10-10 13:46:12 -05:00
Andrew Tridgell
79b3a3afb5 r11627: give the caller much more control over the stream to packet process,
allowing it to specify the initial read size (thus preventing
over-reading) and to stop the recv process when needed. This is used
by the dcerpc socket code, which relies on not getting packets when it
isn't ready for them
(This used to be commit f869fd674e)
2007-10-10 13:46:01 -05:00
Andrew Tridgell
f3d66f310f r11623: convert the dcerpc socket layer to the generic packet code
(This used to be commit 4ea66e6e80)
2007-10-10 13:46:00 -05:00
Volker Lendecke
687dea8de6 r11516: Fix a valgrind bug I introduce with queued requests
(This used to be commit 3e4ab756f4)
2007-10-10 13:45:47 -05:00
Volker Lendecke
baff088fed r11515: Add some talloc_get_type
(This used to be commit 558c29971d)
2007-10-10 13:45:46 -05:00
Andrew Bartlett
794386e5c4 r11497: Don't name parameters 'floor'. Rename fl and floor to epm_floor for
consistancy.

Andrew Bartlett
(This used to be commit 8787eb982f)
2007-10-10 13:45:45 -05:00
Volker Lendecke
66d3ee9ccb r11473: Based on work by Jelmer, implement the [async] flag for rpc requests. If it's
not there (it's not yet on *any* call... :-)), the rpc client strictly
sequences calls to an rpc pipe. Might need some more work on the exact
sequencing semantics when a pipe with both sync and async calls is actually
deployed, but I want it in for winbind simplification.

Volker
(This used to be commit b8f324e4f0)
2007-10-10 13:45:41 -05:00
Andrew Tridgell
e8c23e4e2d r11457: fixed the winreg IDL and torture code so key and value enumerations
work again. The automatic value() is fine for the length, but cannot
be used for the size as the size is not the number of bytes being
sent, but the number of bytes that the server is allowed to use in the
reply
(This used to be commit 46e91f269c)
2007-10-10 13:45:39 -05:00
Andrew Bartlett
d0375cfd43 r11438: Move enum samr_RejectReason into misc.idl so I can use it in a global
prototype.

Andrew Bartlett
(This used to be commit a3abffc758)
2007-10-10 13:45:37 -05:00
Andrew Bartlett
56b4e4b62c r11402: In response to comments by volker, expand our Netlogon DsRGetDCName
IDL and testsuites.  The server-side of this remains a stub, we should
probably be doing ldb searches for the server reference record.

Andrew Bartlett
(This used to be commit 0141ed309a)
2007-10-10 13:45:31 -05:00
Jelmer Vernooij
93fd08168f r11377: Add support for building LIBRARY elements as shared libraries:
- Adds -rpath bin/ so you don't have to install Samba in order to use compiled binaries.
 - Writes out pkg-config files when building shared libs
 - Supports automatic fallback to MERGEDOBJ (which is the default) or
   OBJ_LIST (if ld -r is not supported)

Building with shared libs reduces the size of the Samba binaries from
197 Mb to 60 Mb (including libraries) on my system (GCC4, with debugging).

To build with shared libraries support enabled, run:

LIBRARY_OUTPUT_TYPE=SHARED_LIBRARY ./config.status

init functions don't get called correctly yet when using shared libs, so
you won't be able to actually run anything with success :-)

Once init functions are done, I'll look at support for loading shared
modules once again.

Based on a patch by Peter Novodvorsky (nidd on IRC).
(This used to be commit 0b54405685)
2007-10-10 13:45:28 -05:00
Andrew Bartlett
4378c3c9cc r11373: Handle an apparent alias in NBT ntlogin replies.
Andrew Bartlett
(This used to be commit 51d55d2211)
2007-10-10 13:45:28 -05:00
Tim Potter
b0dd4140c5 r11362: Remove attempt to decode uint8 array as a security descriptor. Pidl thinks
that because it is an array, the import should also be an array, i.e of
security descriptors.
(This used to be commit fb313c19c6)
2007-10-10 13:45:25 -05:00
Andrew Bartlett
56576de528 r11352: Add newly discovered (via the radiator lists) flags for controlling
plaintext and machine account logins.

Update tests to confirm this behaviour.

Andrew Bartlett
(This used to be commit a0ed41d379)
2007-10-10 13:45:22 -05:00
Tim Potter
1fb7a5348b r11318: Tweak import statement for decoding KeySecurityData as a NT security
descriptor in ethereal.
(This used to be commit 5af1b6df0a)
2007-10-10 13:45:19 -05:00
Jelmer Vernooij
8ee1ee66ed r11303: Support defining and installing public headers for libraries.
Support installing libraries.
Get rid of pkg-config file (will be autogenerated later on).
(This used to be commit b4745032a2)
2007-10-10 13:45:16 -05:00
Andrew Bartlett
c6f8330098 r11288: Fill out LSA LookupNames4 and LookupSids3, including a server-side
implementation.

Andrew Bartlett
(This used to be commit a6a615cc99)
2007-10-10 13:45:14 -05:00
Tim Potter
79b667eda9 r11262: Try to get the equivalent of a subcontext in pidl ethereal conformance
files working.  It doesn't quite work though.  (-:

This patch also allows a struct.field format to be used in an IMPORT
statement instead of a type name.

Jelmer, what do you think?
(This used to be commit d770f85347)
2007-10-10 13:45:10 -05:00
Tim Potter
9759d435ca r11261: Rename access_required field in winreg idl to access_mask so it matches
the other interfaces.
(This used to be commit 8eb582b578)
2007-10-10 13:45:09 -05:00
Tim Potter
a1444159a9 r11260: Delete a leftover scons file.
(This used to be commit 7b750a785b)
2007-10-10 13:45:09 -05:00
Tim Potter
f501b04a6c r11259: Map system_name and handle fields to new hf fields.
(This used to be commit 9be707bc4d)
2007-10-10 13:45:09 -05:00
Tim Potter
da55f56b8c r11258: Dissect all access_required fields as hex using the same hf.
(This used to be commit 4365462dc6)
2007-10-10 13:45:09 -05:00
Jelmer Vernooij
4c5a4a7e02 r11244: Relative path names in .mk files
(This used to be commit 24e1030090)
2007-10-10 13:45:06 -05:00
Jelmer Vernooij
568dd26ac7 r11243: length and size can now be filled in automatically.
(This used to be commit 99444c129d)
2007-10-10 13:45:06 -05:00
Stefan Metzmacher
c1113796eb r11187: in case the msDS-KeyVersionNumber is replicated (I didn't assume this...)
show the string in the debug output, and show it with
--option="dssync:print_pwd_blobs=yes"

metze
(This used to be commit 98c1e8e3df)
2007-10-10 13:44:58 -05:00
Stefan Metzmacher
b47e656927 r11185: - resolve attid for "supplementalCredentials" into a name
- print "supplementalCredentials" also when --option="dssync:print_pwd_blobs=yes"
  is used

abartlet: this field may contain the krb5 keys...

metze
(This used to be commit 26c69348ca)
2007-10-10 13:44:57 -05:00
Stefan Metzmacher
ba97ac6b96 r11179: revert to the old code, till jelmer find a solution how to
handle a UTF16 string in a uint8 array

metze
(This used to be commit d13315f3b1)
2007-10-10 13:44:56 -05:00
Jelmer Vernooij
087dd76232 r11141: Re-add paranoid string terminator check
(This used to be commit 55805b5ed9)
2007-10-10 13:44:54 -05:00
Jelmer Vernooij
31ffec1d41 r11107: Include 0 byte
(This used to be commit 407df9628e)
2007-10-10 13:44:50 -05:00
Jelmer Vernooij
f598135c6b r11105: Warn if conformant arrays are not at the end of a struct
Support conformant [string] arrays
Eliminate utf8string

This breaks xattr binary compatibility with previous versions - is that a
problem?
(This used to be commit 7596c708ba)
2007-10-10 13:44:50 -05:00
Jelmer Vernooij
dc36f29476 r11104: Fix LOCAL-PAC test
(This used to be commit 22d0e4a9bf)
2007-10-10 13:44:50 -05:00
Jelmer Vernooij
ec6973747a r11103: Eliminate ascstr
(This used to be commit c8a0511f37)
2007-10-10 13:44:50 -05:00
Jelmer Vernooij
3f3388a564 r11102: Remove unistr_noterm
(This used to be commit bb1ed44f45)
2007-10-10 13:44:49 -05:00
Jelmer Vernooij
9fe24f4e9c r11101: Remove last instances of unistr
(This used to be commit 7e057e6bda)
2007-10-10 13:44:49 -05:00
Jelmer Vernooij
98800eb41e r11100: Replace unistr with [string,charset(UTF16)]
(This used to be commit 48f45927ce)
2007-10-10 13:44:49 -05:00
Jelmer Vernooij
8d036f304e r11099: Replace unistr with [string] equivalent
(This used to be commit 6a8291c80e)
2007-10-10 13:44:49 -05:00
Jelmer Vernooij
a0f6e35c1f r11098: Replace string with [string]
(This used to be commit 1ac8c96349)
2007-10-10 13:44:49 -05:00
Jelmer Vernooij
68d82998d2 r11096: Eliminate pointer_default_top()
(This used to be commit b773d848e8)
2007-10-10 13:44:48 -05:00
Stefan Metzmacher
cffd522b5c r11052: bring samba4 uptodate with the samba4-winsrepl branch,
before the bad merge

metze
(This used to be commit 471c0ca4ab)
2007-10-10 13:44:43 -05:00
Stefan Metzmacher
2ecb46d595 r11037:
(This used to be commit 6913e33840)
2007-10-10 13:42:33 -05:00
Stefan Metzmacher
fccbbf3546 r10997: r11980@SERNOX (orig r10037): metze | 2005-09-05 14:21:40 +0200
add struct nbt_peer_socket and use it instead of passing const char *addr, uint16 port everyhwere

 (tridge: can you review this please, (make test works)

 metze
(This used to be commit a599d7a4ae)
2007-10-10 13:39:52 -05:00
Stefan Metzmacher
2b14137167 r10984: fix valgrind warnings, I had used that to check if w2k3 accept random values here,
as w2k generates also random stuff here

metze
(This used to be commit e04c78e4e9)
2007-10-10 13:39:50 -05:00
Stefan Metzmacher
3dfe8c22b8 r10873: check the complete payload header
metze
(This used to be commit 27f8d82231)
2007-10-10 13:39:39 -05:00
Stefan Metzmacher
b2490bb98d r10872: fix the length of the dummy XPRESS decompressed buffer
metze
(This used to be commit 0a1e4498a3)
2007-10-10 13:39:38 -05:00
Stefan Metzmacher
2f115473bf r10870: decompress DsGetNCChangesCtr7 replies, that uses type 2 (MSZIP)
compression

metze
(This used to be commit b451137526)
2007-10-10 13:39:38 -05:00
Stefan Metzmacher
0e65d30bb7 r10869: add dummy functions and dummy parsing of XPRESS decompression,
this is the compression algorithm used by w2k3 for DsGetNCChanges().

This algorithm isn't known yet, but it seems to be some sort of Lempel-Ziv
algorithm.

metze
(This used to be commit 694252b6e0)
2007-10-10 13:39:38 -05:00
Stefan Metzmacher
b94fcbd306 r10868: make flag(NDR_PAHEX) possible to use and show the union level in hex
metze
(This used to be commit 7efb92adc0)
2007-10-10 13:39:38 -05:00
Jelmer Vernooij
c7ace9b8ea r10839: Add some [ref] (required for ethereal and Samba3 parser generators)
(This used to be commit 5556deee30)
2007-10-10 13:39:34 -05:00
Andrew Tridgell
3a7e251f27 r10705: fixed a crash bug in the getdcname irpc server for winbind. The
problem was that the return string was declared as:

	[out] astring dcname

which means "this is a non-NULL string". The server code sometimes
returned NULL however (on getdc lookup failure), which caused the NDR
marshalling code to crash. When you declare a non-pointer return value
you are promising that the value can never be NULL.

The trivial fix is to use:

	[out] astring *dcname

which leaves the API alone, but includes a pointer in the wire format,
which in turn means it is valid to send a NULL string as a response.
(This used to be commit e39bac6196)
2007-10-10 13:39:22 -05:00
Andrew Tridgell
a872005c1c r10699: fixed the dcerpc code so that you can shutdown the pipe safely from
within a callback on the pipe. This should fix a problem volker
encountered with winbind. The fix invoolves making the recv_data
handler free the memory for a packet, instead of having the transport
layer free it after calling recv_data. When the transport layer freed
it, it had no way of knowing if the callback had shutdown the pipe, so
it had no way of knowing if it could safely use the pointer.

Also changed the pipe shutdown hook for the smb transport to use an
async SMB close. This ensures that when you shutdown the pipe, you
don't block waiting for the server to ack the close of the pipe fnum.
(This used to be commit c87d7f580e)
2007-10-10 13:39:21 -05:00
Volker Lendecke
e5c6a3e361 r10683: Samba3's wbinfo -t should give the correct answer now.
Tridge, if you have time, you might want to look at the segfault I was still
seeing. Now I store the handle to the netlogon pipe in the global winbind
state and free it on the next entry into check_machacc. The problem seems to
be that talloc_free()ing a pipe struct from within a callback function on that
pipe is not possible. I think I can live with that, but it has been not really
obvious. To reproduce the segfault you might want to look at putting a
talloc_free(state->getcreds->out.netlogon) into
wbsrv_samba3_check_machacc_receive_creds. This is called from a dcerpc
callback function.

In particular if the check failed it would be nice if I could delete the pipe
directly and not post a different event to some winbind queue.

I tried to delete the pipe from a timed event triggered immediately, but this
also fails because the inner loop seems to hit the same event again, calling
it twice.

Volker
(This used to be commit 5436d77648)
2007-10-10 13:39:18 -05:00
Volker Lendecke
aea73c168b r10681: Convert dcerpc_open_smb to a composite function.
Volker
(This used to be commit 42ff218ac9)
2007-10-10 13:39:18 -05:00
Stefan Metzmacher
7368af9e74 r10653: give unknown levels a name basicly the *2 levels mean
that the update or inform should be propagaded to all servers

metze
(This used to be commit 33c7c101c0)
2007-10-10 13:39:15 -05:00
Stefan Metzmacher
f1c5227078 r10637: use the correct memory context in the ndr_pull_* function
to build the talloc hierachie correct

metze
(This used to be commit afd9dda577)
2007-10-10 13:39:14 -05:00
Stefan Metzmacher
c2d7914428 r10627: - use a wrepl specific enum for the node type
- the unknown flag 0x10 seems to mean that this name was localy registered on this
  currently asked server, that flag is not present in replica records

metze
(This used to be commit ba3685c41d)
2007-10-10 13:39:13 -05:00
Stefan Metzmacher
c91fa5c504 r10610: forgot one file in the last commit:
make wrepl_nbt_name a scalar type that is another
wire representation of struct nbt_name

give wrepl_name->flags a meaning

metze
(This used to be commit 5fa13d6c2b)
2007-10-10 13:39:12 -05:00
Jelmer Vernooij
5058f4b9e8 r10586: Add MergedObject() builder. Default to Library() rather
then StaticLibrary()
(This used to be commit b53313dc51)
2007-10-10 13:39:08 -05:00
Volker Lendecke
9593101ec1 r10491: First step towards wbinfo -t: This issues a name request for the primary
domain and gets the DC's name via a mailslot call.

Metze, I renamed wbsrv_queue_reply to wbsrv_send_reply in accordance with
irpc_send_reply. Having _queue_ here and _send_ there is a bit confusing. And
as everything is async anyway, the semantics should not be too much of a
problem.

Volker
(This used to be commit 4637964b19)
2007-10-10 13:38:54 -05:00