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

14367 Commits

Author SHA1 Message Date
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
Andrew Bartlett
35148fd51f 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
2008-01-18 13:27:05 +11:00
Andrew Bartlett
d822dfa017 Remove --ldap-base from the python provision script
(This is a merge from the ejs script)

Andrew Bartlett
2008-01-18 13:25:01 +11:00
Andrew Bartlett
d427cf4fa6 Correct authorship of instanceType module
Andrew Bartlett
2008-01-18 12:16:27 +11:00
Andrew Bartlett
2a418f3370 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
2008-01-18 10:13:43 +11:00
Michael Adam
bf957bcb83 Fix an output message in samba3rpc torture test.
Michael
2008-01-17 09:24:01 +01:00
Andrew Bartlett
e77375758d 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
2008-01-17 12:00:27 +11:00
Andrew Bartlett
4c869c54c2 OpenLDAP backend: Place the refint overlay after the memberof overlay
This still doesn't work for me, but is the recommended order.

Andrew Bartlett
2008-01-17 10:35:08 +11:00
Andrew Bartlett
11660b0737 Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local 2008-01-17 10:32:41 +11:00
Andrew Bartlett
ee93b4e2ee 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
2008-01-17 08:53:18 +11:00
Jelmer Vernooij
95872d7db8 selftest: Use "require" rather than "use" keyword so .pm files don't have to be provided until used. 2008-01-16 21:30:58 +01:00
Jelmer Vernooij
d9b4a5bb17 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. 2008-01-16 17:58:50 +01:00
Jelmer Vernooij
50b8a16d0c selftest: Add some more documentation. Rename env => target to avoid confusion. 2008-01-16 17:58:50 +01:00
Günther Deschner
1b5706e413 Add lsa_PolicyAuditEventType and lsa_PolicyAuditPolicy enums from samba3 to IDL.
Guenther
2008-01-16 16:01:50 +01:00
Jelmer Vernooij
5b2ea43ed8 pidl: Add simple test for ServerNDR. 2008-01-16 15:08:00 +01:00
Jelmer Vernooij
6a9827454a pidl: Fix missing import for fatal(). 2008-01-16 15:08:00 +01:00
Jelmer Vernooij
0e03694830 pidl: Fix imported function for ServerNDR and add test to make sure it doesn't regress again. 2008-01-16 15:08:00 +01:00
Jelmer Vernooij
5024249552 python: Build shared python modules for generic use. 2008-01-16 15:08:00 +01:00
Andrew Bartlett
30fc3752c7 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
2008-01-16 15:48:28 +11:00
Andrew Bartlett
8c88e4eb1c 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
2008-01-16 15:14:05 +11:00
Andrew Bartlett
c4aba5ad01 Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-abartlet 2008-01-16 09:26:24 +11:00
Andrew Bartlett
f7f765c29b Start generating a configuration for the refint overlay. This
OpenLDAP module should ensure that after a subtree rename, attributes
are still consistant.

Andrew Bartlett
2008-01-16 09:26:14 +11:00
Andrew Bartlett
d8a805a254 Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local 2008-01-16 09:00:04 +11:00
Andrew Bartlett
b0657e0681 Make the Fedora DS LDAP backend 'aci' actually work, with better quoting.
Andrew Bartlett
2008-01-16 08:59:13 +11:00
Andrew Bartlett
fc57a119f5 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
2008-01-16 08:49:54 +11:00
Jeremy Allison
9cff25cce1 Fix bug #5121 (unix passwd sync not working on a streams based
system).
Jeremy.

(lib/replace part of 545cd2139c metze)
2008-01-15 14:27:12 +01:00
Jeremy Allison
9f5c443972 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 657bf8c347 metze)
2008-01-15 14:02:34 +01:00
Volker Lendecke
8db9e19650 Fix bug 5055
(lib/replace part of 8bcd2df841 metze)
2008-01-15 13:42:53 +01:00
Jeremy Allison
db4eabf7cd Add MAX_DNS_NAME_LENGTH, remove more pstrings.
Jeremy.

(lib/replace part of a1725f4ff7 metze)
2008-01-15 13:41:37 +01:00