1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

1011 Commits

Author SHA1 Message Date
Simo Sorce
f400fc4d0d r20669: Simplifing more
(This used to be commit 03de577059cb71bb6d5df7a65b5f5ba30bdea746)
2007-10-10 14:40:19 -05:00
Simo Sorce
a1a5d12c13 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.
(This used to be commit ad58177ee46a4f02ee2e2d97882b851226bd3af2)
2007-10-10 14:37:27 -05:00
Stefan Metzmacher
22f473b22b 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
(This used to be commit 5731617ea9103eaaef2c5591aab89d59ded35fd8)
2007-10-10 14:37:12 -05:00
Stefan Metzmacher
b931e66835 r20596: add prototypes for the ldb_extended functions
metze
(This used to be commit 8d3a3117c313c2950381e8d21eb92469a82c3afe)
2007-10-10 14:37:12 -05:00
Stefan Metzmacher
23edd6071a r20588: handle extended operations in the ldb_next_request() call
metze
(This used to be commit b98ca57a6504c1b0fce015b1b2c3e4d228dd452e)
2007-10-10 14:37:09 -05:00
Stefan Metzmacher
b5eb73280e r20583: implement the frontend calls for extended operations
metze
(This used to be commit cfcd05adc03effeaf85dc776c2d5bb5244f0d6d4)
2007-10-10 14:37:08 -05:00
Stefan Metzmacher
bc4821a4ce 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
(This used to be commit 530b3cd2501efb7763cbb7d3301ff0550689effe)
2007-10-10 14:37:07 -05:00
Stefan Metzmacher
f29ea516f9 r20581: - the ldb modules have explicit hooks for extended operations
so call them
- reorder the request operations first all with explixit hooks

metze
(This used to be commit aababcbb05ad476507bba35723eaef01d18b4d4e)
2007-10-10 14:37:07 -05:00
Andrew Bartlett
3a6da3c60f r20467: Don't segfault if we don't have an OID map
(This used to be commit c0276c373c51696b5168cdd1b048e1b9858baf62)
2007-10-10 14:35:53 -05:00
Andrew Bartlett
b4c1e62259 r20464: Make it clear what does the process group stuff
(This used to be commit 27750e0b5f118b76c199f87cbf92ee951c3e7db7)
2007-10-10 14:35:53 -05:00
Stefan Metzmacher
71bc79caab r20462: add functions to handle UTCTime strings
metze
(This used to be commit 49c7da812c290e23bb65b98a2710fb90c4a0ece2)
2007-10-10 14:35:52 -05:00
Andrew Bartlett
0311a5396b 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
(This used to be commit f28cf842dab2fe5e691d755f28c6048c986e284f)
2007-10-10 14:35:51 -05:00
Andrew Bartlett
c8fd1a6f2e r20373: When adding a base to a "" DN, don't precede it with a comma (,)
Andrew Bartlett
(This used to be commit ef1ca30180b1b225579a8200b65a4853a135602f)
2007-10-10 14:30:18 -05:00
Stefan Metzmacher
6f68945f7d r20320: add missing prototypes
metze
(This used to be commit b9d0ea3954e3f76436e976555540dd29dacd621d)
2007-10-10 14:29:39 -05:00
Stefan Metzmacher
c65b5a6f87 r20319: fix compiler warnings
metze
(This used to be commit 3769270a6a22dd29845e889b0601fcdf7c46acb5)
2007-10-10 14:29:39 -05:00
Stefan Metzmacher
ff322519af r20317: store references to all important naming contexts.
add ldb_get_config_basedn(), ldb_get_schema_basedn()
and ldb_get_root_basedn()

metze
(This used to be commit e28cb83904299fe01e8c0797f5429387f254ed1e)
2007-10-10 14:29:38 -05:00
Stefan Metzmacher
525447821e r20316: fix compiler warning
metze
(This used to be commit 58cbbaa4b49bfed6d4e9c5802af988864e06675f)
2007-10-10 14:29:38 -05:00
Andrew Tridgell
13b7d54535 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
(This used to be commit 65858ebb68c25a672e9284e8cba9a6675902f1df)
2007-10-10 14:29:27 -05:00
Stefan Metzmacher
0e2ebecf18 r20198: let the IBM checker ignore the warning about a missing break
statement...

