1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

1032 Commits

Author SHA1 Message Date
Simo Sorce
9ec83ae25d r22471: Convert more code to use proper LDB error codes.
This is a 1 to 1 convertion, next step is to make this
code report an error if the basedn is not used, hopefully
avoiding an  explicit search on the base object in the most
common cases.
(This used to be commit 50534c84b4577b2d32565a74a4716088f706bfea)
2007-10-10 14:51:30 -05:00
Stefan Metzmacher
44760c3e6f r22404: more dependencies which should be private
metze
(This used to be commit e0e35965d1eaab182941d17da744b70c4234ca52)
2007-10-10 14:51:14 -05:00
Stefan Metzmacher
bb36705c8d r22226: move discard_const macros to librelace
metze
(This used to be commit c2cfee6d25718fac35bd4ed982c7424f1c3ed0b7)
2007-10-10 14:50:40 -05:00
James Peach
dec40d3463 r22028: Fix include path for the srcidr != builddir case.
(This used to be commit a6141d40b15d52d40998c6206d632a27122a0060)
2007-10-10 14:49:42 -05:00
Andrew Bartlett
3370f2f2d7 r21761: - Give more detail on LDAP client library failures (make it clear
where the error is from)

- Make default error string more consistant

Andrew Bartlett
(This used to be commit 7f115579d20a3112efd11444fafcbf78698fc9a1)
2007-10-10 14:49:24 -05:00
Andrew Bartlett
f80d21069b r21760: Try to pin down were some errors are coming from. Ensure we at least
name the module.

Andrew Bartlett
(This used to be commit 2e85b1583b3da95db9b5b724b38748ff7d1f9efd)
2007-10-10 14:49:23 -05:00
Andrew Bartlett
847102c6ca r21736: Fix the smbclient test to do something more interesting with the last
few authentication tests.  Now that the tests correctly 'fail', I was
able to fix the credentials subsystem to honour USER and PASSWD.

To get --machine-pass working, I needed ldb to always load it's static
modules, so I put this in ldb_connect().

Andrew Bartlett
(This used to be commit 3430d8c072407a1c33c32229095fc9db2142b6fa)
2007-10-10 14:49:20 -05:00
Andrew Bartlett
e2aa39b024 r21553: Remove bogus comment.
(This used to be commit 7c5529729b95f170508b9fe4f04bd33d6f000b1e)
2007-10-10 14:48:55 -05:00
Andrew Bartlett
7dc7156bd7 r21496: A number of ldb control and LDAP changes, surrounding the
'phantom_root' flag in the search_options control

- Add in support for LDB controls to the js layer
- Test the behaviour
- Implement support for the 'phantom_root' flag in the partitions module
- Make the LDAP server set the 'phantom_root' flag in the search_options control
  - This replaces the global_catalog flag passed down as an opaque pointer
- Rework the string-format control parsing function into
  ldb_parse_control_strings(), returning errors by ldb_errorstring()
  method, rather than with printf to stderr
- Rework some of the ldb_control handling logic

Andrew Bartlett
(This used to be commit 2b3df7f38d7790358dbb4de1b8609bf794a351fb)
2007-10-10 14:48:44 -05:00
Stefan Metzmacher
b92c5d454e r21354: fix comment
metze
(This used to be commit 545f769c2fb29323f2fa06e076af894c0be678d0)
2007-10-10 14:48:18 -05:00
Stefan Metzmacher
f14c66ca30 r21311: fix very ugly "using free'ed memory" bug
This was there since 2005...

metze
(This used to be commit 393e4eeb82df8017eb0afb526f4d723cf8814311)
2007-10-10 14:48:08 -05:00
Andrew Bartlett
20df8d8305 r21305: Change the skel module a little, so make it names clearer.
Andrew Bartlett
(This used to be commit 26758fc24ca0b28e1ed07cc20801175e94362d57)
2007-10-10 14:48:07 -05:00
Stefan Metzmacher
97666f12a4 r20969: remove unused function, found my lcov
metze
(This used to be commit 0c5eb19ebc12bc954c23e9f561d5f96644a19aca)
2007-10-10 14:44:05 -05:00
Stefan Metzmacher
784f11bd85 r20952: when a component is changed we need to rebuild the linearized string
metze
(This used to be commit beb816fb78ec4a7816680611af6619740e159424)
2007-10-10 14:43:59 -05:00
Stefan Metzmacher
545f97f94e r20865: remove useless warning, we now always pass the current partition
control as non critical control

metze
(This used to be commit 21fddb643bf05ca2b7c60a4695e1fff0f29ec6d1)
2007-10-10 14:43:41 -05:00
Stefan Metzmacher
fb9dabe39e r20852: add a function to add a ldb control to a ldb_request
metze
(This used to be commit f0bf86ed66f7f9995df35db55f2f3875e7dbacbe)
2007-10-10 14:43:40 -05:00
Stefan Metzmacher
7057be5ec1 r20772: fix segfault caused by ldb_set_default_dns() from init_context hook of the root dse module
metze
(This used to be commit a201d3fc4ddfa336e2a98412d05eac4e51d01cea)
2007-10-10 14:40:51 -05:00
Stefan Metzmacher
0c29f6d56d r20761: let ldb modules call ldb_set_default_dns()
metze
(This used to be commit 224a31cdbf12a555b8c46786c9f83fec8e839c5a)
2007-10-10 14:40:47 -05:00
Stefan Metzmacher
7dd80e872d r20731: we need the complex memmove() handling for removing an attribute only in one place
metze
(This used to be commit dfdfdd6cefeac2974a4b3425a49e3dd93ad7e952)
2007-10-10 14:40:33 -05:00
Stefan Metzmacher
930fca1c97 r20684: if we don't have any indexes, then we should not waste time
to traverse the whole tdb and unpack each record

metze
(This used to be commit 492c79de13eab8db6079f880a8f0857dc7a29fa8)
2007-10-10 14:40:22 -05:00
Simo Sorce
d38a7a39fa r20670: Make the logic more clear
(This used to be commit 906630f18e5fab4be6c40018aafe67df1e27c92e)
2007-10-10 14:40:19 -05:00
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