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

389 Commits

Author SHA1 Message Date
Stefan Metzmacher
cb9d4c6707 r10312: fix compiler warning
metze
(This used to be commit 3309a0f4d90f01e1f6182b797e2bfe3f8380e59c)
2007-10-10 13:38:16 -05:00
Simo Sorce
16aff2a184 r10305: start implementing better error handling
changed the prioivate modules API
error string are now not spread over all
modules but are kept in  a single place.

This allows a better control of memory
and error reporting.
(This used to be commit 3fc676ac1d6f59d08bedbbd9377986154cf84ce4)
2007-10-10 13:38:16 -05:00
Simo Sorce
46a8d80937 r10304: check for basic ldb_message sanity and return appropriate
LDB_ERR_ value
(This used to be commit 610f5646f0816820ac9342e81d46d139e26cc918)
2007-10-10 13:38:15 -05:00
Simo Sorce
bb8f5c93ee r10303: check no attribute is given empty
(This used to be commit f0ad9495e45ee0d41ef8ca182984599c8e11cabb)
2007-10-10 13:38:15 -05:00
Simo Sorce
eebe0c269e r10302: Introduce ldap like error codes
(This used to be commit cbe438be6d9b1b7182ab3e63607a2e5b2d5456fb)
2007-10-10 13:38:15 -05:00
Simo Sorce
cba1859fe1 r10301: fix standalone compiple after tdb changes
(This used to be commit acfb4b928363b00346cd8991347d992c76c981d6)
2007-10-10 13:38:15 -05:00
Simo Sorce
8919d6bf9a r10299: remove the public (un)lock functions and introduce a transaction based
private ldb API

ldb_sqlite3 is already working with this model and ldb_tdb will do
as soon as tridge finishes the tdb transaction code.

currently the transactions are always implicit and wrap any single
ldb API call except searching, the transaction functions are
currently not made public on purpose.

Simo.
(This used to be commit 1da4ac2cdcb7e54076f85242a93784260dced918)
2007-10-10 13:38:14 -05:00
Simo Sorce
5c708830bc r10277: do not ovverride LIKE, thanks to derrel I found out how to do
the same thing with a harmless user function
(This used to be commit 158693b4064bd731aa4f6cdb2fde51d7aa596cf5)
2007-10-10 13:38:13 -05:00
Andrew Tridgell
0868b7c77d r10253: a fairly large tdb cleanup and re-organise. Nearly all of this change
just involves splitting up the core tdb.c code into separate files on
logical boundaries, but there are some minor functional changes as well:

 - move the 'struct tdb_context' into tdb_private.h, hiding it from
   users. This was done to allow the structure to change without
   breaking code that uses tdb.

 - added accessor functions tdb_fd(), tdb_name(), and tdb_log_fn() to
   access the elements of struct tdb_context that were used by
   external code but are no longer visible

 - simplied tdb_append() to use tdb_fetch()/tdb_store(), which is just
   as good due to the way tdb locks work

 - changed some of the types (such as tdb_off to tdb_off_t) to make
   syntax highlighting work better

 - removed the old optional spinlock code. It was a bad idea.

 - fixed a bug in tdb_reopen_all() that caused tdbtorture to sometimes
   fail or report nasty looking errors. This is the only real bug
   fixed in this commit. Jeremy/Jerry, you might like to pickup this
   change for Samba3, as that could definately affect smbd in
   Samba3.

The aim of all of these changes is to make the tdb
transactions/journaling code I am working on easier to write. I
started to write it on top of the existing tdb.c code and it got very
messy. Splitting up the code makes it much easier to follow.

There are more cleanups we could do in tdb, such as using uint32_t
instead of u32 (suggested by metze). I'll leave those for another day.
(This used to be commit 4673cdd0d261614e707b72a7a348bb0e7dbb2482)
2007-10-10 13:38:12 -05:00
Simo Sorce
d8da5e4fb7 r10251: some more work on ldb_sqlite3
I must say that writing a new module is a very good way
to find lot of subtle bugs laying in the code

