1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

959 Commits

Author SHA1 Message Date
Simo Sorce
8ec78bcbbf r19909: Make this one double as fast
(This used to be commit 67b88e49b896f1d783619b8f96554adaeabe80df)
2007-10-10 14:28:35 -05:00
Simo Sorce
096aa31e94 r19907: this function is used a lot
use a binary search to get the right handler
(This used to be commit 789e1088c9ce923ca5a6d703b69810eba3bcd4d0)
2007-10-10 14:28:35 -05:00
Simo Sorce
4f8b4a8ef1 r19906: ldb_attr_cmp is used a lot
remove unneded overhead of a function call
(This used to be commit 3ca25867621af049c6cc52e919fa46dd26c31918)
2007-10-10 14:28:34 -05:00
Simo Sorce
baa8ed2015 r19905: use ldb_dn_new_fmt() to avoid double strdups
(This used to be commit 32a6b6c75b041bf829ecf272a9b10164f7ffe12b)
2007-10-10 14:28:34 -05:00
Simo Sorce
5bbe9101cf r19904: port fies from samba3
(This used to be commit 49d1559d3670de4a4f9eace99600c37cf039bae2)
2007-10-10 14:28:34 -05:00
Volker Lendecke
eee64196a3 r19901: Fix a potential NULL dereference
(This used to be commit 75e6fb9654f10a076ed49b0582b40368e149d30a)
2007-10-10 14:28:33 -05:00
Volker Lendecke
a98d02c2f4 r19897: Fix klokwork ids 2278 and 2279
(This used to be commit 44e6d39e0ef17ed5a801f95edaa6fbf5efa21a26)
2007-10-10 14:28:33 -05:00
Simo Sorce
c05c41d352 r19888: make it possible to use default attrib handlers from extensions
list more DN attributes as part of samba attribute handlers
(nCName moved here)
(This used to be commit 627ed8b5165c9a1cc0e2c67329b364f9cd8a1726)
2007-10-10 14:28:32 -05:00
Simo Sorce
5b258c3b9d r19887: return "" string only if the dn is a valid one
(This used to be commit 056f90798f6d2cea1debc50f31fea3d740c4a837)
2007-10-10 14:28:32 -05:00
Simo Sorce
ac6fec2f86 r19886: ncName is specific to samba, not the generic ldb engine
(This used to be commit 505afb18fb8ba427bc3d03f41eb309b27bad68f7)
2007-10-10 14:28:32 -05:00
Stefan Metzmacher
6d074bcd4b 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
(This used to be commit cbf4eb16725992bfdfa5a334e0e5547e6df568e6)
2007-10-10 14:28:32 -05:00
Stefan Metzmacher
2ad51046e3 r19884: rename ldb_dn_key -> ltdb_index_key to make more clear what it's for...
metze
(This used to be commit 6b76a7be4ac5443d68a1253dc9ec430dcdc327f1)
2007-10-10 14:28:31 -05:00
Simo Sorce
f4e6be00ac r19871: simplify more
(This used to be commit e9ddb18c83518703f987bf141807639956612dbf)
2007-10-10 14:28:29 -05:00
Simo Sorce
5ab439893b r19870: Simplify code
(This used to be commit c1737f9a52d9e4d118f969a0953a458188143d0d)
2007-10-10 14:28:28 -05:00
Simo Sorce
353b968025 r19869: fix memleaks
(This used to be commit 3a662a2d985bf801284c5dc1123dec6705e6d092)
2007-10-10 14:28:28 -05:00
Jelmer Vernooij
60e7b4d995 r19863: Create -uninstalled.pc files. This should reenable compilation and running
of the pidl testsuite as part of the testsuite.
(This used to be commit db237ad52f3a42c7b35753df99549ed6d540cec2)
2007-10-10 14:28:27 -05:00
Simo Sorce
a9e31b33b5 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
(This used to be commit 3929c086d5d0b3f08b1c4f2f3f9602c3f4a9a4bd)
2007-10-10 14:28:22 -05:00
Simo Sorce
4889eb9f7a 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.
(This used to be commit a580c871d3784602a9cce32d33419e63c8236e63)
2007-10-10 14:28:22 -05:00
Stefan Metzmacher
a7127ad79e r19743: merge from samba3:
remove old unused schema module

metze
(This used to be commit 3c16951b0d88013b34a0213ced79087653713ddf)
2007-10-10 14:28:18 -05:00
Stefan Metzmacher
982f7f9b44 r19742: fix compiler warnings
metze
(This used to be commit 4edeef56dcd185869812bf622c5b496360eb6223)
2007-10-10 14:28:18 -05:00
Stefan Metzmacher
ab7411714b r19740: fix compiler warning
metze
(This used to be commit 666e674504c514033390bf69746fb3c35baf4b2a)
2007-10-10 14:28:17 -05:00
Andrew Bartlett
e4955030bc 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
(This used to be commit 9b9b7bae16a635d9a9ba72d21a4a4718d294c9b0)
2007-10-10 14:28:16 -05:00
Andrew Bartlett
adae413042 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
(This used to be commit 186766e3095e71ba716c69e681592e217a3bc420)
2007-10-10 14:28:15 -05:00
Stefan Metzmacher
c046f2e7a3 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
(This used to be commit 47da62b15abf48f97ce6fc8dc4627792728349ae)
2007-10-10 14:28:13 -05:00
Stefan Metzmacher
a39db63030 r19719: don't use 'new' as var name samba3 doesn't like it...
metze
(This used to be commit 7a4f46c1c9ec8119db46ffc57d77fcf13ca0c5a8)
2007-10-10 14:28:13 -05:00
Stefan Metzmacher
38272577f1 r19714: - add an explicit default target (needs to be the first target in the Makefile)
- let 'make nss' work alone

