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

1406 Commits

Author SHA1 Message Date
Stefan Metzmacher
29f03c418e r14842: fix parsing of NetDiskEnum replies
metze
(This used to be commit c1cc1e8dd7)
2007-10-10 13:59:41 -05:00
Tim Potter
69c5cd509b r14836: Keep constants in the right order, and line things up nicely.
(This used to be commit 9c11c1ac2a)
2007-10-10 13:59:24 -05:00
Stefan Metzmacher
316269a075 r14739: keep the last request time for the smbsrv_connection,
smbsrv_session and smbsrv_tcon for management tools

metze
(This used to be commit 2c87f210e9)
2007-10-10 13:59:18 -05:00
Jelmer Vernooij
42da534d66 r14735: Use dcerpc_syntax_id rather then seperate GUID + if_version everywhere
(This used to be commit a316b33057)
2007-10-10 13:59:17 -05:00
Jelmer Vernooij
935af3eb19 r14724: Rearrange some source files, install more headers.
(This used to be commit 7146c1600f)
2007-10-10 13:59:14 -05:00
Jelmer Vernooij
e70eae2b4c r14721: Fix a couple of warnings.
(This used to be commit 426ac78108)
2007-10-10 13:59:13 -05:00
Andrew Bartlett
ff57359761 r14715: Correct the definition of the DCE/RPC bind_nak, per the OpenGroup spec.
This allows us to correctly parse the bind_nak from NT4, when we use
an invalid auth type (the unsupported SPNEGO)..

Andrew Bartlett
(This used to be commit ce0c7f86fd)
2007-10-10 13:59:12 -05:00
Andrew Bartlett
57589e3b67 r14714: On DCE/RPC, we need the name of the remote server used on the socket,
for Kerberos.  It must be the full name contacted, not the 'called
name' we might want to use for \\server things, so add another function.

Andrew Bartlett
(This used to be commit 6d57d1dbb7)
2007-10-10 13:59:12 -05:00
Andrew Bartlett
3451ba729d r14708: Add a (bogus) UUID and a comment to the PAC defintion.
Andrew Bartlett
(This used to be commit 0ce6513e34)
2007-10-10 13:59:11 -05:00
Stefan Metzmacher
4a3b6ac49f r14642: fix shadow warnings
metze
(This used to be commit 09850fd133)
2007-10-10 13:59:04 -05:00
Stefan Metzmacher
f2b2c91e16 r14639: the platform id is 32 bit...
this worked before as there's always a pointer following that is aligned to 4 byte

