1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
Commit Graph

68636 Commits

Author SHA1 Message Date
Jelmer Vernooij
ec7501ea4f wafsamba: Support expanding variables in LIBDIR/PRIVATELIBDIR variables. 2010-11-05 02:06:05 +00:00
Jelmer Vernooij
e84e8705a9 Add --disable-rpath-private-install flag. 2010-11-05 02:06:05 +00:00
Jelmer Vernooij
e15cd9c6d5 Add --with-privatelibdir build option. 2010-11-05 02:06:05 +00:00
Jelmer Vernooij
0d4fa8514b samba_utils: Use LIBDIR rather than assuming it is set to $prefix/lib. 2010-11-05 02:06:05 +00:00
Jelmer Vernooij
228a9c10d0 selftest: Allow some tests to output empty subunit data. 2010-11-05 02:06:05 +00:00
Andrew Bartlett
4000ec24aa s4-ldap_server Don't DEBUG() at level 2 every time a caller disconnects
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Nov  5 00:12:37 UTC 2010 on sn-devel-104
2010-11-05 00:12:37 +00:00
Andrew Tridgell
4f8b59edbc s4: don't run etags over .inst files
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Nov  4 22:51:06 UTC 2010 on sn-devel-104
2010-11-04 22:51:06 +00:00
Andrew Tridgell
a9714246a3 compression: added a simple lzxpress test 2010-11-04 22:09:52 +00:00
Andrew Tridgell
199399ef74 compression: fixed an uninitialised data but in lzxpress 2010-11-04 22:09:52 +00:00
Volker Lendecke
a5d485112e s3: Remove the use of cli_send_trans from cli_get_fs_full_size_info
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Nov  4 22:08:53 UTC 2010 on sn-devel-104
2010-11-04 22:08:52 +00:00
Matthias Dieter Wallnöfer
83f78a30a0 s4:ldap.py/passwords.py - just use objectclass "user" for users
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Thu Nov  4 21:09:00 UTC 2010 on sn-devel-104
2010-11-04 21:09:00 +00:00
Volker Lendecke
c133fcc0b1 s3: Remove an unused prototype
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Nov  4 17:44:09 UTC 2010 on sn-devel-104
2010-11-04 17:44:09 +00:00
Stefan Metzmacher
8516fad3b4 s4:dsdb/objectclass_attrs: not all objects have delete protected attributes as must contain
Before we got the following error, while starting samba after a
'samba-tool vampire':

Failed to store repsFrom - objectclass_attrs: delete protected attribute
'objectSid' on entry 'DC=ForestDnsZones,DC=alpha,DC=sz,DC=salzgitter-ag,DC=lab'
missing!

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Nov  4 17:01:59 UTC 2010 on sn-devel-104
2010-11-04 17:01:59 +00:00
Stefan Metzmacher
60691c1322 s4:dsdb/samdb: optimize samldb_prim_group_change()
We should only do searches when we have to.

metze
2010-11-04 17:13:02 +01:00
Stefan Metzmacher
a94fbb9ed5 s4:dsdb/common: fix memory leak in samdb_ntds_settings_dn()
fetch and set should use the same name!

metze
2010-11-04 17:13:01 +01:00
Stefan Metzmacher
e3276b3ab3 s4:dsdb/kcc: fix memory leak in kcctpl_copy_output_edges()
metze
2010-11-04 17:13:01 +01:00
Günther Deschner
8b71438490 s3-waf: add check for httpConnect and httpConnectEncrypt.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Nov  4 14:10:40 UTC 2010 on sn-devel-104
2010-11-04 14:10:40 +00:00
Kamen Mazdrashki
78b05a3116 s4-ldb_module.h: use LDB error code for ldb_error() macro rather than LDB_DEBUG_FATAL
We end up calling ldb_error_at() which expects an LDB error,
but LDB_DEBUG_FATAL is not such code. It is actually equal to LDB_SUCCESS.