metze
(This used to be commit 5685b6c8a267251bb21f2cc0e768b00f615e0f1b)
2007-10-10 14:28:12 -05:00
Andrew Bartlett
9d39abf947 r19683: Guard GUID_from_string from walking off the end.
Andrew Bartlett
(This used to be commit 1c3e9b27a793971b096192204c54338b5e571521)
2007-10-10 14:25:31 -05:00
Jelmer Vernooij
c81f2930a2 r19676: Fix some more dependencies.
(This used to be commit 8768bec81f57131a0c9754e8121b345c0be4a5d0)
2007-10-10 14:25:29 -05:00
Jelmer Vernooij
dbe5084f8e 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.
(This used to be commit 82cb91e2dd50899050066cccee82cb5be52ec3fe)
2007-10-10 14:25:22 -05:00
Andrew Bartlett
13dbee3ffe 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
(This used to be commit 2b569c42e0fbb596ea82484d0e1cb22e193037b9)
2007-10-10 14:25:00 -05:00
James Peach
7218b3b878 r19578: Fix trivial typ0.
(This used to be commit 664b4a84b60d4f8dddfe06e0619b882b322108ec)
2007-10-10 14:24:55 -05:00
Jelmer Vernooij
8f89522a3f r19570: Fix dependencies in pkg-config files.
(This used to be commit 1b046698521f77b843f4a2fcf91230ee2917b569)
2007-10-10 14:24:54 -05:00
Simo Sorce
9ec6f0a3a1 r19532: oops forgot this
(This used to be commit 9af225e319838a33141daa450473c157ecd65cd3)
2007-10-10 14:24:45 -05:00
Simo Sorce
b7774527fa r19531: Make struct ldb_dn opaque and local to ldb_dn.c
(This used to be commit 889fb983ba1cf8a11424a8b3dc3a5ef76e780082)
2007-10-10 14:24:44 -05:00
Andrew Bartlett
74adb98b65 r19521: Fix memory leak.
Andrew Bartlett
(This used to be commit cf1b0cc19fc7aad2a44777929861e70497ccef7d)
2007-10-10 14:24:44 -05:00
Andrew Bartlett
abe0c30aba r19520: Try not to read past the end of the ldb buffer.
Andrew Bartlett
(This used to be commit 3a103149a6c083b80f25163c0f3762f86bb496c1)
2007-10-10 14:24:43 -05:00
Jelmer Vernooij
4fa24df98d r19507: Merge my DSO fixes branch. Building Samba's libraries as shared libraries
works again now, by specifying --enable-dso to configure.
(This used to be commit 7a01235067a4800b07b8919a6a475954bfb0b04c)
2007-10-10 14:24:41 -05:00
Simo Sorce
cc22f65d7b r19490: better to check the return result
(This used to be commit abdc4edbb8f8b8234bad1be05fa92b3f3bc8876c)
2007-10-10 14:24:38 -05:00
Simo Sorce
7f833458ca 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.
(This used to be commit 0fa5d4bc225b83e9f63ac6d75bffc4c08eb6b620)
2007-10-10 14:24:38 -05:00
Volker Lendecke
3cee746a3f r19485: Fix Coverity # 319
(This used to be commit d12bdb6133c1612b9d3e1a0c6692cbc4ab17fe32)
2007-10-10 14:24:37 -05:00
Simo Sorce
a326893159 r19461: Make sqlite3 work again (semi-async)
Still not all tests pass
(This used to be commit cbfc7305ad594c672a16a7f6f82758d17eb5ba62)
2007-10-10 14:21:36 -05:00
Simo Sorce
766193da3f r19460: currently building when there is an existing previous build in place is broken
(This used to be commit 59ac5cf96b208cebe2eb608d853314d335756068)
2007-10-10 14:21:36 -05:00
Simo Sorce
8e82a76105 r19459: Do not build nss by default (it probably works only on linux)
Fix warning with standalone.sh if build exists
(This used to be commit d74fac574067ff2f3918ad435df2c2352e4b2ef7)
2007-10-10 14:21:35 -05:00
Simo Sorce
566c7481d9 r19458: Some info on the "schema"
(This used to be commit 724d8fb153cfe6f941ba2b8893e5221b24da9431)
2007-10-10 14:21:35 -05:00
Simo Sorce
d29c54385a r19457: committed by mistake, this binary is available from here anyway:
http://www.samba.org/ftp/unpacked/junkcode/nsstest.c
(This used to be commit 48e38abe7170a4ec9996079fd5c4672312cc96a0)
2007-10-10 14:21:35 -05:00
Simo Sorce
803a6dbaca r19456: Add an example application for ldb using the tdb backend
(This used to be commit 778198f279b374222c737e5eda1c47efc2dce39c)
2007-10-10 14:21:35 -05:00
Simo Sorce
002338283f r19455: forgot this
(This used to be commit 2b770885cd234027f92ba543706df5d55f16f739)
2007-10-10 14:21:34 -05:00
Simo Sorce
92ec8e5c1e r19454: In standalone build init asq too
(This used to be commit e58b03cd666c6e5df8e5720a62aef23f87be9362)
2007-10-10 14:21:34 -05:00
Simo Sorce
21e63dca9b r19453: Expose helper functions
(This used to be commit ee86e88e4f523d67900b52b5a4d4040a76360c61)
2007-10-10 14:21:34 -05:00
Simo Sorce
5203031007 r19452: Warn but don't die if registering against the rootdse is not possible
(This used to be commit 4ad2eba2aa7711d480a844766e2dd3da938b3413)
2007-10-10 14:21:33 -05:00