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

1084 Commits

Author SHA1 Message Date
Volker Lendecke
e946717bf6 r19134: Merge the second set of C++ warning fixes from Samba3. I'll leave r19132 to
metze to merge until the questions have been answered.

Volker
2007-10-10 14:20:38 -05:00
Simo Sorce
7180f38e9e r19129: Add comment to clarify behavior 2007-10-10 14:20:37 -05:00
Stefan Metzmacher
165722a16c r19123: - pass LDFLAGS from configure to Makefile
which should fix the build on Tru64 in the build farm.

Thanks to Bjoern Jacke for finding this!

metze
2007-10-10 14:20:37 -05:00
Andrew Tridgell
bc02f7ef96 r19114: fixed another checker warning and a possible error on allocation
failure
2007-10-10 14:20:36 -05:00
Andrew Tridgell
d12550af01 r19113: fixed another checker warning. 2007-10-10 14:20:35 -05:00
Andrew Tridgell
b39a79f17c r19112: fixed a checker warning.
In case you haven't noticed, lots of our packages now run the IBM
checker in the build farm on 'snab'
2007-10-10 14:20:35 -05:00
Volker Lendecke
441ad8a45c r19079: talloc_array can fail 2007-10-10 14:20:34 -05:00
Volker Lendecke
78aa689a74 r19076: ldb_dn_copy_partial can fail 2007-10-10 14:20:33 -05:00
Volker Lendecke
84ae80b39b r19075: Fix a potential NULL dereference 2007-10-10 14:20:33 -05:00
Volker Lendecke
af72af684b r19074: Merge from 3_0: Fix a potential NULL dereference.
Volker
2007-10-10 14:20:33 -05:00
Simo Sorce
f4239ef598 r19069: The sequence number is a 64 bit unsigned integer
Well spotted Volker
2007-10-10 14:20:33 -05:00
Volker Lendecke
2dff8ee8cc r19068: Fix a potential NULL dereference 2007-10-10 14:20:33 -05:00
Andrew Tridgell
b2076c1a7e r19009: ensure that data values from ldap libs are null terminated, to allow
ldb_msg_find_attr_as_string() to work correctly.

Thanks to Jim Myers for spotting this!
2007-10-10 14:20:28 -05:00
Andrew Bartlett
a113e47784 r18978: Fix bug found by:
http://www.ee.oulu.fi/research/ouspg/protos/testing/c06/ldapv3/

The issue here is that if the UTF8 conversion fails, because this
isn't actually UTF8 data, then we need to do a binary compare instead.

Andrew Bartlett
2007-10-10 14:20:26 -05:00
Andrew Tridgell
7e2ec87590 r18942: add a ldb_set_create_perms() function in ldb. I didn't call it
ldb_set_umask() (which is what we had discussed) as it doesn't
actually set the umask (in effect it sets the inverse of the umask -
the perms to be used for the file)
2007-10-10 14:20:22 -05:00
Andrew Tridgell
1a42f38dfd r18939: don't rely on the umask being right in ldb creation. Both Samba3 and
Samba4 smbd force the umask to 0, which meant we ended up with ldb
being world writable.

This isn't really an ideal fix, as it means ldb no longer honors umask
(as it should do, like all good libraries).

Unfortunately the 'proper' fix is too complex for now

this also merges a tiny code style fix from s4 to s3
2007-10-10 14:20:22 -05:00
Andrew Tridgell
7a1db8c2a4 r18910: Change ldb_msg_add_string() to not actually add an attribute if the
string is zero length. This allows callers to not have to worry about
creating an invalid ldap attribute.

See extensive discussion on samba-technical list :-)
2007-10-10 14:20:20 -05:00
Stefan Metzmacher
4e2f5ba490 r18903: merge from samba3:
define HAVE_LDB_LDAP and HAVE_LDB_SQLITE3

metze
2007-10-10 14:20:19 -05:00
Volker Lendecke
4ce447223c r18894: Merge const fixes from 3_0 2007-10-10 14:20:19 -05:00
Simo Sorce
a141ee9473 r18882: make style consistent 2007-10-10 14:20:18 -05:00
Simo Sorce
3e131177da r18881: remove wrong check and statement.
to manipulate rootDSE we use ldb_dn_new() as base and that has 0 elements.
2007-10-10 14:20:18 -05:00
Volker Lendecke
69f05f288c r18851: Some C++ warnings 2007-10-10 14:20:16 -05:00
Andrew Tridgell
bcfa93954f r18840: make these compatible with g++ warnings 2007-10-10 14:20:15 -05:00
Andrew Tridgell
b6bb5d7b77 r18834: get the log context code right 2007-10-10 14:19:16 -05:00
Andrew Tridgell
1ebc098b67 r18832: fixed standalone build 2007-10-10 14:19:15 -05:00
Andrew Tridgell
6ace943fac r18831: minor build changes for samba3. The logging changes will be removed
when the tdb api is updated
2007-10-10 14:19:15 -05:00
Andrew Tridgell
54b864b491 r18830: ensure backends aren't added twice (needed for samba3) 2007-10-10 14:19:15 -05:00
Andrew Bartlett
72858f8594 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
2007-10-10 14:19:11 -05:00
Simo Sorce
bcbe82873f r18777: add helper functions to create an ldb_request structure 2007-10-10 14:19:11 -05:00
Andrew Bartlett
d36d05858b 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
2007-10-10 14:19:10 -05:00
Andrew Tridgell
36c35262f2 r18602: updated web page for new ldb build method 2007-10-10 14:18:55 -05:00
Andrew Tridgell
4f3628dea6 r18596: removed superfluous semicolon 2007-10-10 14:18:54 -05:00
Simo Sorce
34ce1f8e1b r18591: Better defaults for share creation
Fix logic error in paged_results
2007-10-10 14:18:53 -05:00
Andrew Tridgell
5a8becb1be r18539: 'make distclean' should delete config.cache 2007-10-10 14:18:43 -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 Bartlett
81d9a692c1 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
2007-10-10 14:18:40 -05:00
Andrew Bartlett
bc58792b71 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
2007-10-10 14:18:38 -05:00
Stefan Metzmacher
95d33e4d71 r18485: include libreplace.m4 in the aclocal.m4 files
and use the macros in configure.ac

metze
2007-10-10 14:18:36 -05:00
Andrew Tridgell
254cbf09de 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.
2007-10-10 14:18:29 -05:00
Andrew Tridgell
b0de283882 r18438: I should have examined these uses of talloc_move() more
carefully. Most of them are OK, but a couple were not.
2007-10-10 14:18:29 -05:00
Andrew Tridgell
4c33c6bb97 r18437: added a 'make valgrindtest' target for ldb 2007-10-10 14:18:29 -05:00
Andrew Tridgell
c0d9e7d473 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
2007-10-10 14:18:29 -05:00
Andrew Bartlett
c89e416d28 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
2007-10-10 14:18:25 -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
b2bba4e726 r18327: 'struct token' is defined on some hosts 2007-10-10 14:18:09 -05:00
Andrew Tridgell
449fab2c26 r18321: fixed some warnings on AIX 2007-10-10 14:18:08 -05:00