1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

4942 Commits

Author SHA1 Message Date
Jelmer Vernooij
69b51f702a r15207: Introduce PRIVATE_DEPENDENCIES and PUBLIC_DEPENDENCIES as replacement
for REQUIRED_SUBSYSTEMS.
(This used to be commit adc8a019b6da256f104abed1b82bfde6998a2ac9)
2007-10-10 14:04:18 -05:00
Stefan Metzmacher
0bfa0d115c r15076: give the correct return code
metze
(This used to be commit 92a06638126b0565c0aec45862c549ef91e7212b)
2007-10-10 14:04:06 -05:00
Stefan Metzmacher
2e894625e7 r14964: - move sidmap code from ntvfs_common to SAMDB
- make ntvfs_common a library
- create sys_notify library

metze
(This used to be commit a3e1d56cf7b688c515f5d6d4d43e0b24c2261d15)
2007-10-10 14:00:47 -05:00
Stefan Metzmacher
1ac990ddcf r14894: - add some 'const'
- remove sid_active_in_token() was the same as security_token_has_sid()
- rename some functions

metze
(This used to be commit 81390dcda50f53d61e70059fb33014de0d283dc5)
2007-10-10 14:00:12 -05:00
Stefan Metzmacher
5559f5e3e5 r14891: fix a bug found by the ibm checker
the problem was that we shift with <<= (privilege-1)

and we called the function with privilege=0

add some checks to catch invalid privilege values
and hide the mask representation in privilege.c

metze
(This used to be commit a69f000324764bcd4cf420f2ecba1aca788258e4)
2007-10-10 14:00:12 -05:00
Stefan Metzmacher
1af925f394 r14860: create libcli/security/security.h
metze
(This used to be commit 9ec706238c173992dc938d537bdf1103bf519dbf)
2007-10-10 13:59:44 -05:00
Stefan Metzmacher
8cd973decd r14840: - rename some functions
- stack specific functions on top of generic ones

metze
(This used to be commit e391f3c98aae600c5f64d5975dd55567a09c3100)
2007-10-10 13:59:41 -05:00
Jelmer Vernooij
935af3eb19 r14724: Rearrange some source files, install more headers.
(This used to be commit 7146c1600f29c349e5bb78f810e7e170b535dd37)
2007-10-10 13:59:14 -05:00
Andrew Bartlett
7de4a5b135 r14662: To allow the RPC-SAMR test to pass, we need to look for both domains
and the builtinDomain objectClasses, when trying to find domain policies.

Andrew Bartlett
(This used to be commit 9fc1196f0ca0235aa764d4ae770e3c31978396fa)
2007-10-10 13:59:06 -05:00
Andrew Bartlett
0aeb2a50b1 r14637: Extend the ACB -> userParameters flag mapping based on the ovbious connections.
Andrew Bartlett
(This used to be commit 3e9e505e9e5b72dddccb548d17a5f02785d3a2e1)
2007-10-10 13:59:03 -05:00
Jelmer Vernooij
bb1909e15e r14592: Add support for loading shared modules to LDB.
(This used to be commit f10fae23f0685b2d9c6174596e1c66d799f02c52)
2007-10-10 13:58:58 -05:00
Jelmer Vernooij
84f07e56a4 r14570: Move some functions also they are also used from kpasswd
(This used to be commit 89dfb74894c809d69eab05bdb6d5fe4012153808)
2007-10-10 13:58:48 -05:00
Jelmer Vernooij
35349a58df r14542: Remove librpc, libndr and libnbt from includes.h
(This used to be commit 51b4270513752d2eafbe77f9de598de16ef84a1f)
2007-10-10 13:58:42 -05:00
Simo Sorce
16f9685eaf r14465: kludge_acl -> async
(This used to be commit b91b19131814abb4291c0bf7b13149060d6e9e62)
2007-10-10 13:57:28 -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 3dd477ca5147f28a962b8437e2611a8222d706bd)
2007-10-10 13:57:27 -05:00
Simo Sorce
8eb83c809f r14458: extended_dn -> async
(This used to be commit 716c475999fce895392ba774ae9a15b8654334ba)
2007-10-10 13:57:27 -05:00
Stefan Metzmacher
475bbbfa84 r14442: the ACB_ flags are 32 bit...
metze
(This used to be commit a653ebd15da09a7e085338400925a6bbeb3cb316)
2007-10-10 13:57:25 -05:00
Andrew Tridgell
a088c2297d r14426: ensure res is initialised
(This used to be commit ce1326157c7e139a43ab31d4d1e366b78b69e26f)
2007-10-10 13:57:22 -05:00
Andrew Tridgell
66fe18750c r14422: ensure that domain_attrs does not refer to a stack variable in a freed
stack frame. The previous code worked with gcc, but strictly speaking
the arrays are out of scope when referenced later in the function, and
a compiler could construct them on the fly on the stack.
(This used to be commit 489c33806559d0a8ee2bec97fed8ad63a4e1dc17)
2007-10-10 13:57:21 -05:00
Simo Sorce
45933a9828 r14401: Let samldb intercept the async requests.
Samld is NOT yet async itself, but as that module only intercepts
user,groups or foreign principal creation and nothing else we can
accept it not to be asynchronous for now.

