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 8149094eddebd9a0e8b7c123c2ed54d00164bb26.
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
Andrew Tridgell
ef13264125
s4-provision: setup spn_update_list in provision
2010-04-27 19:27:19 +10:00
Andrew Tridgell
1a68311d41
s4-python: added --realm option to python scripts
...
this is needed for net vampire
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-04-21 13:35:56 +10:00
Andrew Tridgell
024b53755c
s4-python: accept --option arguments in python cmdline parsing
...
also fixed the -d option to use lp.set() which calls lp_set_cmdline()
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-04-21 13:35:56 +10:00
Andrew Tridgell
ac11b616dd
s4-net: don't show a full python exception when you can't open sam.ldb
2010-04-20 20:59:24 +10:00
Andrew Tridgell
1f7da85c77
s4-python: added PYTHONDIR to python search path
...
we put it after the scripting/python dir, so we look in the build
directory (if applicable) first.
2010-04-20 20:59:24 +10:00
Andrew Bartlett
538a07a80a
s4:provisionbackend Print the command we failed to start slapd with
...
This makes it easier to put failed startups into a debugger.
Andrew Bartlett
2010-04-20 14:24:22 +10:00
Andrew Bartlett
ea5cf7ce05
s4:provision Pass in the invoication ID and NTDS Settings DN to Schema()
...
By putting these values into the cache on the LDB, this reduces some
of the noise in provision, particularly with the LDAP backend.
Andrew Bartlett
2010-04-20 12:11:18 +10:00
Andrew Tridgell
75f5c3cd97
s4-net: allow a username to be displayed in setpassword errors
...
the filter is a bit too cryptic
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-04-16 14:12:44 +10:00
Andrew Tridgell
046c5824e4
s4-net: nicer error message (and no exception)
...
in net newuser and net setpasswd we shouldn't be throwing python
exceptions on normal user errors like unknown user
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-04-16 14:12:44 +10:00
Jelmer Vernooij
13bbfa3fca
pydsdb: Fix memory leak on invalid parameters, formatting, trivial
...
typos.
2010-04-15 18:45:41 +02:00
Matthieu Patou
ce28f854c0
s4 python: add a unit test for function dsdb_get_oid_from_attid
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-04-15 18:45:41 +02:00
Matthieu Patou
634caed116
s4 python: make the function dsdb_get_oid_from_attid reachable from a samDB object
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-04-15 18:45:41 +02:00
Nadezhda Ivanova
83312a9e50
Fixed a problem with provision missing the default_dir/etc directory.
2010-04-12 16:06:06 +03:00
Jelmer Vernooij
47c4e883d6
s4-net: Add definition of outf.
2010-04-12 02:55:27 +02:00
Andrew Bartlett
bc6659936a
s4:provision Don't make the 'slaptest' call produce errors
...
Adding -n 0 also allows us to check the error code too
Andrew Bartlett
2010-04-10 21:41:00 +10:00
Andrew Tridgell
92a051ef2f
s4-waf: only enable the python uuid module if python <= 2.4
2010-04-09 21:26:28 +10:00
Jelmer Vernooij
0d92dd1074
s4-net: Cope with options without arguments.
2010-04-09 11:53:00 +02:00
Jelmer Vernooij
410527f936
s4-net: 'net user create' -> 'net user add', for backwards compatibility.
2010-04-09 11:53:00 +02:00
Jelmer Vernooij
ececb73262
Support --version in python scripts.
2010-04-09 11:53:00 +02:00
Jelmer Vernooij
9af8d02b22
s4-net: Convert machinepw command to python.
2010-04-09 11:53:00 +02:00
Jelmer Vernooij
f83aa13f62
s4-net: Convert vampire command over to Python.
2010-04-09 11:53:00 +02:00
Jelmer Vernooij
ffa73c412e
s4-net: Convert user subcommand to Python.
2010-04-09 11:53:00 +02:00
Kamen Mazdrashki
8149094edd
s4/dsdb: Set schemaInfo attribute value during provisioning
...
After provisioning new Forest, schemaInfo should be set
to a value with revision=1 and current invocation_id
2010-04-09 12:21:34 +03:00
Jelmer Vernooij
26d928e948
s4-net: Convert 'net time' to python.
2010-04-08 23:41:08 +02:00
Jelmer Vernooij
0c6f434b7b
net: Convert time command to python.
2010-04-08 23:22:55 +02:00
Jelmer Vernooij
6510b2cdd2
s4-net: Use new Net() object in net export keytab.
2010-04-08 23:22:55 +02:00
Jelmer Vernooij
814e20e7da
pynet: Create a net class.
2010-04-08 23:22:55 +02:00
Jelmer Vernooij
7a6f1c7842
s4-python: Fix formatting, use standard convention to call instance methods.
2010-04-08 23:20:36 +02:00
Jelmer Vernooij
ae6d306c68
s4-python: Cancel transaction properly in case of exceptions, fix formatting.
2010-04-08 23:20:36 +02:00
Jelmer Vernooij
57ac0a6042
s4-python: Move load_partition_usn to dsdb module.
2010-04-08 23:20:36 +02:00
Jelmer Vernooij
dd4ef4e106
s4-python: More cleanups.
2010-04-08 23:20:36 +02:00
Jelmer Vernooij
a35d876537
s4-python: rename samba.glue to samba._glue to indicate it's private.
2010-04-08 23:20:36 +02:00
Jelmer Vernooij
cc6e2b8a81
s4-python: Fix formatting, import of FLG_NOSYNC.
2010-04-08 23:20:36 +02:00
Jelmer Vernooij
d7a46ee129
s4-python: Simplify code, improve formatting.
2010-04-08 23:20:36 +02:00
Jelmer Vernooij
be4b688175
s4-python: Remove obsolete and broken torture modules.
...
The functionality of these modules is already present in a more current
form in other modules.
2010-04-08 23:20:35 +02:00
Jelmer Vernooij
4f2d8d6ace
s4-python: samdb: Default to using global schema.
2010-04-08 23:20:35 +02:00
Jelmer Vernooij
cf17d48dec
Migrate 'net export keytab' to python.
2010-04-08 22:37:35 +02:00
Jelmer Vernooij
479fd9c03f
s4-net: Simplify SamDB connect code.
2010-04-08 12:21:35 +02:00
Jelmer Vernooij
2578072541
s4-python: Move set_global_schema to pydsdb.
2010-04-08 12:21:35 +02:00
Jelmer Vernooij
c76bd65b60
s4-samdb: Allow skipping global schema.
2010-04-07 17:40:00 +02:00
Jelmer Vernooij
feeedf49cf
s4-provision: Proper handling of exceptions, use SamDB class but skip global schema.
2010-04-07 17:39:59 +02:00
Jelmer Vernooij
21ab06f8a2
s4-python: Move samdb_ntds_objectGUID to pydsdb.
2010-04-07 17:39:59 +02:00
Matthias Dieter Wallnöfer
fa4d91e1e0
s4:provision - add a comment which explains why "paths.dns_keytab" is stored without path reference
2010-04-07 15:05:18 +02:00
Jelmer Vernooij
c349aa3619
s4-python: Use standard infrastructure for finding included testtools, subunit and iso8601.
2010-04-07 00:29:28 +02:00
Jelmer Vernooij
449bdf3543
s4-python: Move set_session_info to PySambaLdb.
2010-04-06 13:12:43 +02:00
Jelmer Vernooij
55b98e9768
s4-python: Move register_samba_handlers to PySambaLdb.
2010-04-06 13:12:43 +02:00
Jelmer Vernooij
e9c3f2ef13
s4-python: Move ldb_set_utf8_casefold to pyldb-samba.
2010-04-06 13:12:43 +02:00