1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
Commit Graph

2697 Commits

Author SHA1 Message Date
Jelmer Vernooij
c529c12c7d upgrade: use logger.warning. 2011-11-13 18:06:06 +01:00
Matthieu Patou
576ea40ece samba-tool: allow dbcheck to correct the originating_change_time of the deleted object container
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sun Nov 13 15:47:53 CET 2011 on sn-devel-104
2011-11-13 15:47:53 +01:00
Matthieu Patou
a6686b9f98 samba-tool: dbcheck avoid problems with deleted objects
We have to search for deleted objects as well as the previous search
might have been done with the show_deleted control. If not samba-tool
fails with no such DN error while fetching the object.
2011-11-13 14:10:05 +01:00
Matthieu Patou
691fb365f8 s4: Simple test script to create lots of contacts to stress the LDB
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Fri Nov 11 22:02:53 CET 2011 on sn-devel-104
2011-11-11 22:02:53 +01:00
Jelmer Vernooij
ad40581142 subunitrun: Add notes about subunitrun being deprecated. 2011-11-10 23:37:04 +01:00
Jelmer Vernooij
ae88d7390b Revert "test: added -D option to subunitrun"
This reverts commit ac0bba2ea1.

"python -m subunit.run" is the preferred way of running tests to
generate subunit. I also don't want to move too far away from
the standard test running infrastructure for python so that
other test runners (nosetests, trial, tribunal, ...) can be used with
Samba code.
2011-11-10 23:37:04 +01:00
Theresa Halloran
7d84805ac0 s4: samba-tool time --help documentation improvements
Signed-off-by: Theresa Halloran <thallora@linux.vnet.ibm.com>

Signed-off-by: Andrew Tridgell <tridge@samba.org>

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Nov 10 06:04:22 CET 2011 on sn-devel-104
2011-11-10 06:04:22 +01:00
Theresa Halloran
4ea6225c58 s4: samba-tool group --help documentation improvements
Signed-off-by: Theresa Halloran <thallora@linux.vnet.ibm.com>

Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-11-10 14:24:38 +11:00
Andrew Tridgell
862823a776 samba-tool: print samaccountname in samba-tool user list
this is the attribute the admin needs for other commands

Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
2011-11-10 14:24:21 +11:00
Andrew Tridgell
ac0bba2ea1 test: added -D option to subunitrun
this allows for:

 subunitrun -D lib/ldb/tests/python api

which makes this easier for developers
2011-11-10 14:24:21 +11:00
Giampaolo Lauria
1cef3212a1 samba-tool: Added new "user disable" command 2011-11-10 14:24:21 +11:00
Giampaolo Lauria
34ff5d29e6 samba-tool: Added "user list" command 2011-11-10 14:24:21 +11:00
Giampaolo Lauria
da21ff82a5 samba-tool: Change internal argument name in domain machinepassword 2011-11-10 14:24:21 +11:00
Giampaolo Lauria
53fc437d05 samba-tool: Fix domain machinepassword secret db search
pair programmed with Jelmer Vernooij
Add search to include secrets.ldb
2011-11-10 14:24:21 +11:00
Giampaolo Lauria
ec5afae292 samba-tool: Fix domain machinepassword name search
Append '$' to name provided by user to search for a machine account
when necessary
2011-11-10 14:24:21 +11:00
Andrew Tridgell
46723aa2da s4-test: improved error checking in samba-tool time test
Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
2011-11-10 14:24:21 +11:00
Sean Dague
a818253960 test: add samba-tool user tests
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-11-10 14:24:20 +11:00
Sean Dague
a66eae9a6d test: Add samba-tool time tests
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-11-10 14:24:20 +11:00
Sean Dague
559835dc59 test: add directory and base class for samba-tool tests
this allows for more sophisticated testing of samba-tool

Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-11-10 14:24:20 +11:00
Matthias Dieter Wallnöfer
f4a07f0b81 s4:join.py - fix up "DsAddEntry" against Windows Server 2000
It is important to consider the result level regarding error
information. Windows 2000 seems to send us back v2, all other
implementations v3. Consider post "Joining W2k AD domain"

Reviewed-by: abartlet

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Wed Nov  9 23:37:08 CET 2011 on sn-devel-104
2011-11-09 23:37:08 +01:00
Jelmer Vernooij
7feb83a1c4 s4: Install samba-tool and samba_kcc to bin/ rather than sbin/.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Nov  9 19:43:07 CET 2011 on sn-devel-104
2011-11-09 19:43:06 +01:00
Jelmer Vernooij
b8efff57dc samba_kcc: Remove unnecessary return statements. 2011-11-07 02:04:52 +01:00
Amitay Isaacs
0c2f91c6b2 s4-provision: Create ldap records for DNS partitions similar to windows
this allows easy comparison between windows and samba ldap trees

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Wed Nov  9 08:27:46 CET 2011 on sn-devel-104
2011-11-09 08:27:46 +01:00
Amitay Isaacs
a807c83641 s4-provision: Set security descriptor for DNS records 2011-11-09 16:49:08 +11:00
Matthias Dieter Wallnöfer
099d687d1a s4:samba-tool user command - always initialise the boolean arguments properly
It they haven't been specified.

Reviewed-by: Jelmer

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Tue Nov  8 22:28:38 CET 2011 on sn-devel-104
2011-11-08 22:28:38 +01:00
Matthias Dieter Wallnöfer
a53bc0a91b s4:samba-tool - other fix for Gémes Géza patch regarding parameter handling
The condition has not been specified correctly since we are expecting a boolean.
Pointed out by Jelmer.