Simo.
(This used to be commit 250dac3072c647caf9f301219922007a3a672d93)
2007-10-10 13:57:18 -05:00
Simo Sorce
265f596e50 r14390: the rootdse does not show a distinguishedName attribute
(This used to be commit 179e62d0931b382dc646b90fa8f4d418b2286823)
2007-10-10 13:57:18 -05:00
Simo Sorce
3312888119 r14389: rootdse -> async
(This used to be commit 4d76af63b07fd8fb5ca81ca310b174e253e7e4b1)
2007-10-10 13:57:18 -05:00
Jelmer Vernooij
7651d097b4 r14383: Fix non-developer build.
(This used to be commit f4de155c94b89e586640d11992953a0d5fc0716d)
2007-10-10 13:57:17 -05:00
Jelmer Vernooij
e3f2414cf9 r14380: Reduce the size of structs.h
(This used to be commit 1a16a6f1dfa66499af43a6b88b3ea69a6a75f1fe)
2007-10-10 13:57:16 -05:00
Stefan Metzmacher
2ce73cb6db r14373: remove unreached wrong code, found by sparse
metze
(This used to be commit dd485aa9600dd24c8b10c140974df9313f8ff2e8)
2007-10-10 13:57:16 -05:00
Jelmer Vernooij
3f16241a1d r14363: Remove credentials.h from the global includes.
(This used to be commit 98c4c3051391c6f89df5d133665f51bef66b1563)
2007-10-10 13:57:14 -05:00
Andrew Bartlett
54b33de0fc r14312: Formatting and comments.
Andrew Bartlett
(This used to be commit 1905a27c78165972aaa78b72a199ee9230fbf73d)
2007-10-10 13:57:11 -05:00
Andrew Tridgell
964373b25d r14293: fixed some errors found with beam
(This used to be commit 230636a00ed9bd968356badad596ba7f93ba6c85)
2007-10-10 13:57:09 -05:00
Andrew Bartlett
64b619cefe r14181: This doesn't need level 1 debug, it happens whenever the DNS name is looked up.
Andrew Bartlett
(This used to be commit 1badf363ab2e67ecca3162b2c0cf5e86f783f8bb)
2007-10-10 13:56:58 -05:00
Simo Sorce
82da2d401e r13998: From now on ldb_request() will require an alloced request
By freeing the request you will be sure everything down the path get freed.

this also means you have to steal the results if you want to keep them :)

simo.
(This used to be commit e8075e6a062ce5edb84485e45d0b841c2ee2af7d)
2007-10-10 13:52:36 -05:00
Stefan Metzmacher
b731c82e5c r13961: make function public
metze
(This used to be commit 9f2e20600d22fbdf582a5a90e8099fe591d5cc48)
2007-10-10 13:52:32 -05:00
Jelmer Vernooij
ceb6e9717b r13960: Generate makefile rules for installing/removing shared modules.
(This used to be commit 2c746980328431ab04852dc668899e3eb042da99)
2007-10-10 13:52:32 -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 122835876748a3eaf5e8d31ad1abddab9acb8781)
2007-10-10 13:52:24 -05:00
Andrew Bartlett
61fe79d022 r13910: Fix the 'your password has expired' on every login. We now consider
if the 'password does not expire' flag has been set, filling in the
PAC and netlogon reply correctly if so.

Andrew Bartlett
(This used to be commit c530ab5dc6865c422382bc0afa7a86f7ec1acdf2)
2007-10-10 13:52:22 -05:00
Andrew Bartlett
6a73835b09 r13909: Make this code clearer.
Andrew Bartlett
(This used to be commit b89893ab90b50d6b04a6407441fe3e0e4f1688ec)
2007-10-10 13:52:22 -05:00
Jelmer Vernooij
af30a32b69 r13840: Mark some functions as public.
(This used to be commit 9a188eb1f48a50d92a67a4fc2b3899b90074059a)
2007-10-10 13:52:14 -05:00
Simo Sorce
509814bd03 r13823: make async_wait part of the modules ops
(This used to be commit b4202cf030d5f154f0f94f5f501ecd648ba5c48f)
2007-10-10 13:52:13 -05:00
Andrew Tridgell
af03a9b8fb r13803: fixed two errors found with 'make valgrindtest'
(This used to be commit 4257fd91ceca34dd868a9168efc28b6cb63f0357)
2007-10-10 13:52:12 -05:00
Jelmer Vernooij
26af14c39b r13786: [merge] Add registration functions for LDB modules
Applications that use LDB modules will now have to run ldb_global_init()
before they can use LDB.

