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

375 Commits

Author SHA1 Message Date
Jelmer Vernooij
f1997dabed r26580: Include sentinel in build.h, in case the list is empty. 2007-12-24 01:51:07 -06:00
Jelmer Vernooij
1cf374eb31 r26577: Fix the standalone ldb build. 2007-12-24 01:51:06 -06:00
Jelmer Vernooij
ba8be2dfc0 r26576: Allow the static module loading code to be used for the Python modules.
Simplify the way module initialization functions are handled.
2007-12-24 01:51:06 -06:00
Jelmer Vernooij
6ac86f8be7 r26540: Revert my previous commit after concerns raised by Andrew. 2007-12-21 05:52:06 +01:00
Jelmer Vernooij
e53e79eebe r26539: Remove unnecessary statics. 2007-12-21 05:52:05 +01:00
Andrew Bartlett
f4023b176e r26529: Indeed, this belongs in the schema module. Ranged results need to use
an attribute with ';' in the name.

Andrew Bartlett
2007-12-21 05:51:52 +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
13ae3108da r26410: Remove unnecessary static. 2007-12-21 05:49:42 +01:00
Andrew Bartlett
5e93ca2ea1 r26301: Collapose ldb_next_init() into being a caller of ldb_init_module_chain
and therefore further improve debug output.

Andrew Bartlett
2007-12-21 05:48:16 +01:00
Andrew Bartlett
6628d9f843 r26299: Print out which module failed to initialise.
Andrew Bartlett
2007-12-21 05:48:15 +01:00
Andrew Bartlett
833dfc2f2a 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
2007-12-21 05:46:44 +01:00
Andrew Bartlett
c3bfcf44a4 r25962: Move to more modern ldb functions loading module list.
Andrew Bartlett
2007-12-21 05:45:20 +01:00
Andrew Bartlett
aa8348a27a 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
2007-12-21 05:45:08 +01:00
Andrew Bartlett
af40b1cd88 r25933: LDB: Don't free errstring until after the printf, in case it is one of
the arguments.

Andrew Bartlett
2007-12-21 05:45:07 +01:00
Andrew Bartlett
f42690a90c r25857: Indent 2007-12-21 05:44:30 +01:00
Andrew Bartlett
f4d733c3d0 r25856: If the search fails, it is not valid to steal 'res'.
Andrew Bartlett
2007-12-21 05:44:29 +01:00
Jelmer Vernooij
4fd3770f0c r25843: Finish check-soloading. 2007-12-21 05:44:23 +01:00
Andrew Bartlett
2a835d900f r25755: Fix a couple of memory leaks, in particular a new leak onto the NULL
context caused by my objectclass module work.

Andrew Bartlett
2007-12-21 05:43:46 +01:00
Jelmer Vernooij
083b606496 r25630: Allow "NULL" as memory context, for consistency with the rest of the code,
which also does.
2007-12-21 05:43:02 +01:00
Andrew Bartlett
f5ce04b904 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
2007-10-10 15:06:56 -05:00
Stefan Metzmacher
8f2db3c130 r25215: replace talloc_append_string() with talloc_strdup_append_buffer()
metze
2007-10-10 15:06:55 -05:00
Jelmer Vernooij
917bd737cb r25084: Move samba-specific code out of lib/ldb directory. 2007-10-10 15:06:26 -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 Bartlett
2ed782f7ca r24566: Remove trailing newlines in ldb_debug(), these are not required.
Andrew Bartlett
2007-10-10 15:02:16 -05:00
Andrew Bartlett
c4c3afcdcb r24261: Fix the standalone ldb build after I moved the objectclass module out.
Andrew Bartlett
2007-10-10 15:01:32 -05:00
Andrew Bartlett
0fbea30577 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
2007-10-10 15:01:16 -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 Bartlett
dcff83ebe4 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
2007-10-10 14:53:27 -05:00
Stefan Metzmacher
4e32aafb9e r22989: allow '@foo' attributes searchable as we allow '@foo' attributes
in all other places too...

metze
2007-10-10 14:52:36 -05:00
Stefan Metzmacher
f6740c8b7a r22789: fix loading of internal samba4 modules
metze
2007-10-10 14:52:17 -05:00
Jelmer Vernooij
1152a4f56d r22750: dlopen() is always available now (and returns a correct error if not supported by the system), thanks to libreplace. 2007-10-10 14:52:09 -05:00
Simo Sorce
e24812016f r22696: Make sure this is an ascii char
spotted by Volker
2007-10-10 14:52:02 -05:00
Volker Lendecke
75ba82dee0 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.
2007-10-10 14:52:02 -05:00
Jelmer Vernooij
1093875d59 r22681: Fix standalone ldb build when parent directory name != ldb. 2007-10-10 14:52:00 -05:00
Andrew Bartlett
c0fd6f6339 r22557: Simo has long bugged me that the paths in the sam.ldb partitions were
not relative to the location of the sam.ldb, but instead
lp_private_dir().

This fixes that issue.

Andrew Bartlett
2007-10-10 14:51:43 -05:00
Andrew Bartlett
a2848dbf1f r22474: If ldb does not return sucess, then the res variable may not be valid.
It *should* just be NULL from the initialisation above, but I've had
this not be the case...

Andrew Bartlett
2007-10-10 14:51:30 -05:00
Andrew Bartlett
7f115579d2 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
2007-10-10 14:49:24 -05:00
Andrew Bartlett
2e85b1583b r21760: Try to pin down were some errors are coming from. Ensure we at least
name the module.

Andrew Bartlett
2007-10-10 14:49:23 -05:00
Andrew Bartlett
3430d8c072 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
2007-10-10 14:49:20 -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
beb816fb78 r20952: when a component is changed we need to rebuild the linearized string
metze
2007-10-10 14:43:59 -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
dfdfdd6cef r20731: we need the complex memmove() handling for removing an attribute only in one place
metze
2007-10-10 14:40:33 -05:00
Stefan Metzmacher
b98ca57a65 r20588: handle extended operations in the ldb_next_request() call
metze
2007-10-10 14:37:09 -05:00
Stefan Metzmacher
cfcd05adc0 r20583: implement the frontend calls for extended operations
metze
2007-10-10 14:37:08 -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
Andrew Bartlett
ef1ca30180 r20373: When adding a base to a "" DN, don't precede it with a comma (,)
Andrew Bartlett
2007-10-10 14:30:18 -05:00