Stefan Metzmacher
378c21a72a
s4:torture/smb2: use tctx->ev as event context for polling
...
metze
2011-11-24 19:02:33 +01:00
Kai Blin
9f1eb8ab8e
s4 dns: Test QCLASS_NONE query
...
Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Thu Nov 24 14:10:45 CET 2011 on sn-devel-104
2011-11-24 14:10:44 +01:00
Kai Blin
8685a35e9c
s4 dns: Test QTYPE_ALL query
2011-11-24 12:35:08 +01:00
Kai Blin
16d9ebb396
s4 dns: Check more of the returned values for the A query
2011-11-24 12:35:08 +01:00
Kai Blin
1a599da550
s4 dns: Move dns_transaction_udp to other helper functions
2011-11-24 12:35:08 +01:00
Andrew Tridgell
b16f539e0e
s4-dns: added --no-credentials option to samba_dnsupdate
...
this is for a user who is doing DNS updates via key files rather than
GSSAPI. This allows the update to go through without a kerberos error
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue Nov 22 06:34:59 CET 2011 on sn-devel-104
2011-11-22 06:34:59 +01:00
Jeremy Allison
3e6e1aed94
Fix a bunch of "warning: variable ‘XXXX’ set but not used [-Wunused-but-set-variable]" warnings from the new gcc.
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Nov 21 23:39:08 CET 2011 on sn-devel-104
2011-11-21 23:39:08 +01:00
Günther Deschner
1781415196
s4-smbtorture: add ndr test for nbt_netlogon_packet to avoid future regressions.
...
Guys, we really should make sure to always add ndr tests like this whenever we
change some sensitive libndr or handmarshalling bits.
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Sun Nov 20 23:10:39 CET 2011 on sn-devel-104
2011-11-20 23:10:39 +01:00
Matthieu Patou
6d29581637
s4-dsdb: Modify the repl_meta_data behavior to allow Metadata change on attribute interSiteTopologyGenerator even if the value didn't change
...
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sat Nov 19 16:47:53 CET 2011 on sn-devel-104
2011-11-19 16:47:53 +01:00
Amitay Isaacs
cd3f552f4f
s3-py-passdb: Fix handling of uninitialized gid values
...
Uninitialized gid value is set to -1 and return as such from python
passdb api.
Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Fri Nov 18 06:18:33 CET 2011 on sn-devel-104
2011-11-18 06:18:33 +01:00
Amitay Isaacs
9318e00a1f
dsdb: Fix the password expiry calculation
...
As per Section 3.1.1.4.5.26 [MS-ADTS.pdf], password is expired if
pwdLastSet = null, or
pwdLastSet = 0, or
(maxPwdAge != 0x8000000000000000 and (ST - pwdLastSet) > maxPwdAge)
2011-11-18 14:38:28 +11:00
Amitay Isaacs
d0e9f22654
s3-passdb_test: Policy values are converted to signed integer
...
No need to check value for 0xffffffff (4294967295).
2011-11-18 14:38:28 +11:00
Amitay Isaacs
244ecc844d
s4-s3-upgrade: Add --verbose option to print extra details
2011-11-18 14:38:28 +11:00
Andrew Bartlett
f93ec5a027
s4-auth log details about any token we fail to convert to a unix token
...
Now that entries are being added into the idmap DB from Samba3, and
may be UID or GID but not BOTH, failures are more likely.
Andrew Bartlett
2011-11-18 14:38:28 +11:00
Amitay Isaacs
e6c77f523b
s4-s3-upgrade: Fix idmap types ID_TYPE_UID/ID_TYPE_GID instead of UID/GID
2011-11-18 14:38:28 +11:00
Amitay Isaacs
6a2a2dfa5f
samba-tool: Fix the domain account policy max_pwd_age calculation
...
Windows sets maxPwdAge to -0x8000000000000000 when maximum password
age is set to 0 days.
2011-11-18 14:38:27 +11:00
Amitay Isaacs
c48a2aa438
s4-s3-upgrade: Fix the minimum and maximum password age calculation
...
Windows sets maxPwdAge to -0x8000000000000000 when maximum password age
is set to 0 days.
2011-11-18 14:38:27 +11:00
Andrew Bartlett
e80dbdcab1
s4-s3-upgrade now look for -1 as the special 'not set' value
...
this is possible because we know the py_passdb will always set -1
here, not passing though 0xFFFFFFFF.
Andrew Bartlett
2011-11-18 14:38:27 +11:00
Kai Blin
468fa95df2
s4 dns: Reduce test output noise by upping log level for dns_name_packet logging
...
Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Thu Nov 17 20:10:05 CET 2011 on sn-devel-104
2011-11-17 20:10:05 +01:00
Kai Blin
e5ebda4156
s4 dns: Add a first test case
2011-11-17 15:25:58 +01:00
Jelmer Vernooij
f7c8af7599
samba.tests.dsdb: Import TestCase from samba.tests.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Thu Nov 17 08:36:17 CET 2011 on sn-devel-104
2011-11-17 08:36:17 +01:00
Jelmer Vernooij
1214e5f23d
samba.tests: Make sure testtools is available before importing it.
2011-11-17 07:02:15 +01:00
Amitay Isaacs
3bb5af5244
s4-dsdb: Remove unsed variable
2011-11-17 03:49:07 +01:00
Andrew Bartlett
47d34997e8
s4-s3-upgrade Test getdomainsid as well
2011-11-17 00:34:09 +01:00
Andrew Bartlett
ea7cb8ccb7
lib/param: Add tests for security= behaviour now it operates with server role
...
Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>
2011-11-17 00:34:09 +01:00
Andrew Bartlett
29cd8ae6fd
s4-provision permit server role to be the ROLE_ strings from s3
...
Also convert between the aliases in one single place.
Andrew Bartlett
Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>
2011-11-17 00:34:09 +01:00
Andrew Bartlett
31ba7af757
param: Add tests for automatic server role guessing
...
Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>
2011-11-17 00:34:09 +01:00
Amitay Isaacs
42406d63a4
py-param: Add python interface to get server_role
2011-11-17 00:34:09 +01:00
Andrew Bartlett
b8c119f3ba
s4-s3-upgrade Add test of net getlocalsid after the upgrade
...
Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>
2011-11-17 00:34:08 +01:00
Amitay Isaacs
8507adb8d0
provision: Set the security descriptor while creating partitions
...
With Matthieu's patch, the setting of security descriptor on
partition dn at create time works correctly.
Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Wed Nov 16 08:54:25 CET 2011 on sn-devel-104
2011-11-16 08:54:25 +01:00
Matthieu Patou
b91dd516b5
s4-dsdb: rework the NC detection for the descriptor calculation
...
This checks if instanceType attribute is available, and if
INSTANCE_TYPE_IS_NC_HEAD bit is set. If the bit is set, then
the DN is NC root and security descriptor is not inherited
from parent SD.
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
2011-11-16 17:16:30 +11:00
Amitay Isaacs
80113755c4
s3-s4-upgrade: do not add description if it is empty string or none
...
Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Wed Nov 16 05:53:41 CET 2011 on sn-devel-104
2011-11-16 05:53:41 +01:00
Stefan Metzmacher
dd504b1899
HEIMDAL:lib/krb5: add utf8 support to build_logon_name() for the PAC
...
Pair-Programmed-With: Arvid Requate <requate@univention.de>
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Nov 16 02:00:12 CET 2011 on sn-devel-104
2011-11-16 02:00:12 +01:00
Stefan Metzmacher
d158a5cb91
HEIMDAL:lib/wind: export wind_ucs2write()
...
Pair-Programmed-With: Arvid Requate <requate@univention.de>
metze
2011-11-16 00:26:41 +01:00
Stefan Metzmacher
a01de42a36
HEIMDAL:lib/winbd: fix wind_ucs2write with WIND_RW_LE
...
Pair-Programmed-With: Arvid Requate <requate@univention.de>
metze
2011-11-16 00:26:41 +01:00
Stefan Metzmacher
1312e90279
HEIMDAL:lib/wind: fix wind_ucs4utf8() and wind_ucs2utf8()
...
Pair-Programmed-With: Arvid Requate <requate@univention.de>
metze
2011-11-16 00:26:41 +01:00
Matthias Dieter Wallnöfer
ec38098c29
s4:partition LDB module - fix handling regarding special DNs on searches
...
Normally they should always be passed to the main backend unless
something different has been specified.
Reviewed-by: abartlet
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Tue Nov 15 22:43:06 CET 2011 on sn-devel-104
2011-11-15 22:43:06 +01:00
Matthias Dieter Wallnöfer
793f1a5478
s4:torture/rpc/samr.c - use "NULL" instead of "0" when initialising pointers
2011-11-15 21:01:36 +01:00
Matthias Dieter Wallnöfer
0e5f8634fc
s4:join.py - fix typo
2011-11-15 21:01:36 +01:00
Stefan Metzmacher
c1fd56fdd4
s4:dsdb/schema_data: reject schema update unless they're allowed
...
"dsdb:schema update allowed = yes" is now needed in smb.conf
to enable schema updates, as schema updates are a currenty a good
way to prevent samba from startup again, because of errors in
the schema definition.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Nov 15 13:00:07 CET 2011 on sn-devel-104
2011-11-15 13:00:07 +01:00
Stefan Metzmacher
e7e9f1e2dd
s4:dsdb/schema: add "dsdb:schema update allowed" option to enable schema updates
...
By default schema updates are not allowed anymore, as we don't have
complete validation code to prevent database corruption.
metze
2011-11-15 09:46:30 +01:00
Stefan Metzmacher
be091eddec
s4:dsdb/schema_data: reject changes to schemaInfo, msDs-Schema-Extensions, msDS-IntId
...
As windows we return CONSTRAINT_VIOLATION now.
metze
2011-11-15 09:46:29 +01:00
Stefan Metzmacher
38868c8b7f
s4:dsdb/schema_data: make sure we reject schema changes if we're not the schema master
...
metze
2011-11-15 09:46:29 +01:00
Stefan Metzmacher
76b99bb379
s4:dsdb/schema_data: make sure we only allow objects one level below the schema base
...
The objectclass module should also check for this, but make sure
we also reject it on things like provision.
metze
2011-11-15 09:46:29 +01:00
Stefan Metzmacher
6d3558a8f6
s4:libnet_vampire: setup base_dn on the self_made_schema
...
metze
2011-11-15 09:46:28 +01:00
Stefan Metzmacher
b33c711851
s4:libnet_vampire: use dsdb_modify(..., DSDB_FLAG_AS_SYSTEM) to store prefixMap
...
metze
2011-11-15 09:46:28 +01:00
Stefan Metzmacher
28d573168c
s4:param/provision: pass schema_dn to provision_get_schema()
...
metze
2011-11-15 09:46:27 +01:00
Stefan Metzmacher
75ae19422b
s4:dsdb/schema: pass and remember the schema_dn in dsdb_set_schema_from_ldif()
...
metze
2011-11-15 09:46:27 +01:00
Stefan Metzmacher
e6a9e1dda9
s4:dsdb/pydsdb: pass down schema_dn to _dsdb_set_schema_from_ldif()
...
metze
2011-11-15 09:46:26 +01:00
Stefan Metzmacher
18eba021e7
s4:python/samba/schema: pass down the schema_dn to set_from_ldif()
...
metze
2011-11-15 09:46:26 +01:00