1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-05 21:57:51 +03:00

190 Commits

Author SHA1 Message Date
Stefan Metzmacher
a3e1d56cf7 r14964: - move sidmap code from ntvfs_common to SAMDB
- make ntvfs_common a library
- create sys_notify library

metze
2007-10-10 14:00:47 -05:00
Stefan Metzmacher
81390dcda5 r14894: - add some 'const'
- remove sid_active_in_token() was the same as security_token_has_sid()
- rename some functions

metze
2007-10-10 14:00:12 -05:00
Stefan Metzmacher
a69f000324 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
2007-10-10 14:00:12 -05:00
Stefan Metzmacher
9ec706238c r14860: create libcli/security/security.h
metze
2007-10-10 13:59:44 -05:00
Stefan Metzmacher
e391f3c98a r14840: - rename some functions
- stack specific functions on top of generic ones

metze
2007-10-10 13:59:41 -05:00
Jelmer Vernooij
7146c1600f r14724: Rearrange some source files, install more headers. 2007-10-10 13:59:14 -05:00
Andrew Bartlett
9fc1196f0c 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
2007-10-10 13:59:06 -05:00
Andrew Bartlett
3e9e505e9e r14637: Extend the ACB -> userParameters flag mapping based on the ovbious connections.
Andrew Bartlett
2007-10-10 13:59:03 -05:00
Jelmer Vernooij
f10fae23f0 r14592: Add support for loading shared modules to LDB. 2007-10-10 13:58:58 -05:00
Jelmer Vernooij
89dfb74894 r14570: Move some functions also they are also used from kpasswd 2007-10-10 13:58:48 -05:00
Jelmer Vernooij
51b4270513 r14542: Remove librpc, libndr and libnbt from includes.h 2007-10-10 13:58:42 -05:00
Simo Sorce
b91b191318 r14465: kludge_acl -> async 2007-10-10 13:57:28 -05:00
Jelmer Vernooij
3dd477ca51 r14464: Don't include ndr_BASENAME.h files unless strictly required, instead
try to include just the BASENAME.h files (containing only structs)
2007-10-10 13:57:27 -05:00
Simo Sorce
716c475999 r14458: extended_dn -> async 2007-10-10 13:57:27 -05:00
Stefan Metzmacher
a653ebd15d r14442: the ACB_ flags are 32 bit...
metze
2007-10-10 13:57:25 -05:00
Andrew Tridgell
ce1326157c r14426: ensure res is initialised 2007-10-10 13:57:22 -05:00
Andrew Tridgell
489c338065 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.
2007-10-10 13:57:21 -05:00
Simo Sorce
250dac3072 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.
2007-10-10 13:57:18 -05:00
Simo Sorce
179e62d093 r14390: the rootdse does not show a distinguishedName attribute 2007-10-10 13:57:18 -05:00
Simo Sorce
4d76af63b0 r14389: rootdse -> async 2007-10-10 13:57:18 -05:00
Jelmer Vernooij
f4de155c94 r14383: Fix non-developer build. 2007-10-10 13:57:17 -05:00
Jelmer Vernooij
1a16a6f1df r14380: Reduce the size of structs.h 2007-10-10 13:57:16 -05:00
Stefan Metzmacher
dd485aa960 r14373: remove unreached wrong code, found by sparse
metze
2007-10-10 13:57:16 -05:00
Jelmer Vernooij
98c4c30513 r14363: Remove credentials.h from the global includes. 2007-10-10 13:57:14 -05:00
Andrew Bartlett
1905a27c78 r14312: Formatting and comments.
Andrew Bartlett
2007-10-10 13:57:11 -05:00
Andrew Tridgell
230636a00e r14293: fixed some errors found with beam 2007-10-10 13:57:09 -05:00
Andrew Bartlett
1badf363ab r14181: This doesn't need level 1 debug, it happens whenever the DNS name is looked up.
Andrew Bartlett
2007-10-10 13:56:58 -05:00
Simo Sorce
e8075e6a06 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.
2007-10-10 13:52:36 -05:00
Stefan Metzmacher
9f2e20600d r13961: make function public
metze
2007-10-10 13:52:32 -05:00
Jelmer Vernooij
2c74698032 r13960: Generate makefile rules for installing/removing shared modules. 2007-10-10 13:52:32 -05:00
Jelmer Vernooij
1228358767 r13924: Split more prototypes out of include/proto.h + initial work on header
file dependencies
2007-10-10 13:52:24 -05:00
Andrew Bartlett
c530ab5dc6 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
2007-10-10 13:52:22 -05:00
Andrew Bartlett
b89893ab90 r13909: Make this code clearer.
Andrew Bartlett
2007-10-10 13:52:22 -05:00
Jelmer Vernooij
9a188eb1f4 r13840: Mark some functions as public. 2007-10-10 13:52:14 -05:00
Simo Sorce
b4202cf030 r13823: make async_wait part of the modules ops 2007-10-10 13:52:13 -05:00
Andrew Tridgell
4257fd91ce r13803: fixed two errors found with 'make valgrindtest' 2007-10-10 13:52:12 -05:00
Jelmer Vernooij
52a2356505 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
2007-10-10 13:52:11 -05:00
Andrew Tridgell
68c9ac38c7 r13700: added highestCommittedUSN, uSNChanged and uSNCreated support, using
the @BASEINFO sequenceNumber

(simo, I changed the function pointer to a structure element as you
preferred)
2007-10-10 13:52:06 -05:00
Andrew Bartlett
424df1bb36 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
2007-10-10 13:51:59 -05:00
Simo Sorce
d5b467b7c1 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
2007-10-10 13:51:59 -05:00
Andrew Bartlett
d0b8957f38 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
2007-10-10 13:51:59 -05:00
Stefan Metzmacher
a1bbf7f298 r13507: the 'data' element of LDAP controls is optional.
(prepare the next commit)

metze
2007-10-10 13:51:56 -05:00
Simo Sorce
bec99c5cb6 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
2007-10-10 13:51:48 -05:00
Andrew Bartlett
2aa9fefbb3 r13282: Indentation, and ensure we handle the talloc_free in the right place
all the time.

Andrew Bartlett
2007-10-10 13:51:42 -05:00
James Peach
6e55241a84 r13264: Move declaration before code. 2007-10-10 13:51:40 -05:00
Andrew Bartlett
53efb3e3e9 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
2007-10-10 13:51:39 -05:00
Andrew Bartlett
35517573ff r13253: More work to ensure that we don't keep data on long-term contexts.
Andrew Bartlett
2007-10-10 13:51:38 -05:00
Andrew Bartlett
c6eb74f429 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
2007-10-10 13:51:38 -05:00
Andrew Bartlett
b0b150d08a r13207: Use the new API for using/not using kerbeors in hdb-ldb.c
Update the rootdse module to use the new schema.

Andrew Bartlett
2007-10-10 13:51:34 -05:00
Andrew Bartlett
c34666abc1 r13150: Correct comment.
Andrew Bartlett
2007-10-10 13:51:29 -05:00