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

154 Commits

Author SHA1 Message Date
Stefan Metzmacher
2ce73cb6db r14373: remove unreached wrong code, found by sparse
metze
(This used to be commit dd485aa960)
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
Andrew Bartlett
54b33de0fc r14312: Formatting and comments.
Andrew Bartlett
(This used to be commit 1905a27c78)
2007-10-10 13:57:11 -05:00
Andrew Tridgell
964373b25d r14293: fixed some errors found with beam
(This used to be commit 230636a00e)
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 1badf363ab)
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 e8075e6a06)
2007-10-10 13:52:36 -05:00
Stefan Metzmacher
b731c82e5c r13961: make function public
metze
(This used to be commit 9f2e20600d)
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 2c74698032)
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 1228358767)
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 c530ab5dc6)
2007-10-10 13:52:22 -05:00
Andrew Bartlett
6a73835b09 r13909: Make this code clearer.
Andrew Bartlett
(This used to be commit b89893ab90)
2007-10-10 13:52:22 -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
Simo Sorce
509814bd03 r13823: make async_wait part of the modules ops
(This used to be commit b4202cf030)
2007-10-10 13:52:13 -05:00
Andrew Tridgell
af03a9b8fb r13803: fixed two errors found with 'make valgrindtest'
(This used to be commit 4257fd91ce)
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 52a2356505)
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 68c9ac38c7)
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 424df1bb36)
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 d5b467b7c1)
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 d0b8957f38)
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 a1bbf7f298)
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 bec99c5cb6)
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 2aa9fefbb3)
2007-10-10 13:51:42 -05:00
James Peach
5113bb8438 r13264: Move declaration before code.
(This used to be commit 6e55241a84)
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 53efb3e3e9)
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 35517573ff)
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 c6eb74f429)
2007-10-10 13:51:38 -05:00
Andrew Bartlett
654a21178f 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
(This used to be commit b0b150d08a)
2007-10-10 13:51:34 -05:00
Andrew Bartlett
3b0b7cb723 r13150: Correct comment.
Andrew Bartlett
(This used to be commit c34666abc1)
2007-10-10 13:51:29 -05:00
Andrew Bartlett
7dad66d8e3 r12998: A big update to samldb.c
This updates the module to handle both SID allocation and nextRid
updating while importing users.  (As imported users already have a
SID, so don't go via the allocation step).  We also ensure that SIDs
in the database are unquie at create time.

Furthermore, at allocation time, we double-check the SID isn't already
in use, and that we don't create a foriegnSecurityPrincipal for a
'local' sid.

Also create random samAccountName entries for users without one (we
were setting $000000-000000000000).

We may want to seperate the uniqueness code from the rest of samldb,
and into a module with the objectguid code, which needs similar
checks.  These checks also need to apply to modification, or those
modifications denied outright.

Also update part of the testsuite to validate this.

Andrew Bartlett
(This used to be commit 7a9c8eee4b)
2007-10-10 13:51:15 -05:00
Andrew Bartlett
1cb9484a42 r12996: Restrict this search to domain objects.
Andrew Bartlett
(This used to be commit 4d69eae382)
2007-10-10 13:51:15 -05:00
Andrew Bartlett
c96b572386 r12943: Generate a SID for the domain join account using the modules, rather
than a hardcoded SID.

Fix the samldb module to return the what *was* the nextrid, rather
than the new nextrid (that is for next time).

Andrew Bartlett
(This used to be commit ffe9042e15)
2007-10-10 13:51:11 -05:00
Andrew Bartlett
87625070be r12895: Error strings save lives.
err, they save time at least.  The correct use of an error string in
this case quickly pinpoited an overzealous check, and saved me hours
of painful debugging.

Andrew Bartlett
(This used to be commit 26946c90e8)
2007-10-10 13:50:59 -05:00
Andrew Bartlett
0b3fb7e04d r12860: Remove unused function. (we handle this in the password_hash module).
Andrew Bartlett
(This used to be commit daa4b76800)
2007-10-10 13:50:54 -05:00
Jelmer Vernooij
0b3deb20de r12851: Fix some typos
(This used to be commit 61ae77beec)
2007-10-10 13:50:53 -05:00
Stefan Metzmacher
91a37f02dd r12842: don't include system headers directly
metze
(This used to be commit 976052c656)
2007-10-10 13:50:05 -05:00
Andrew Bartlett
4f06be6123 r12818: When denying an operation, include what we think the username is in
the error message.

Andrew Bartlett
(This used to be commit 36c1f67f12)
2007-10-10 13:50:01 -05:00
Stefan Metzmacher
874c9b71b7 r12773: - remove unused variable, fix the build with some old compilers
metze
(This used to be commit 1253784c92)
2007-10-10 13:49:53 -05:00
Simo Sorce
bdc7d03c9c r12769: Make ldb_next_request() evident, I was much confused on first sight
Simo.
(This used to be commit 2f0c7b8962)
2007-10-10 13:49:52 -05:00
Andrew Bartlett
1162b37ff0 r12763: Oops. If you call ldb_search from within an ldb module's search
request handler, you really have to watch the recursion issues...

Andrew Bartlett
(This used to be commit 46628e86a2)
2007-10-10 13:49:51 -05:00
Andrew Bartlett
8c9d212f2a r12762: Simo correctly asked that the policy logic (which attributes contain
passwords) be moved into the database, and not be hard-coded in the
module source.

Andrew Bartlett
(This used to be commit 1fbe09ce81)
2007-10-10 13:49:51 -05:00
Andrew Bartlett
a8eec31354 r12746: An initial version of the kludge_acls module.
This should be replaced with real ACLs, which tridge is working on.
In the meantime, the rules are very simple:

- SYSTEM and Administrators can read all.

- Users and anonymous cannot read passwords, can read everything else

- list of 'password' attributes is hard-coded

Most of the difficult work in this was fighting with the C/js
interface to add a system_session() all, as it still doesn't get on
with me :-)

