1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00
Commit Graph

186 Commits

Author SHA1 Message Date
Simo Sorce
e331dcbc32 r7239: add a little test
(This used to be commit 9293de1c35)
2007-10-10 13:17:30 -05:00
Derrell Lipman
913c19cd5b r7133: work in progress, including a HIGHLY revised and simplified schema
(This used to be commit aa9bb6ad4c)
2007-10-10 13:17:20 -05:00
Derrell Lipman
a3972de894 r7116: work in progress
(This used to be commit c860a4f994)
2007-10-10 13:17:18 -05:00
Jelmer Vernooij
1863240bbc r7114: Convert ldb documentation to DocBook/XML
(This used to be commit 470c6185fb)
2007-10-10 13:17:18 -05:00
Jelmer Vernooij
dde05bc787 r7113: Move manpages from docs repository to source repository
(This used to be commit f16d346032)
2007-10-10 13:17:18 -05:00
Derrell Lipman
a81630c0c4 r6984: added tree representation documentation and utility code, to be used for subclasses of object classes
(This used to be commit 7aca32dca6)
2007-10-10 13:17:02 -05:00
Andrew Tridgell
942eb58e61 r6967: fixed the new multi-value dn=@ATTRIBUTES so it actually works :-)
this demonstrates that we need a improved test suite as well
(This used to be commit 959c73e93f)
2007-10-10 13:17:01 -05:00
Derrell Lipman
26eff174ee r6956: added start of ldb_sqlite3 work
(This used to be commit ac396a4a53)
2007-10-10 13:17:00 -05:00
Stefan Metzmacher
4f4b92a690 r6937: some minor fixes and updates
metze
(This used to be commit 03b1ff48f9)
2007-10-10 13:16:59 -05:00
Simo Sorce
e4553307c1 r6935: don't do three things at a time :-)
(This used to be commit a97eb63c11)
2007-10-10 13:16:59 -05:00
Simo Sorce
3d97821243 r6934: thanks to HotaruT for pointing out skel.c was not in line with the rest of the code
(This used to be commit 9f0963c97f)
2007-10-10 13:16:58 -05:00
Simo Sorce
fc21940da5 r6931: declare this to avoid warnings until we have loadable modules
(This used to be commit 73258909db)
2007-10-10 13:16:58 -05:00
Simo Sorce
ca4e0c8539 r6867: this code will change the way the @ATTRIBUTES object is handled
this object properties are now used as multivalue attributes
now all values inserted are checked against a "valid values table"

eg:

this form is now accepted:

dn: @ATTRIBUTES
uid: CASE_INSENSITIVE
uid: WILDCARD

this form is now rejected:

dn: @ATTRIBUTES
uid: CASE_INSENSITIVE WILDCARD

please update your .ldb files if you make use of @ATTRIBUTES
(sam.ldb heavily uses it)

the code passes all make test tests for both tdb and ldap, it also
passes the new test to check for wrong @ATTRIBUTES attribute values

Simo.
(This used to be commit 1295b891a2)
2007-10-10 13:16:52 -05:00
Andrew Tridgell
9a9cf9e075 r6833: split out the routine that calculates the diff between two ldb messages from ldbedit,
so other progs can use it.
(This used to be commit fa4f33558a)
2007-10-10 13:16:49 -05:00
Andrew Tridgell
8557a22f81 r6829: include the talloc autoconf tests when building ldb standalone
(This used to be commit 3339a88617)
2007-10-10 13:16:48 -05:00
Andrew Tridgell
9469051d5b r6817: - fixed empty ldap search elements in filters
- added support for guids in cldap netlogon searches.

the cldap server now passes the LDAP-CLDAP torture test
(This used to be commit eb7979d9de)
2007-10-10 13:16:47 -05:00
Jelmer Vernooij
e5a3ec0e5b r6790: Use config.h file for ldb and add test for stdint.h
(This used to be commit c1f1b5a945)
2007-10-10 13:16:43 -05:00
Simo Sorce
62ccaf2d86 r6759: let us have a wildcard attribute so that we can set a default for all attributes
example:

*: CASE_INSENSITIVE

by placing it in the @ATTRIBUTES object you make all the matching be case insensitive
to make an excepion to the general rule now you just need to create an entry like:

name: CASE_SENSITIVE

the key CASE_SENSITIVE currently does not exist but has the effect of making the code
ignore the wildcard default flag and being ldb case sensitive by default it let the
"name" attribute be case sensitive again

Tridge, can you look at this commit?
Should we introduce a CASE_SENSITVE/BINARY flag and handle it in the code ?

