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

965 Commits

Author SHA1 Message Date
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
Stefan Metzmacher
5685b6c8a2 r19714: - add an explicit default target (needs to be the first target in the Makefile)
- let 'make nss' work alone

metze
2007-10-10 14:28:12 -05:00
Andrew Bartlett
1c3e9b27a7 r19683: Guard GUID_from_string from walking off the end.
Andrew Bartlett
2007-10-10 14:25:31 -05:00
Jelmer Vernooij
8768bec81f r19676: Fix some more dependencies. 2007-10-10 14:25:29 -05:00
Jelmer Vernooij
82cb91e2dd r19636: Add URLs to ldb and talloc pkg-config files.
Always build and install .pc files as they make sense for static libs
as well.
2007-10-10 14:25:22 -05:00
Andrew Bartlett
2b569c42e0 r19598: Ahead of a merge to current lorikeet-heimdal:
Break up auth/auth.h not to include the world.

Add credentials_krb5.h with the kerberos dependent prototypes.

Andrew Bartlett
2007-10-10 14:25:00 -05:00
James Peach
664b4a84b6 r19578: Fix trivial typ0. 2007-10-10 14:24:55 -05:00
Jelmer Vernooij
1b04669852 r19570: Fix dependencies in pkg-config files. 2007-10-10 14:24:54 -05:00
Simo Sorce
9af225e319 r19532: oops forgot this 2007-10-10 14:24:45 -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
Andrew Bartlett
cf1b0cc19f r19521: Fix memory leak.
Andrew Bartlett
2007-10-10 14:24:44 -05:00
Andrew Bartlett
3a103149a6 r19520: Try not to read past the end of the ldb buffer.
Andrew Bartlett
2007-10-10 14:24:43 -05:00
Jelmer Vernooij
7a01235067 r19507: Merge my DSO fixes branch. Building Samba's libraries as shared libraries
works again now, by specifying --enable-dso to configure.
2007-10-10 14:24:41 -05:00
Simo Sorce
abdc4edbb8 r19490: better to check the return result 2007-10-10 14:24:38 -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
Volker Lendecke
d12bdb6133 r19485: Fix Coverity # 319 2007-10-10 14:24:37 -05:00
Simo Sorce
cbfc7305ad r19461: Make sqlite3 work again (semi-async)
Still not all tests pass
2007-10-10 14:21:36 -05:00
Simo Sorce
59ac5cf96b r19460: currently building when there is an existing previous build in place is broken 2007-10-10 14:21:36 -05:00
Simo Sorce
d74fac5740 r19459: Do not build nss by default (it probably works only on linux)
Fix warning with standalone.sh if build exists
2007-10-10 14:21:35 -05:00
Simo Sorce
724d8fb153 r19458: Some info on the "schema" 2007-10-10 14:21:35 -05:00