1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-29 16:23:52 +03:00
Commit Graph

39 Commits

Author SHA1 Message Date
Jelmer Vernooij
08bb1ef643 r25000: Fix some more C++ compatibility warnings. 2007-10-10 15:05:27 -05:00
Andrew Bartlett
62320616ff r24731: Remove unused code - if we hit these error conditions, then we are
dead anyway, and a segfault would leave us with more infomation.

Andrew Bartlett
2007-10-10 15:03:00 -05:00
Andrew Bartlett
af092a361d r24260: Ensure we always override any existing values for these generated
attributes.  Anything else leads to madness.

Andrew Bartlett
2007-10-10 15:01:31 -05:00
Andrew Bartlett
d053b8e218 r24060: Fix bug #4806 by Matthias Wallnöfer <mwallnoefer@yahoo.de>: We need to
include the attribute allowedChildClassesEffective for MMC to allow
the creation of containers.

This may need further refinement, but it seems to work for now.

Andrew Bartlett
2007-10-10 15:01:21 -05:00
Andrew Bartlett
51862c4c52 r24010: Fix warning for the function paramter to qsort().
Andrew Bartlett
2007-10-10 15:01:17 -05:00
Andrew Bartlett
848336dc61 r23982: Fix use-after-realloc() found by valgrind and mwallnoefer@yahoo.de.
Should fix bug #4804.

Andrew Bartlett
2007-10-10 15:01:15 -05:00
Andrew Tridgell
fcf38a38ac r23792: convert Samba4 to GPLv3
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
2007-10-10 14:59:12 -05:00
Andrew Bartlett
dcff83ebe4 r23560: - Activate metze's schema modules (from metze's schema-loading-13 patch).
- samba3sam.js: rework the samba3sam test to not use objectCategory,
  as it's has special rules (dnsName a simple match)
- ldap.js: Test the ordering of the objectClass attributes for the baseDN
- schema_init.c: Load the mayContain and mustContain (and system...) attributes when
  reading the schema from ldb
- To make the schema load not suck in terms of performance, write the
  schema into a static global variable
- ldif_handlers.c: Match objectCategory for equality and canonicolisation
  based on the loaded schema, not simple tring manipuation
- ldb_msg.c: don't duplicate attributes when adding attributes to a list
- kludge_acl.c: return allowedAttributesEffective based on schema results
  and privilages

Andrew Bartlett
2007-10-10 14:53:27 -05:00
Stefan Metzmacher
608d24f001 r21306: fix the RPC-LSA tests the admin couldn't no longer get the 'currentValue'
attribute...

this needs more works, but make it work again for now

metze
2007-10-10 14:48:07 -05:00
Stefan Metzmacher
f062f09fbf r20923: only allow extended operations for SYSTEM or administrators for now
metze
2007-10-10 14:43:53 -05:00
Stefan Metzmacher
fc5319e927 r20921: - only give password attributes to the SYSTEM account
- but SYSTEM and administrators can change them

metze
2007-10-10 14:43:52 -05:00
Stefan Metzmacher
c8f5aad40a r20760: also handle the case where no private data is attached to the module
metze
2007-10-10 14:40:46 -05:00
Andrew Bartlett
5aa2195ec2 r20622: Add in a hack to avoid permitting searches on the value of protected
attributes.

Andrew Bartlett
2007-10-10 14:37:16 -05:00
Simo Sorce
a580c871d3 r19831: Big ldb_dn optimization and interfaces enhancement patch
This patch changes a lot of the code in ldb_dn.c, and also
removes and add a number of manipulation functions around.

The aim is to avoid validating a dn if not necessary as the
validation code is necessarily slow. This is mainly to speed up
internal operations where input is not user generated and so we
can assume the DNs need no validation. The code is designed to
keep the data as a string if possible.

The code is not yet 100% perfect, but pass all the tests so far.
A memleak is certainly present, I'll work on that next.

Simo.
2007-10-10 14:28:22 -05:00
Simo Sorce
260868bae5 r17514: Simplify the way to set ldb errors and add another
helper function to set them.
2007-10-10 14:15:31 -05:00
Simo Sorce
c6aa60c7e6 r17186: "async" word abuse clean-up part 2 2007-10-10 14:10:17 -05:00
Simo Sorce
25fc735404 r17185: Oh, I wanted to do this for sooo long time.
Finally acknowledge that ldb is inherently async and does not have a dual personality anymore
Rename all ldb_async_XXX functions to ldb_XXX except for ldb_async_result, it is now ldb_reply
to reflect the real function of this structure.

Simo.
2007-10-10 14:10:16 -05:00
Andrew Bartlett
3252e425b0 r16109: Make this module simpiler, don't intercept operations we are not going
to implement.

Andrew Bartlett
2007-10-10 14:09:00 -05:00
Simo Sorce
795f8ebe8e r16070: Fix kludge_acls 2007-10-10 14:08:56 -05:00
Simo Sorce
b52e5d6a0c 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.
2007-10-10 14:08:52 -05:00
Simo Sorce
51083de795 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).
2007-10-10 14:08:43 -05:00
Simo Sorce
f0c1d08d50 r15932: Remove per request creds
They have never benn used and make little sense too imo
2007-10-10 14:08:41 -05:00
Simo Sorce
7d65105e88 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.
2007-10-10 14:08:41 -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
Simo Sorce
b91b191318 r14465: kludge_acl -> async 2007-10-10 13:57:28 -05:00
Stefan Metzmacher
dd485aa960 r14373: remove unreached wrong code, found by sparse
metze
2007-10-10 13:57:16 -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
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
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
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
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
Jelmer Vernooij
61ae77beec r12851: Fix some typos 2007-10-10 13:50:53 -05:00
Andrew Bartlett
36c1f67f12 r12818: When denying an operation, include what we think the username is in
the error message.

Andrew Bartlett
2007-10-10 13:50:01 -05:00
Stefan Metzmacher
1253784c92 r12773: - remove unused variable, fix the build with some old compilers
metze
2007-10-10 13:49:53 -05:00
Simo Sorce
2f0c7b8962 r12769: Make ldb_next_request() evident, I was much confused on first sight
Simo.
2007-10-10 13:49:52 -05:00
Andrew Bartlett
46628e86a2 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
2007-10-10 13:49:51 -05:00
Andrew Bartlett
1fbe09ce81 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
2007-10-10 13:49:51 -05:00
Andrew Bartlett
be9d0cae89 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
2007-10-10 13:49:48 -05:00