Simo.
(This used to be commit 5f10707e8a)
2007-10-10 13:16:41 -05:00
Andrew Tridgell
425350bb61 r6560: added a tdb_chainlock_read() call in ldb_search(). This guarantees
that ldb_search() sees a single consistent view of the database (by
blocking writes during a ldb_search)
(This used to be commit 917f2a8a07)
2007-10-10 13:16:25 -05:00
Jelmer Vernooij
dfaa7a3bae r6546: Fix ldb standalone build
Add autoconf to tdb
(This used to be commit 95fed657f4)
2007-10-10 13:16:25 -05:00
Jelmer Vernooij
90be367a18 r6487: Use autoconf for standalone build of tdb
(This used to be commit 78bf8026bd)
2007-10-10 13:16:19 -05:00
Jelmer Vernooij
5d794389a0 r6486: Add 'make install' and pkg-config file.
(This used to be commit e3be094fb7)
2007-10-10 13:16:19 -05:00
Jelmer Vernooij
d4bcee3d27 r6485: Move LDAP detection M4 file and use it for the standalone ldb build
Remove a couple of unused M4 macros.

The standalone LDB build will not work until I've figured out what
AC_CHECK_LIB_EXT() does exactly (it's Samba-specific)
(This used to be commit cc20d6bb7f)
2007-10-10 13:16:19 -05:00
Andrew Tridgell
62a9924781 r6481: change download instructions to include tdb and talloc
(This used to be commit ebe7071b2e)
2007-10-10 13:16:19 -05:00
Andrew Tridgell
35a2368b5a r6480: fixed whitespace typo
(This used to be commit 1265c9b8a8)
2007-10-10 13:16:18 -05:00
Andrew Tridgell
c878d4659b r6479: - added a simple web page
- fixed configure.in ordering
(This used to be commit 5a727d74d7)
2007-10-10 13:16:18 -05:00
Simo Sorce
fe4d985b6f r6470: Remove ldb_search_free() it is not needed anymore.
Just use talloc_free() to release the memory after an ldb_search().
(This used to be commit 4f0948dab0)
2007-10-10 13:11:40 -05:00
Jelmer Vernooij
499f00b4d9 r6442: Add mechanism for configuring ldb independantly of the rest of
Samba using the autoconf tools.
(This used to be commit a8de35ca27)
2007-10-10 13:11:37 -05:00
Tim Potter
b9456e9d67 r6360: Quieten unused variable warning.
(This used to be commit 5a598f5da1)
2007-10-10 13:11:34 -05:00
Richard Sharpe
da38166904 r6118: Make it so that we can do --with-zlib=no in configure and also a couple
of small typos.
(This used to be commit 9b4069e845)
2007-10-10 13:11:20 -05:00
Andrew Tridgell
a5ee5aae69 r6087: - remove the dlopen code for now (before it goes back, it needs to be
made into something that isn't a maze of #ifdefs)

- when a module is not found, make it a non-fatal error. Otherwise the standalone ldb
  tools just bail out. The previous code meant that if you had a
  module listed and it wasn't present then you could _never_ fix it,
  as you coudln't open the ldb to remove that module from @MODULES !
(This used to be commit c4728625c0)
2007-10-10 13:11:18 -05:00
Andrew Tridgell
be6285adad r6086: default to stderr for error messages in ldb, so we get errors in ldb_connect()
(This used to be commit a6e492f95c)
2007-10-10 13:11:18 -05:00
Tim Potter
f58143b025 r5769: Fix unused variable warning.
(This used to be commit 80dfac3640)
2007-10-10 13:11:02 -05:00
Simo Sorce
0b4c61a05a r5670: simplify and clarify ldb_modules.c code
rectify the test schema
correct a glitch in schema module
(This used to be commit 0579b5f7ad)
2007-10-10 13:10:58 -05:00
Andrew Tridgell
2f9e1650f9 r5665: the data within el2->values can still be used at this point, so don't free
(This used to be commit 12d03f9663)
2007-10-10 13:10:57 -05:00
Andrew Tridgell
ec97506a51 r5664: simo, please look into this. It is possible for the number of elements
in msg[0] to be 0, in which case we crash. This is a workaround.

Also, if you could please split up this function into readable
pieces. It's a bit of a mess at the moment.
(This used to be commit 19a22f78c2)
2007-10-10 13:10:57 -05:00
Simo Sorce
b1b14817ea r5585: LDB interfaces change:
changes:
- ldb_wrap disappears from code and become a private structure of db_wrap.c
  thanks to our move to talloc in ldb code, we do not need to expose it anymore

- removal of ldb_close() function form the code
  thanks to our move to talloc in ldb code, we do not need it anymore
  use talloc_free() to close and free an ldb database

- some minor updates to ldb modules code to cope with the change and fix some
  bugs I found out during the process
(This used to be commit d58be9e74b)
2007-10-10 13:10:55 -05:00
Andrew Tridgell
5a88d5211b r5374: - changed the dn key code in the ldb tdb backend to correctly honor
the case sensitive/insensitive flags on sections of a dn. So if a dn
  is made up of 4 attributes, and 2 of those are case insensitive and 2
  are case sensitive, then all the attribute names are uppercases, but
  only the values of the case insensitive attributes are uppercased when
  forming the tdb key.

- added code to canonicalise the dn, removing leading and trailing
  spaces from attribute names and values

- when the @ATTRIBUTES record changes, fix the dn keys of any records that should now have new
  dn keys due to changes in the case sensitivity of the record

I really did this to allow me to make the WINS database properly case
insensitive, but it is also the correct general fix for ldb, as it
matches the LDAP specification (and w2k LDAP server behaviour)
(This used to be commit 0f034dc563)
2007-10-10 13:09:48 -05:00
Andrew Tridgell
ff4797a9e4 r5357: added ldb_msg_add_fmt(), for creating formatted ldb record values
(This used to be commit 18fb48204f)
2007-10-10 13:09:45 -05:00
Andrew Bartlett
c8ca613e93 r5330: Remove #include <sys/time.h> from includes.h.
Add #include "system/time.h" back (it was removed in some of these
places because the definitions were provided by <sys/time.h> on tridge's
platform.)

Andrew Bartlett
(This used to be commit 34b1da7303)
2007-10-10 13:09:43 -05:00
Andrew Tridgell
e82aad1ce3 r5298: - got rid of pstring.h from includes.h. This at least makes it a bit
less likely that anyone will use pstring for new code

 - got rid of winbind_client.h from includes.h. This one triggered a
   huge change, as winbind_client.h was including system/filesys.h and
   defining the old uint32 and uint16 types, as well as its own
   pstring and fstring.
(This used to be commit 9db6c79e90)
2007-10-10 13:09:38 -05:00
Andrew Tridgell
fedf0b0d91 r5296: - only include the tdb headers where they are needed
- removed the u32 hack in events.c as I think this was only needed as
  tdb.h defines u32. Metze, can you check that this hack is indeed no
  longer needed on your suse system?
(This used to be commit 6f79432fe6)
2007-10-10 13:09:38 -05:00
Andrew Tridgell
df9d1a3709 r5189: fixed a double free bug in the ltdb indexing code
(This used to be commit 7be0bc93bd)
2007-10-10 13:09:29 -05:00
Andrew Bartlett
ea2209e3db r5092: Add a bit more const - moving it further into the LDB layer.
Andrew Bartlett
(This used to be commit ffad9b22be)
2007-10-10 13:09:22 -05:00
Andrew Tridgell
b808d49cd5 r4863: schema_find_attribute() should be static
(This used to be commit e7262dccce)
2007-10-10 13:09:01 -05:00
Simo Sorce
bc2ae4e4cd r4862: - better structure schema tests
- fix check for deletion of required attributes on modify
  removed by mistake with the previous commits
(This used to be commit 0315159daf)
2007-10-10 13:09:00 -05:00
Simo Sorce
23f92c1634 r4859: changed a numbe rof things:
- Try to no tcopy memory if not necessary
- let the searches hang around until we finish the operation
- greatly simplify the modify operation

still todo:

- check attributes syntax
- check objectclasses type, we cannot allow to add a new structural
  objectclass to an exixting entry unless the existing one is a parent
- more tests
(This used to be commit c6257379e0)
2007-10-10 13:09:00 -05:00
Simo Sorce
f19049c9c9 r4844: - Remove the unused attrsyn structure
- Change 0 to NULL when checking allocations
- Introduce the schema_attr_cmp hepler function
- Do not allow auxiliary classes to be missing
- Try to ease code readability and try to get
  main code out of loops when possibile.
(This used to be commit a30f647b8a)
2007-10-10 13:09:00 -05:00
Andrew Tridgell
ec6f6aeda1 r4801: remove the two bogus ctype.h includes
(This used to be commit b221c3dbb9)
2007-10-10 13:08:57 -05:00
Simo Sorce
9f3d734308 r4786: forgot to commit the exclusion for schema checking against our control entries
(This used to be commit e895fcf4a3)
2007-10-10 13:08:55 -05:00