Simo Sorce
1a7823823e
Now that we pass down the event context, start removing calls to
...
event_context_init() where possible
(This used to be commit 412f7a98dd809306ac9f35003fce554e1e1252e7)
2008-06-15 11:11:14 -04:00
Simo Sorce
21943bf0af
Ups fix typo in error type
...
(This used to be commit eb351e33e58abdacdf44cf700f028cc13f52c4c8)
2008-06-14 20:18:50 -04:00
Simo Sorce
fb8723d28c
Cosmetic fixes.
...
Remove trailing spaces adn try to fit 80 columns where possible
(This used to be commit 5457c667647ec156bb7b4f86ce580def4e9350d5)
2008-06-14 17:33:27 -04:00
Simo Sorce
929adc9efa
Make up the right dependencies now that ldb depends on libevents
...
(This used to be commit 3b8eec7ca334528cad3cdcd5e3fc5ee555d8d0e0)
2008-06-14 11:59:19 -04:00
Jelmer Vernooij
18d80bdf1f
Merge v4.0-test
...
(This used to be commit 977dbdeaf363c8905ed9fd0570eba4be80582833)
2008-03-28 00:44:14 +01:00
Stefan Metzmacher
92f6333535
ldb: fix the standalone build
...
metze
(This used to be commit 91b49365abed6f67e2b3c18b0090b4e6ff1df935)
2008-03-18 15:59:21 +01:00
Jelmer Vernooij
b5bd663690
Fix use of realpath, fix init functions for ldb.
...
(This used to be commit ca510136d2c4cae8f520c76df6aaadb5d412bea1)
2008-02-25 20:40:37 +01:00
Jelmer Vernooij
738fd7fd50
Fix standalone ldb build modules.
...
(This used to be commit 0b133a30a23757cf463ff22dff6372ae5e11d4c7)
2008-02-25 17:33:28 +01:00
Jelmer Vernooij
584c4a518f
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3
...
Conflicts:
source/build/smb_build/header.pm
source/build/smb_build/makefile.pm
source/lib/ldb/include/ldb_private.h
(This used to be commit 1a646af0647f021d99473a8991c35e616a423ea6)
2008-02-25 12:58:09 +01:00
Andrew Bartlett
774fa12ac1
Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local
...
(This used to be commit 5cd3310b78a85243eb436d05db3228c3495f9162)
2008-02-21 09:55:13 +11:00
Andrew Bartlett
49b3a48293
Until the new ldb changes land, make ldb_wait set the error string.
...
This makes it easier to track down which module only returned and
error code, but not the error string.
Andrew Bartlett
(This used to be commit c4d502f68fbd5d5bc2ac5bb6369950379c9176fc)
2008-02-21 09:53:11 +11:00
Jelmer Vernooij
0020793515
Fix static module list generation for ldb.
...
(This used to be commit 92c1c0e9137f0845cac6cc96bf78711b6aaffe21)
2008-02-20 03:40:44 +01:00
Jelmer Vernooij
995788536e
Remove more function-based inits.
...
(This used to be commit b1a7810f3e70f9a831d9b8e85d531e448072adaf)
2008-02-20 02:57:07 +01:00
Jelmer Vernooij
71bc5acead
Allow ldb backends without init function, use init function-less ldb modules.
...
(This used to be commit 141ee91272fb4dafca0149f679e17721b6a3011e)
2008-02-20 01:37:53 +01:00
Jelmer Vernooij
b66ee2ed22
Move responsibilities of build.h to makefile.
...
(This used to be commit a43f6d37bce85748e9cf2675e5beced5db26f1c3)
2008-02-16 18:38:02 +01:00
Jelmer Vernooij
c13ae70731
r26580: Include sentinel in build.h, in case the list is empty.
...
(This used to be commit f1997dabed584bdc864c4b7235c29603c312ef46)
2007-12-24 01:51:07 -06:00
Jelmer Vernooij
9852e793bc
r26577: Fix the standalone ldb build.
...
(This used to be commit 1cf374eb3125c66844f01d013016feaf99760582)
2007-12-24 01:51:06 -06:00
Jelmer Vernooij
be33f4c611
r26576: Allow the static module loading code to be used for the Python modules.
...
Simplify the way module initialization functions are handled.
(This used to be commit ba8be2dfc0de4434c798663336b81f7f95cde520)
2007-12-24 01:51:06 -06:00
Jelmer Vernooij
0500b87092
r26540: Revert my previous commit after concerns raised by Andrew.
...
(This used to be commit 6ac86f8be7d9a8c5ab396a93e6d1e6819e11f173)
2007-12-21 05:52:06 +01:00
Jelmer Vernooij
3e75f222bc
r26539: Remove unnecessary statics.
...
(This used to be commit e53e79eebef3ece6978f0a2b4a1ee0a0814bb5d2)
2007-12-21 05:52:05 +01:00
Andrew Bartlett
131c40a421
r26529: Indeed, this belongs in the schema module. Ranged results need to use
...
an attribute with ';' in the name.
Andrew Bartlett
(This used to be commit f4023b176eabfb3282fe9b999eac8db55a095ab0)
2007-12-21 05:51:52 +01:00
Jelmer Vernooij
cb62bbbb7c
r26481: Make function for loading symbol from DSO more generic, and allow modules to provide an ops table directly rather than an initialization function.
...
(This used to be commit a71419a73a869c24121005ccbbcb4396f888888b)
2007-12-21 05:50:38 +01:00
Jelmer Vernooij
b8850f326b
r26410: Remove unnecessary static.
...
(This used to be commit 13ae3108dad2f9f0f7a421d672751fa594f4e3fb)
2007-12-21 05:49:42 +01:00
Andrew Bartlett
89144dfead
r26301: Collapose ldb_next_init() into being a caller of ldb_init_module_chain
...
and therefore further improve debug output.
Andrew Bartlett
(This used to be commit 5e93ca2ea16a7d10d63606ae539c0fdc4e224556)
2007-12-21 05:48:16 +01:00
Andrew Bartlett
dbf77b6405
r26299: Print out which module failed to initialise.
...
Andrew Bartlett
(This used to be commit 6628d9f843d773ec1a5841f793b16f76910c39c4)
2007-12-21 05:48:15 +01:00
Andrew Bartlett
364266e22a
r26192: Handle, test and implement the style of extended_dn requiest that MMC uses.
...
It appears that the control value is optional, implying type 0 responses.
Failing to parse this was causing LDAP disconnects with 'unavailable
critical extension'.
Andrew Bartlett
(This used to be commit 833dfc2f2af84c45f954e428c9ea6babf100ba92)
2007-12-21 05:46:44 +01:00
Andrew Bartlett
f6312d1b5a
r25962: Move to more modern ldb functions loading module list.
...
Andrew Bartlett
(This used to be commit c3bfcf44a49c6a19579c85fb3660331177a436fb)
2007-12-21 05:45:20 +01:00
Andrew Bartlett
08dd389ddf
r25934: Handle a LDB_ERR_NO_SUCH_OBJECT return value when looking for the
...
modules.
This will be useful when we start enforcing validity in base DNs.
Andrew Bartlett
(This used to be commit aa8348a27a6938a1a26d4a7ed3b7405966202ad8)
2007-12-21 05:45:08 +01:00
Andrew Bartlett
f1ec8da56d
r25933: LDB: Don't free errstring until after the printf, in case it is one of
...
the arguments.
Andrew Bartlett
(This used to be commit af40b1cd88f0e932665f6fe90daae8e687a3dc0c)
2007-12-21 05:45:07 +01:00
Andrew Bartlett
0d5c5cb372
r25857: Indent
...
(This used to be commit f42690a90c2f76e7fc130ebbdbd0f93fefacfad6)
2007-12-21 05:44:30 +01:00
Andrew Bartlett
e3198b3acd
r25856: If the search fails, it is not valid to steal 'res'.
...
Andrew Bartlett
(This used to be commit f4d733c3d00c90ac2e02fcc202240ae7c290463e)
2007-12-21 05:44:29 +01:00
Jelmer Vernooij
61b5dce0e6
r25843: Finish check-soloading.
...
(This used to be commit 4fd3770f0c3f9a3e586f1a03a759dab782e04ba7)
2007-12-21 05:44:23 +01:00
Andrew Bartlett
2de30ecd94
r25755: Fix a couple of memory leaks, in particular a new leak onto the NULL
...
context caused by my objectclass module work.
Andrew Bartlett
(This used to be commit 2a835d900fee71e4461d5d18e39b4358fa6fdfba)
2007-12-21 05:43:46 +01:00
Jelmer Vernooij
957af15e4b
r25630: Allow "NULL" as memory context, for consistency with the rest of the code,
...
which also does.
(This used to be commit 083b606496308741958bb9fc6b3e50a582857677)
2007-12-21 05:43:02 +01:00
Andrew Bartlett
c64116e158
r25218: After discussion with Simo, remove the subclass support from LDB.
...
Subclass support was designed to avoid needing to spell out the full
list of objectClasses that an entry was in. However, Samba4 now
enforces this restriction in the objectClass module, and the way
subclass matching was handled was complex and counter-intuitive in my
opinion (and did not match LDAP).
Andrew Bartlett
(This used to be commit f5ce04b904e14445a2a7e7f92e7e1f64b645c6f2)
2007-10-10 15:06:56 -05:00
Stefan Metzmacher
c364bbbfa3
r25215: replace talloc_append_string() with talloc_strdup_append_buffer()
...
metze
(This used to be commit 8f2db3c130ce85d38f805836a7df039822ede066)
2007-10-10 15:06:55 -05:00
Jelmer Vernooij
4a4cdc990c
r25084: Move samba-specific code out of lib/ldb directory.
...
(This used to be commit 917bd737cb07817664d9088860588d47525f5ff8)
2007-10-10 15:06:26 -05:00
Jelmer Vernooij
ed2a1c718a
r25081: Add modules_dir member to ldb_context that is used rather than a global
...
modulesdir setting. Samba always sets this to lp_modulesdir()/ldb
(This used to be commit e672380d2156cf0421108a9c34f04f096c2afeed)
2007-10-10 15:06:25 -05:00
Andrew Bartlett
e10577585d
r24566: Remove trailing newlines in ldb_debug(), these are not required.
...
Andrew Bartlett
(This used to be commit 2ed782f7caa98003c524d70bcb97874002be57a2)
2007-10-10 15:02:16 -05:00
Andrew Bartlett
49c42e2550
r24261: Fix the standalone ldb build after I moved the objectclass module out.
...
Andrew Bartlett
(This used to be commit c4c3afcdcb6ac5dc220f353b25689056484ac6c9)
2007-10-10 15:01:32 -05:00
Andrew Bartlett
b7f9e85db1
r23993: Attempt to fix bug #4808 , reported by mwallnoefer@yahoo.de. The issue
...
is that when we all ldb_msg_add_empty(), we might realloc() the
msg->elements array. We need to ensure the source pointer (when
copying an element from the same msg) is still valid, or the data
copied.
Andrew Bartlett
(This used to be commit 0fbea30577233d00e7c6cdd4faaece0f99fc57b1)
2007-10-10 15:01:16 -05:00
Andrew Tridgell
6c973f4e8c
r23798: updated old Temple Place FSF addresses to new URL
...
(This used to be commit 40c0919aaa9c1b14bbaebb95ecce53eb0380fdbb)
2007-10-10 14:59:15 -05:00
Andrew Tridgell
b8d69a7ea2
r23795: more v2->v3 conversion
...
(This used to be commit 84b468b2f8f2dffda89593f816e8bc6a8b6d42ac)
2007-10-10 14:59:14 -05:00
Andrew Bartlett
e9d19477e4
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
(This used to be commit dcff83ebe463bc7391841f55856d7915c204d000)
2007-10-10 14:53:27 -05:00
Stefan Metzmacher
fe1d56dd3b
r22989: allow '@foo' attributes searchable as we allow '@foo' attributes
...
in all other places too...
metze
(This used to be commit 4e32aafb9ebdcc70966aaa2e3891ec9a0959535d)
2007-10-10 14:52:36 -05:00
Stefan Metzmacher
2dacfdf099
r22789: fix loading of internal samba4 modules
...
metze
(This used to be commit f6740c8b7abdaa65c8467220bf2d14e21fe71053)
2007-10-10 14:52:17 -05:00
Jelmer Vernooij
31b47acf52
r22750: dlopen() is always available now (and returns a correct error if not supported by the system), thanks to libreplace.
...
(This used to be commit 1152a4f56d7402bf3aa00b5b108c5c6c668cec6b)
2007-10-10 14:52:09 -05:00
Simo Sorce
31d28c5b8c
r22696: Make sure this is an ascii char
...
spotted by Volker
(This used to be commit e24812016f60f506f0df2cb5ba8c2c6987f7da40)
2007-10-10 14:52:02 -05:00
Volker Lendecke
d6121458b0
r22694: It seems that AIX 5.3 with XLC has difficulties with <ctype.h>. This is
...
an attempt to work around this: Maybe it helps if we include other stuff
first.
This raises a question however: Do we want the DN handling to be locale
dependent? isalpha() can return different things depending on the
current locale.
(This used to be commit 75ba82dee052fa5f4141e66e1cb748101aa95d71)
2007-10-10 14:52:02 -05:00
Jelmer Vernooij
52fb06edc2
r22681: Fix standalone ldb build when parent directory name != ldb.
...
(This used to be commit 1093875d59f1ea9b8bd82277d4f9d8366e584952)
2007-10-10 14:52:00 -05:00