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 c3cbb846d0bfbaa11fd255bada7fa5fe502d4d96.
The fix is not correct, we should cache a bool to answer amIRODC
2010-05-11 12:54:18 +03:00
Zahari Zahariev
658dac9e7e
v2 Latest enhancements in ldapcmp tool
...
- Added support for replicating hosts versus hosts in different domains
- Added switches for the following modes:
= two - ignores additional attributes that cannot be the same
in two different provisions (domains)
= quiet - display nothing, only return code
= verbose - display all dn objects through compare fase
= default - display only objects with differences
- Added more placeholders for nETBIOSDomainName and ServerName
2010-05-10 17:24:03 +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
Andrew Tridgell
6fd4861d9d
s4-devel: a very useful script when dealing with library/linking issues
...
I use this all the time, so I thought I'd put it in the tree for
others
2010-05-07 15:14:49 +02:00
Andrew Tridgell
e0f602f2c9
s4-devel: auto-delete any leftover IPs
...
remove IP from a previous vampire_ad.sh run
2010-05-06 15:25:18 +02:00
Andrew Tridgell
9ba08c22e8
s4-devel: a useful script for giving DRS replication demos
2010-05-06 15:25:18 +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 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
b5b8e6b6ad
s4-dns: install samba_spnupdate
2010-04-27 19:27:19 +10:00
Andrew Tridgell
fa26383884
s4-dsdb: added samba_spnupdate
...
this script adds all our required servicePrincipalName entries at
runtime. The admin can add more entries to spn_update_list as needed
2010-04-27 19:27:18 +10:00
Andrew Tridgell
7872efcbc0
s4-dns: cope better with comments in dns_update_list
2010-04-27 19:27:18 +10:00
Andrew Tridgell
725e48c22c
s4-drsdevel: support sites in drs developer scripts
2010-04-27 15:24:40 +10:00
Andrew Tridgell
5e695dec2a
s4-upgradeprovision: fixed --realm option duplicate in upgrade_from_s3
2010-04-21 13:35:56 +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
899fa60dd2
s4-devel: allow extra net command line options and gdb
...
This allows you to run:
GDB="gdb --args" vampire_ad.sh
and also to add higher debug levels like this:
vampire_ad.sh -d100
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-04-21 13:35:55 +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
43ca57d088
s4-dns: use neater python for reading lines
...
files are line iterators
2010-04-19 18:21:42 +10:00
Andrew Tridgell
5040e2a6fb
s4-dev: expanded selftest-vars.sh to match current testenv
2010-04-19 16:34:14 +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
Andrew Tridgell
22d7a06522
s4-test: added KRB5_CONFIG to selftest-vars.sh
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