We need more tests!

commit oLschema2ldif.c to keep it safe from data losses (rm -fr :-)

update test generic to reflect the fix made on comparsion functions
(This used to be commit 4357a2db5eadb15519ed93b957b2bad25ebf2a7d)
2007-10-10 13:38:11 -05:00
Simo Sorce
8bfcb31b0e r10250: the comparison is caseless so we must caseless subtract
otherwise we get the wrong result when comparing upper
case chars with lower case chars
(This used to be commit f6ea6e9382f954be819ec82e28598cdf9cf88661)
2007-10-10 13:38:11 -05:00
Simo Sorce
f77e859e48 r10236: fix (C) note
(This used to be commit 466e6812c35af9096fea05520c6b59a19793c4d1)
2007-10-10 13:38:10 -05:00
Simo Sorce
36d6ebf376 r10233: add commented PRAGMA to avoid fsyncs
(This used to be commit e5d8d834600040793c1e45c7aaceb374df2b3839)
2007-10-10 13:38:10 -05:00
Simo Sorce
38b04883fe r10232: Some work on ldb_sqlite3.
It is still far from being usable in samba4 but I want to commit
so that the work does not get lost by mistake.
This is also a good way to get comments if somebody is interested.

Sorry Derrell I ended up rewriting large parts of the code but I find
this style much more readable. Thanks for the hard work done. Your
work was a good reference for me.

ah the current code also shows some good numbers

sqlite3 generic test:
uid search took 0.05 seconds
real    0m12.492s
user    0m0.492s
sys     0m0.345s

with tdb we still get better numbers:
uid search took 0.46 seconds
real    0m0.892s
user    0m0.360s
sys     0m0.468s

but most of the time is spent in adding operations and I think
there's still a lot of space for improvement.