metze
(This used to be commit 6b20123c10b8812759b0876990766adc207bc5b4)
2007-10-10 14:29:22 -05:00
Stefan Metzmacher
f0eaae956f r20192: I assume a 'break' is the correct thing to do here,
simo,tridge: please check this.

found by the IBM checker

metze
(This used to be commit 5ac373c8b853d4527a095111253f3cb10522f5e8)
2007-10-10 14:29:21 -05:00
Stefan Metzmacher
c8c023ea62 r20191: fix bug found by the IBM checker
metze
(This used to be commit 4c1e4bfeef8d93583b6d4345dbb1b8fa90368308)
2007-10-10 14:29:20 -05:00
Stefan Metzmacher
f4fa06ca00 r20190: fix the ldb_ldap backend
metze
(This used to be commit 6b7eb5d68e769fd5450c5d92c3ece4c471aaeae9)
2007-10-10 14:29:20 -05:00
Stefan Metzmacher
a3c0f3035d r20189: remove unused struct element
metze
(This used to be commit d20d1872d5ed1176928b85ef9811c6a5177d0148)
2007-10-10 14:29:20 -05:00
Stefan Metzmacher
8e7d87babc 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
(This used to be commit 70c4a367433f8c54bdd940eb0a6a24ab976a4063)
2007-10-10 14:29:19 -05:00
Stefan Metzmacher
bc58f6fa36 r20187: fix the build on systems without sqlite3
metze
(This used to be commit 216713d9a034984ffb40889b42837b91abae862a)
2007-10-10 14:29:19 -05:00
Stefan Metzmacher
538e3bf654 r20185: - SMB_ENABLE() needs upper case YES/NO
- fix compilation of the ldb_sqlite3 module

metze
(This used to be commit 39c41be0ac5bfa39c4ff3267b1a8291857e3a034)
2007-10-10 14:29:19 -05:00
Stefan Metzmacher
c69717755a 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
(This used to be commit b97b8f5dcbce006f005e53ca79df3330e62f117b)
2007-10-10 14:29:19 -05:00
Stefan Metzmacher
e55ff42229 r20168: start separating attributes and syntaxes
metze
(This used to be commit 8dda4342f648aa71878ac9eeb7941710e2813aee)
2007-10-10 14:29:17 -05:00
Stefan Metzmacher
4e93962ea5 r20130: remove one more talloc_get_type()
metze
(This used to be commit 024dacb3b0a32bcaaef0b7a7598070b9034a7648)
2007-10-10 14:29:12 -05:00
Stefan Metzmacher
1a82770112 r20129: remove unused structure elements
metze
(This used to be commit 53805a8562c59116e458dedd695e061eabf78620)
2007-10-10 14:29:12 -05:00
Stefan Metzmacher
8cdacd9f82 r20128: get rid of more talloc_get_type() calls
metze
(This used to be commit cb89f0b8d5a64433374887bcd44e04ad63e4857e)
2007-10-10 14:29:11 -05:00
Stefan Metzmacher
ecc8ef51cb 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
(This used to be commit a7397c4d2bed181c96863e985727c8dad0894df7)
2007-10-10 14:29:11 -05:00
Stefan Metzmacher
43637dfb9d r20126: fix talloc hierachy and make lldb a child of module
metze
(This used to be commit 1e3bb180261643900c7bdacef818add5349c7a30)
2007-10-10 14:29:11 -05:00
Stefan Metzmacher
2986313a68 r20125: fix some ugly mem leaks in the ldb_ildb backend
metze
(This used to be commit db85b7840c1022665d410516d9a8989474d67a0f)
2007-10-10 14:29:10 -05:00
Stefan Metzmacher
21327c4320 r20123: - avoid some more talloc_get_type() calls
- pass down ldb_request