Thus the effect is that we report a *fatal* error, but return
LDB_SUCCESS in many places.

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Thu Nov  4 12:57:33 UTC 2010 on sn-devel-104
2010-11-04 12:57:33 +00:00
Kamen Mazdrashki
e7aa7a0c33 s4-devel: Verify prefixMap is saved correctly in LDB on disk 2010-11-04 12:16:04 +00:00
Jelmer Vernooij
c4dab7d545 urgent_replication: forbid empty subunit output.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Thu Nov  4 12:13:47 UTC 2010 on sn-devel-104
2010-11-04 12:13:47 +00:00
Jelmer Vernooij
b6cef24463 selftest: Allow some tests to output empty subunit data. 2010-11-04 11:30:04 +00:00
Andrew Bartlett
28f1228b01 s4-dsdb Fix urgent_replication test not to set an invalid userAccountControl
A userAccountControl value of 0 or 1 is invalid, you must include one of
the account types.

Andrew Bartlett
2010-11-04 11:30:04 +00:00
Jelmer Vernooij
fea02db10f urgent_replication: Fix syntax error. 2010-11-04 11:30:04 +00:00
Andrew Tridgell
81e5321f5e s4-dsdb: use LDB_FLAG_MOD_REPLACE for isDeleted
isDeleted could have been set to FALSE previously

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Nov  4 10:18:10 UTC 2010 on sn-devel-104
2010-11-04 10:18:10 +00:00
Andrew Tridgell
c5f07d33ae s4-dsdb: use LDB_FLAG_INTERNAL_DISABLE_SINGLE_VALUE_CHECK in dsdb
when we are creating linked attributes with multiple values (some
deleted), use LDB_FLAG_INTERNAL_DISABLE_SINGLE_VALUE_CHECK to disable
that checking.
2010-11-04 20:35:44 +11:00
Andrew Tridgell
e606298631 s4-ldb: implement LDB_FLAG_INTERNAL_DISABLE_SINGLE_VALUE_CHECK
this disables the single value checking for one attribute. It is much
more specific than a general RELAX control, and also more efficient. I
think we should try to have more precise overrides like this, rather
than using RELAX as a general purpose override
2010-11-04 20:35:44 +11:00
Andrew Tridgell
1ab7bd1bfb s4-ldb: don't load modules from the same directory twice
this prevents samba dying if you do a 'make install' while it is
running. Otherwise the make install changes the inode numbers of the
modules in the modules directory, causing them to reload, which causes
multiple modules of the same name to try and load
2010-11-04 20:35:44 +11:00
Andrew Tridgell
6a22d8938c s4-ldb: honor controls on search in ldbedit 2010-11-04 20:35:44 +11:00
Andrew Tridgell
cf37c29cd0 Move the checking of single valued attributes back into the tdb backend.
The backend is the only place that can do this properly. It makes no
sense to do it anywhere else. As a result of it moving out of the
backend we ended up with some bugs causing multiple values in single
valued attributes (eg. isDeleted), which can really damage the
inregrity of the database.

For the override of single valued values needed for deleted linked
attributes we should use attribute flags.

This reverts commit 1949864417.
2010-11-04 20:35:44 +11:00
Andrew Tridgell
f3ad867ab5 s4-test: fixed quoting in deletetest.py 2010-11-04 20:35:44 +11:00
Andrew Tridgell
003a36eb5e s4-auth: unconditionally set previous_ev
we need the caller to know when the previous_ev was NULL

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-11-04 20:35:43 +11:00
Andrew Tridgell
cb9fba1ed3 debug: fixed default debug settings
this fixes -d in our command line tools (eg. samba-tool)

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Nov  4 01:48:15 UTC 2010 on sn-devel-104
2010-11-04 01:48:15 +00:00
Zahari Zahariev
832cd99ea7 Speed test with user objects
This is a modest speed test that aims to show performance difference
between Samba4 vs MS Active Directory. It should be used with Samba-style
credentials and no arguments like every other python unittest.

Signed-off-by: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>