Simo.
(This used to be commit ace9990060c10d0931f418934b2121aea9512ff7)
2007-10-10 13:38:10 -05:00
Simo Sorce
2b2e133752 r10231: seem I flipped these, fix.
(This used to be commit 8ddf4de162f42ed53ab0603dd0e1536796f9197e)
2007-10-10 13:38:09 -05:00
Jelmer Vernooij
3ca370b3db r10038: Update instructions on using gcov with ldb
(This used to be commit 8d246fac49332426699e797f52ef694083b5e2ea)
2007-10-10 13:36:32 -05:00
Jelmer Vernooij
4462869db2 r9948: Be a bit less verbose
(This used to be commit 071dba2d0ae964e9901adf0c4870894deed43650)
2007-10-10 13:36:24 -05:00
Andrew Bartlett
95fcf031b0 r9929: Fix indentation
Andrew Bartlett
(This used to be commit d6f57ec921839b46534eb64a7b6374161ff37835)
2007-10-10 13:36:23 -05:00
Andrew Bartlett
ca87549168 r9928: ncName is a DN, and needs to use DN matching rules.
Andrew Bartlett
(This used to be commit b89e7a7fcdf80f2cab581f138358b4324d15d6bc)
2007-10-10 13:36:22 -05:00
Jelmer Vernooij
f14f4fd706 r9918: Fix two copy-n-paste bugs that were preventing the modification
of special DN's when the rdn_name or timestamps modules were in use.
(This used to be commit c61efb2ff851f8f55b4747c8068c7e780083e35c)
2007-10-10 13:36:22 -05:00
Jelmer Vernooij
08f630be82 r9915: Some more mappings. Fix weird sAMAccountName values.
(This used to be commit 8ff1358f401e0086b941f4ff73af5d4c38a1f8bf)
2007-10-10 13:36:21 -05:00
Jelmer Vernooij
4f4dae05f0 r9912: Fix another bug in ldb_map.
(This used to be commit 4c3b37d660e798764e35a31221f4939ab6f36948)
2007-10-10 13:36:21 -05:00
Jelmer Vernooij
ca6c0af86f r9908: Generate posixUser and posixGroup as well
(This used to be commit ebed25b47d3d8bd350b51b462d605d713f17602d)
2007-10-10 13:36:21 -05:00
Jelmer Vernooij
e2e2508b58 r9899: Be more conservative about what is sent to the remote server in ldb_map.
(This used to be commit 76e943d4416e38ce4cce27d5403bc3e133d0025b)
2007-10-10 13:36:21 -05:00
Tim Potter
b2c54c08bf r9881: I can't believe this can make a difference...
(This used to be commit 31069bfd18c4b7355dbf85df9fb479705b0e3b4b)
2007-10-10 13:36:20 -05:00
Tim Potter
4d0ec61e49 r9880: Convert remaining initialisers to more portable form. This should
clean out a lot of build farm breakage.
(This used to be commit c34fbdc6c3fd2c066c713bdd84e6f40f6aa8cd43)
2007-10-10 13:36:19 -05:00
Tim Potter
7a3e0a89f1 r9879: A quick check to see if nested initialisers (?) is portable across the
build farm.  I have a feeling it isn't.
(This used to be commit 7cc8df0c2f46fb9ce753e368ce645bcb69585334)
2007-10-10 13:36:19 -05:00
Jelmer Vernooij
1b5cb7309d r9857: Fix rename/delete issues
(This used to be commit d6dce7ef3eb21a5e90244cf2ce7403ab43b12d63)
2007-10-10 13:36:18 -05:00
Jelmer Vernooij
05db3024ba r9854: Finish ldb_map testsuite
Update PLAN
Some more small other fixes
(This used to be commit de2bde2526ffaf521253e3b9e58fc11417986321)
2007-10-10 13:36:18 -05:00
Jelmer Vernooij
222fdd5237 r9842: More error checks in the ldb_map modules, extend testsuite
(This used to be commit b7992de4b7d42a55e00509c887a269a07c19627d)
2007-10-10 13:36:17 -05:00
Jelmer Vernooij
84bfcd3c78 r9835: Make ldb_map compile in the stand-alone LDB build
(This used to be commit 2283a336e0e31e6857621d9806bba54c400bd986)
2007-10-10 13:36:17 -05:00
Jelmer Vernooij
40f85ace04 r9813: Conver testsuite for samba3sam module to EJS
(This used to be commit 77f24ed131bf57c30bb500e1d8d387bd4b403ddc)
2007-10-10 13:35:04 -05:00
Jelmer Vernooij
81e130b592 r9789: Patch from Volker that fixes the build on AIX.
(This used to be commit 9a1a7fb60e6531ff74e6817313548f3cee37a990)
2007-10-10 13:35:01 -05:00
Jelmer Vernooij
f9447d2a17 r9786: Move ldb_map into ldb/modules/
Move samba3sam to dsdb/
(This used to be commit eb9d615bcd49328131613f64745760a90553b7f2)
2007-10-10 13:35:01 -05:00
Andrew Tridgell
5c6528336c r9775: r11607@blu: tridge | 2005-08-30 12:16:19 +1000
fixed the help message
(This used to be commit 5e3d9708f6592bf35f491f4ae979c20ad99e8358)
2007-10-10 13:35:00 -05:00
Jelmer Vernooij
c0293aa715 r9771: - Prevent ldb crash when a invalid DN is added
- Don't silently drop records with empty attributes