metze
(This used to be commit b0b9e83fed0145bac6058d11e9b1b2c57d091649)
2007-10-10 14:29:10 -05:00
Stefan Metzmacher
a2976633ff r20122: pass ildb to ildb_request_noop()
metze
(This used to be commit cf9aade216930980bf47ea8b97db976c4907cbca)
2007-10-10 14:29:10 -05:00
Stefan Metzmacher
e13088f2b7 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
(This used to be commit 03029d4fed86b1ca5fb19a408312607d8790d110)
2007-10-10 14:29:10 -05:00
Stefan Metzmacher
ddfb73568a r20120: fix the talloc hierachy and make ildb a child of module
metze
(This used to be commit b85d5cb7a4931d1d43a0ec73f1de1519c720f1af)
2007-10-10 14:29:09 -05:00
Simo Sorce
2cd08c14a0 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.
(This used to be commit ea111795f4016916473ccc05d23c6655e6af1207)
2007-10-10 14:29:07 -05:00
Simo Sorce
784fd1a230 r20101: Also rename a variable now that the unused parameter is gone
(This used to be commit a2520bcfa918977f2139a963e9817370789cf077)
2007-10-10 14:29:06 -05:00
Simo Sorce
5dd224f260 r20100: Remove completely unused parameters
(This used to be commit cc1bcb814844e8a03dfa9a310d26ce3f3441e7bb)
2007-10-10 14:29:05 -05:00
Volker Lendecke
dec69975f5 r20046: Add ldb_search_exp_fmt and port comment to 4
(This used to be commit 879dfed8d8356aae6a11352b89bdc0f2d9f28970)
2007-10-10 14:28:54 -05:00
Simo Sorce
ea212eb00f r20034: Start using ldb_search_exp_fmt()
(This used to be commit 4f07542143ddf5066f0360d965f26a8470504047)
2007-10-10 14:28:51 -05:00
Simo Sorce
07b7d84f06 r20033: Never commit before testing
Never commit before testing
Never commit before testing

:-)
(This used to be commit fdd6ce6b7e288137aeaf62f9869441c73bedbd45)
2007-10-10 14:28:51 -05:00
Simo Sorce
5e583a96d4 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.
(This used to be commit 2a2e181e4bc382d69056cebace9a4ae9897bdfbc)
2007-10-10 14:28:50 -05:00
Stefan Metzmacher
2f1fa42fe8 r20023: handle <SID=...> <WKGUID=...> dn's also in ldb_dn_new_fmt()
metze
(This used to be commit 01e3a5080a38c93c4bbf249b03135314b7e0b3f1)
2007-10-10 14:28:48 -05:00
Stefan Metzmacher
875a920ac2 r19966: we don't need 2 versions of this functions
metze
(This used to be commit 98ab0af4ae0d716f27bc48b699f52d34dc2f8507)
2007-10-10 14:28:41 -05:00
Stefan Metzmacher
aee9e6c7cd r19965: make the output a bit nicer
metze
(This used to be commit 8655db41c1e776261ac61a975ca1883b7b59c6aa)
2007-10-10 14:28:41 -05:00
Stefan Metzmacher
6045b6f314 r19964: make debuging easier and report usefull error messages
metze
(This used to be commit f129d78256d965d52e80aedfa76c7c079e611c5f)
2007-10-10 14:28:40 -05:00
Stefan Metzmacher
8534186530 r19954: allow more special dn's:
this works now against w2k3:

bin/ldbedit -U administrator%test -H ldap://w2k3-101/ -b "<GUID=44087590-dd95-435c-adc1-ec20a50807be>" -s base
bin/ldbedit -U administrator%test -H ldap://w2k3-101/ -b "<SID=S-1-5-21-769185814-1958994947-1641909093-513>" -s base
bin/ldbedit -U administrator%test -H ldap://w2k3-101/ -b "<WKGUID=AB8153B7768811D1ADED00C04FD8D5CD,DC=w2k3,dc=vmnet1,dc=vm,dc=base>" -s base

and we should try to implement this in the server too...

metze
(This used to be commit 3c087c89707398d88799367240fe4e6f8b192bb4)
2007-10-10 14:28:40 -05:00