metze
(This used to be commit e90a67ad39)
2007-10-10 13:59:03 -05:00
Andrew Tridgell
3434cd778c r14616: added notify change support to the posix backend
It doesn't fully work yet, and doesn't yet have all the efficiency
that is planned, but it doesn't break anything and I wanted to get the
code in the tree to minimise the chance of collisions with the work
metze is doing.
(This used to be commit 1624ea88e6)
2007-10-10 13:59:02 -05:00
Jelmer Vernooij
dab516d3e7 r14603: Fix building of ejs modules as shared libs
Fix calling of ejs_exception() without requiring --export-dynamic
(This used to be commit 8575e9a490)
2007-10-10 13:58:59 -05:00
Jelmer Vernooij
508f2f5506 r14594: Fix some dependencies (required for shared library build)
(This used to be commit 06f7a8c692)
2007-10-10 13:58:58 -05:00
Jelmer Vernooij
184955ffd7 r14572: Give libraries saner names, remove some .pc files, make some things
subsystems in case a library doesn't make sense.
(This used to be commit ed382873fd)
2007-10-10 13:58:49 -05:00
Jelmer Vernooij
8e8f3b2c21 r14544: Remove exchange-specific files.
(This used to be commit 4ae0a28b2e)
2007-10-10 13:58:42 -05:00
Jelmer Vernooij
35349a58df r14542: Remove librpc, libndr and libnbt from includes.h
(This used to be commit 51b4270513)
2007-10-10 13:58:42 -05:00
Jelmer Vernooij
5b0051e032 r14511: Install more headers
(This used to be commit e1f896948f)
2007-10-10 13:57:35 -05:00
Jelmer Vernooij
2f65012d3d r14500: Make some more functions public
(This used to be commit 867fc48922)
2007-10-10 13:57:34 -05:00
Jelmer Vernooij
5c79bbadd5 r14497: Fix build with shared libraries
(This used to be commit c74fc55831)
2007-10-10 13:57:34 -05:00
Jelmer Vernooij
b785a7c40c r14492: Fix shared libs - set SO_VERSION to 0 everywhere for now.
(This used to be commit 4682bc5ce0)
2007-10-10 13:57:32 -05:00
Jelmer Vernooij
ecf0dd6baf r14488: Install more headers.
Generate different #include lines in pidl depending on whether
we're building inside or outside of the Samba tree (useful for
3rd-party projects).
(This used to be commit 0c18883315)
2007-10-10 13:57:32 -05:00
Jelmer Vernooij
83d8fd3dcf r14484: Install more headers
(This used to be commit 430c6516d3)
2007-10-10 13:57:31 -05:00
Jelmer Vernooij
71b4fd9792 r14477: Remove the NOPROTO property - it's no longer used as proto.h is gone.
(This used to be commit 9c37f847d3)
2007-10-10 13:57:30 -05:00
Jelmer Vernooij
4f1c8daa36 r14470: Remove some unnecessary headers.
(This used to be commit f7312dab3b)
2007-10-10 13:57:29 -05:00
Jelmer Vernooij
8528016978 r14464: Don't include ndr_BASENAME.h files unless strictly required, instead
try to include just the BASENAME.h files (containing only structs)
(This used to be commit 3dd477ca51)
2007-10-10 13:57:27 -05:00
Jelmer Vernooij
1060f6b3f6 r14402: Generate seperate headers for RPC client functions.
(This used to be commit 7054ebf024)
2007-10-10 13:57:19 -05:00
Jelmer Vernooij
e5ea1d3691 r14384: Remove orpc code from includes.h
(This used to be commit 206d182cfb)
2007-10-10 13:57:17 -05:00
Jelmer Vernooij
61933e159c r14381: Kill structs.h
(This used to be commit 1ffb82a759)
2007-10-10 13:57:17 -05:00
Jelmer Vernooij
e3f2414cf9 r14380: Reduce the size of structs.h
(This used to be commit 1a16a6f1df)
2007-10-10 13:57:16 -05:00
Jelmer Vernooij
3f16241a1d r14363: Remove credentials.h from the global includes.
(This used to be commit 98c4c30513)
2007-10-10 13:57:14 -05:00
Jelmer Vernooij
227a789351 r14362: Only include ndr_compression.h when necessary.
(This used to be commit 4fced6dbbd)
2007-10-10 13:57:14 -05:00
Jelmer Vernooij
9865048bf4 r14361: Support 'helper' attribute in pidl and use it.
Remove some headers from include/includes.h (they're now only included
in the file they are used)
(This used to be commit 7213b7498e)
2007-10-10 13:57:14 -05:00
Jelmer Vernooij
7a121583b4 r14349: Kill proto.h!
Prototypes are now spread over multiple headers, usually one per subsystem.
This change is required to allow proper header dependencies later on,
without recompiling Samba each time the mtime of any source file changes.
(This used to be commit 3da79bf909)
2007-10-10 13:57:14 -05:00
Jelmer Vernooij
e153a8099e r14327: Replace MAJOR_VERSION/MINOR_VERSION/RELEASE_VERSION with two parameters:
- VERSION: should contain the current version. Will be made part of the filename.
 - SO_VERSION: should contain the latest version that this on is compatible to. Will be used for setting the soname of the shared library.

Fix sonames and use them on platforms that support them
Remove symlinking code. ldconfig will take care of creating the symlinks now
that we set the soname.
(This used to be commit 7871b07e21)
2007-10-10 13:57:12 -05:00
Andrew Tridgell
18a050b870 r14311: canon needs to be initialised
(This used to be commit d1d94d69e1)
2007-10-10 13:57:11 -05:00
Andrew Tridgell
65238dc940 r14310: length needs to be initialised
(This used to be commit 20d7f2ae35)
2007-10-10 13:57:10 -05:00
Stefan Metzmacher
a1b295ed48 r14256: - rename smb_file -> smb_handle
- move it into the in/out substructs again
- allow file.path only on smb_fileinfo/smb_setfileinfo

metze
(This used to be commit be6d5298a2)
2007-10-10 13:57:06 -05:00
Rafal Szczesniak
ac574aafc9 r14238: This is not needed anymore, as the state structure is zeroed
right after allocation.

rafal
(This used to be commit 87b31c51bb)
2007-10-10 13:57:05 -05:00
Rafal Szczesniak
be6c9f9a4e r14211: More comments.
rafal
(This used to be commit 9035de56a8)
2007-10-10 13:57:04 -05:00
Rafal Szczesniak
228abc9624 r14210: 1) Fix an issue with composite context when null event context
is passed to dcerpc_epm_map_binding_send.

