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

102 Commits

Author SHA1 Message Date
Jelmer Vernooij
108f6caffe r26623: python: Allow specifying URL rather than host name on the command-line. 2007-12-28 10:33:02 -06:00
Jelmer Vernooij
3f7bfef195 r26617: Load smb.conf. 2007-12-27 17:36:06 -06:00
Jelmer Vernooij
cc15136c1e r26615: Fix Python syntax 2007-12-27 17:36:05 -06:00
Jelmer Vernooij
c550c03372 r26570: - Trim size of the swig-generated Python bindings by removing a bunch of {}'s.
- Start working on Python equivalents for various EJS tests.
- Fix regression in argument order for reg_diff_apply() in EJS bindings.
2007-12-24 01:51:03 -06:00
Jelmer Vernooij
485db76d84 r26567: Allow registering new ldb modules from python. 2007-12-24 01:51:02 -06:00
Jelmer Vernooij
e91fe76d29 r26537: Support ldb.add({'dn': 'dc=foo,bar=bla', ...}). 2007-12-21 05:51:57 +01:00
Jelmer Vernooij
d7f0b12c9e r26480: Add utility class for testing LDB code. 2007-12-21 05:50:37 +01:00
Jelmer Vernooij
fc3a8caef7 r26068: Import improved Python bindings for LDB, including tests. 2007-12-21 05:45:51 +01:00
Jelmer Vernooij
d41ed7ca8d r25842: Start working on test for loading dso's in ldb. 2007-12-21 05:44:22 +01:00
Andrew Bartlett
f5ce04b904 r25218: After discussion with Simo, remove the subclass support from LDB.
Subclass support was designed to avoid needing to spell out the full
list of objectClasses that an entry was in.  However, Samba4 now
enforces this restriction in the objectClass module, and the way
subclass matching was handled was complex and counter-intuitive in my
opinion (and did not match LDAP).

Andrew Bartlett
2007-10-10 15:06:56 -05:00
Andrew Bartlett
27750e0b5f r20464: Make it clear what does the process group stuff 2007-10-10 14:35:53 -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
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
Simo Sorce
cbfc7305ad r19461: Make sqlite3 work again (semi-async)
Still not all tests pass
2007-10-10 14:21:36 -05:00
Andrew Tridgell
dd82c474a1 r19273: - fixed error handling with the ldap backend
- propogate errors to the ldbadd command line tool

- use the rdn_name module when testing the tdb backend to allow the
  same test code to correctly test the ldap and non-ldap backends
2007-10-10 14:21:00 -05:00
Andrew Tridgell
588c91f06b r18538: we need a pipe here, not a logical OR
also fix cn name for this record, and ensure tests/tmp is created
2007-10-10 14:18:43 -05:00
Andrew Tridgell
fbe13ed83e r18536: fixed the loading of external binary files from ldif into ldb 2007-10-10 14:18:43 -05:00
Andrew Tridgell
823cd3ab35 r18535: move the AC_CANONICAL_HOST and host specific flag tests into
libreplace. This should fix the standalone build of tdb on HPUX, where
we need to blacklist mmap.

Unfortunately this requires that we have a copy of config.guess and
config.sub in each of our project subdirectories. I tried to find a
way to use something like AC_CONFIG_AUX_DIR($libreplacedir) and just
put config.{guess,sub} in the lib/replace/ directory, but I couldn't
figure out how to do that in a way that kept autoconf happy for each
of our separate builds. Any autoconf guru out there see a way to do
this?
2007-10-10 14:18:42 -05:00
Jelmer Vernooij
fc3f41a4ab r18515: Remove calls to "time" for now as some sh implementations don't have it,
causing this test to fail.
2007-10-10 14:18:40 -05:00
Andrew Tridgell
8cc456e6dc r18347: run slapd in the foreground so timelimit can kill it 2007-10-10 14:18:14 -05:00
Andrew Tridgell
0e1d4be23a r18346: make sure we kill off the slapd process 2007-10-10 14:18:13 -05:00
Andrew Tridgell
3200031276 r18244: more portable shell scripting 2007-10-10 14:17:54 -05:00
Andrew Tridgell
71264bb785 r17978: make the ldap backend test for ldb work both with and without modules
(so it works on both redhat and debian, for example)
2007-10-10 14:16:59 -05:00
Andrew Tridgell
f41d3ed4b3 r17765: fix handling of old solaris /bin/sh in ldb build/test 2007-10-10 14:16:38 -05:00
Andrew Tridgell
33ccb93647 r17726: not having slapd installed isn't a ldb test failure 2007-10-10 14:16:32 -05:00
Andrew Tridgell
72cdf93b5a r17718: don't consider a slapadd failure in the ldap backend tests as a ldb
failure
2007-10-10 14:16:31 -05:00
Andrew Tridgell
bf88bc5de6 r17708: make the automated testing of the ldb ldap backend more portable 2007-10-10 14:16:29 -05:00
Andrew Tridgell
580ed6730d r17679: - fix 'make test-ldap' to skip ldb specials
- allow ldb to be built in a separate build directory, using:

     /some/path/to/ldb/configure
     make

  this will make it much easier to put ldb in the build farm without
  interfering with the build farm builds of tdb and talloc
