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

2128 Commits

Author SHA1 Message Date
Andrew Tridgell
f6c2d39d0b s4-pyglue: expose the remaining NTTIME functions from glue 2010-11-28 00:16:38 +11:00
Andrew Tridgell
af93f227ad s4-samba-tool: fixed "-k no" for disabling kerberos auth
The option "-k no" was not correctly disabling kerberos in python
programs

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-11-28 00:16:37 +11:00
Andrew Tridgell
5e8cb67605 s4-provision: fixed eadb automatic and manual setting in provision
we should not set posix:eadb in lp in the acl native test code

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-11-26 03:08:21 +01:00
Andrew Tridgell
eeb29b593a s4-provision: don't try to look for an IPv6 address when not specified
the getaddrinfo() method of finding an IPv6 address is incorrect. We
could do it via the Samba interfaces code, but until we have that it
is better to not try to auto-detect IPv6

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-11-26 03:08:21 +01:00
Nadezhda Ivanova
1e9a7882be s4-tests: Modified create_ou to only accept security.descriptor type for sd to avoid confusion
It used to work with sddl as well, but this is confusing and could lead to errors. It also caused a message about tallocing a security descriptor to appear.

Autobuild-User: Nadezhda Ivanova <nivanova@samba.org>
Autobuild-Date: Thu Nov 25 19:46:42 CET 2010 on sn-devel-104
2010-11-25 19:46:42 +01:00
Nadezhda Ivanova
db403ac35d s4-dsdb: Switched to using a dictionary in create_ou for consistency.
Autobuild-User: Nadezhda Ivanova <nivanova@samba.org>
Autobuild-Date: Thu Nov 25 14:12:52 CET 2010 on sn-devel-104
2010-11-25 14:12:52 +01:00
Nadezhda Ivanova
05b8e078f4 s4-dsdb: Fixed wrong assignment of name attribute to description atribute in create_ou. 2010-11-25 14:25:43 +02:00
Nadezhda Ivanova
fc1da86d40 s4-tests: Modified speedtest.py to use samba.tests.delete_force
Autobuild-User: Nadezhda Ivanova <nivanova@samba.org>
Autobuild-Date: Thu Nov 25 01:28:19 CET 2010 on sn-devel-104
2010-11-25 01:28:19 +01:00
Nadezhda Ivanova
db5bcb7115 s4-tests: Added a common definition of delete_force. 2010-11-25 01:09:27 +02:00
Nadezhda Ivanova
c89ecfc2ad s4-dsdb: Extended samdb.newgroup to set the group's security descriptor. 2010-11-24 16:54:18 +01:00
Andrew Tridgell
1f478afe22 s4-devel: we don't need to override these scripts now
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Wed Nov 24 01:02:43 CET 2010 on sn-devel-104
2010-11-24 01:02:43 +01:00
Nadezhda Ivanova
e95a350682 s4-dsdb: Changed filter to find the account of a user by samAccountName
In newuser, a filter by dn was given to setpassword to find the account whose password is to be reset.
It appears however that if given filter of type (dn=CN=smth) Windows fails to return the entry, and the
tests that use newuser fail against it. Changed to use samAccountName instead.
2010-11-23 21:02:03 +01:00
Kamen Mazdrashki
9e24db1f2b s4-pfm_verify: Explicitly pass LoadParm() instance to system_session() function
Otherwise system_session() creates a LoadParm() instance
wich resets certain params to their defaults from smb.conf
("log level" for instance)
2010-11-23 18:01:05 +01:00
Nadezhda Ivanova
3001a514dd s4-dsdb: Extended samdb.newuser to accept security descriptor for the object and optionally skip password reset
Sometimes for testing purposes we create users without any permissions on their objects and password reset
cannot be performed at that point, and is not necessary. For this purpose we can now optionally skip this step.
The default is still to reset the user password.
Also, a security.descriptor object can be specified during the user creation to override using the default one.
defaultSecurityDescriptor is still used by default.
2010-11-23 17:15:16 +01:00
Nadezhda Ivanova
0c22316ccf s4-dsdb: Added a python method to SamDB for creating organizationalUnits 2010-11-23 14:33:27 +02:00
Nadezhda Ivanova
eaa9733a83 s4-dsdb: Added python helpers for getting and seting dSHeuristics to SamDB 2010-11-23 11:22:26 +02:00
Nadezhda Ivanova
c88b90e9f6 s4-dsdb: Added a helper to python SamDB for retrieving and setting minPwdAge. 2010-11-22 18:52:04 +02:00
Kamen Mazdrashki
9c2bd08498 s4-tests: Wrap connect_samdb() into a connect_samdb_ex() helper
Thus caller will be able to connect to SamDB and fetch
RootDSE info in a single step
2010-11-22 15:37:40 +02:00
Kamen Mazdrashki
bc6ba4b04c s4-samba.tests: Explicitly pass LoadParm() instance to system_session() function
Otherwise system_session() creates a LoadParm() instance
wich resets certain params to their defaults from smb.conf
("log level" for instance)
2010-11-22 15:37:40 +02:00
Kamen Mazdrashki
6965d1eba5 s4-pfm_verify: fix usage string
Thanks Tridge!
2010-11-22 15:37:39 +02:00
Andrew Tridgell
24e8bc5441 wintest: moved to top level
the plan is to expand wintest to test a lot more of Samba against
windows, including testing the Samba3 file server, winbind, nmbd etc
2010-11-19 15:17:43 +11:00
Andrew Tridgell
58c43f74b9 s4-wintest: reliability and usability improvements
- allow for missing VMs
- improved VM names
- added join of w2k3 to Samba domain
- cope with w2k3 dcpromo output
- wait for port 139 not 23, to avoid windows telnet server bug

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Nov 18 23:56:11 CET 2010 on sn-devel-104
2010-11-18 23:56:11 +01:00
Andrew Tridgell
5b3981acb1 s4-rodc: enable the DRS_GET_ALL_GROUP_MEMBERSHIP flag for RODC replication
see the description of this flag in [MS-DRSR]
2010-11-18 23:12:26 +01:00
Andrew Tridgell
96e55cb132 s4-join: initially disable the machine account
enable after a password is set
2010-11-18 23:12:26 +01:00
Andrew Tridgell
6a41afba68 s4-drs: fixed a typo 2010-11-18 23:12:26 +01:00
Andrew Tridgell
5be4bfdc37 s4-wintest: remove files in var/ when reprovisioning 2010-11-18 23:12:26 +01:00
Andrew Tridgell
27c3bc8c01 s4-test: added --rebase and --clean options 2010-11-18 23:12:26 +01:00
Andrew Tridgell
498f3c8e5f s4-test: use --fail-immediately for samba_dnsupdate testing 2010-11-18 23:12:26 +01:00
Andrew Tridgell
3f952aba2b s4-spnupdate: only enable NDR print at log level above 5 2010-11-18 23:12:25 +01:00
Andrew Tridgell
1ce223017d s4-dns: added support for --fail-immediately for RODC netlogon dns updates 2010-11-18 23:12:25 +01:00
Kamen Mazdrashki
c29a8c7ec5 s4-samdb.py: Use ldb.get_default_basedn() to avoid RootDSE search 2010-11-18 22:28:07 +01:00
Andrew Tridgell
1c4807a62f s4-test: added greater control over tests to run
now supports --list to list tests, and --skip to skip the named tests

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Nov 18 04:29:24 UTC 2010 on sn-devel-104
2010-11-18 04:29:24 +00:00
Andrew Tridgell
23e053d4a2 s4-test: rename scripting/devel/howto to scripting/devel/wintest
this won't just be for the howto anymore

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Nov 18 00:45:18 UTC 2010 on sn-devel-104
2010-11-18 00:45:18 +00:00
Andrew Tridgell
f6c66cd6ee s4-wintest: added wintest.py library
converted test-howto.py to use the wintest library.