2) Replace old dcerpc_epm_map_binding with the new function
   based on async code, as the above problem is fixed.

rafal
(This used to be commit 85ecb07ab5)
2007-10-10 13:57:04 -05:00
Andrew Tridgell
7f0c7702f6 r14208: removed use of req->flags2 inside the ntvfs layer. This should help
metze on his quest to unify the ntvfs strucures for the smb and smb2
servers. The only place we needed flags2 inside ntvfs was for the
FLAGS2_READ_PERMIT_EXECUTE bit, which only affects readx, so I added a
readx.in.read_for_execute flag instead.
(This used to be commit b78abbbce6)
2007-10-10 13:57:03 -05:00
Stefan Metzmacher
32b0bb64bc r14205: move smb specific stuff out of includes.h (finally!!!:-)
all this changes really help ccache to speed up the samba4 build:-)

metze
(This used to be commit 180a79d103)
2007-10-10 13:57:03 -05:00
Rafal Szczesniak
beb9d4f794 r14175: More comments and my copyright.
rafal
(This used to be commit 384d97e0b2)
2007-10-10 13:56:58 -05:00
Stefan Metzmacher
307e43bb56 r14173: change smb interface structures to always use
a union smb_file, to abtract
- const char *path fot qpathinfo and setpathinfo
- uint16_t fnum for SMB
- smb2_handle handle for SMB2

the idea is to later add a struct ntvfs_handle *ntvfs
so that the ntvfs subsystem don't need to know the difference between SMB and SMB2

metze
(This used to be commit 2ef3f59709)
2007-10-10 13:56:57 -05:00
Stefan Metzmacher
2b3767b1fe r14172: composite_is_ok(c) destroys c, when the status isn't ok.
so we need to return directly.

metze
(This used to be commit fba4229e56)
2007-10-10 13:56:57 -05:00
Rafal Szczesniak
3452e89999 r14165: More comments and my copyright.
rafal
(This used to be commit 6b94e81e5a)
2007-10-10 13:56:57 -05:00
Rafal Szczesniak
91b30e8cd3 r14164: More comments.
rafal
(This used to be commit 8582d6dfc5)
2007-10-10 13:56:57 -05:00
Rafal Szczesniak
f3fc42eb7e r14143: Replace old function with equivalent based on new async code.
rafal
(This used to be commit 036d35ff17)
2007-10-10 13:56:55 -05:00
Stefan Metzmacher
53bbace785 r14137: move **p2 to the _recv function for setup the second pipe
metze
(This used to be commit 8b8d92beed)
2007-10-10 13:56:53 -05:00
Rafal Szczesniak
5e5953a4af r14136: Fix bug causing segfaults in certain circumstances (gcc3.x among
others, probably). Funny thing, it didn't segfault on my laptop
and gcc4...

rafal
(This used to be commit 9e3321130e)
2007-10-10 13:56:53 -05:00
Rafal Szczesniak
716798c06f r14125: Fix incorrect declaration caught on build farm.
rafal
(This used to be commit 93358e7d9e)
2007-10-10 13:56:53 -05:00
Rafal Szczesniak
a1f08df37c r14123: Huge lump of code making all of our dcerpc connect code
asynchronous. Build is ok, and so are the tests.
More comments to follow.

rafal
(This used to be commit a74fb6c5a2)
2007-10-10 13:56:52 -05:00
Stefan Metzmacher
dabc0b4116 r14120: make the rpc client code also libraries
metze
(This used to be commit 7f32fd0881)
2007-10-10 13:56:52 -05:00
Stefan Metzmacher
429a23c48d r14110: make ndr interface parsing code libraries,
so it will not included in multiple modules or binaries

metze
(This used to be commit 13c1059747)
2007-10-10 13:56:52 -05:00
Jelmer Vernooij
c6519ad9c0 r14109: Modulify the smbcalls subsystem.
(This used to be commit d538eac9db)
2007-10-10 13:56:51 -05:00
Günther Deschner
2fe65142c2 r14055: merge from samba3. add ACB_NO_AUTH_DATA_REQD, this has been verified
although not automatically tested in smbtorture right now.

