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

159 Commits

Author SHA1 Message Date
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
0c3442c68b r23364: add LDB_FLG_NOMMAP flag 2007-10-10 14:53:12 -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
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
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
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
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 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
Simo Sorce
0caf6a44e0 r17830: Set the default_basedn (hey, it comes from the "default" naming contex :-)
once at connection time, after modules have been loaded.

Introduce a function to retrieve the value where needed.
2007-10-10 14:16:46 -05:00
Andrew Tridgell
5d1b66b68f r17821: changed ldb_search() and the ldbsearch command line utility to
automatically work out the basedn when basedn==NULL. The basedn is
fetched from the rootDSE defaultNamingContext value (if there is one)

This means we don't have to have the defaultNamingContext logic in
lots of places. It makes a lot of sense to me to have basedn==NULL
mean "use the default, as given by the database"

Note that explicitly specifing a basedn of '' is not the same thing,
and will not trigger this code

The baseDN is cached in a ldb opaque, so we only have to fetch it once
2007-10-10 14:16:44 -05:00
Stefan Metzmacher
694a56b0ae r17743: fix compiler warnings
metze
2007-10-10 14:16:35 -05:00
Andrew Bartlett
ba1c652bae r17580: Add a new tools to convert back from AD-like schema to OpenLDAP.
Add attribute syntax mapping to the existing OpenLDAP -> AD tool.

Andrew Bartlett
2007-10-10 14:15:39 -05:00
Simo Sorce
ad75cf8695 r17516: Change helper function names to make more clear what they are meant to do 2007-10-10 14:15:31 -05:00
Simo Sorce
8c6efd7b55 r17503: Add a useful function to search for a DN 2007-10-10 14:15:30 -05:00
Stefan Metzmacher
96259f0f24 r17430: implement the LDAP_SERVER_PERMISSIVE_MODIFY control in the client
metze
2007-10-10 14:15:24 -05:00
Stefan Metzmacher
40dc7c1787 r17429: implement the LDAP_SERVER_SHOW_DELETED control in the client
metze
2007-10-10 14:15:24 -05:00
Stefan Metzmacher
84e74a759c r17420: add client support for the LDAP_SERVER_DOMAIN_SCOPE control
metze
2007-10-10 14:15:24 -05:00
Stefan Metzmacher
4ccd0f8171 r17419: add client support for the LDAP_SERVER_SEARCH_OPTIONS support.
with this you can limit a search to a specific partitions
or a search over all partitions without getting referrals.
(Witch is the default behavior on the Global Catalog Port)

metze
2007-10-10 14:15:24 -05:00
Stefan Metzmacher
23759a1e9b r17418: add client support for the LDAP_SERVER_SD_FLAGS control
metze
2007-10-10 14:15:23 -05:00
Simo Sorce
97c4d41a30 r17350: Avoid a couple of memleaks, unnecessary code and use a more linear style 2007-10-10 14:15:18 -05:00
Andrew Bartlett
4827a6b171 r17225: Fix the build by fixing the spelling of START-TLS.
Andrew Bartlett
2007-10-10 14:10:21 -05:00
Simo Sorce
523e8f3ed4 r17195: Start thinking how to implement extended operations.
Ad supports three extended operations:
- start tls
- dynamic objects
- fast binds

none of these are a priority.
2007-10-10 14:10:18 -05:00
Simo Sorce
c6aa60c7e6 r17186: "async" word abuse clean-up part 2 2007-10-10 14:10:17 -05:00
Simo Sorce
25fc735404 r17185: Oh, I wanted to do this for sooo long time.
Finally acknowledge that ldb is inherently async and does not have a dual personality anymore
Rename all ldb_async_XXX functions to ldb_XXX except for ldb_async_result, it is now ldb_reply
to reflect the real function of this structure.

Simo.
2007-10-10 14:10:16 -05:00
Andrew Bartlett
0828739951 r16825: Make ldb_sainity_check() set an error string. This makes it much
easier to chase down what modules or application code gets wrong.

Ensure not to leave memory allocated on failure in ldb_search()

Andrew Bartlett
2007-10-10 14:09:47 -05:00