Autobuild-User: Anatoliy Atanasov <anatoliy@samba.org>
Autobuild-Date: Thu Nov  4 00:11:20 UTC 2010 on sn-devel-104
2010-11-04 00:11:20 +00:00
Michael Adam
7e382a0496 librpc/ndr: use new strlen_m_ext_term() in ndr_charset_length(): fix bug #7594
This fixes the calculation of needed space for destination unicode charset.

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed Nov  3 23:28:07 UTC 2010 on sn-devel-104
2010-11-03 23:28:07 +00:00
Michael Adam
50bdd93136 lib/util/charset/charconv: clarify comments in next_codepoint_convenience_ext()
Give the unicod U+<hexnumber> notation of the codepoints
referred to in the comments. Also reformat the comments some.
2010-11-03 22:45:20 +00:00
Michael Adam
c18b67235c lib/util/charset/util_unistr: clarify the comment header for strlen_m(). 2010-11-03 22:45:20 +00:00
Michael Adam
9b86df8ce8 lib/util/charset/util_unistr: add strlen_m_ext_term() - variant of strlen_m_ext() counting terminator 2010-11-03 22:45:20 +00:00
Michael Adam
82c8b31ebc lib/util/charset/util_unistr: add strlen_m_ext that takes input and output charset
The function calculates the number of units (8 or 16-bit, depending
on the destination charset), that would be needed to convert the
input string which is expected to be in in src_charset encoding
to the dst_charset (which should be a unicode charset).
2010-11-03 22:45:20 +00:00
Michael Adam
72f8336865 lib/charcnv/util_unistr: add next_codepoint_ext() that accepts input charset.
next_codepoint() takes as string in CH_UNIX encoding and returns the
unicode codepoint of the next (possibly multibyte) character of the
input string.

The new next_codepoint_ext() function adds the encoding of the input
string as a parameter. next_codepoint() now only calls next_codepoint_ext()
with CH_UNIX als src_charset argument.
2010-11-03 22:45:20 +00:00
Michael Adam
7a2b03964c lib/charset/charcnv: rename a parameter of next_codepoint_convenience_ext() for clarity 2010-11-03 22:45:20 +00:00
Michael Adam
5829cb0a98 lib/charset/charcnv: add next_codepoint_convenience_ext() that accepts input charset.
next_codepoint_convenience() takes as string in CH_UNIX encoding and returns the
unicode codepoint of the next (possibly multibyte) character of the
input string.

The new next_codepoint_convenience_ext() function adds the encoding of the input
string as a parameter. next_codepoint_convenience() now only calls
next_codepoint_convenience_ext() with CH_UNIX als src_charset argument.
2010-11-03 22:45:19 +00:00
Michael Adam
a50d3638a7 s3:util_str: add strlen_m_ext_term() - variant of strlen_m_ext() counting terminator 2010-11-03 22:45:19 +00:00
Michael Adam
288d55b511 s3:lib/util_str: add strlen_m_ext() that takes input and output charset
The function calculates the number of units (8 or 16-bit, depending
on the destination charset), that would be needed to convert the
input string which is expected to be in in src_charset encoding
to the dst_charset (which should be a unicode charset).
2010-11-03 22:45:19 +00:00
Michael Adam
4579d7ea29 s3:lib/util_str: clarify the comment header for strlen_m(). 2010-11-03 22:45:19 +00:00
Michael Adam
f16ddcae69 s3:lib/charcnv: clarify comments in next_codepoint_ext()
(giving the unicod U+<hexnumber> notation of the codepoints
 referred to in the comments)
2010-11-03 22:45:19 +00:00
Michael Adam
5b6a88b9bf s3:lib/charcnv: rename a parameter for clarity in next_codepoint_ext() 2010-11-03 22:45:19 +00:00
Michael Adam
18104ef1be s3:lib/charcnv: reformat comments in next_codepoint_ext() 2010-11-03 22:45:19 +00:00
Michael Adam
d41d05ec7b s3:lib/charcnv: add next_codepoint_ext() that accepts input charset.
next_codepoint() takes as string in CH_UNIX encoding and returns the
unicode codepoint of the next (possibly multibyte) character of the
input string.

The new next_codepoint_ext() function adds the encoding of the input
string as a parameter. next_codepoint() now only calls next_codepoint_ext()
with CH_UNIX als src_charset argument.
2010-11-03 22:45:19 +00:00
Michael Adam
f14d84e2f2 util/charset: remove a duplicate comment.
This seems to have been copied twice from source3/ code.
2010-11-03 22:45:19 +00:00
Andrew Tridgell
14718a725b build: a more portable way of finding waf in makefiles
this avoids using the non-portable shell command in makefiles

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Wed Nov  3 22:44:59 UTC 2010 on sn-devel-104
2010-11-03 22:44:59 +00:00