Reviewed-by: Jelmer
2011-11-08 20:53:08 +01:00
Amitay Isaacs
7dbd2ec757 s4-provision: site is passed as an argument to setup_ad_dns()
Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Tue Nov  8 06:07:46 CET 2011 on sn-devel-104
2011-11-08 06:07:46 +01:00
Andrew Bartlett
696a70c9fa s4-provision Remove options for LDAP backend to reduce user confusion
We do not support the LDAP backend any more, but keep the code in case someone
comes up with an interesting use case that could leverage this in a very
particular situation.  In order to keep the code, we must test it, so
we keep just this much of the support around.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Nov  8 04:33:49 CET 2011 on sn-devel-104
2011-11-08 04:33:49 +01:00
Andrew Bartlett
d61d28bccc s4-s3-upgrade Add my copyright 2011-11-08 02:58:06 +01:00
Amitay Isaacs
5104abd573 s4-dnsserver: Test forward zones are not listed in reverse zone search
Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Tue Nov  8 01:26:43 CET 2011 on sn-devel-104
2011-11-08 01:26:43 +01:00
Matthias Dieter Wallnöfer
ce8b5d520b s4:samba-tool - fix Gémes Géza patch regarding parameter handling
The new "random-password" parameter has not been evaluated correctly.

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Mon Nov  7 19:35:05 CET 2011 on sn-devel-104
2011-11-07 19:35:05 +01:00
Gémes Géza
1d9ff23f8e Add a --random-password option to user create command.
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
2011-11-07 17:27:34 +01:00
Theresa Halloran
384eaba38e s4: samba-tool user --help documenation improvements
Signed-off-by: Theresa Halloran <thallora@linux.vnet.ibm.com>

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Mon Nov  7 01:39:25 CET 2011 on sn-devel-104
2011-11-07 01:39:24 +01:00
Andrew Tridgell
f0ae7e1916 kcc: fixed program name
kcccompute -> samba_kcc
2011-11-07 10:02:45 +11:00
Andrew Tridgell
eb9c35cbb7 kcc: fixed tabs/spaces in kcc python implementation
as spotted by autobuild
2011-11-07 10:02:45 +11:00
Dave Craft
d85b6edf8c samba_kcc addtion
Scaffolding and initial implementations of
portions of the KCC in python.  This code currently
properly computes the graph nodes for the intrasite
topology as well as enumerating all steps for a full
run of the KCC.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-11-07 10:02:45 +11:00
Dave Craft
c78dac4fde add python KCC utility classes and methods
New file source4/scripting/python/samba/kcc_utils.py
contains classes and methods for:
   DirectoryServiceAgent
   NTDSConnection
   GraphNode
   NamingContext
   NCReplica
These are consumed by a new samba_kcc python script
for KCC topology computation

Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-11-07 10:02:45 +11:00
Jelmer Vernooij
1ad05d8c09 Some formatting fixes, remove unused imports.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Nov  6 06:22:33 CET 2011 on sn-devel-104
2011-11-06 06:22:33 +01:00
Kai Blin
55e448fe2d s4 provision/dns: Move DNS-related setup to sambadns module
Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Fri Nov  4 09:15:54 CET 2011 on sn-devel-104
2011-11-04 09:15:54 +01:00
Kai Blin
eeb370f77a s4 provision/dns: Move secretsdb_setup_dns to the AD DNS specific setup 2011-11-04 07:38:44 +01:00
Giampaolo Lauria
fe6913ada3 samba-tool: Fix short description and error msgs in domain level
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Thu Nov  3 16:53:16 CET 2011 on sn-devel-104
2011-11-03 16:53:16 +01:00
Giampaolo Lauria
64e7e448fb samba-tool: Fix --quiet option in domain samba3upgrade
--quiet option does not require an argument
2011-11-03 15:12:27 +01:00
Giampaolo Lauria
16437edf48 samba-tool: Improve "delegation" command error handling
Change samdb toggle_userAccountFlags fcn to display more
meaningful error messages
Add flags string param to toggle_userAccountFlags
Change call to toggle_userAccountFlags in delegation command
to pass the flag name to be displayed in case of errors
2011-11-03 15:12:27 +01:00
Giampaolo Lauria
967ac70a35 samba-tool: Improve "delegation" command error message
Write a more specific error msg when the on|off arg is invalid
2011-11-03 15:12:27 +01:00
Giampaolo Lauria
9ff2874e5e samba-tool: Improve "delegation" command error handling
Display a more meaningful error msg when user account not found
Assert when returned number of entries is not 0 or 1
2011-11-03 15:12:27 +01:00
Giampaolo Lauria
82c6599e15 samba-tool: Fix "delegation show" command synopsis
Removed "show" from synopsis as it is no longer necessary
2011-11-03 15:12:27 +01:00
Matthieu Patou
2db221c384 s4-sites: Document, fix under optimal coding, use exceptions
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Wed Nov  2 22:35:00 CET 2011 on sn-devel-104
2011-11-02 22:35:00 +01:00
Jelmer Vernooij
23d3880725 samba.netcmd: Pass in outf/errf.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Nov  2 20:09:40 CET 2011 on sn-devel-104
2011-11-02 20:09:40 +01:00
Jelmer Vernooij
3ce126f352 s4-python: samba.provision: Require schema to be passed in - code path which handles schema not being specified is broken anyway. 2011-11-02 18:35:38 +01:00
Jelmer Vernooij
aa882d3323 samba.common: Fix formatting of docstring (trips up pydoctor). 2011-11-02 18:35:37 +01:00