1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-10 13:57:47 +03:00

21701 Commits

Author SHA1 Message Date
Stefan Metzmacher
bdb8f91314 s4:tortore/rpc/eventlog.c: rename variable 'b' => 'br'
metze
2010-03-16 15:35:28 +01:00
Stefan Metzmacher
dfa92d445f s4:torture/rpc/svcctl.c: make use of dcerpc_binding_handle stubs
metze
2010-03-16 15:35:28 +01:00
Stefan Metzmacher
b0ea3248a4 s4:torture/rpc/atsvc.c: make use of dcerpc_binding_handle stubs
metze
2010-03-16 15:35:28 +01:00
Stefan Metzmacher
b8605cdd4e s4:torture/rpc/wkssvc.c: make use of dcerpc_binding_handle stubs
metze
2010-03-16 15:35:27 +01:00
Stefan Metzmacher
119f151321 s4:torture/rpc/srvsvc.c: make use of dcerpc_binding_handle stubs
metze
2010-03-16 15:35:27 +01:00
Stefan Metzmacher
88ab666f19 s4:torture/rpc/dsgetinfo.c: make use of dcerpc_binding_handle stubs
metze
2010-03-16 15:35:27 +01:00
Stefan Metzmacher
4434b3972d s4:torture/rpc/dssync.c: make use of dcerpc_binding_handle stubs
metze
2010-03-16 15:35:26 +01:00
Stefan Metzmacher
369def8a33 s4:torture/rpc/drsuapi*: make use of dcerpc_binding_handle stubs
metze
2010-03-16 15:35:26 +01:00
Stefan Metzmacher
6591713d26 s4:torture/rpc/unixinfo.c: make use of dcerpc_binding_handle stubs
metze
2010-03-16 15:35:26 +01:00
Günther Deschner
e55a975860 s4-smbtorture: remove NotifyChangeKeyValue s3 skip in RPC-WINREG:
Guenther
2010-03-16 15:30:13 +01:00
Günther Deschner
27d46ba266 s4-smbtorture: make it a bit easier to track failures in RPC-SPOOLSS-PRINTER.
Guenther
2010-03-16 15:13:52 +01:00
Simo Sorce
38cba5e930 s4:torture-ndr add lsarSetForestTrustInformation ndr test
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-16 15:12:19 +01:00
Günther Deschner
a5ad510fc4 s4-lsa: fix dcesrv_lsa_lsaRSetForestTrustInformation server stub.
Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-16 15:12:19 +01:00
Stefan Metzmacher
8c5df22ffa Revert "Revert "s4-smbtorture: skip extended SetValue test against Samba (both dont survive).""
This reverts commit 508c218eb2f4bf8c45dc9d481576c87ed4fecbd3.

This lets make test fail.

Matthias: please make sure make test still passes when you change things like
this...(maybe add something to knownfail or so)

metze
2010-03-16 15:09:41 +01:00
Stefan Metzmacher
7e859be26a s4:torture/rpc/dsgetinfo.c: fix name resolving for ldap_url
metze
2010-03-16 15:09:41 +01:00
Matthias Dieter Wallnöfer
c3509d88a4 s4:resolve_oids LDB module - not really a change but a nicer method to call "talloc_reference" 2010-03-16 15:01:45 +01:00
Simo Sorce
8353aa39b6 s4:idl change level to type in lsa_ForestTrustRecord. 2010-03-16 14:48:40 +01:00
Günther Deschner
745f6f2574 s4-smbtorture: avoid printf calls in RPC-WINREG test.
Guenther
2010-03-16 13:11:14 +01:00
Nadezhda Ivanova
a212c1dedb Added a net acl ds command for modification of ACLs on directory objects
At present the command supports only addition of control access rigts, done
so DRS access checks can be tested. It will be expanded to deal with most
ways to modify and view a DS ACL.
Shifted commands a bit. What used to be net acl is now "net acl nt" as apposed
to this, which is "net acl ds"

./bin/net acl ds set --help
Usage: set --objectdn=objectdn --car=control right --action=[deny|allow] --trusteedn=trustee-dn

