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

1060 Commits

Author SHA1 Message Date
Andrew Tridgell
0b5e01c19b r18832: fixed standalone build
(This used to be commit 1ebc098b6776d38451e441280ac13664d64569f4)
2007-10-10 14:19:15 -05:00
Andrew Tridgell
58619eebc1 r18831: minor build changes for samba3. The logging changes will be removed
when the tdb api is updated
(This used to be commit 6ace943fac101839e35cbc83dc54fde2068f704b)
2007-10-10 14:19:15 -05:00
Andrew Tridgell
6c86ed60fc r18830: ensure backends aren't added twice (needed for samba3)
(This used to be commit 54b864b491d8a10c28833d28b764262503a72e91)
2007-10-10 14:19:15 -05:00
Andrew Bartlett
77db3973c4 r18781: Move the usnCreated and usnChanged handling around again.
This moves these attributes from objectguid into an optional backend
(objectguid), used by ltdb.  For OpenLDAP, the entryUUID module
converts entryCSN into usnChanged.

This also changes the sequence number API, and uses 'time based'
sequence numbers, when an LDAP or similar backend is detected.

To assist this, we also store the last modified time in the TDB,
whenever we change a value.

Andrew Bartlett
(This used to be commit 72858f859483c0c532dddb2c146d6bd7b9be5072)
2007-10-10 14:19:11 -05:00
Simo Sorce
8d1b32083e r18777: add helper functions to create an ldb_request structure
(This used to be commit bcbe82873f2f0a4e2552ed27eb171028de4560a7)
2007-10-10 14:19:11 -05:00
Andrew Bartlett
df98ee6558 r18770: Avoid crashes and fix up other issues in the client-side paged_searches module.
In particular, we must query the remote server to find out if paged
searches are supported, not the local ldb.

This patch also removes the ue of bool, and returns it to LDB error codes.

Andrew Bartlett
(This used to be commit d36d05858bb9b87802f5ffb83285ef12b9646741)
2007-10-10 14:19:10 -05:00
Andrew Tridgell
1188fa1a18 r18602: updated web page for new ldb build method
(This used to be commit 36c35262f23fec20feff99a87b185b74c1f176c2)
2007-10-10 14:18:55 -05:00
Andrew Tridgell
ee528dc0f2 r18596: removed superfluous semicolon
(This used to be commit 4f3628dea69efce430bf96a42435025806853d90)
2007-10-10 14:18:54 -05:00
Simo Sorce
9dd6cac44a r18591: Better defaults for share creation
Fix logic error in paged_results
(This used to be commit 34ce1f8e1bab2debb508aa8bf478231389a77d42)
2007-10-10 14:18:53 -05:00
Andrew Tridgell
182ab7107c r18539: 'make distclean' should delete config.cache
(This used to be commit 5a8becb1be1b41b4fecf9f9f47a60eed5f77c264)
2007-10-10 14:18:43 -05:00
Andrew Tridgell
1d7a878c8b r18538: we need a pipe here, not a logical OR
also fix cn name for this record, and ensure tests/tmp is created
(This used to be commit 588c91f06b90467279600fe6a1222273b5d53915)
2007-10-10 14:18:43 -05:00
Andrew Tridgell
0e9147029f r18536: fixed the loading of external binary files from ldif into ldb
(This used to be commit fbe13ed83e2f3508db6d77f4bd65a913ef12ff02)
2007-10-10 14:18:43 -05:00
Andrew Tridgell
fafa8c3e47 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?
(This used to be commit 823cd3ab35456769dcefee17bdaca21f01ba0f63)
2007-10-10 14:18:42 -05:00
Jelmer Vernooij
e9c465621e r18515: Remove calls to "time" for now as some sh implementations don't have it,
causing this test to fail.
(This used to be commit fc3f41a4ab38fd32386c5bdb1979cc26892afcf8)
2007-10-10 14:18:40 -05:00
Andrew Bartlett
595c141a69 r18504: Handle mappings for RENAME and KEEP attributes better. We don't need
to mess with the values in these cases.

Where we do convert the values, try and convert substrings.  This
isn't going to be perfect, but we should try rather than segfault.

This also avoids using the wrong arm of the union for the attribute
name

The change in the entryUUID module is to correct the case of
sAMAccountName, due to the case sensitive ldap.js test.

Andrew Bartlett
(This used to be commit 81d9a692c1e74ec9078bf718003eafdba85b4324)
2007-10-10 14:18:40 -05:00
Andrew Bartlett
1e4f5a096c r18495: More work on the LDAP backend (which now passes a lot of our tests!)
This adds a list of attributes that are in our wildcard seaches, but
the remote server requires to be explicitly listed.  This also cleans
up the handling of wildcards in ldb_map to be more consistant.

