1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-05 12:23:50 +03:00
Commit Graph

1012 Commits

Author SHA1 Message Date
Simo Sorce
906630f18e r20670: Make the logic more clear 2007-10-10 14:40:19 -05:00
Simo Sorce
03de577059 r20669: Simplifing more 2007-10-10 14:40:19 -05:00
Simo Sorce
ad58177ee4 r20656: This way the process flow should be much more readable.
We need to make it easier, but this should be a step in
the right direction.
2007-10-10 14:37:27 -05:00
Stefan Metzmacher
5731617ea9 r20598: add comments and make clear that the void *data element for extended operations
needs to be NULL or a valid talloc pointer as talloc_get_type() will be called on it.

metze
2007-10-10 14:37:12 -05:00
Stefan Metzmacher
8d3a3117c3 r20596: add prototypes for the ldb_extended functions
metze
2007-10-10 14:37:12 -05:00
Stefan Metzmacher
b98ca57a65 r20588: handle extended operations in the ldb_next_request() call
metze
2007-10-10 14:37:09 -05:00
Stefan Metzmacher
cfcd05adc0 r20583: implement the frontend calls for extended operations
metze
2007-10-10 14:37:08 -05:00
Stefan Metzmacher
530b3cd250 r20582: use void *data in the ldb_extended struct to match what we have in ldb_control
add a request element for extended requests

metze
2007-10-10 14:37:07 -05:00
Stefan Metzmacher
aababcbb05 r20581: - the ldb modules have explicit hooks for extended operations
so call them
- reorder the request operations first all with explixit hooks

metze
2007-10-10 14:37:07 -05:00
Andrew Bartlett
c0276c373c r20467: Don't segfault if we don't have an OID map 2007-10-10 14:35:53 -05:00
Andrew Bartlett
27750e0b5f r20464: Make it clear what does the process group stuff 2007-10-10 14:35:53 -05:00
Stefan Metzmacher
49c7da812c r20462: add functions to handle UTCTime strings
metze
2007-10-10 14:35:52 -05:00
Andrew Bartlett
f28cf842da r20459: LDB map cleanup:
- Replace 'return 0' with return LDB_SUCCESS in more places.

- Do not return NULL attribute values, these are not permitted.
  Instead, fail the whole conversion.

- Cleanup old comments.

Andrew Bartlett
2007-10-10 14:35:51 -05:00
Andrew Bartlett
ef1ca30180 r20373: When adding a base to a "" DN, don't precede it with a comma (,)
Andrew Bartlett
2007-10-10 14:30:18 -05:00
Stefan Metzmacher
b9d0ea3954 r20320: add missing prototypes
metze
2007-10-10 14:29:39 -05:00
Stefan Metzmacher
3769270a6a r20319: fix compiler warnings
metze
2007-10-10 14:29:39 -05:00
Stefan Metzmacher
e28cb83904 r20317: store references to all important naming contexts.
add ldb_get_config_basedn(), ldb_get_schema_basedn()
and ldb_get_root_basedn()

metze
2007-10-10 14:29:38 -05:00
Stefan Metzmacher
58cbbaa4b4 r20316: fix compiler warning
metze
2007-10-10 14:29:38 -05:00
Andrew Tridgell
65858ebb68 r20234: metze pointed out that we are re-loading the cache records on each
write. We should only be doing this if another process writes and
changes the seqnum. This avoids the extra cache loads
2007-10-10 14:29:27 -05:00
Stefan Metzmacher
6b20123c10 r20198: let the IBM checker ignore the warning about a missing break
statement...

metze
2007-10-10 14:29:22 -05:00
Stefan Metzmacher
5ac373c8b8 r20192: I assume a 'break' is the correct thing to do here,
simo,tridge: please check this.

found by the IBM checker

metze
2007-10-10 14:29:21 -05:00
Stefan Metzmacher
4c1e4bfeef r20191: fix bug found by the IBM checker
metze
2007-10-10 14:29:20 -05:00
Stefan Metzmacher
6b7eb5d68e r20190: fix the ldb_ldap backend
metze
2007-10-10 14:29:20 -05:00
Stefan Metzmacher
d20d1872d5 r20189: remove unused struct element
metze
2007-10-10 14:29:20 -05:00
Stefan Metzmacher
70c4a36743 r20188: move back to an default attribute handler and not use the '*' attribute
to not conflict with the one that maybe added via the @ATTRIBUTES object

this is just to make the test-tdb-feature.sh torture test happy

There's still a bug when a attribute is registered multiple time
without removing old ldb_schema_attribute instances. But this bug
was there before my changes too and was just triggered by my changes

