1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00
Commit Graph

228 Commits

Author SHA1 Message Date
Andrew Bartlett
422f1b5495 r16227: Don't segfault if the ldb_search() fails.
Andrew Bartlett
(This used to be commit af11f464a7)
2007-10-10 14:09:06 -05:00
Andrew Bartlett
9f4b56dd13 r16159: Even more work on samldb error reporting. Make sure to get the
original error strings back to the callers.

Andrew Bartlett
(This used to be commit defa632988)
2007-10-10 14:09:02 -05:00
Andrew Bartlett
c8d0489c10 r16129: Further clean up the samldb module.
This adds more/better setting of the ldb error string, and avoids
using gendb_search(), as this doens't return the error code.

Andrew Bartlett
(This used to be commit 2d2e71a2d5)
2007-10-10 14:09:00 -05:00
Andrew Bartlett
f283307f52 r16125: Add another helpful utility function: samdb_msg_add_int()
Andrew Bartlett
(This used to be commit 2fe9de8105)
2007-10-10 14:09:00 -05:00
Andrew Bartlett
4a350fd18f r16109: Make this module simpiler, don't intercept operations we are not going
to implement.

Andrew Bartlett
(This used to be commit 3252e425b0)
2007-10-10 14:09:00 -05:00
Andrew Bartlett
e5a00c8ca6 r16108: Fixes from working with the partition module.
We were not using the correct baseDN for the templates search.  Using NULL is no longer valid (like against AD).

While chasing that down, return proper error codes, and use the
ldb_set_errstr() to get a good error string back up to the UI layer.

Andrew Bartlett
(This used to be commit b31003403d)
2007-10-10 14:08:59 -05:00
Andrew Bartlett
247af0d569 r16083: Make it possible to initialise a backend module, without it setting up
the whole ldb structure.

Because the sequence number was a fn pointer on the main ldb context,
turn it into a full request (currently sync).

Andrew Bartlett
(This used to be commit fbe7d0ca90)
2007-10-10 14:08:57 -05:00
Simo Sorce
2ed444de43 r16070: Fix kludge_acls
(This used to be commit 795f8ebe8e)
2007-10-10 14:08:56 -05:00
Andrew Bartlett
e2e5c037f0 r16069: Remove unused destructor and an unused variable.
Andrew Bartlett
(This used to be commit 25e8597545)
2007-10-10 14:08:56 -05:00
Andrew Bartlett
629d6ad3cf r16061: Prove that removing the objectClass list in the samldb module breaks things.
With this fix, we now correctly detect computers again, and get the
correct objectCategory, which is important for the OSX AD plugin.

Andrew Bartlett
(This used to be commit 4e39d7bb24)
2007-10-10 14:08:55 -05:00
Simo Sorce
56c46ee241 r16042: Fix crashbug caused by incorret error reporting.
(This used to be commit d346531d0a)
2007-10-10 14:08:52 -05:00
Simo Sorce
ca5accf224 r16036: Add a couple of new functions to corretly deal with timeouts.
Check timeouts are correctly verified.
Some minor fixed and removal of unused code.
(This used to be commit b52e5d6a0c)
2007-10-10 14:08:52 -05:00
Simo Sorce
e47c00414f r16022: ooops, a bit too aggressive commit :-)
(This used to be commit 959c8c35ef)
2007-10-10 14:08:51 -05:00
Simo Sorce
68e72e389b r16021: While studying how to make samldb really async I found a critical situation handled in the incorrect way.
A while(1) loop may end up looping forever consuming all valid RIDs because of a secondary bug.
And anyway nextRid is supposed to always give back a new unique RID, if someone messed up the database let him
fix the problem first, trying to be smart here would probably end up in worst results.

Simo.
(This used to be commit 6b214f232e)
2007-10-10 14:08:51 -05:00
Andrew Bartlett
08a48b1803 r15999: password_hash module changes:
- Quiet some IBM Checker warnings (enum mismatch)
 - Only search for the attributes we need
 - fix comments
 - fix copyrights

Andrew Bartlett
(This used to be commit ee6fe3a80f)
2007-10-10 14:08:47 -05:00
Simo Sorce
2d19dca9c8 r15944: rename LDB_ASYNC_ADD -> LDB_ADD, LDB_ASYNC_MODIFY -> LDB_MODIFY, etc...
(This used to be commit 55d97ef88f)
2007-10-10 14:08:43 -05:00
Simo Sorce
0c7b82e5f6 r15942: Remove the sync internal ldb calls altogether.
This means that some modules have been disabled as well as they
have not been ported to the async interface

One of them is the ugly objectclass module.
I hope that the change in samldb module will make the MMC happy
without the need of this crappy module, we need proper handling
in a decent schema module.

proxy and ldb_map have also been disabled
ldb_sqlite3 need to be ported as well (currenlty just broken).
(This used to be commit 51083de795)
2007-10-10 14:08:43 -05:00
Simo Sorce
03703a58d7 r15932: Remove per request creds
They have never benn used and make little sense too imo
(This used to be commit f0c1d08d50)
2007-10-10 14:08:41 -05:00
Simo Sorce
3a4d7eb2c0 r15927: Optimize ldb module traverse while keeping the API intact.
I was sick of jumping inot each module for each request,
even the ones not handle by that module.
(This used to be commit 7d65105e88)
2007-10-10 14:08:41 -05:00
Simo Sorce
90a5e19e03 r15913: Error passing in the async code is not in agood shape
Start enhancing it and fix some problems with incorrect evalutaion of the codes