Also fix the partitions module to rebase the search, if on the GC
port, we do a subtree search.  (Otherwise backends can rightly
complain that the search is not in their scope).

Andrew Bartlett
(This used to be commit bc58792b7102f086b19353635d5d5ef9d40a0aae)
2007-10-10 14:18:38 -05:00
Stefan Metzmacher
d08fb7b1cc r18485: include libreplace.m4 in the aclocal.m4 files
and use the macros in configure.ac

metze
(This used to be commit 95d33e4d71b4c97af8413bcd136f393aa3e380dd)
2007-10-10 14:18:36 -05:00
Andrew Tridgell
05cdd9ccaf r18439: 2nd try at a talloc_move() api. This type with the ** ptr interface
exposed.

Unfortunately this generates a large number of type punning
warnings. We'll have to find some magic to hide those.
(This used to be commit 254cbf09dee5a1e20c47e47a298f1a8d172b41b9)
2007-10-10 14:18:29 -05:00
Andrew Tridgell
24fe49a3d1 r18438: I should have examined these uses of talloc_move() more
carefully. Most of them are OK, but a couple were not.
(This used to be commit b0de2838829d9750817c31f28c11c6b2be6e7b64)
2007-10-10 14:18:29 -05:00
Andrew Tridgell
12e7682e7b r18437: added a 'make valgrindtest' target for ldb
(This used to be commit 4c33c6bb97f3b25b611c476be4c914031e55e4dc)
2007-10-10 14:18:29 -05:00
Andrew Tridgell
7f63cebd33 r18436: converted ldb to use talloc_move() instead of talloc_steal() when
appropriate.

Note that I also removed the error checks that were being done on the
result of talloc_steal(). They are pointless as talloc_steal() doesn't
have any failure modes that wouldn't cause a segv anyway, and they
tend to clutter the code
(This used to be commit c0d9e7d473b8e3eb2524a9fc29cf88680f994b36)
2007-10-10 14:18:29 -05:00
Andrew Bartlett
33c4fea4cd r18410: Reduce noise in the ldb_ildap backend. We regularly search for things
that don't exist, and this is not a cause for panic.

Andrew Bartlett
(This used to be commit c89e416d288d16de43ae93102ecfec588900e6c0)
2007-10-10 14:18:25 -05:00
Andrew Tridgell
81e4403e79 r18347: run slapd in the foreground so timelimit can kill it
(This used to be commit 8cc456e6dcb348375dbded0de1a0c07ea6bf8ff9)
2007-10-10 14:18:14 -05:00
Andrew Tridgell
d939ff7bee r18346: make sure we kill off the slapd process
(This used to be commit 0e1d4be23ab807b17959e09dffbaf9c8c8dd048e)
2007-10-10 14:18:13 -05:00
Andrew Tridgell
f658414c5f r18327: 'struct token' is defined on some hosts
(This used to be commit b2bba4e7261e4daf2be44110c454eb0e217836ca)
2007-10-10 14:18:09 -05:00
Andrew Tridgell
9adf2883ef r18321: fixed some warnings on AIX
(This used to be commit 449fab2c264aa50601f9a2d3310f1910ba97706b)
2007-10-10 14:18:08 -05:00
Simo Sorce
fb15300c60 r18317: Make sure we actually have a valid reply or fail
(This used to be commit 41cb3a9258012e628a2d87959cc066f6c5d92255)
2007-10-10 14:18:07 -05:00
Andrew Tridgell
e91cee468e r18309: FreeBSD 6.1 has a symbol ldap_new_connection() in the system ldap
library. Even though we don't like to that library, it gets loaded via
nss-ldap, which means nss-ldap calls into the samba ldap lib with the
wrong parameters, and crashes.

We really need to use a completely different namespace in libcli/ldap/
(This used to be commit c440e0eed9afae5fe69995a7416971e7c8560779)
2007-10-10 14:18:06 -05:00
Andrew Tridgell
30ee8beb93 r18301: I discovered how to load the warnings from a build farm build into
emacs compile mode (hint, paste to a file, and compile as "cat
filename").

This allowed me to fix nearly all the warnings for a IA_64 SuSE build
very quickly.
(This used to be commit eba6c84efff735bb0ca941ac4b755ce2b0591667)
2007-10-10 14:18:04 -05:00
Andrew Tridgell
27126bae7e r18286: ldb now needs install-sh too
(This used to be commit ce5b1b8c09a9fe07fb953e7ad6bef204f98918aa)
2007-10-10 14:18:01 -05:00
Andrew Tridgell
e6b457d550 r18283: libreplace.m4 needs to be early in configure.ac in other packages too
(This used to be commit 03f9c67c066d772d9a544f1183fbee609ab8137b)
2007-10-10 14:18:01 -05:00
Simo Sorce
a865dcf02f r18272: Couldn't resist to change this.
What we want to do here is to just make sure res is freed.
Well let's just do so explicitly, the steal cofused me
initially while reading the code. This way it is clear
what we want to do.

Simo.
(This used to be commit 30a26a501fef939991a2e998003c5a43fd5cb67e)
2007-10-10 14:17:59 -05:00
Andrew Bartlett
f140bd7e38 r18245: Ensure we don't keep the rootdse record around (steal it onto the
correct memory context).

