Jelmer Vernooij [Tue, 22 Jan 2008 15:39:56 +0000 (16:39 +0100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-python
Jelmer Vernooij [Tue, 22 Jan 2008 15:21:54 +0000 (16:21 +0100)]
python: Avoid duplicate copies of some objects in different packages.
Stefan Metzmacher [Tue, 22 Jan 2008 11:21:55 +0000 (12:21 +0100)]
libreplace: getpwent_r/getgrent_r on IRIX are similar to solaris but use size_t
metze
(cherry picked from commit
2f460915111066d79f5dc9b4ae4d003918d06852)
Andrew Bartlett [Mon, 21 Jan 2008 11:01:32 +0000 (22:01 +1100)]
Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local
Andrew Bartlett [Mon, 21 Jan 2008 09:56:27 +0000 (20:56 +1100)]
Be sure to pass iconv handle down to compression subcontexts (fixes
segfaults in NET-API-BECOME-DC)
Andrew Bartlett
Jelmer Vernooij [Sun, 20 Jan 2008 23:50:04 +0000 (00:50 +0100)]
build: Don't build heimdal as library.
Jelmer Vernooij [Sun, 20 Jan 2008 17:04:19 +0000 (18:04 +0100)]
python: Fix init functions.
Jelmer Vernooij [Sun, 20 Jan 2008 15:28:43 +0000 (16:28 +0100)]
build: Demote a bunch of libraries to subsystems. This makes packaging easier and should also make it easier
to migrate to a new build system.
Jelmer Vernooij [Sun, 20 Jan 2008 15:24:11 +0000 (16:24 +0100)]
python: Reenable modules for libcli_nbt and libcli_smb.
Jelmer Vernooij [Sun, 20 Jan 2008 15:10:43 +0000 (16:10 +0100)]
ldb: Fix building python modules against system-provided ldb.
Jelmer Vernooij [Sun, 20 Jan 2008 15:10:14 +0000 (16:10 +0100)]
build: Allow overriding CFLAGS for python packages.
Volker Lendecke [Sun, 20 Jan 2008 14:51:02 +0000 (15:51 +0100)]
Add an exception for S3
Doing this correctly would involve a create_file call for qpathinfo
Jelmer Vernooij [Sun, 20 Jan 2008 00:19:59 +0000 (01:19 +0100)]
build: Fix handling of external pkg-config dependencies when generating pkg-config files.
Jelmer Vernooij [Sat, 19 Jan 2008 20:16:56 +0000 (21:16 +0100)]
howto: Update instructions for git, and use ReST formatting.
Julien Kerihuel [Fri, 18 Jan 2008 17:30:00 +0000 (18:30 +0100)]
pidl: Add --version argument.
Andrew Bartlett [Fri, 18 Jan 2008 07:10:18 +0000 (18:10 +1100)]
Remove default 'showInAdvancedViewOnly' values.
This means we only show and set the values when they are not the
values the schema and objectclass module would impose.
Andrew Bartlett
Andrew Bartlett [Fri, 18 Jan 2008 07:08:49 +0000 (18:08 +1100)]
Only set showOnlyInAdvancedView: TRUE when adding default values.
False is the default, so only set this when the schema requires the
hiding behaviour.
Andrew Bartlett
Andrew Bartlett [Fri, 18 Jan 2008 06:08:34 +0000 (17:08 +1100)]
Don't set 'name' in the LDIF, this is handled by the rdn_name module.
Andrew Bartlett
Andrew Bartlett [Fri, 18 Jan 2008 06:05:17 +0000 (17:05 +1100)]
Merge commit 'origin/v4-0-test' into 4-0-local
Andrew Bartlett [Fri, 18 Jan 2008 05:56:41 +0000 (16:56 +1100)]
Add showInAdvancedViewOnly to every new object
Unless already set, the default value for this comes from the
defaultHidingValue in the schema.
Andrew Bartlett
Andrew Tridgell [Fri, 18 Jan 2008 04:45:22 +0000 (15:45 +1100)]
merged changes from v3-2-test
Andrew Tridgell [Fri, 18 Jan 2008 04:33:57 +0000 (15:33 +1100)]
merged tdb changes from ctdb
Jelmer Vernooij [Fri, 18 Jan 2008 02:37:06 +0000 (03:37 +0100)]
registry: Use correct return values.
Jelmer Vernooij [Fri, 18 Jan 2008 02:00:00 +0000 (03:00 +0100)]
registry: Avoid mapping registry return codes: return the right value in the first place.
Andrew Kroeger [Fri, 18 Jan 2008 01:51:51 +0000 (02:51 +0100)]
When Windows attempts to create a new key, it looks for an available key name
starting with "New Key #1" and iterating up to "New Key #99" before giving up.
ldb_open_key() calls reg_path_to_ldb() to build the appropriate dn from the key
name. reg_path_to_ldb() was not catching the error returned by
ldb_dn_add_base_fmt() due to the unescaped '#' character, causing the returned
dn to be that of the parent key, not the potential new key. Additionally,
Windows expects a return value of WERR_BADFILE when a key does not exist, but
WERR_NOT_FOUND was being returned instead. Correcting the building of the dn
and the providing the expected return value allows new key creation to succeed.
When attempting to delete a key, Windows passes the complete path to the key,
not just the name of the child key to be deleted. Using reg_path_to_ldb() to
build the correct dn allows key deletion to succeed.
Jelmer Vernooij [Fri, 18 Jan 2008 01:45:00 +0000 (02:45 +0100)]
registry: Improve error codes and update tests.
Rather than map the error returned by the registry to the correct error,
return the correct error in the first place.
Also deal with the fact that the right error code is now returned in a
couple of places.
Andrew Kroeger [Fri, 18 Jan 2008 00:50:33 +0000 (01:50 +0100)]
When Windows initially creates a new value, the value name is "New Value #1".
The '#' character was causing problems, as it was not being escaped for the dn,
but the failure returned by ldb_dn_add_child_fmt() was not being caught. This
was causing the new value to be added on the parent key, not the current key.
When attempting to delete the new value (now on the parent key) the same
escaping error was returned by ldb_dn_add_child_fmt(), causing the delete to
delete the key and not the value.
When attempting to rename a value, Windows first tries to ensure the new name
does not already exist. When a value does not exist, Windows expects a return
value of WERR_BADFILE, but WERR_NOT_FOUND was being returned instead.
Providing the WERR_BADFILE that Windows expects allows values to be renamed.
Andrew Kroeger [Fri, 18 Jan 2008 00:48:48 +0000 (01:48 +0100)]
registry: Properly check return values from ldb_*() functions.
There were a few cases left that attempted to detect errors from ldb_*()
function calls using "(ret < 0)". As all LDB_* error codes are greater than
zero, there was no chance any errors would be detected. Changed all such tests
to use "(ret != LDB_SUCCESS)".
Jelmer Vernooij [Fri, 18 Jan 2008 00:47:10 +0000 (01:47 +0100)]
registry: Check for more specific LDB return codes, handle changing existing values better.
Andrew Bartlett [Fri, 18 Jan 2008 02:30:20 +0000 (13:30 +1100)]
Don't manually specify instanceID in the template files.
The instanceid module creates this automaticlly, so we don't need this
any more.
Andrew Bartlett
Andrew Bartlett [Fri, 18 Jan 2008 02:28:52 +0000 (13:28 +1100)]
Use syncrepl on all OpenLDAP databases (creates contextCSN attribute)
This module needs to be loaded on each database, not just the main
partition. We use it to create the usn for the entries.
Andrew Bartlett
Andrew Bartlett [Fri, 18 Jan 2008 02:27:05 +0000 (13:27 +1100)]
Search for memberOf when clients ask for a wildcard against OpenLDAP
The memberOf module in OpenLDAP make this attribute operational, so we
need to add it here or clients won't get it when using *.
Andrew Bartlett
Andrew Bartlett [Fri, 18 Jan 2008 02:25:01 +0000 (13:25 +1100)]
Remove --ldap-base from the python provision script
(This is a merge from the ejs script)
Andrew Bartlett
Andrew Bartlett [Fri, 18 Jan 2008 01:16:27 +0000 (12:16 +1100)]
Correct authorship of instanceType module
Andrew Bartlett
Andrew Bartlett [Thu, 17 Jan 2008 23:13:43 +0000 (10:13 +1100)]
Add in a new module to handle instanceType
This code raided from the repl_meta_data module, which probably needs
to be downsized to just handling the replication data.
Andrew Bartlett
Michael Adam [Thu, 17 Jan 2008 08:24:01 +0000 (09:24 +0100)]
Fix an output message in samba3rpc torture test.
Michael
Andrew Bartlett [Thu, 17 Jan 2008 01:00:27 +0000 (12:00 +1100)]
provision: simplfy by removing old code to manually create baseDNs.
Previously, we would create the first record in the DB as an LDIF
file, with the expectation that the administrator would use slapadd to
create the database.
We now do everything over LDAP, which is far simpler, and allows the
LDB module chain to do its work, without special cases.
Also fix naming of the output schema when suggesting the comamnd line
to run ad2oLschema in provision-backend.
Andrew Bartlett
Andrew Bartlett [Wed, 16 Jan 2008 23:35:08 +0000 (10:35 +1100)]
OpenLDAP backend: Place the refint overlay after the memberof overlay
This still doesn't work for me, but is the recommended order.
Andrew Bartlett
Andrew Bartlett [Wed, 16 Jan 2008 23:32:41 +0000 (10:32 +1100)]
Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local
Andrew Bartlett [Wed, 16 Jan 2008 21:53:18 +0000 (08:53 +1100)]
ldb_map objectClass munging: Don't hard-code 'extensibleObject'.
This allows objectClass munging to be removed, or modified to not
include adding an objectClass, or for that objectClass to be something
different.
Andrew Bartlett
Jelmer Vernooij [Wed, 16 Jan 2008 20:30:58 +0000 (21:30 +0100)]
selftest: Use "require" rather than "use" keyword so .pm files don't have to be provided until used.
Jelmer Vernooij [Wed, 16 Jan 2008 16:50:29 +0000 (17:50 +0100)]
python: Don't attempt to build shared and static versions of modules, because it's just not going to work with the current build system.
Jelmer Vernooij [Wed, 16 Jan 2008 16:40:25 +0000 (17:40 +0100)]
selftest: Add some more documentation. Rename env => target to avoid confusion.
Jelmer Vernooij [Wed, 16 Jan 2008 15:53:21 +0000 (16:53 +0100)]
Ignore newly generated proto header.
Günther Deschner [Wed, 16 Jan 2008 15:01:50 +0000 (16:01 +0100)]
Add lsa_PolicyAuditEventType and lsa_PolicyAuditPolicy enums from samba3 to IDL.
Guenther
Jelmer Vernooij [Wed, 16 Jan 2008 14:07:00 +0000 (15:07 +0100)]
pidl: Add simple test for ServerNDR.
Jelmer Vernooij [Wed, 16 Jan 2008 14:06:46 +0000 (15:06 +0100)]
pidl: Fix missing import for fatal().
Jelmer Vernooij [Wed, 16 Jan 2008 13:54:29 +0000 (14:54 +0100)]
pidl: Fix imported function for ServerNDR and add test to make sure it doesn't regress again.
Jelmer Vernooij [Mon, 14 Jan 2008 22:04:57 +0000 (23:04 +0100)]
python: Build shared python modules for generic use.
Andrew Bartlett [Wed, 16 Jan 2008 04:48:28 +0000 (15:48 +1100)]
Print out the reason we can't delete the user in SAMR.
We need to be far more granular bout this - in particular, we need a
decide LDAP -> NTSTATUS conversion.
Andrew Bartlett
Andrew Bartlett [Wed, 16 Jan 2008 04:14:05 +0000 (15:14 +1100)]
Rework linked_attributes module for the REPLACE case.
This moves to a smarter 'find the delta' based operation of the linked
attributes module, when the caller asks for a 'replace' of the link
source. Previously we would spray operations all over the database,
even if the net result was just to modify one record.
This also means we need the transaction safety less, which may be
useful for some LDAP backends that don't provide this functionality on
the LDAP server.
Andrew Bartlett
Andrew Bartlett [Tue, 15 Jan 2008 22:26:24 +0000 (09:26 +1100)]
Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-abartlet
Andrew Bartlett [Tue, 15 Jan 2008 22:26:14 +0000 (09:26 +1100)]
Start generating a configuration for the refint overlay. This
OpenLDAP module should ensure that after a subtree rename, attributes
are still consistant.
Andrew Bartlett
Andrew Bartlett [Tue, 15 Jan 2008 22:00:04 +0000 (09:00 +1100)]
Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local
Andrew Bartlett [Tue, 15 Jan 2008 21:59:13 +0000 (08:59 +1100)]
Make the Fedora DS LDAP backend 'aci' actually work, with better quoting.
Andrew Bartlett
Andrew Bartlett [Tue, 15 Jan 2008 21:58:07 +0000 (08:58 +1100)]
Test the behaviour of mixed domain_scope and search_options controls.
Andrew Bartlett
Andrew Bartlett [Tue, 15 Jan 2008 21:57:28 +0000 (08:57 +1100)]
Make ldap.js test easier to re-run in failure cases, by deleting more
things that we will create later.
Andrew Bartlett
Andrew Bartlett [Tue, 15 Jan 2008 21:49:54 +0000 (08:49 +1100)]
Rework control handling to remove the 'domain_scope' control
Also remove the search_options control earlier, before, rather than
after duplicating the request.
When we generate referalls in the partition module, the domain_scope
control with suppress them.
Andrew Bartlett
Jeremy Allison [Mon, 17 Dec 2007 18:44:09 +0000 (10:44 -0800)]
Fix bug #5121 (unix passwd sync not working on a streams based
system).
Jeremy.
(lib/replace part of
545cd2139cfc9484b733693814d4724d37125942 metze)
Jeremy Allison [Tue, 11 Dec 2007 21:16:35 +0000 (13:16 -0800)]
Add patches for bug #4866 from jiri sasek - Sun Microsystems - Prague Czech Republic <Jiri.Sasek@Sun.COM>
- slightly modified - Jiri please check ! to allow Solaris to get passwords > 8 chars.
Jeremy.
(lib/replace part of
657bf8c3479d6192f269e3daef1517e77a9fa9cb metze)
Volker Lendecke [Mon, 26 Nov 2007 14:28:13 +0000 (15:28 +0100)]
Fix bug 5055
(lib/replace part of
8bcd2df841bae63e7d58c35d4728b7d853471697 metze)
Jeremy Allison [Fri, 16 Nov 2007 02:27:26 +0000 (18:27 -0800)]
Add MAX_DNS_NAME_LENGTH, remove more pstrings.
Jeremy.
(lib/replace part of
a1725f4ff7ed375808c78ac661b539557748d0a5 metze)
Jeremy Allison [Sun, 11 Nov 2007 06:31:34 +0000 (22:31 -0800)]
Always define PATH_MAX. Makes code simpler (removes
a bunch of #defines). Remove pstring from msdfs.c.
Jeremy.
(lib/replace part from
e203ba22275320808bc11b17361ad1f2d5b0b897 metze)
Andrew Tridgell [Tue, 15 Jan 2008 03:05:47 +0000 (14:05 +1100)]
merged tdb from ctdb bzr tree
Jelmer Vernooij [Tue, 15 Jan 2008 01:04:42 +0000 (02:04 +0100)]
Fix asn1 locations.
Jelmer Vernooij [Tue, 15 Jan 2008 01:04:20 +0000 (02:04 +0100)]
ldap.py: Use constants where possible.
Jelmer Vernooij [Tue, 15 Jan 2008 00:08:30 +0000 (01:08 +0100)]
python: Update status.
Jelmer Vernooij [Tue, 15 Jan 2008 00:04:38 +0000 (01:04 +0100)]
util: Move asn1 to lib/util to trim down the number of subsystems.
Jelmer Vernooij [Mon, 14 Jan 2008 21:24:07 +0000 (22:24 +0100)]
libreplace: Escape asterisk.
Jelmer Vernooij [Mon, 14 Jan 2008 19:14:53 +0000 (20:14 +0100)]
python: Enable building of the wkssvc python bindings.
Jelmer Vernooij [Mon, 14 Jan 2008 19:09:18 +0000 (20:09 +0100)]
python: Fix handling of pointer-less strings in function arguments.
Jelmer Vernooij [Mon, 14 Jan 2008 19:08:04 +0000 (20:08 +0100)]
python: Compile in svcctl Python bindings.
Jelmer Vernooij [Mon, 14 Jan 2008 18:51:08 +0000 (19:51 +0100)]
python: Convert winreg.py completely to rpc, use new RPC Python bindings.
Jelmer Vernooij [Mon, 14 Jan 2008 18:49:52 +0000 (19:49 +0100)]
python: Work around the fact that there are two "security" modules now.
This well demonstrates the fact we need hierarchy.
Jelmer Vernooij [Mon, 14 Jan 2008 18:05:08 +0000 (19:05 +0100)]
python: Add simple test for samr python code.
Jelmer Vernooij [Mon, 14 Jan 2008 17:59:11 +0000 (18:59 +0100)]
python: Compile security module, handle uint.
Jelmer Vernooij [Mon, 14 Jan 2008 17:24:10 +0000 (18:24 +0100)]
python: Fix some corner cases handling scalars.
Jelmer Vernooij [Mon, 14 Jan 2008 17:01:54 +0000 (18:01 +0100)]
python: Don't try to free const pointers.
Jelmer Vernooij [Mon, 14 Jan 2008 15:49:19 +0000 (16:49 +0100)]
python: Move some convenience macros to a separate header rather than putting them in every generated py_* file.
Jelmer Vernooij [Mon, 14 Jan 2008 15:48:27 +0000 (16:48 +0100)]
python: Enable python bindings for samr and lsa interfaces.
Jelmer Vernooij [Mon, 14 Jan 2008 15:11:58 +0000 (16:11 +0100)]
python: Build epmapper module.
Jelmer Vernooij [Mon, 14 Jan 2008 15:11:36 +0000 (16:11 +0100)]
python: Accept loadparm filename rather than loadparm object, too.
Jelmer Vernooij [Mon, 14 Jan 2008 14:25:09 +0000 (15:25 +0100)]
python: Be more pythonic - turn WERROR and NTSTATUS return codes into exceptions.
Jelmer Vernooij [Mon, 14 Jan 2008 13:48:59 +0000 (14:48 +0100)]
python: Fix python code for winreg, add test.
Jelmer Vernooij [Mon, 14 Jan 2008 12:26:21 +0000 (13:26 +0100)]
python: Start building winreg module.
Jelmer Vernooij [Mon, 14 Jan 2008 12:26:01 +0000 (13:26 +0100)]
pidl/python: Fix processing UUID-less interfaces, external typedefs and certain bitmap elements.
Jelmer Vernooij [Mon, 14 Jan 2008 05:23:13 +0000 (06:23 +0100)]
pidl/python: Deal with arrays that are not pointers.
Jelmer Vernooij [Mon, 14 Jan 2008 05:05:28 +0000 (06:05 +0100)]
python: Fix last bugs in rpcecho test. It passes now!
Jelmer Vernooij [Mon, 14 Jan 2008 05:05:12 +0000 (06:05 +0100)]
pidl/python: Specify memory context explicitly when returning Python objects.
Jelmer Vernooij [Mon, 14 Jan 2008 05:03:33 +0000 (06:03 +0100)]
python: Fix deallocation bug in pytalloc.
Jelmer Vernooij [Mon, 14 Jan 2008 04:16:51 +0000 (05:16 +0100)]
pidl/python: Pass credentials and loadparm context when connecting using DCE/RPC.
Jelmer Vernooij [Mon, 14 Jan 2008 03:00:13 +0000 (04:00 +0100)]
selftest: Ignore output generated by html formatter.
Jelmer Vernooij [Mon, 14 Jan 2008 02:59:36 +0000 (03:59 +0100)]
python: Fix rpcecho tests.
Jelmer Vernooij [Mon, 14 Jan 2008 01:48:50 +0000 (02:48 +0100)]
pidl/python: Fix compilation of py_echo.
Jelmer Vernooij [Mon, 14 Jan 2008 01:27:40 +0000 (02:27 +0100)]
python/pidl: Fix assignment.
Jelmer Vernooij [Mon, 14 Jan 2008 01:04:06 +0000 (02:04 +0100)]
pidl/python: Fix more compile errors.
Jelmer Vernooij [Mon, 14 Jan 2008 00:30:44 +0000 (01:30 +0100)]
pidl/python: Fix parsing arguments, fix more pointer issues.
Jelmer Vernooij [Sun, 13 Jan 2008 22:13:30 +0000 (23:13 +0100)]
pidl/python: Fix use of pointers.
Jelmer Vernooij [Sun, 13 Jan 2008 20:42:42 +0000 (21:42 +0100)]
python: Add some more rpc/echo tests.
Jelmer Vernooij [Sun, 13 Jan 2008 20:33:35 +0000 (21:33 +0100)]
python: Add simple tests for the DCE/RPC echo interface.