Implement rdn rename (async only)
(This used to be commit 6af1d738b9)
2007-10-10 14:08:39 -05:00
Andrew Tridgell
b22d15a0f8 r15859: fixed a crash bug in the ldb password_hash module. This one is quite
sublte - please have a look at the change if you are not certain you
know the semantics of constant arrays declared on the stack (they must
be static if you return them from the function)
(This used to be commit 1848078fee)
2007-10-10 14:08:33 -05:00
Simo Sorce
d6aaca599b r15804: Fix SAMLOGON test
(This used to be commit 2e9a840bb9)
2007-10-10 14:08:25 -05:00
Simo Sorce
8081e4f402 r15795: Try to use the async code by default
It passess all my tests, but I still need to work on a lot of stuff.
Shouldn't impact anybody else work, so I want to commit now and see what happens

Will work to remove the old code from modules and backends soon, and make some
more restyling in ldb internals.

So, if there is something you don't like in this desgin please speak now.

Simo.
(This used to be commit 8b2a563e71)
2007-10-10 14:08:21 -05:00
Simo Sorce
d51f4fb2c7 r15789: hmm, damn, testing uncovcer all your bugs :-)
(This used to be commit 977982c884)
2007-10-10 14:08:20 -05:00
Simo Sorce
1a22d88c93 r15783: Fix previous commit, was the wrong way to deal with the problem
(This used to be commit 36537100db)
2007-10-10 14:08:19 -05:00
Simo Sorce
e2112ba3b7 r15782: More fixes for async cases
(This used to be commit 3c9434e264)
2007-10-10 14:08:19 -05:00
Simo Sorce
6d0969aa1a r15761: Fix-as-you-go ...
Testing various async paths and uncovering bugs
(This used to be commit 099d873ea5)
2007-10-10 14:08:15 -05:00
Simo Sorce
1fdd6a6e68 r15725: First shot at making password_hash async
The async path is not yet enabled by default so it should make no harm
(This used to be commit b7d5f23257)
2007-10-10 14:08:09 -05:00
Stefan Metzmacher
12f377c638 r15639: fix warnings
metze
(This used to be commit 73ca71b42b)
2007-10-10 14:07:25 -05:00
Simo Sorce
aa7a02d45f r15582: Commit some forgotten stuff that have been setting on my private tree fro long
(This used to be commit 7c050b541e)
2007-10-10 14:06:00 -05:00
Andrew Bartlett
c07db9b462 r15511: Using this name causes less warnings on the IBM checker, due to using
the original, rather than equivilant, enum type.

Andrew Bartlett
(This used to be commit 3d43e458a8)
2007-10-10 14:05:44 -05:00
Jelmer Vernooij
e002300f23 r15328: Move some functions around, remove dependencies.
Remove some autogenerated headers (which had prototypes now autogenerated by pidl)
Remove ndr_security.h from a few places - it's no longer necessary
(This used to be commit c19c2b51d3)
2007-10-10 14:05:17 -05:00
Stefan Metzmacher
657325d684 r15319: remove unneeded macros
metze
(This used to be commit 9611c8aa9c)
2007-10-10 14:05:14 -05:00
Jelmer Vernooij
9220144604 r15313: Fix some dependencies in dso mode
(This used to be commit f0afe9e2ff)
2007-10-10 14:05:09 -05:00
Jelmer Vernooij
620d759f49 r15298: Fix the build using a few hacks in the build system.
Recursive dependencies are now forbidden (the build system
will bail out if there are any).

I've split up auth_sam.c into auth_sam.c and sam.c. Andrew,
please rename sam.c / move its contents to whatever/wherever you think suits
best.
(This used to be commit 6646384aaf)
2007-10-10 14:05:04 -05:00
Jelmer Vernooij
710ea94988 r15297: Move create_security_token() to samdb as it requires SAMDB (and the rest of LIBSECURITY doesn't)
Make the ldb password_hash module only depend on some keys manipulation code, not full heimdal
Some other dependency fixes
(This used to be commit 5b3ab728ed)
2007-10-10 14:05:04 -05:00
Jelmer Vernooij
69b51f702a r15207: Introduce PRIVATE_DEPENDENCIES and PUBLIC_DEPENDENCIES as replacement
for REQUIRED_SUBSYSTEMS.
(This used to be commit adc8a019b6)
2007-10-10 14:04:18 -05:00
Stefan Metzmacher
0bfa0d115c r15076: give the correct return code
metze
(This used to be commit 92a0663812)
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 a3e1d56cf7)
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 81390dcda5)
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 a69f000324)
2007-10-10 14:00:12 -05:00
Stefan Metzmacher
1af925f394 r14860: create libcli/security/security.h
metze
(This used to be commit 9ec706238c)
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 e391f3c98a)
2007-10-10 13:59:41 -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
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 9fc1196f0c)
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 3e9e505e9e)
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 f10fae23f0)
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 89dfb74894)
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 51b4270513)
2007-10-10 13:58:42 -05:00
Simo Sorce
16f9685eaf r14465: kludge_acl -> async
(This used to be commit b91b191318)
2007-10-10 13:57:28 -05:00