Stefan Metzmacher
e3aeea29a4
s4:NBT-WINSREPLICATION: don't mark a local variable as static
...
This was somehow introduced in commit 8773e743c5
.
metze
2010-02-02 07:18:15 +01:00
Stefan Metzmacher
431d75fc9c
s4:NBT-WINS: test large scopes
...
metze
2010-02-01 15:32:38 +01:00
Stefan Metzmacher
70779a46a7
s4:NBT-WINS: pass the expected rcode of the name registration to the test code
...
metze
2010-02-01 15:32:36 +01:00
Stefan Metzmacher
c1d8dc01fc
s4:NBT-WINSREPLICATION: test replication with names including scopes
...
metze
2010-02-01 15:23:35 +01:00
Stefan Metzmacher
331505f09d
s4:NBT-WINSREPLICATION: fix compiler warnings
...
metze
2010-02-01 15:23:34 +01:00
Stefan Metzmacher
07b06e51bb
s4:NBT-WINSREPLICATION: use an array of nbt_names to loop over different names
...
metze
2010-02-01 15:23:33 +01:00
Stefan Metzmacher
ea7ec4fb30
s4:winsserver: reject name registrations with a scope length > 237
...
This matches Windows 2008 behavior. Name releases are just ignored.
metze
2010-02-01 15:23:33 +01:00
Stefan Metzmacher
7a02a2ba80
s4:wrepl_server: truncate the scope of a netbios name to 237 bytes as Windows 2008 does
...
metze
2010-02-01 15:23:32 +01:00
Kamen Mazdrashki
93142e4a3a
s4/ldif: Handle Schema:prefixMap blobs in W2K3 and W2K8
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-02-01 15:23:31 +01:00
Kamen Mazdrashki
83068b42ae
s4/ldif: Better control on ldif_write_NDR() errors processing
...
Current implementation mask NDR_ errors implicitly.
Thus the caller has no opportunity handle such an error.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-02-01 15:23:31 +01:00
Günther Deschner
42f5125521
s4-smbtorture: check for RouterReplyPrinterEx packets inside backchannel in RPC-SPOOLSS-NOTIFY.
...
Guenther
2010-01-31 21:00:00 +01:00
Günther Deschner
0c6aae4d53
s4-smbtorture: also test RouterRefreshPrinterChangeNotify call in RPC-SPOOLSS-NOTIFY.
...
Guenther
2010-01-31 20:59:56 +01:00
Günther Deschner
377abba0e9
s4-smbtorture: rework spoolss_NotifyOption handling in RPC-SPOOLSS-NOTIFY.
...
Guenther
2010-01-31 20:49:53 +01:00
Simo Sorce
f77714c887
s4:kdc streamline context initialization
...
Allow other plugins to init the context without having it try to grab sockets
or set samba specific logging.
2010-01-31 13:30:31 -05:00
Simo Sorce
b116d4e5b9
s4:kdc Streamline client access verification call
...
Move the core to pac-glue so that other plugins can use it.
2010-01-31 13:25:17 -05:00
Simo Sorce
0520bd7782
s4:kdc Fix netbios name retrieval
...
The code was looping but always checking only the first address.
2010-01-31 13:25:17 -05:00
Simo Sorce
08a20006c8
s4:ldb quiet down rootdse control registration
2010-01-31 13:25:17 -05:00
Simo Sorce
772d808ac8
s4:ldb Fix check made conditional by mistake
2010-01-30 02:57:33 -05:00
Simo Sorce
df7be036d7
s4:ldb add support for permissive modify control
2010-01-30 01:04:12 -05:00
Matthias Dieter Wallnöfer
d89427ad27
Revert "s4:include/includes.h - Need to include "system/network.h""
...
This reverts commit 97fd03a15a
.
This obviously broke the build. Revert it for now.
2010-01-29 21:36:23 +01:00
Matthias Dieter Wallnöfer
97fd03a15a
s4:include/includes.h - Need to include "system/network.h"
...
Otherwise I don't get the definition of "struct in_addr" for "lib/util/util.h" on CentOS 4.
2010-01-29 20:13:38 +01:00
Nadezhda Ivanova
adc38b00a9
Fixed a bug caused by a typo. Infrastructure role didn't work.
2010-01-29 15:42:46 +02:00
Kamen Mazdrashki
2dc56d68fa
s4/ldap: Test to expoit ldb_ildap bug in case of nested search requests
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-01-29 14:09:53 +01:00
Kamen Mazdrashki
a4d0ed5a10
s4/ldap: Fix nested searches SEGFAULT bug
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-01-29 14:09:53 +01:00
Stefan Metzmacher
1c76df6219
s4:auth_sam: avoid usage of data_blob_talloc_reference() and copy the session keys
...
metze
2010-01-29 11:16:35 +01:00
Stefan Metzmacher
ddd595e687
s4:libcli: remove unneeded talloc_reference() usage
...
metze
2010-01-29 11:16:13 +01:00
Simo Sorce
14e006747e
s4:kdc remove dead code and comments
2010-01-28 19:33:34 -05:00
Simo Sorce
7b355d41b5
s4:kdc Fill in more data fields
2010-01-28 19:33:34 -05:00
Simo Sorce
3ce54a4a97
s4:kdc move db functions in their own file
...
Keep all heimdal related plugin code within hdb_samba4.c
Move interfaces needed by multiple plugins in db-glue.c
Move sequence context in main db context so that we do
not depend on db->hdb_dbc in the common code.
Remove unnecessary paremeters from function prototypes
2010-01-28 19:33:34 -05:00
Simo Sorce
a097527ab7
s4:kdc Use a clearer name for the samba kdc entry
...
Renames hdb_samba4_private to samba_kdc_entry
Streamlines members of the entry and the kdc db contextto avoid
unnecessary duplication.
2010-01-28 19:33:34 -05:00
Simo Sorce
c6865af445
s4:kdc Use better db context structure
...
This allows to use a common structure not tied to hdb_samba4
Also allows to avoid many casts within hdb_samba4 functions
This is the first step to abstract samba kdc databse functions
so they can be used by the MIT forthcoming plugin.
2010-01-28 19:33:34 -05:00
Andrew Tridgell
2fdff7f596
s4-ldbtest: fixed python import
2010-01-28 18:45:04 +11:00
Eduardo Lima
882feb39a2
s4-drs: implementation of some delete test cases
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-01-28 18:45:03 +11:00
Simo Sorce
61a4ab36d9
cleanup: remove trailing spaces and tabs
2010-01-28 02:05:05 -05:00
Fernando J V da Silva
28420fe68a
s4-drs: Reads uSNUrgent and sets Urgent Replication Bit for DS_ReplicaSync when necessary
...
If an urgent replication is necessary, so the uSNUrgent stored is equal to the
uSNHighest stored, then when sending the DS_ReplicaSync message it sets the
DRSUAPI_DRS_SYNC_URGENT bit on DRS_OPTIONS.
Signed-off-by: Fernando J V da Silva <fernandojvsilva@yahoo.com.br>
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-01-28 17:21:41 +11:00
Simo Sorce
b63b9bcd42
s4:windc move windc plugin in its own file
...
Keep all heimdal related plugin code within wdc-samba4.c
Leave only interfaces common to multiple plugins in pac-glue.c
2010-01-27 14:03:06 -05:00
Simo Sorce
1f2e9e90bd
s4:PAC make common functions public
2010-01-27 14:03:06 -05:00
Simo Sorce
82a80b7f71
s4:PAC Streamline pac-glue step 2
...
Split functions so that no assumption is made about which plugin
is using them
2010-01-27 14:03:06 -05:00
Simo Sorce
85e3561dc9
s4:PAC Streamline pac-glue
...
First step, preparing to share the code between multiple plugins.
2010-01-27 14:03:06 -05:00
Nadezhda Ivanova
dffb5ad2bf
Implemented net fsmo command for transferring fsmo roles
...
The command allows the user to transfer a fsmo role to the server to which
the connection is established. Roles can be transferred or seized. By default a
transfer is attempted even if seize option is chosen, as it is dangerous to
seize a role if the current owner is still running.
example use:
net fsmo show --host=hostnameoraddress --username=username --password=password
net fsmo transfer --role=role --host=hostnameoraddress --username=username --password=password
net fsmo seize --role=role --host=hostnameoraddress --username=username --password=password [--force]
Tested against Win2008. Does not work for samba 4 yet as we are missing the GetNCChanges extensions.
2010-01-27 17:57:37 +02:00
Günther Deschner
0e2d1cf9c4
s4-smbtorture: pick correct last packet while checking backchannel replies in RPC-SPOOLSS-NOTIFY.
...
Guenther
2010-01-27 15:04:00 +01:00
Michael Adam
098fc8c09c
s4:torture: refactor querying of domain info out into test_QueryDomainInfo2_level()
...
Used in several places.
(Note: The _level suffix in the function name is just because
test_QueryDomainInfo2() already exists as an overall test for all levels.)
Michael
Signed-off-by: Günther Deschner <gd@samba.org>
2010-01-27 11:24:42 +01:00
Michael Adam
0a33b20f70
s4:torture: create new test_SetDomainInfo_ntstatus()
...
for checking for SetDomainInfo giving a desired return code.
Michael
Signed-off-by: Günther Deschner <gd@samba.org>
2010-01-27 11:24:42 +01:00
Michael Adam
c1d157a481
s4:torture: refactor setting of domain inf out into test_SetDomainInfo()
...
and use it in several places.
Michael
Signed-off-by: Günther Deschner <gd@samba.org>
2010-01-27 11:24:42 +01:00
Michael Adam
50a46cff76
s4:torture: refactor setting account flags out into test_SetUserInfo_acct_flags()
...
and use this in four places (enabling/disabling accounts).
Michael
Signed-off-by: Günther Deschner <gd@samba.org>
2010-01-27 11:24:42 +01:00
Andreas Schneider
dee1b41ae7
s4-libcli: Fixed a talloc_reference error.
...
Signed-off-by: Andreas Schneider <asn@redhat.com>
Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
2010-01-26 17:14:51 +01:00
Stefan Metzmacher
137fd79f44
s4:winsrepl.idl: add random interface uuid
...
This is needed to include the wrepl interface into
ndrdump.
metze
2010-01-26 15:23:24 +01:00
Stefan Metzmacher
601642d923
s4:smbtorture: add BASE-BENCH-HOLDOPEN
...
This is useful for manual performance testing with a large
number of share mode entries.
metze
2010-01-26 15:23:24 +01:00
Günther Deschner
7148eff0b7
s4-smbtorture: also test smbc_getOptionUseCCache
2010-01-26 12:11:28 +01:00
Jelmer Vernooij
4291e28a93
s4-python: Fix formatting.
2010-01-25 15:18:02 +01:00