1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-26 04:23:49 +03:00
Commit Graph

237 Commits

Author SHA1 Message Date
Jelmer Vernooij
b1a7810f3e Remove more function-based inits. 2008-02-20 02:57:07 +01:00
Kai Blin
37ed9fbeee ldb: Get rid of a warning. 2008-01-11 11:12:36 +01:00
Jelmer Vernooij
a71419a73a r26481: Make function for loading symbol from DSO more generic, and allow modules to provide an ops table directly rather than an initialization function. 2007-12-21 05:50:38 +01:00
Jelmer Vernooij
dcbacd9adb r26371: Fix typo. 2007-12-21 05:49:08 +01:00
Jelmer Vernooij
d8b1750165 r26066: Use TALLOC_CTX consistently for talloc contexts rather than void \* (it was already being used for some). 2007-12-21 05:45:49 +01:00
Jelmer Vernooij
9d73becbb2 r25887: Build Samba-specific ldb modules as dso's. 2007-12-21 05:44:40 +01:00
Jelmer Vernooij
262c1c23a6 r25624: Remove ipv4_addr hack. Only causes 4 extra includes of system/network.h because we stripped down includes. 2007-12-21 05:43:00 +01:00
Jelmer Vernooij
042dff55b4 r25540: Remove prototypes for already removed functions. 2007-10-10 15:07:50 -05:00
Jelmer Vernooij
e672380d21 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
2007-10-10 15:06:25 -05:00
Andrew Tridgell
40c0919aaa r23798: updated old Temple Place FSF addresses to new URL 2007-10-10 14:59:15 -05:00
Andrew Tridgell
84b468b2f8 r23795: more v2->v3 conversion 2007-10-10 14:59:14 -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 Tridgell
0c3442c68b r23364: add LDB_FLG_NOMMAP flag 2007-10-10 14:53:12 -05:00
Jelmer Vernooij
1093875d59 r22681: Fix standalone ldb build when parent directory name != ldb. 2007-10-10 14:52:00 -05:00
Jelmer Vernooij
bdde740551 r22642: Allow standalone build to work without tdb or talloc checked out, but
provided by the system.
2007-10-10 14:51:57 -05:00
Stefan Metzmacher
c2cfee6d25 r22226: move discard_const macros to librelace
metze
2007-10-10 14:50:40 -05:00
James Peach
a6141d40b1 r22028: Fix include path for the srcidr != builddir case. 2007-10-10 14:49:42 -05:00
Andrew Bartlett
7c5529729b r21553: Remove bogus comment. 2007-10-10 14:48:55 -05:00
Andrew Bartlett
2b3df7f38d 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
2007-10-10 14:48:44 -05:00
Stefan Metzmacher
f0bf86ed66 r20852: add a function to add a ldb control to a ldb_request
metze
2007-10-10 14:43:40 -05:00
Stefan Metzmacher
224a31cdbf r20761: let ldb modules call ldb_set_default_dns()
metze
2007-10-10 14:40:47 -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
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
Stefan Metzmacher
49c7da812c r20462: add functions to handle UTCTime strings
metze
2007-10-10 14:35:52 -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
58cbbaa4b4 r20316: fix compiler warning
metze
2007-10-10 14:29:38 -05:00
Stefan Metzmacher
d20d1872d5 r20189: remove unused struct element
metze
2007-10-10 14:29:20 -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
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
3ca2586762 r19906: ldb_attr_cmp is used a lot
remove unneded overhead of a function call
2007-10-10 14:28:34 -05:00
Simo Sorce
627ed8b516 r19888: make it possible to use default attrib handlers from extensions
list more DN attributes as part of samba attribute handlers
(nCName moved here)
2007-10-10 14:28:32 -05:00
Simo Sorce
3929c086d5 r19832: better prototypes for the linearization functions:
- ldb_dn_get_linearized
  returns a const string

- ldb_dn_alloc_linearized
  allocs astring with the linearized dn
2007-10-10 14:28:22 -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
Andrew Bartlett
186766e309 r19731: Modify the ldb_map infrustructure to always map from requested
attributes to backend (remote) attributes.

We can't do a reverse mapping safely where the remote attribute may be
a source for multiple local attributes.  (We end up with the wrong
attributes returned).

In doing this, I've modified the samba3sam.js test to be more
realistic, and fixed some failures in the handling of primaryGroupID.

I've added a new (private) helper function ldb_msg_remove_element() to
avoid a double lookup of the element name.

I've also re-formatted many of the function headers, to fit into
standard editor widths.

Andrew Bartlett
2007-10-10 14:28:15 -05:00
Simo Sorce
889fb983ba r19531: Make struct ldb_dn opaque and local to ldb_dn.c 2007-10-10 14:24:44 -05:00
Simo Sorce
0fa5d4bc22 r19489: Change ldb_msg_add_value and ldb_msg_add_empty to take a foruth argument.
This is a pointer to an element pointer. If it is not null it will be
filled with the pointer of the manipulated element.
Will avoid double searches on the elements list in some cases.
2007-10-10 14:24:38 -05:00
Simo Sorce
2b770885cd r19455: forgot this 2007-10-10 14:21:34 -05:00
Simo Sorce
ee86e88e4f r19453: Expose helper functions 2007-10-10 14:21:34 -05:00
Andrew Tridgell
d7e0768516 r19365: fixed a memory leak in the ldb attribute handling 2007-10-10 14:21:17 -05:00
Stefan Metzmacher
67a6a41ba3 r19196: merge from samba3:
pass always a mem_ctx to functions and a ldb_context where needed

metze
2007-10-10 14:20:52 -05:00
Andrew Tridgell
7e2ec87590 r18942: add a ldb_set_create_perms() function in ldb. I didn't call it
ldb_set_umask() (which is what we had discussed) as it doesn't
actually set the umask (in effect it sets the inverse of the umask -
the perms to be used for the file)
2007-10-10 14:20:22 -05:00
Andrew Tridgell
6ace943fac r18831: minor build changes for samba3. The logging changes will be removed
when the tdb api is updated
2007-10-10 14:19:15 -05:00
Andrew Bartlett
72858f8594 r18781: Move the usnCreated and usnChanged handling around again.
This moves these attributes from objectguid into an optional backend
(objectguid), used by ltdb.  For OpenLDAP, the entryUUID module
converts entryCSN into usnChanged.

This also changes the sequence number API, and uses 'time based'
sequence numbers, when an LDAP or similar backend is detected.

To assist this, we also store the last modified time in the TDB,
whenever we change a value.

Andrew Bartlett
2007-10-10 14:19:11 -05:00
Simo Sorce
bcbe82873f r18777: add helper functions to create an ldb_request structure 2007-10-10 14:19:11 -05:00