tridge/simo: Could you please verify this patch is correct?
(This used to be commit 505c9b1d3d39475da141d3b3c156a7e5ba06790c)
2007-10-10 13:34:59 -05:00
Jelmer Vernooij
7be4cf8c1d r9770: Couple other bugfixes
Update TODO-list
(This used to be commit d9541535e3f9e1c058410eeb0a54d60181572f2b)
2007-10-10 13:34:58 -05:00
Jelmer Vernooij
fe1ee4494e r9766: Prevent erroneous OOM message
ldb_dup_val() sets out->data to NULL if in->length == 0
(This used to be commit 7ecb6988e74f4273b2ca3ea76562117e1be54b08)
2007-10-10 13:34:57 -05:00
Jelmer Vernooij
615e1c55bf r9751: Remove C version of samba3dump (the EJS version works nicely as well).
Fix a couple of bugs in ldb_map.
(This used to be commit 66df76a63433aea4081eab8b20bf3ba86e0a606d)
2007-10-10 13:34:56 -05:00
Jelmer Vernooij
0a72d9a5f7 r9744: - [upgrade.js] Start working on smb.conf conversion.
- [ldb_map] Support storing non-mappable data in a fallback LDB
(This used to be commit 435e4c6389b9d9b545beec8036289620ee5883db)
2007-10-10 13:34:55 -05:00
Andrew Bartlett
24186a80eb r9728: A *major* update to the credentials system, to incorporate the
Kerberos CCACHE into the system.

This again allows the use of the system ccache when no username is
specified, and brings more code in common between gensec_krb5 and
gensec_gssapi.

It also has a side-effect that may (or may not) be expected: If there
is a ccache, even if it is not used (perhaps the remote server didn't
want kerberos), it will change the default username.

Andrew Bartlett
(This used to be commit 6202267f6ec1446d6bd11d1d37d05a977bc8d315)
2007-10-10 13:34:54 -05:00
Jelmer Vernooij
d6cd54fb0a r9718: Work a bit on the SWAT interface
(This used to be commit b1844905d2c1ca26aef0ccba799ff16383348fc1)
2007-10-10 13:34:53 -05:00
Jelmer Vernooij
8b15ef881d r9712: Bunch of small fixes
Write out basic sam.ldif
(This used to be commit 67593bef7f0f8dc2258b2fe9c06779f0025d240e)
2007-10-10 13:34:52 -05:00
Jelmer Vernooij
df384bfa25 r9699: Add as much attributes the current Samba4 SAM has to the mapping table (ignoring most of them, currently..)
(This used to be commit 5100ae211c380024baa67b1f643c7294a29c1713)
2007-10-10 13:34:49 -05:00
Jelmer Vernooij
95ed275dbb r9698: Fix a bit of memory management
More minor bugfixes
Support mapping objectclasses and do mapping on 'dn' field as well (not just msg->dn)
(This used to be commit b7b079167d5c6616f7c5c4afb7dd80c15707cfd9)
2007-10-10 13:34:42 -05:00
Jelmer Vernooij
e1269bafe8 r9690: Extend test + fix several bugs
(This used to be commit 0cff0e03fca0ddccaff3b463aadba63d29e061a9)
2007-10-10 13:34:41 -05:00
Jelmer Vernooij
afb62ee775 r9689: valgrind-clean now. Editing works now mostly, you just lose half of your
database every time you do it...
(This used to be commit 40ea2af427911d9a3e65ca9ebed438e9a0a83af8)
2007-10-10 13:34:41 -05:00
Jelmer Vernooij
e8635da74d r9686: Another round of bugfixes. Works somewhat now, when running under valgrind ;-)
(This used to be commit 786379064f0ed779b965330fb3b74deaca75ce99)
2007-10-10 13:34:41 -05:00
Jelmer Vernooij
7e3838dd2d r9685: Add tests for samba3sam mapping module
Fix a couple of bugs
Move samba3sam backend to lib/ldb/
Remove some more unused parameters
(This used to be commit 7f864d446d6af7cfd9fb8dbc496a29b36ec57ce9)
2007-10-10 13:34:41 -05:00
Jelmer Vernooij
02779b745f r9672: Fix build for compilers that don't like undefined-length arrays at the end of structs...
(This used to be commit c2211df586337ff68bb805801959147065040c01)
2007-10-10 13:34:39 -05:00