metze
2007-10-10 14:29:19 -05:00
Stefan Metzmacher
216713d9a0 r20187: fix the build on systems without sqlite3
metze
2007-10-10 14:29:19 -05:00
Stefan Metzmacher
39c41be0ac r20185: - SMB_ENABLE() needs upper case YES/NO
- fix compilation of the ldb_sqlite3 module

metze
2007-10-10 14:29:19 -05:00
Stefan Metzmacher
b97b8f5dcb r20184: change ldb_attrib_handler into ldb_schema_attribute, which has a pointer
to a ldb_schema_syntax struct.

the default attribute handler is now registered dynamicly as "*"
attribute, instead of having its own code path.

ldb_schema_attribute's can be added to the ldb_schema given a
ldb_schema_syntax struct or the syntax name

we may also need to introduce a ldb_schema_matching_rule,
and add a pointer to a default ldb_schema_matching_rule
in the ldb_schema_syntax.

metze
2007-10-10 14:29:19 -05:00
Stefan Metzmacher
8dda4342f6 r20168: start separating attributes and syntaxes
metze
2007-10-10 14:29:17 -05:00
Stefan Metzmacher
024dacb3b0 r20130: remove one more talloc_get_type()
metze
2007-10-10 14:29:12 -05:00
Stefan Metzmacher
53805a8562 r20129: remove unused structure elements
metze
2007-10-10 14:29:12 -05:00
Stefan Metzmacher
cb89f0b8d5 r20128: get rid of more talloc_get_type() calls
metze
2007-10-10 14:29:11 -05:00
Stefan Metzmacher
a7397c4d2b r20127: - allocate ldb_handle under ldb_request! fix a mem leak
- pass ldb_request to init_lldb_handle()
- remove some useless talloc_get_type() calls

metze
2007-10-10 14:29:11 -05:00
Stefan Metzmacher
1e3bb18026 r20126: fix talloc hierachy and make lldb a child of module
metze
2007-10-10 14:29:11 -05:00
Stefan Metzmacher
db85b7840c r20125: fix some ugly mem leaks in the ldb_ildb backend
metze
2007-10-10 14:29:10 -05:00
Stefan Metzmacher
b0b9e83fed r20123: - avoid some more talloc_get_type() calls
- pass down ldb_request

metze
2007-10-10 14:29:10 -05:00
Stefan Metzmacher
cf9aade216 r20122: pass ildb to ildb_request_noop()
metze
2007-10-10 14:29:10 -05:00
Stefan Metzmacher
03029d4fed r20121: pass down the ldb_request struct to ildb_request_send(),
also pass ildb instead of module, to avoid multiple talloc_get_type() calls

metze
2007-10-10 14:29:10 -05:00
Stefan Metzmacher
b85d5cb7a4 r20120: fix the talloc hierachy and make ildb a child of module
metze
2007-10-10 14:29:09 -05:00
Simo Sorce
ea111795f4 r20106: Optional ONE Level indexing for ldb_tdb
To activate it you must modify the @INDEXLIST object adding
the attribute @IDXONE: 1

Ldb test included

Simo.
2007-10-10 14:29:07 -05:00
Simo Sorce
a2520bcfa9 r20101: Also rename a variable now that the unused parameter is gone 2007-10-10 14:29:06 -05:00
Simo Sorce
cc1bcb8148 r20100: Remove completely unused parameters 2007-10-10 14:29:05 -05:00
Volker Lendecke
879dfed8d8 r20046: Add ldb_search_exp_fmt and port comment to 4 2007-10-10 14:28:54 -05:00
Simo Sorce
4f07542143 r20034: Start using ldb_search_exp_fmt() 2007-10-10 14:28:51 -05:00
Simo Sorce
fdd6ce6b7e r20033: Never commit before testing
Never commit before testing
Never commit before testing

:-)
2007-10-10 14:28:51 -05:00
Simo Sorce
2a2e181e4b r20032: Add ldb_search_exp_fmt()
This functions adds support of a memory context to hook the results to
and a printf style exp_fmt partameter to easily build expressions at once.
2007-10-10 14:28:50 -05:00
Stefan Metzmacher
01e3a5080a r20023: handle <SID=...> <WKGUID=...> dn's also in ldb_dn_new_fmt()
metze
2007-10-10 14:28:48 -05:00
Stefan Metzmacher
98ab0af4ae r19966: we don't need 2 versions of this functions
metze
2007-10-10 14:28:41 -05:00
Stefan Metzmacher
8655db41c1 r19965: make the output a bit nicer
metze
2007-10-10 14:28:41 -05:00
Stefan Metzmacher
f129d78256 r19964: make debuging easier and report usefull error messages
metze
2007-10-10 14:28:40 -05:00