Andrew Bartlett
(This used to be commit be9d0cae89)
2007-10-10 13:49:48 -05:00
Simo Sorce
dbef4d76de r12743: Remove the ugly way we had to make a second stage init and introduce
a second_stage_init private function for modules that need a second stage init.

Simo.
(This used to be commit 5e8b365fa2)
2007-10-10 13:49:48 -05:00
Simo Sorce
c908d0b2aa r12733: Merge ldap/ldb controls into main tree
There's still lot of work to do but the patch is stable
enough to be pushed into the main samba4 tree.

Simo.
(This used to be commit 77125feaff)
2007-10-10 13:49:47 -05:00
Andrew Bartlett
ff90c1c5c3 r12720: By metze's request, rename the ntPwdHistory attribute to
sambaNTPassword.  Likewise lmPwdHistory -> sambaLMPwdHistory.

The idea here is to avoid having conflicting formats when we get to
replication.  We know the base data matches, but we may need to use a
module to munge formats.

Andrew Bartlett
(This used to be commit 8e608dd4bf)
2007-10-10 13:49:45 -05:00
Andrew Bartlett
4bfe2907e7 r12719: Rename unicodePwd -> sambaPassword.
Because we don't know the syntax of unicodePwd, we want to avoid using
that attribute name.  It may cause problems later when we get
replication form windows.

I'm doing this before the tech preview, so we don't get too many
supprises as folks upgrade databases into later versions.

Andrew Bartlett
(This used to be commit 097d9d0b7f)
2007-10-10 13:49:45 -05:00
Andrew Bartlett
5cea3edcef r12716: Tridge points out that the request argument to ldb_next_request must
be a valid talloc() pointer, as other modules may rely on this.

Andrew Bartlett
(This used to be commit 356c8c5609)
2007-10-10 13:49:44 -05:00
Andrew Bartlett
097ffed015 r12687: Push the real list of supported GENSEC mechanisms out on
supportedSASLMechanism in the rootdse.  (Second half of a patch
commited earlier today).

Andrew Bartlett
(This used to be commit 4b67b5d688)
2007-10-10 13:49:38 -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
3b99d9c5bd r12658: Couple of fixes related to shared module builds.
(This used to be commit c297c93faf)
2007-10-10 13:49:35 -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