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

14395 Commits

Author SHA1 Message Date
Jelmer Vernooij
f93bd899f1 Default to creating anonymous credentials. 2008-01-23 23:38:58 +01:00
Jelmer Vernooij
b3afde0f00 python: Add convenience function for getting command line loadparm context
and default to using system smb.conf.
2008-01-23 23:38:57 +01:00
Jelmer Vernooij
ffd793bbde Add bindings for lp_load_default(). 2008-01-23 23:38:57 +01:00
Andrew Bartlett
948ee9b7ac Get more information from ldb when reporting a failed replication.
Andrew Bartlett
2008-01-23 15:44:02 +11:00
Andrew Bartlett
7b87a58502 Fix DRSUAPI replication test - NET-API-BECOME-DC.
The main change here is to work with the current module stack,
replacing only the objectGUID module, rather than a number of modules.

However, two changes were key:
 - Fixing a typo search_req->handle -> change_req->handle
 - Allowing an error of NO_SUCH_OBJECT - it is quite valid
   for the object not to exist when being replicated in.

Other small changes were required to the ejs provision to match
changes in that code.

Andrew Bartlett
2008-01-23 15:43:14 +11:00
Andrew Bartlett
e8081333b8 Fix segfaults in codepaths only tested by the NET-API-BECOME-DC test.
(I presume this has resulted from the global variable elimination)

Perhaps the iconv handle argument to ndr_push_struct needs to be
marked as 'not NULL' or similar?

Andrew Bartlett
2008-01-23 15:34:44 +11:00
Andrew Bartlett
f82eec69f1 Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local 2008-01-23 15:09:55 +11:00
Andrew Bartlett
669f137f0e ranged_results: fix use of uninitialised variable (end)
This matches the range parsing in the search and callback - end was
uninitilaised, causing occasional failures in make test.

Andrew Bartlett
2008-01-23 08:57:16 +11:00
Jelmer Vernooij
91d7ba5202 build: Remove support for DESCRIPTION setting that is now unused. 2008-01-22 18:49:51 +01:00
Jelmer Vernooij
e9f9973267 build: remove support for automatically building .pc files. 2008-01-22 18:47:18 +01:00
Jelmer Vernooij
4b83dc0647 dcerpc_samr: Use manually written .pc file. 2008-01-22 18:43:07 +01:00
Jelmer Vernooij
c0165aab47 param: Use manually written .pc file. 2008-01-22 18:41:30 +01:00
Jelmer Vernooij
96a5ac9db2 gensec: Use manually written .pc file. 2008-01-22 18:39:54 +01:00
Jelmer Vernooij
d43b18cc5e torture: Use manually written .pc file. 2008-01-22 18:38:14 +01:00
Jelmer Vernooij
676fd18fa2 dcerpc: Use manually written .pc files for dcerpc and ndr. 2008-01-22 18:36:14 +01:00
Jelmer Vernooij
5c64d4adaf registry: Use manually written .pc file. 2008-01-22 18:28:51 +01:00
Jelmer Vernooij
c8947fda23 ldb/talloc/tdb: Use manually written pc file. 2008-01-22 18:24:00 +01:00
Jelmer Vernooij
8104907c52 build: Allow manually written pkg-config files. 2008-01-22 18:21:48 +01:00
Jelmer Vernooij
2fc26c0902 tdb: Add URL in pc file. 2008-01-22 18:14:12 +01:00
Jelmer Vernooij
da0952bdd6 ldb: Fix typo. 2008-01-22 17:34:44 +01:00
Jelmer Vernooij
9a5cc88b09 ldb: Increase version number to make it easier to create new Debian snapshots. 2008-01-22 17:13:39 +01:00
Jelmer Vernooij
bd293cde1b python: Avoid duplicate copies of some objects in different packages. 2008-01-22 16:21:54 +01:00
Stefan Metzmacher
d2ac8be28d libreplace: getpwent_r/getgrent_r on IRIX are similar to solaris but use size_t
metze
(cherry picked from commit 2f46091511)
2008-01-22 12:24:05 +01:00
Andrew Bartlett
b99b604a5f Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local 2008-01-21 22:01:32 +11:00
Andrew Bartlett
70c1e918e6 Be sure to pass iconv handle down to compression subcontexts (fixes
segfaults in NET-API-BECOME-DC)

Andrew Bartlett
2008-01-21 20:56:27 +11:00
Jelmer Vernooij
c04cf0c052 build: Don't build heimdal as library. 2008-01-21 03:54:43 +01:00
Jelmer Vernooij
4b057b9bff python: Fix init functions. 2008-01-21 03:54:43 +01:00
Jelmer Vernooij
77b400764e 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.
2008-01-21 03:54:42 +01:00
Jelmer Vernooij
4fa8a2789c python: Reenable modules for libcli_nbt and libcli_smb. 2008-01-21 03:54:42 +01:00
Jelmer Vernooij
583ea85ae0 ldb: Fix building python modules against system-provided ldb. 2008-01-21 03:54:42 +01:00
Jelmer Vernooij
2c2b16b5ae build: Allow overriding CFLAGS for python packages. 2008-01-21 03:54:41 +01:00
Volker Lendecke
da9a5b571e Add an exception for S3
Doing this correctly would involve a create_file call for qpathinfo
2008-01-20 15:55:33 +01:00
Jelmer Vernooij
88f9e11286 build: Fix handling of external pkg-config dependencies when generating pkg-config files. 2008-01-20 01:19:59 +01:00
Julien Kerihuel
ed1e58e8b3 pidl: Add --version argument. 2008-01-18 18:31:03 +01:00
Andrew Bartlett
c2f2e01357 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
2008-01-18 18:10:18 +11:00
Andrew Bartlett
45f6ccefda 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
2008-01-18 18:08:49 +11:00
Andrew Bartlett
e9003feb1b Don't set 'name' in the LDIF, this is handled by the rdn_name module.
Andrew Bartlett
2008-01-18 17:08:34 +11:00
Andrew Bartlett
51422414be Merge commit 'origin/v4-0-test' into 4-0-local 2008-01-18 17:05:17 +11:00
Andrew Bartlett
673f180500 Add showInAdvancedViewOnly to every new object
Unless already set, the default value for this comes from the
defaultHidingValue in the schema.

Andrew Bartlett
2008-01-18 16:56:41 +11:00
Andrew Tridgell
7077df3e2e merged changes from v3-2-test 2008-01-18 15:45:22 +11:00
Andrew Tridgell
c54c087a19 merged tdb changes from ctdb 2008-01-18 15:33:57 +11:00
Jelmer Vernooij
98ebdbe52f registry: Use correct return values. 2008-01-18 03:42:00 +01:00
Jelmer Vernooij
434e4857ce registry: Avoid mapping registry return codes: return the right value in the first place. 2008-01-18 03:42:00 +01:00
Andrew Kroeger
d57792d67b 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.
2008-01-18 03:41:59 +01:00
Jelmer Vernooij
1e31fcb8a0 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.
2008-01-18 03:41:59 +01:00
Andrew Kroeger
94fb39cfd9 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.
2008-01-18 03:41:59 +01:00
Andrew Kroeger
0ed6f1b162 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)".
2008-01-18 03:41:59 +01:00
Jelmer Vernooij
c8b22ef30c registry: Check for more specific LDB return codes, handle changing existing values better. 2008-01-18 03:41:59 +01:00
Andrew Bartlett
f6dbdf34e8 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
2008-01-18 13:30:20 +11:00
Andrew Bartlett
ffb12aad8a 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
2008-01-18 13:28:52 +11:00