The idea is for us to create other tests that test lots of different
interactions with windows
2010-11-18 10:59:26 +11:00
Andrew Tridgell
1645190b1c s4-provision: don't test for xattrs if posix:eadb is set
when it is set in smb.conf or on the command line, obey the setting
and don't try to test for system xattr support
2010-11-17 23:55:39 +11:00
Andrew Tridgell
333975d84f s4-provision: setup posix:eadb using lp.set()
this allows it to override a setting made during the automatic testing
of xattr support
2010-11-17 23:55:39 +11:00
Andrew Tridgell
6041938908 s4-test: updates to test-howto.py
- handle clock skew using "net time" on windows after we open the
  telnet connection
- allow checking for result lists in order
- replicate all partitions after vampiring so we don't need
  to wait for periodic replication
- use a krb5 ccache in the prefix for kinit based tests

The complete test suite now passes on my system, taking just over 13
minutes to complete
2010-11-17 23:55:39 +11:00
Andrew Tridgell
292003343e s4-provision: add log messages about IP lookup
the IPv6 lookup can be very slow if a DNS server in the search list is
unavailable. It's good to let the user know what its doing.
2010-11-17 23:55:38 +11:00
Andrew Tridgell
60449d561d s4-dns: catch more expections in samba_dnsupdate 2010-11-17 23:55:38 +11:00
Andrew Tridgell
27df2e544a s4-test: added testing of w2k3 DC join to test-howto.py
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Wed Nov 17 01:16:19 UTC 2010 on sn-devel-104
2010-11-17 01:16:19 +00:00
Andrew Tridgell
5524822a72 s4-join: fixed join to w2k3
w2k3 does need msDS-Behavior-Version
2010-11-17 11:30:07 +11:00
Andrew Tridgell
a82bc073e2 s4-join: show a reasonable error on DsAddEntry() failing
DsAddEntry() gives errors in a reply container
2010-11-17 11:30:07 +11:00
Andrew Tridgell
3f9c97dbc5 s4-join: enable NDR printing at debug levels >= 5
this is handy for debugging joins
2010-11-17 11:30:07 +11:00
Andrew Tridgell
f99403e45a s4-test: fixes for test-howto.py
this fixes some timing issues, plus ensures we test both with and
without kerberos

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue Nov 16 07:58:55 UTC 2010 on sn-devel-104
2010-11-16 07:58:55 +00:00
Andrew Bartlett
2e44d0d329 samba-tool pwsettings Allow setting 'store cleartext'
This allows the 'store cleartext' password policy flag to be (un)set.

Andrew Bartlett
2010-11-16 16:32:55 +11:00
Andrew Tridgell
6ff009cacc s4-join: not all versions of w2003 have msDS-SupportedEncryptionTypes
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Mon Nov 15 22:28:16 UTC 2010 on sn-devel-104
2010-11-15 22:28:16 +00:00
Andrew Tridgell
10a1606baf s4-devel: a script to test the Samba4 HOWTO
This provides a script that allows testing of most of the steps of the
Samba4 HOWTO. The big difference between this and 'make test' is that
it test against windows, using pexpect to control windows boxes via
telnet.

The info about VMs and other parameters are in separate conf
files. I've included a sample config file that I use on my laptop.
2010-11-15 21:45:20 +00:00
Andrew Tridgell
e409db9da1 s4-dns: added --fail-immediately option to samba_dnsupdate
this is useful for manual testing
2010-11-15 21:47:38 +11:00
Andrew Tridgell
deaf7e5995 s4-dns: fixed registration of multiple IPs in samba_dnsupdate
bitten by python object references again!

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-11-15 21:47:38 +11:00
Matthias Dieter Wallnöfer
ac0dcd1e07 s4:upgradeprovision - why not directly use "provision:0"? 2010-11-13 12:33:26 +01:00