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

1084 Commits

Author SHA1 Message Date
Stefan Metzmacher
8dda4342f6 r20168: start separating attributes and syntaxes
metze
2007-10-10 14:29:17 -05:00
Stefan Metzmacher
024dacb3b0 r20130: remove one more talloc_get_type()
metze
2007-10-10 14:29:12 -05:00
Stefan Metzmacher
53805a8562 r20129: remove unused structure elements
metze
2007-10-10 14:29:12 -05:00
Stefan Metzmacher
cb89f0b8d5 r20128: get rid of more talloc_get_type() calls
metze
2007-10-10 14:29:11 -05:00
Stefan Metzmacher
a7397c4d2b r20127: - allocate ldb_handle under ldb_request! fix a mem leak
- pass ldb_request to init_lldb_handle()
- remove some useless talloc_get_type() calls

metze
2007-10-10 14:29:11 -05:00
Stefan Metzmacher
1e3bb18026 r20126: fix talloc hierachy and make lldb a child of module
metze
2007-10-10 14:29:11 -05:00
Stefan Metzmacher
db85b7840c r20125: fix some ugly mem leaks in the ldb_ildb backend
metze
2007-10-10 14:29:10 -05:00
Stefan Metzmacher
b0b9e83fed r20123: - avoid some more talloc_get_type() calls
- pass down ldb_request

metze
2007-10-10 14:29:10 -05:00
Stefan Metzmacher
cf9aade216 r20122: pass ildb to ildb_request_noop()
metze
2007-10-10 14:29:10 -05:00
Stefan Metzmacher
03029d4fed r20121: pass down the ldb_request struct to ildb_request_send(),
also pass ildb instead of module, to avoid multiple talloc_get_type() calls

metze
2007-10-10 14:29:10 -05:00
Stefan Metzmacher
b85d5cb7a4 r20120: fix the talloc hierachy and make ildb a child of module
metze
2007-10-10 14:29:09 -05:00
Simo Sorce
ea111795f4 r20106: Optional ONE Level indexing for ldb_tdb
To activate it you must modify the @INDEXLIST object adding
the attribute @IDXONE: 1

Ldb test included

Simo.
2007-10-10 14:29:07 -05:00
Simo Sorce
a2520bcfa9 r20101: Also rename a variable now that the unused parameter is gone 2007-10-10 14:29:06 -05:00
Simo Sorce
cc1bcb8148 r20100: Remove completely unused parameters 2007-10-10 14:29:05 -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
fdd6ce6b7e r20033: Never commit before testing
Never commit before testing
Never commit before testing

:-)
2007-10-10 14:28:51 -05:00
Simo Sorce
2a2e181e4b r20032: Add ldb_search_exp_fmt()
This functions adds support of a memory context to hook the results to
and a printf style exp_fmt partameter to easily build expressions at once.
2007-10-10 14:28:50 -05:00
Stefan Metzmacher
01e3a5080a r20023: handle <SID=...> <WKGUID=...> dn's also in ldb_dn_new_fmt()
metze
2007-10-10 14:28:48 -05:00
Stefan Metzmacher
98ab0af4ae r19966: we don't need 2 versions of this functions
metze
2007-10-10 14:28:41 -05:00
Stefan Metzmacher
8655db41c1 r19965: make the output a bit nicer
metze
2007-10-10 14:28:41 -05:00
Stefan Metzmacher
f129d78256 r19964: make debuging easier and report usefull error messages
metze
2007-10-10 14:28:40 -05:00
Stefan Metzmacher
3c087c8970 r19954: allow more special dn's:
this works now against w2k3:

bin/ldbedit -U administrator%test -H ldap://w2k3-101/ -b "<GUID=44087590-dd95-435c-adc1-ec20a50807be>" -s base
bin/ldbedit -U administrator%test -H ldap://w2k3-101/ -b "<SID=S-1-5-21-769185814-1958994947-1641909093-513>" -s base
bin/ldbedit -U administrator%test -H ldap://w2k3-101/ -b "<WKGUID=AB8153B7768811D1ADED00C04FD8D5CD,DC=w2k3,dc=vmnet1,dc=vm,dc=base>" -s base

