1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-28 17:47:29 +03:00

29 Commits

Author SHA1 Message Date
Andrew Tridgell
4b0e5bd753 r7527: - added a ldb_search_bytree() interface, which takes a ldb_parse_tree
instead of a search expression. This allows our ldap server to pass
  its ASN.1 parsed search expressions straight to ldb, instead of going
  via strings.

- updated all the ldb modules code to handle the new interface

- got rid of the separate ldb_parse.h now that the ldb_parse
  structures are exposed externally

- moved to C99 structure initialisation in ldb

- switched ldap server to using ldb_search_bytree()
(This used to be commit 96620ab2ee5d440bbbc51c1bc0cad9977770f897)
2007-10-10 13:18:06 -05:00
Stefan Metzmacher
4f4b92a690 r6937: some minor fixes and updates
metze
(This used to be commit 03b1ff48f97fa81c515f90a398c6f8cde579cb51)
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 a97eb63c11be6ce2bb94bca61078b303f15c9b9a)
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 9f0963c97f94687a1226d224f80b2aac1128d1a0)
2007-10-10 13:16:58 -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 4f0948dab0aa5e8b6a4ce486f3668ca8dfae23db)
2007-10-10 13:11:40 -05:00
Tim Potter
b9456e9d67 r6360: Quieten unused variable warning.
(This used to be commit 5a598f5da17b60ad52b2ae9d8e4484286e492a1f)
2007-10-10 13:11:34 -05:00
Tim Potter
f58143b025 r5769: Fix unused variable warning.
(This used to be commit 80dfac3640443a41f7e45e9164ca1a6749494011)
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 0579b5f7adfe160be8ecf124934b6593a02ed06f)
2007-10-10 13:10:58 -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 d58be9e74b786a11a57e89df36081d55730dfe0a)
2007-10-10 13:10:55 -05:00
Andrew Tridgell
b808d49cd5 r4863: schema_find_attribute() should be static
(This used to be commit e7262dccce1ccc563fad48023c733c1d13929b4b)
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 0315159daf157b64ef3452372dd74199600e24b8)
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 c6257379e094881987cd11e05502129b2ce1c5a0)
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 a30f647b8abe6b77ef73018f58af2f8a11689b91)
2007-10-10 13:09:00 -05:00
Andrew Tridgell
ec6f6aeda1 r4801: remove the two bogus ctype.h includes
(This used to be commit b221c3dbb9a7af88f917562b6f907fd0617eb05f)
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 e895fcf4a33aeaf228d8b4b367c4e768506275bb)
2007-10-10 13:08:55 -05:00
Simo Sorce
63f79d11b8 r4784: finally make schema module use a single ldb
add the new test-schema test
(This used to be commit 42a20f6fa4073fc5ea1ca6254137a4ef53caee01)
2007-10-10 13:08:54 -05:00
Andrew Tridgell
5dbebbe2ad r4781: the tolower() in schema.c is a premature optimisation. I suspect the
"distinguishedName" checking in that module is incorrect and should be
removed, but meanwhile, lets not make it slow down the compile of
every other module.
(This used to be commit 6534ce650bef7405e0926c9b75b185943429ed18)
2007-10-10 13:08:54 -05:00
Simo Sorce
1e233e9053 r4775: use schema_attr_cmp wrapper to check for the special dn/distinguishedName case alias
(This used to be commit 18cd6cb67404830b8a5d28fa4106dadb275a5222)
2007-10-10 13:08:53 -05:00
Simo Sorce
a7bbb190d9 r4759: use ldb_attr_cmp() to compare attribute names
check required attributes are not deleted on modify operation
if the objectclass is deleted then deny the operation if
orphan atributes are left behind
(This used to be commit 8c11038d67c495f8d5f06cf1fdfe976088864b45)
2007-10-10 13:08:51 -05:00
Simo Sorce
a2f77f979d r4714: move the ldb code to the new talloc interface (eg remove _p suffix)
this helps standalone building of ldb

renew the schema module
split code into functions to improve readability and code reuse

add and modify works correctly but we need a proper testsuite

Simo
(This used to be commit a681ae365ff1b5a2771b42ebd90336651ce1e513)
2007-10-10 13:08:47 -05:00
Simo Sorce
8d8c21f8d0 r4513: add experimental modification attribute checking
still not complete but works with add and replace, not tested with delete
lot of duplicated code to remove
(This used to be commit ea051f6cd39d0e729bb425eb08034a0eee0996dc)
2007-10-10 13:08:17 -05:00
Stefan Metzmacher
bb71b37f70 r4506: fix compiler warnings
metze
(This used to be commit 1c6accd7cbf9ccb7f642b85200671b9d4fe23f47)
2007-10-10 13:08:16 -05:00
Simo Sorce
b92afa3838 r4505: Add a first very basic schema module
To use it you should provide a schema.ldb file where the schema is stored
and load the module in the ldb you want to have schema check activated

more info soon.

currently schema checks are performed only on new object creation not on modifications

Simo.
(This used to be commit b8bb62f14419efd434a344606fb3f753384761a0)
2007-10-10 13:08:16 -05:00
Simo Sorce
8164d24428 r4503: add an error reporting function (fixes)
(This used to be commit d11732f4f7f9bc535222aa7a6dd2f15cf5002a4d)
2007-10-10 13:08:16 -05:00
Simo Sorce
ab4e92ab21 r4502: add an error reporting function
(This used to be commit 985a58a16d04f3b92b4bbff86f6c466385f01321)
2007-10-10 13:08:15 -05:00
Andrew Tridgell
1a988ec9af r4474: - converted ldb to use talloc internally
- added gcov flags to Makefile.ldb

- expanded ldb test suite to get more coverage
(This used to be commit 0ab98f50a7e0fe15347a99e5c29a6590a87729a0)
2007-10-10 13:07:55 -05:00
Simo Sorce
a4de8cd6a5 r3897: add a locking infrastructure
(This used to be commit a99c0adb09e2bc77b876d23cb2d0711ccffd83ca)
2007-10-10 13:06:02 -05:00
Stefan Metzmacher
8a18778286 r3783: - don't use make proto for ldb anymore
- split ldh.h out of samba's includes.h

- make ldb_context and ldb_module private to the subsystem

- use ltdb_ prefix for all ldb_tdb functions

metze
(This used to be commit f5ee40d6ce8224e280070975efc9911558fe675c)
2007-10-10 13:05:52 -05:00
Simo Sorce
79ebe463e2 r3755: add missing files
(This used to be commit 0b715b6ce21d23970d207d57e90133be17790d15)
2007-10-10 13:05:51 -05:00