Options:
  -h, --help            show this help message and exit
  --host=HOST           LDB URL for database or target server
  --car=CAR              The access control right to allow or deny
  --action=ACTION       Deny or allow access
  --objectdn=OBJECTDN   DN of the object whose SD to modify
  --trusteedn=TRUSTEEDN
                        DN of the entity that gets access

  Samba Common Options:
    -s FILE, --configfile=FILE
                        Configuration file

  Credentials Options:
    --simple-bind-dn=DN
                        DN to use for a simple bind
    --password=PASSWORD
                        Password
    -U USERNAME, --username=USERNAME
                        Username
    -W WORKGROUP, --workgroup=WORKGROUP
                        Workgroup
    -N, --no-pass       Don't ask for a password
    -k KERBEROS, --kerberos=KERBEROS
                        Use Kerberos
2010-03-16 13:37:48 +02:00
Günther Deschner
4379b082b8 s3-spoolss: be very strict on OpenPrinter{Ex} failures for bad names.
Guenther
2010-03-16 10:43:57 +01:00
Matthias Dieter Wallnöfer
d7de3fa799 s4:dsdb - fix up warnings 2010-03-16 09:50:39 +01:00
Matthias Dieter Wallnöfer
abe75a5c8c s4:registry - use a macro for reverse byte order 2010-03-16 09:41:03 +01:00
Andrew Bartlett
e3cb626c61 s4:dsdb Show more detail in failure to compute the aggregate DN.
Andrew Bartlett
2010-03-16 19:26:09 +11:00
Andrew Bartlett
2de07761e0 s4:dsdb Change dsdb_get_schema() callers to use new talloc argument
This choses an appropriate talloc context to attach the schema too,
long enough lived to ensure it does not go away before the operation
compleates.

Andrew Bartlett
2010-03-16 19:26:03 +11:00
Andrew Bartlett
bf0b4d7ee3 s4:dsdb Fix warnings in DEBUG() by casting to unsigned long int 2010-03-16 19:26:02 +11:00
Andrew Bartlett
a7ec946ced s4:dsdb/acl Reduce calls to dsdb_get_schema() and add memory context
dsdb_get_schema() isn't a very cheap call, due to the use of LDB
opaque pointers.  We need to call it less, and instead pass it as a
parameter where possible.

This also changes to the new API with a talloc context.

Andrew Bartlett
2010-03-16 19:25:55 +11:00
Andrew Bartlett
1e6fee4185 s4:dsdb Add a memory context for dsdb_get_schema()
When specified, we talloc_reference onto this context to ensure that
pointers found in it are valid for the life of the objects they are
placed into.  (Such as the string form of LDAP attributes).

Andrew Bartlett
2010-03-16 19:25:14 +11:00
Andrew Bartlett
c874b9f42e s4:dsdb Don't error out if we can't get the Aggregate schema DN yet
It's easier to just set it up when we can, then to deal with the
ordering issues in ldb startup.  As long as we have it ready if a real
client ever asks for it, then we should be happy.

