Jelmer Vernooij
c92db7b6dc
python: Use samba.tests.TestCase, make sure base class tearDown and
...
setUp methods are called, fix formatting.
2010-06-19 22:46:45 +02:00
Jelmer Vernooij
50429fb750
samba.tests.samba3: Clean up imports, use new TestCase class.
2010-06-19 22:46:44 +02:00
Jelmer Vernooij
f57b26b6f4
ntacls: Raise TestSkipped rather than writing to stdout.
2010-06-19 22:46:44 +02:00
Jelmer Vernooij
026a4d85a1
samba.tests: Provide TestCase and TestSkipped classes (from testtools) for convenience.
2010-06-19 22:46:44 +02:00
Jelmer Vernooij
c2cb0a710b
python: Remove unnecessary Ldb.set_invocation_id - use SamDB.set_invocation_id instead.
2010-06-19 22:46:44 +02:00
Jelmer Vernooij
827ce7b0a3
pyglue: Trim dependencies.
2010-06-19 22:46:44 +02:00
Jelmer Vernooij
27d82685da
pyglue: Remove unused code.
2010-06-19 22:46:44 +02:00
Jelmer Vernooij
74309eb29c
pydsdb: Move write_prefixes_from_schema_to_ldb to pydsdb from pyglue.
2010-06-19 22:46:43 +02:00
Jelmer Vernooij
a4f60ffe4b
pydsdb: Move dsdb_set_schema_from_ldb to pydsdb.
2010-06-19 22:46:43 +02:00
Jelmer Vernooij
05b108a06b
pydsdb: Move set_schema_from_ldif function to pydsdb from pyglue.
2010-06-19 22:46:43 +02:00
Stefan Metzmacher
cadca1f6ba
s4:provision: don't use hardcoded 'Default-First-Site-Name'
...
metze
Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
2010-06-19 21:32:43 +02:00
Matthias Dieter Wallnöfer
bce8017ca9
s4:python/samba/__init__.py - now specify the "relax" control for the delete operation before the provision
2010-06-19 17:53:22 +02:00
Jelmer Vernooij
f36a9afc2f
s4-python: Use sys.prefix rather than guessing prefix from current
...
file path.
2010-06-19 13:41:48 +02:00
Jelmer Vernooij
bf8045037d
waf: Add missing dependency (so header paths are inherited) on talloc to internal python lib.
2010-06-19 02:26:13 +02:00
Jelmer Vernooij
4c22434b3b
s4: Don't build a $prefix/lib/libpython.so, as such a library often already exists :-)
2010-06-18 23:51:40 +02:00
Jelmer Vernooij
b391b7d072
s4-waf: Don't include pytalloc when embedding python.
2010-06-18 23:51:40 +02:00
Jelmer Vernooij
ebd0bca555
s4: Build more python convenience files as subsystems rather than as python modules.
2010-06-18 23:51:40 +02:00
Matthias Dieter Wallnöfer
5779c21e41
s4:provision.py - we do now support the "Windows 2000 Native" domain function level
2010-06-16 15:34:41 +02:00
Jelmer Vernooij
8c88c9c500
Attempt to fix SamDB test infrastructure (not used in Samba anywhere, only in OpenChange).
2010-06-15 17:21:39 +02:00
Andrew Bartlett
7c60ac97bf
s4:provision Allow a specific prefix map to be loaded into a new schema provision
...
This allows the prefixMap from a DRS server to be used when loading
the schema from the local files. This helps us then import other
schema with this map in place.
Andrew Bartlett
Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
2010-06-15 10:51:34 +10:00
Andrew Kroeger
352fb5c7e4
s4:provision: Make gc._msdcs DNS entries A/AAAA records
...
When adding an additional DC as a GC server, the new DC attempts to register its
own gc._msdcs records. If the existing gc._msdcs record is a CNAME, BIND fails
the update with the message "attempt to add non-CNAME alongside CNAME ignored",
and the new DC is not registered as a GC server.
The A & AAAA record types for gc._msdcs have been verified against the DNS
server of a W2K8 DC.
2010-06-14 12:14:46 +02:00
Jelmer Vernooij
7b7213f1ee
s4-provision: Use logger in provision backends.
2010-06-13 18:19:03 +02:00
Jelmer Vernooij
51058213cb
s4-test: Use smb.conf path set in environment rather than using
...
command-line options.
This is the first step towards supporting custom test runners.
2010-06-13 18:19:03 +02:00
Jelmer Vernooij
d9d0d54475
upgradeprovision: Use logging infrastructure.
2010-06-13 18:19:03 +02:00
Jelmer Vernooij
3552ad3ab1
upgrade: Properly cancel/commit transactions in a couple more places.
2010-06-13 18:19:03 +02:00
Jelmer Vernooij
956a256faa
s4-python: Start using standard python logging infrastructure rather
...
than simple messaging callbacks.
2010-06-13 18:19:03 +02:00
Andrew Bartlett
57b6979ad0
s4:provision Allow both additional and override prefixmaps in Schema
...
The idea here is to allow some callers to specify a new prefixMap that
will override the values loaded from the prefixMap.txt.
Andrew Bartlett
2010-06-12 11:18:36 +10:00
Jelmer Vernooij
4690ebf0f4
Add missing stub functions.
2010-06-11 01:47:55 +02:00
Jelmer Vernooij
c446fbc3bf
s4-python: Fix formatting.
2010-06-11 01:47:55 +02:00
Matthias Dieter Wallnöfer
b8ea2e0757
s4:provision - fix typo in substitution variable
2010-06-06 20:42:19 +02:00
Jelmer Vernooij
82d56b9374
ldb: Fix dependencies when building with system ldb.
2010-05-31 19:22:03 +02:00
Jelmer Vernooij
55ef0ecea8
s4-python: Remove cruft to deal with static python modules, which are no
...
longer supported.
2010-05-31 00:21:42 +02:00
Matthias Dieter Wallnöfer
67b2c424ce
s4:scripting/python/modules.c - fix "asprintf" calls
2010-05-28 10:04:47 +02:00
Jelmer Vernooij
ac9341245a
pynet: Raise proper exceptions rather than invoking sys.exit.
2010-05-19 19:35:22 +02:00
Jelmer Vernooij
f9ca9e46ad
Finish removal of iconv_convenience in public API's.
2010-05-18 11:45:30 +02:00
Anatoliy Atanasov
d040658e1a
s4-rodc: Set am_rodc flag during provision
2010-05-17 13:30:27 +03:00
Matthias Dieter Wallnöfer
8608eaef76
s4:net domainlevel tool - fix up the error handling as Jelmer suggested
...
Sorry, I've copied this from the "ldap.py" test and thought it would work.
2010-05-14 19:03:18 +02:00
Matthias Dieter Wallnöfer
49c8c130a0
s4:domainlevel - handle exceptions more precisely
...
LDB_ERR_UNWILLING_TO_PERFORM should be the right error code when the
"msDS-Behavior-Version" was already raised by the first change as it is on
Windows Server.
When s4 itself does implement this trigger then we don't need to do the
second write operation anymore (they're kept in sync).
2010-05-13 22:42:22 +02:00
Matthias Dieter Wallnöfer
4da42b4e80
s4:domainlevel.py - update the script to handle both domain level occourrences on s4
...
The second "modify" is located under a try-catch block to ignore the change
failure against Windows Server (there only the first change is required).
2010-05-13 15:33:11 +02:00
Matthias Dieter Wallnöfer
38e9a7f577
s4:domain functional level - it is also specified in the domain object under partitions
...
Discovered by the "ldapcmp" tool
2010-05-13 15:14:06 +02:00
Anatoliy Atanasov
7200c25646
Revert "s4-rodc: Fix provision warnings by creating ntds objectGUID in provision"
...
This reverts commit c3cbb846d0
.
The fix is not correct, we should cache a bool to answer amIRODC
2010-05-11 12:54:18 +03:00
Anatoliy Atanasov
c3cbb846d0
s4-rodc: Fix provision warnings by creating ntds objectGUID in provision
2010-05-10 17:24:02 +03:00
Matthias Dieter Wallnöfer
ce4c0261f6
s4:net utility - make outprinted description comments more consistent
...
I've added a [server connection needed] when commands won't work on the local
SamDB.
2010-05-09 19:14:47 +02:00
Matthias Dieter Wallnöfer
b703481ef7
s4:net utility - remove unixname parameter of samdb.newuser
...
We don't handle the id mapping stuff manually anymore.
2010-05-09 19:14:47 +02:00
Matthias Dieter Wallnöfer
cde9ec4af6
s4:samdb python bindings - remove idmap creation stuff from this call
...
The id mapping should now be handled automatically by the s4 daemon.
2010-05-09 19:14:46 +02:00
Matthias Dieter Wallnöfer
544dc4465c
s4:net utility - add an optional password attribute to "net user add"
...
To make it behave similar to "net newuser".
2010-05-09 19:14:46 +02:00
Matthias Dieter Wallnöfer
b57d11f1b3
s4:py_nttime2string - removed unused variable "nt2"
...
And add some linespaces to look better.
2010-05-04 17:23:43 +02:00
Matthieu Patou
f534080367
s4 python: fix glues functions manipulating NTTIME
...
The fix include reverse function (from NTTIME to timestamp) + fix
on the transformation of a NTTIME to a PyLong object
2010-05-02 15:59:49 +02:00
Kamen Mazdrashki
5bf12e101a
Revert "s4/dsdb: Set schemaInfo attribute value during provisioning"
...
This reverts commit 8149094edd
.
Windows implementation does not set schemaInfo attribute value
until first Schema update request.
This way, newly provisioned forest returns no schemaInfo value.
I think it won't be bad for us to have this value preset, but
I want to mimic Win AD behavior as close as possible.
2010-04-29 04:54:05 +03:00
Andrew Bartlett
3c585e9a80
s4:provisionbackend Don't loop forever waiting for OpenLDAP
...
We need to give a good error when we can't get OpenLDAP to accept our
connections.
Andrew Bartlett
2010-04-28 10:39:57 +10:00