and we should try to implement this in the server too...

metze
2007-10-10 14:28:40 -05:00
Simo Sorce
8bbbfa3467 r19911: talloc_apsrintf is not really required here
its faster this way (another 2-4%s)
2007-10-10 14:28:36 -05:00
Simo Sorce
b1197dbeeb r19910: Make better use of our set of talloc utility functions 2007-10-10 14:28:35 -05:00
Simo Sorce
67b88e49b8 r19909: Make this one double as fast 2007-10-10 14:28:35 -05:00
Simo Sorce
789e1088c9 r19907: this function is used a lot
use a binary search to get the right handler
2007-10-10 14:28:35 -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
32a6b6c75b r19905: use ldb_dn_new_fmt() to avoid double strdups 2007-10-10 14:28:34 -05:00
Simo Sorce
49d1559d36 r19904: port fies from samba3 2007-10-10 14:28:34 -05:00
Volker Lendecke
75e6fb9654 r19901: Fix a potential NULL dereference 2007-10-10 14:28:33 -05:00
Volker Lendecke
44e6d39e0e r19897: Fix klokwork ids 2278 and 2279 2007-10-10 14:28:33 -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
056f90798f r19887: return "" string only if the dn is a valid one 2007-10-10 14:28:32 -05:00
Simo Sorce
505afb18fb r19886: ncName is specific to samba, not the generic ldb engine 2007-10-10 14:28:32 -05:00
Stefan Metzmacher
cbf4eb1672 r19885: special dn's were not casefolded before rev 19831,
act like this again...

also when we already have a casefoled value we should not call ldb_dn_casefold_internal()

metze
2007-10-10 14:28:32 -05:00
Stefan Metzmacher
6b76a7be4a r19884: rename ldb_dn_key -> ltdb_index_key to make more clear what it's for...
metze
2007-10-10 14:28:31 -05:00
Simo Sorce
e9ddb18c83 r19871: simplify more 2007-10-10 14:28:29 -05:00
Simo Sorce
c1737f9a52 r19870: Simplify code 2007-10-10 14:28:28 -05:00
Simo Sorce
3a662a2d98 r19869: fix memleaks 2007-10-10 14:28:28 -05:00
Jelmer Vernooij
db237ad52f r19863: Create -uninstalled.pc files. This should reenable compilation and running
of the pidl testsuite as part of the testsuite.
2007-10-10 14:28:27 -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
Stefan Metzmacher
3c16951b0d r19743: merge from samba3:
remove old unused schema module

metze
2007-10-10 14:28:18 -05:00
Stefan Metzmacher
4edeef56dc r19742: fix compiler warnings
metze
2007-10-10 14:28:18 -05:00
Stefan Metzmacher
666e674504 r19740: fix compiler warning
metze
2007-10-10 14:28:17 -05:00
Andrew Bartlett
9b9b7bae16 r19733: More work to fix ldb_map. With the wildcard present,
map_attr_find_local() always returns, which is exactly what we don't
want.  Instead, rely on the overwrite behaviour.

Andrew Bartlett
2007-10-10 14:28:16 -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
Stefan Metzmacher
47da62b15a r19720: - don't pass a pointer reference to ldb_search_default_callback()
as it's ugly when it free's the callers memory on failure!

- only steal the controls on a LDB_REPLY_EXTENDED, LDB_REPLY_DONE
  and ignore them on LDB_REPLY_ENTRY, LDB_REPLY_REFERRAL as we currently
  have not way to return them in a ldb_result (we should fix this!)

metze
2007-10-10 14:28:13 -05:00
Stefan Metzmacher
7a4f46c1c9 r19719: don't use 'new' as var name samba3 doesn't like it...
metze
2007-10-10 14:28:13 -05:00