Andrew Bartlett
2010-03-16 19:25:14 +11:00
Matthias Dieter Wallnöfer
19aa075642 s4:registry - check also for other registry value types in the generic test 2010-03-16 08:58:32 +01:00
Matthias Dieter Wallnöfer
b7c1444683 s4:registry - add a test for the "REG_DWORD_BIG_ENDIAN" datatype 2010-03-16 08:58:31 +01:00
Matthias Dieter Wallnöfer
2f686d8523 s4:registry - introduce the "REG_DWORD_BIG_ENDIAN" datatype
It's like the normal REG_DWORD type but the byte order swapped
2010-03-16 08:58:31 +01:00
Matthias Dieter Wallnöfer
559575fe40 s4:dsdb/kcc/*.c - fix up wrong typed counters 2010-03-16 08:49:22 +01:00
Erick Nogueira do Nascimento
2a04aa08c6 s4-drs: Torture testcase for DS_REPL_INFO_METADATA_2_FOR_OBJ infoType of DsGetReplInfo()
This torture testcase considers both cases for this infoType: when the flag
DRSUAPI_DS_LINKED_ATTRIBUTE_FLAG_ACTIVE is enabled and when not.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-03-16 13:31:08 +11:00
Erick Nogueira do Nascimento
81932f9148 s4-drs: DsGetReplInfo(), infoType = DS_REPL_INFO_METADATA_2_FOR_OBJ
Implementation of the DS_REPL_INFO_METADATA_2_FOR_OBJ infoType for DsGetReplInfo()

Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-03-16 13:31:08 +11:00
Günther Deschner
83b9e12513 s4-smbtorture: add simple printer rename test to RPC-SPOOLSS-PRINTER.
Guenther
2010-03-15 18:35:19 +01:00
Günther Deschner
08ec9b7e73 s4-smbtorture: fill PrinterDriverData with more values for consistency test.
Guenther
2010-03-15 17:27:12 +01:00
Günther Deschner
1eb0fbe68d s4-smbtorture: cleanup data after enumdata{ex} consistency test.
Guenther
2010-03-15 14:55:25 +01:00
Günther Deschner
06cbf05e8b s4-smbtorture: when cross checking enumdata{ex} make sure to have at least one entry.
Guenther
2010-03-15 14:16:03 +01:00
Günther Deschner
6bfde084e6 s4-smbtorture: add PrinterInfo_to_SetPrinterInfo helper to RPC-SPOOLSS.
Guenther
2010-03-15 14:16:03 +01:00
Matthias Dieter Wallnöfer
163e559606 s4:registry - rpc - don't crash when communication partner isn't available 2010-03-15 13:44:00 +01:00
Matthias Dieter Wallnöfer
cc3eec1681 s4:registry - util.c - treat unsupported and binary values as the same in the conversion functions
We don't need to provide an extra representation for all available registry types.
But if we treat all unsupported types as binary we also get our tools (regtree,
regshell, regdiff...) working with them in a basic manner.
2010-03-15 13:28:12 +01:00
Matthias Dieter Wallnöfer
4e6c0e1f6f s4:registry - util.c - move the "REG_NONE" case in the conversion functions on top of the switch
(As in the "reg_value_types" structure)
2010-03-15 13:27:40 +01:00
Matthias Dieter Wallnöfer
1e5010d353 s4:registry - local testsuite - add a test for REG_QWORD
Change also here to fixed-length HEX values output to test for the right
representation.
2010-03-15 13:27:35 +01:00
Matthias Dieter Wallnöfer
00934d4c2f s4:registry - fix up the output of hexadecimal values
Use a fixed-length representation to avoid platform-specific issues.
2010-03-15 13:27:35 +01:00
Matthias Dieter Wallnöfer
80300af278 s4:registry - add support for REG_QWORD values
Basically the same as REG_DWORD but these are eight byte long.
2010-03-15 13:27:34 +01:00
Günther Deschner
c3eb509dea s4-smbtorture: fix torture_comment in RPC-SPOOLSS.
Guenther
2010-03-15 10:20:27 +01:00
Stefan Metzmacher
f49d5e3288 s4:tortore/libnet: fix crash bugs because of incorrect function prototypes
metze
2010-03-15 09:40:28 +01:00
Matthias Dieter Wallnöfer
eb8c8a0eca s4:registry - util.c - add harder checks for inputs on "reg_val_data_string"
("NULL" result is error on most data types).
2010-03-14 18:46:23 +01:00
Matthias Dieter Wallnöfer
508c218eb2 Revert "s4-smbtorture: skip extended SetValue test against Samba (both dont survive)."
This reverts commit 40e2c04f8aba605e951810751222559ea0d32ebd.

s4 should support now also the extended "SetValue" tests.
2010-03-14 18:46:23 +01:00
Matthias Dieter Wallnöfer
bb1ac0c75c s4:registry - ldb.c - provide a mechanism for storing UTF8/binary REG_DWORD values
We need to support this as gd's WINREG torture test shows.
2010-03-14 18:46:22 +01:00