Andrew Bartlett
(This used to be commit b4f234e507fa94e9600c362fb6edb704d299cfce)
2007-10-10 14:17:54 -05:00
Andrew Tridgell
89a39c7acb r18244: more portable shell scripting
(This used to be commit 320003127690ab98fc2185f0eb528a778cae2740)
2007-10-10 14:17:54 -05:00
Stefan Metzmacher
a46e12d0e0 r18213: don't list LIBREPLACE depdendecies explicit and
always at it as first private dependencies

metze
(This used to be commit 135d096776b53ae09ffc2b4f767dfbd18139570f)
2007-10-10 14:17:50 -05:00
Jelmer Vernooij
873749f218 r18168: Use {NULL} rather than POPT_TABLEEND, which is not always available.
(This used to be commit 8b622c5ded0732df0eaf9f6226f52a27b6eacd73)
2007-10-10 14:17:45 -05:00
Jelmer Vernooij
f057742ef3 r18166: Fix build with external popt.
(This used to be commit b34310029a02402bf5f5bd8690a67a3d746906ee)
2007-10-10 14:17:45 -05:00
Jelmer Vernooij
7276648944 r18161: Fix LDB build after popt changes.
(This used to be commit 849fa935401b8d846e5e9c92267dc1cbabd3ae55)
2007-10-10 14:17:44 -05:00
Stefan Metzmacher
6aa376ef15 r18153: html/ isn't needed
metze
(This used to be commit 39dc57a50280889a56fa27638b9f56574883a487)
2007-10-10 14:17:43 -05:00
Stefan Metzmacher
6150443532 r18152: move our AC macros into lib/replace/libreplace_macros.m4
and include them from there

metze
(This used to be commit 38f9e90a120b4e62f005a1bac89139ee87f63071)
2007-10-10 14:17:43 -05:00
Stefan Metzmacher
6513e415b8 r18150: fix make *clean
metze
(This used to be commit e354cd0fae7ad87be30a820954dc840271301177)
2007-10-10 14:17:42 -05:00
Andrew Tridgell
ed356c7989 r18143: the 'showflags' convention from Samba is useful for the other packages
(This used to be commit a4d1f1d2229e1a0b1523bf14fab59278207abbc0)
2007-10-10 14:17:40 -05:00
Andrew Tridgell
eaf584cd97 r18133: ad2oLschema needs ctype.h on some systems
(This used to be commit efe60c8a4b28fa88abe5177b1a95c4ac5ac9496c)
2007-10-10 14:17:37 -05:00
Andrew Tridgell
014f70008f r18130: the move to system/ in libreplace broke some things ... should be
happier now
(This used to be commit 18542f184f75074e56a9793a9e3b6c6d747bb9e6)
2007-10-10 14:17:37 -05:00
Andrew Tridgell
a983b06d37 r18129: moved the system includes into libreplace - this gives much more
isolation of our portability environment from the main code, and also
simplifies the includes system (no separate #ifdef _SAMBA_BUILD for
tdb. ldb etc now)
(This used to be commit 77d1a468e06290aba789e2f3affc769fc5159a21)
2007-10-10 14:17:36 -05:00
Jelmer Vernooij
ca720634dd r18123: Fix manual file build.
(This used to be commit e84b6c70a19a5113d5a100820a1f430077e52c50)
2007-10-10 14:17:35 -05:00
Jelmer Vernooij
a59706f721 r18121: Simplify m4 code, hopefully fix Samba4 build problems.
(This used to be commit 1adf65b4d7c5d2d4f65d4b28575bdf2368a42139)
2007-10-10 14:17:35 -05:00
Andrew Tridgell
b7477fb388 r18117: first steps in making samba4 use libreplace
(This used to be commit c079cedb084d621c5a0aac59310b237ba375df20)
2007-10-10 14:17:34 -05:00
Andrew Tridgell
6d2dd5a238 r18115: comparison_fn_t is defined in libreplace now
(This used to be commit e9ee8b1053875fd3ddc950e3b21feb106eb3850c)
2007-10-10 14:17:34 -05:00
Andrew Tridgell
58316b88e5 r18112: really make use of libreplace in ldb
(This used to be commit 2057159c7575479c9808aeffe711fc861e53f3c8)
2007-10-10 14:17:18 -05:00