Guenther
(This used to be commit 46e191cfa5)
2007-10-10 13:52:38 -05:00
Jelmer Vernooij
ceb6e9717b r13960: Generate makefile rules for installing/removing shared modules.
(This used to be commit 2c74698032)
2007-10-10 13:52:32 -05:00
Stefan Metzmacher
ebea5caed7 r13929: fix dependencies
metze
(This used to be commit 45fc905d83)
2007-10-10 13:52:27 -05:00
Stefan Metzmacher
a4ecda6b50 r13927: fix dependency
metze
(This used to be commit 2cb0327528)
2007-10-10 13:52:27 -05:00
Stefan Metzmacher
0350f6f060 r13925: fix dependencies
metze
(This used to be commit 9dad1fb7bb)
2007-10-10 13:52:26 -05:00
Jelmer Vernooij
4ac2be9958 r13924: Split more prototypes out of include/proto.h + initial work on header
file dependencies
(This used to be commit 1228358767)
2007-10-10 13:52:24 -05:00
Andrew Bartlett
4d024e6e64 r13908: Improve the RPC-SAMSYNC test to cross-check some attributes I wasn't
sure about.

This finds a new ACB_PW_EXPIRED attribute.

Andrew Bartlett
(This used to be commit 54caf94942)
2007-10-10 13:52:22 -05:00
Jelmer Vernooij
c71c86c524 r13842: Make some more functions public.
(This used to be commit aac1b99b36)
2007-10-10 13:52:15 -05:00
Jelmer Vernooij
af30a32b69 r13840: Mark some functions as public.
(This used to be commit 9a188eb1f4)
2007-10-10 13:52:14 -05:00
Andrew Tridgell
4be3699848 r13741: make the pointer type in pidl handle any size pointer, just in case we
have a 128 bit machine out there somewhere
(This used to be commit 4a1b7580a7)
2007-10-10 13:52:08 -05:00
Andrew Tridgell
40a8d58551 r13739: a fairly major overhaul of the opendb code to allow the BASE-DELETE
test to pass. To try to make the code a bit more understandable, I
moved to using an IDL description of the opendb tdb record format.

One of the larger changes was to make directory opens and creates go
via the opendb code, so directory operations now obey all the share
mode restrictions, as well as delete on close semantics. I also
changed the period over which the opendb locks are held, to try to
minimise races due to two open operations happening at the same time.
(This used to be commit cd2602d057)
2007-10-10 13:52:08 -05:00
Andrew Tridgell
e3e048630b r13738: added support for a "pointer" type in pidl. This will be used in the
opendb work that will be committed shortly.

The pointer type assumes that pointers fit in 64 bits, which is
probably OK on all our supported architectures.
(This used to be commit d2a2057ea5)
2007-10-10 13:52:07 -05:00
Rafal Szczesniak
359ec2b0e0 r13726: Fix indentation.
rafal
(This used to be commit cedaf08170)
2007-10-10 13:52:07 -05:00
Jelmer Vernooij
dfc517b053 r13658: More moving around of files:
- Collect the generic utility functions into a lib/util/ (a la GLib is
		for the GNOME folks)
 - Remove even more files from include/
(This used to be commit ba62880f5b)
2007-10-10 13:52:05 -05:00
Günther Deschner
791d8fd5b6 r13637: Adding more netr_UserFlags.
Guenther
(This used to be commit 3ad84a844c)
2007-10-10 13:52:03 -05:00
Günther Deschner
fd2f09d6ba r13634: Fix typo.
Guenther
(This used to be commit cd569446a1)
2007-10-10 13:52:03 -05:00
Günther Deschner
ecdfe60bca r13633: Adding more SE_GROUP bits and make it a bitmask as well.
Guenther
(This used to be commit 8e93989682)
2007-10-10 13:52:03 -05:00
Günther Deschner
d8d2a3c86f r13632: The "password_properties" is a bitmask as well.
Guenther
(This used to be commit 0d918764b1)
2007-10-10 13:52:03 -05:00
Günther Deschner
fb96456fde r13631: Add DOMAIN_PASSWORD_LOCKOUT_ADMINS (this bit only allows to lockout
Administrator, not Domain Admins in general).

Guenther
(This used to be commit abad44a57d)
2007-10-10 13:52:03 -05:00
Günther Deschner
9c8bbc3f7a r13630: Add new ACB-bits as seen in acct_flags in the PAC info3
(merge from Samba 3).

Guenther
(This used to be commit fa1127c545)
2007-10-10 13:52:02 -05:00
Stefan Metzmacher
e68802a2a6 r13626: fix make test
metze
(This used to be commit 2acf203949)
2007-10-10 13:52:02 -05:00
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