The next step will be adding support for loading LDB modules from .so
files. This will also allow us to use one LDB without difference between the
standalone and the Samba-specific build
(This used to be commit 52a235650514039bf8ffee99a784bbc1b6ae6b92)
2007-10-10 13:52:11 -05:00
Andrew Tridgell
57d5f19b3f r13700: added highestCommittedUSN, uSNChanged and uSNCreated support, using
the @BASEINFO sequenceNumber

(simo, I changed the function pointer to a structure element as you
preferred)
(This used to be commit 68c9ac38c7eed221b44499ee3d74597063dfe7a1)
2007-10-10 13:52:06 -05:00
Andrew Bartlett
98c0767677 r13616: Add new ldb functions: ldb_msg_add_steal_string() and
ldb_msg_add_steal_value().

These try to maintain the talloc heirachy, which must be correct
otherwise talloc_steal operations of entire attribute lists fails.

This fixes the currentTime value, found by using Microsoft's dcdiag
tool (before this commit, it pointed to invalid memory, due to the
changes in -r 13606)

Andrew Bartlett
(This used to be commit 424df1bb369fddcfd358cf26dd0da9d3851d181e)
2007-10-10 13:51:59 -05:00
Simo Sorce
d590dea10b r13615: Make ldb_set_errstring get ldb instead of module as parameter.
The module was just used to get to the ldb so it was meningless.

Also add LDB_WAIT_ONCE e relative code in ldb_ildap.c
(This used to be commit d5b467b7c132b0bd4d23918ba7bf3370b1afcce8)
2007-10-10 13:51:59 -05:00
Andrew Bartlett
f490434c0f r13606: An attempt to fix #3525.
The problem was that the supportedControls were being stolen into the
result sent to the client, then talloc_free()ed.  This caused them to
be invalid on the next rootDSE query.

This also tries to avoid attaching the result to the long-term samdb
context, and avoids an extra loop in the result processing (pointed
out by tridge).

Andrew BARtlett
(This used to be commit d0b8957f38fda4d84a318d6121ad87ba53a9ddb3)
2007-10-10 13:51:59 -05:00
Stefan Metzmacher
37bd0b655f r13507: the 'data' element of LDAP controls is optional.
(prepare the next commit)

metze
(This used to be commit a1bbf7f2982185cb6cd544b65b4709ab33a850c5)
2007-10-10 13:51:56 -05:00
Simo Sorce
096c2dc103 r13353: Fix a crash bug in rootdse when we do not pass in credentials
a plain ldbsearch would just crash

Fix kludge_acl, not passing on the second stage registration
phase to other modules

Simo
(This used to be commit bec99c5cb65d8c32fd4f636ed2f5383fb1b39830)
2007-10-10 13:51:48 -05:00
Andrew Bartlett
5bb38cf7e6 r13282: Indentation, and ensure we handle the talloc_free in the right place
all the time.

Andrew Bartlett
(This used to be commit 2aa9fefbb30959f29e9d5a79c4880f33a747b68c)
2007-10-10 13:51:42 -05:00
James Peach
5113bb8438 r13264: Move declaration before code.
(This used to be commit 6e55241a843f80cc513d06266b54b38ce48c51ed)
2007-10-10 13:51:40 -05:00
Andrew Bartlett
f9316daa46 r13256: Free temporary memory on error cases, and try to clean up what's left
earlier.

Move gendb_search() to use talloc_vasprintf() and steal only the parts
actually being used for the results.

Andrew Bartlett
(This used to be commit 53efb3e3e980c768e0aee216ccd8dc3e14707246)
2007-10-10 13:51:39 -05:00
Andrew Bartlett
99f0659f67 r13253: More work to ensure that we don't keep data on long-term contexts.
Andrew Bartlett
(This used to be commit 35517573ff807339f96573e58bdec29073be9594)
2007-10-10 13:51:38 -05:00
Andrew Bartlett
13c1f1b6f1 r13252: Cleanup, both in code, comments and talloc use:
In particular, I've used the --leak-report-full option to smbd to
track down memory that shouldn't be on a long-term context.  This is
now talloc_free()ed much earlier.

Andrew Bartlett
(This used to be commit c6eb74f42989d62c82d2a219251837b09df8491c)
2007-10-10 13:51:38 -05:00