2007-10-10 14:16:22 -05:00
Simo Sorce
d57b521aad r17504: Do not use the invented unixID but use the rfc2307 uidNumber and gidNumber attributes instead
Do not change unixName right now, we don't have an attribute to use in the posixGroup class,
and I think we should remove its usage altogether and look up users and groups by their uid/gid only.

Simo.
2007-10-10 14:15:30 -05:00
Simo Sorce
4de76fd09e r13742: Fix tests to work better with ldap 2007-10-10 13:52:08 -05:00
Simo Sorce
5d93c1eeba r13348: Put a reminder for now.
Until we do not have an internal utf8 compliant
casefloding function we cannot pass this test
in the non-samba build
2007-10-10 13:51:47 -05:00
Simo Sorce
ad189553f4 r12828: add a test to check white spaces comparison 2007-10-10 13:50:03 -05:00
Stefan Metzmacher
7e702939fa r12777: use TEST_DATA_PREFIX if available
metze
2007-10-10 13:49:53 -05:00
Simo Sorce
22c8c97e6f r11567: Ldb API change patch.
This patch changes the way lsb_search is called and the meaning of the returned integer.
The last argument of ldb_search is changed from struct ldb_message to struct ldb_result
which contains a pointer to a struct ldb_message list and a count of the number of messages.
The return is not the count of messages anymore but instead it is an ldb error value.

I tryed to keep the patch as tiny as possible bu as you can guess I had to change a good
amount of places. I also tried to double check all my changes being sure that the calling
functions would still behave as before. But this patch is big enough that I fear some bug
may have been introduced anyway even if it passes the test suite. So if you are currently
working on any file being touched please give it a deep look and blame me for any error.

Simo.
2007-10-10 13:45:53 -05:00
Andrew Tridgell
b2551e76e8 r10856: we need aclocal.m4 in ldb for standalone configure 2007-10-10 13:39:37 -05:00
Andrew Tridgell
d267f8c623 r10423: minor changes to the ldb test suite to allow it to work correctly with
a real ldap backend (such as openldap)
2007-10-10 13:38:44 -05:00
Simo Sorce
4357a2db5e 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
2007-10-10 13:38:11 -05:00
Simo Sorce
ace9990060 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.
2007-10-10 13:38:10 -05:00
Jelmer Vernooij
77f24ed131 r9813: Conver testsuite for samba3sam module to EJS 2007-10-10 13:35:04 -05:00
Jelmer Vernooij
eb9d615bcd r9786: Move ldb_map into ldb/modules/
Move samba3sam to dsdb/
2007-10-10 13:35:01 -05:00
Jelmer Vernooij
d9541535e3 r9770: Couple other bugfixes
Update TODO-list
2007-10-10 13:34:58 -05:00
Jelmer Vernooij
435e4c6389 r9744: - [upgrade.js] Start working on smb.conf conversion.
- [ldb_map] Support storing non-mappable data in a fallback LDB
2007-10-10 13:34:55 -05:00
Jelmer Vernooij
b1844905d2 r9718: Work a bit on the SWAT interface 2007-10-10 13:34:53 -05:00
Jelmer Vernooij
b7b079167d 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)
2007-10-10 13:34:42 -05:00
Jelmer Vernooij
0cff0e03fc r9690: Extend test + fix several bugs 2007-10-10 13:34:41 -05:00
Jelmer Vernooij
7f864d446d r9685: Add tests for samba3sam mapping module
Fix a couple of bugs
Move samba3sam backend to lib/ldb/
Remove some more unused parameters
2007-10-10 13:34:41 -05:00
Simo Sorce
10e4ebcc42 r9446: clean up old test file 2007-10-10 13:34:15 -05:00
Simo Sorce
a9e8cd0bad r8585: add to ldb and ldap comparison functionality
better pares filters
Approx is currently only a stub need to dig more info to
understand what it really means and how it works exactly
2007-10-10 13:29:41 -05:00
Andrew Tridgell
6b20bcbeeb r8490: make the ldb tests more portable 2007-10-10 13:23:09 -05:00
Andrew Tridgell
9f29cccbc1 r8485: - be friendly to shells other than bash
- don't use /tmp in test paths, as that opens us to symlink attacks
2007-10-10 13:23:08 -05:00