1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00
Commit Graph

64007 Commits

Author SHA1 Message Date
Günther Deschner
7f8b3a26ec s4-smbtorture: Fix test_SetPrinterDataEx_keys and test_SetPrinterDataEx_values.
We want to continue, not to skip here.

Guenther
2010-06-23 10:48:18 +02:00
Matthias Dieter Wallnöfer
26a95463a6 s4:operational LDB module - fix a misleading comment 2010-06-23 09:53:23 +02:00
Matthias Dieter Wallnöfer
eff7d2db31 s4:samr RPC server - make use of LDB constants in macros 2010-06-22 22:21:12 +02:00
Matthias Dieter Wallnöfer
0e637be43b s4:password_hash LDB module - fix another problem regarding the lanman hash
When a user only provides only the lanman hash (and nothing else) and the
lanman authentication is deactivated then we end in an account with no
password attribute at all! Lock this down.
2010-06-22 22:21:04 +02:00
Jeremy Allison
37264e5917 Fix bug 7528 - Solaris with NIS autohome.
Ensure entries containing "\n" are stripped.

Jeremy.
2010-06-22 12:19:05 -07:00
Günther Deschner
1e897f6561 s4-smbtorture: add "printerdata_values" test to RPC-SPOOLSS-PRINTER.
Guenther
2010-06-22 15:57:18 +02:00
Günther Deschner
13ede2bf7a s4-smbtorture: also test keynames with '/' in it in SetPrinterDataEx keyname tests.
Guenther
2010-06-22 15:57:12 +02:00
Günther Deschner
e439b6cb8c s4-smbtorture: activate all keys in SetPrinterData keys test.
(just skip some of them still against s3).

Guenther
2010-06-22 15:57:06 +02:00
Günther Deschner
c31ffaf587 s4-smbtorture: split out a "printerdata_keys" test for RPC-SPOOLSS-PRINTER.
This separates key and value tests for SetPrinterDataEx and GetPrinterDataEx
(and also speeds up the whole testsuite).

Guenther
2010-06-22 15:57:00 +02:00
Stefan Metzmacher
df96f18e8f testprogs/win32: add prepare_dcpromo tool
This tool can set the DOMAIN-SID and nextRid counter in
the local SAM on windows servers (tested with w2k8r2)

dcpromo will use this values for the ad domain it creates.

This might be useful for upgrades from a Samba3 domain.

metze
2010-06-22 10:47:39 +02:00
Kamen Mazdrashki
efe65cd7b7 s4/dsdb-test: fix usage comment 2010-06-22 04:50:19 +03:00
Kamen Mazdrashki
acebfcb938 s4/test: fix DC password in selftest-vars.sh 2010-06-22 04:50:19 +03:00
Aravind Srinivasan
c668b21cd6 s4 torture: RAW-SFILEINFO display warning instead of error on unsupported info level
Also add a test to make sure setting the directory attribute is
disallowed.

Signed-off-by: Tim Prouty <tprouty@samba.org>
2010-06-21 17:08:41 -07:00
James Peach
f5709975c1 smbtorture: Fix missing includes. 2010-06-21 14:12:58 -07:00
Matthieu Patou
32f82fbec0 s4 upgradeprovision: fix the logging stuff so that it actually log
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-21 23:11:50 +02:00
Volker Lendecke
15297eea0e s3: Fix some valgrind errors
With -d 10, there were a ton of uninitialized variables: The "NegotiateFlags"
in the automatically parsed ntlmssp structures were not initialized.

This also cleans up the talloc use a bit: do early TALLOC_FREE()

Günther, please check!

Thanks,

Volker
2010-06-21 22:23:30 +02:00
James Peach
6227eac607 smbtorture: Fixx off-by-one command line parsing.
If we are not in shell mode we require both the target and test name
arguments. Make sure we process these from the correct index.
2010-06-21 11:09:45 -07:00
James Peach
0fc18ead76 smbtorture: Add "target" command to interactive shell.
Add a "target" command to set the target server to test. Refactor
the command line argument processing a little so that you can run
--shell without any additional arguments.
2010-06-21 08:58:10 -07:00
James Peach
7a25e2efe9 smbtorture: Enhance shell "help" command.
Sort the command list alphabetically. Let the help command print
usage info for other commands.
2010-06-21 08:58:10 -07:00
James Peach
bf35aa8603 smbtorture: Add "auth" command to the shell.
Add a new "auth" command to set the cmdline credentials from withing
the smbtorture shell.
2010-06-21 08:58:10 -07:00
James Peach
3f398ec36d smbtorture: Refactor interactive shell into independent commands.
Refactor the smbtorture interactive shell into a set of independent
command callbacks to make it easier to add more independent commands.
2010-06-21 08:58:10 -07:00
James Peach
9f69790355 smbtorture: Move interactive shell into a separate file. 2010-06-21 08:58:10 -07:00
James Peach
a5e14bded4 smbtorture: Print global options for interactive "list" command. 2010-06-21 08:58:10 -07:00
James Peach
12e15b0ac8 smbtorture: Add history support to shell mode. 2010-06-21 08:58:10 -07:00
James Peach
6f96293406 smbtorture: Add list command to smbtorture shell. 2010-06-21 08:58:10 -07:00
Volker Lendecke
acf54c37a8 s3-winbind: Make KRB5_EVENT_REFRESH_TIME a function 2010-06-21 17:44:23 +02:00
Stefan Metzmacher
eb3ee7801f libcli/named_pipe_auth: fix error handling in _tstream_npa_connect_recv()
metze
2010-06-21 16:20:25 +02:00
Stefan Metzmacher
67a24fe933 libcli/named_pipe_auth: fix memory handling for temporary data
In a tevent_req based function tevent_req_create() should be the first
function! If it fails it's the only reason, why the function
could every return NULL.

And all temporary data belongs to 'state' and gets free'ed by
tevent_req_received() in the _recv function.

metze
2010-06-21 16:16:15 +02:00
Volker Lendecke
e9e80a36e4 tldap: Fix a type-punned warning 2010-06-21 15:03:59 +02:00
Volker Lendecke
4b64555d75 tsocket: Fix some type-punned warnings 2010-06-21 15:03:59 +02:00
Volker Lendecke
8af446be78 s3: Fix some enum/int mixup warnings 2010-06-21 15:03:59 +02:00
Volker Lendecke
dee72d807f s3: Remove an unreachable line of code 2010-06-21 15:03:59 +02:00
Volker Lendecke
c0ed0bca59 s3: Fix a type-punned warning 2010-06-21 15:03:58 +02:00
Michael Adam
b784c20df8 s3:net rpc registry: make getsd succeed when key sd only gives access to SD not key contents
You don't need the REG_KEY_READ permissions to access the SD of a key.
And for instance, the key HKLM\security ususally has no specific bits
set for builtin\administrators, but the READ_CONTROL_ACCESS.
I.e. builtin\administrators can get the sd but not enumerate the key.
2010-06-21 12:38:25 +02:00
Michael Adam
e78f2b2e1e s3:fix an outdated comment. 2010-06-21 12:38:25 +02:00
Michael Adam
3f99ff104a s3:idmap_ldap: remove unreached code (and explicit error return code) 2010-06-21 12:38:25 +02:00
Matthias Dieter Wallnöfer
276a1a7fec s3/s4 - remove "talloc_tos()" from common code since s4 doesn't support it
Please don't use this in common code parts until we change the policy regarding
it.
2010-06-21 12:35:51 +02:00
Matthias Dieter Wallnöfer
c38f94ed9b s4:dsdb_load_partition_usn - free the right memory context (tmp_ctx) 2010-06-21 11:10:02 +02:00
Karolin Seeger
2352538362 s3-docs: Add missing whitespace.
Karolin
2010-06-21 10:30:57 +02:00
Kamen Mazdrashki
3aa8853f58 s4/dsdb: msg_idx->dn should be allocated in msg_idx mem context 2010-06-21 02:57:56 +03:00
Kamen Mazdrashki
cc7e2c10f2 s4/dsdb: Move schema accessors cleanup in separate function
This way dsdb_setup_sorted_accessors() will
free memory allocated for accessor arrays correctly
in case of failure,
2010-06-21 02:57:56 +03:00
Kamen Mazdrashki
267645ca55 s4/dsdb-schema: Index attributes on msDS-IntId value
O(n) search for dsdb_attribute by msDS-IntId value was
replaced by binary-search in ordered index.

I've choosen the approach of separate index on msDS-IntId values
as I think it is more clear what we are searching for.
And it should little bit faster as we can clearly determine
in which index to perform the search based on ATTID value -
ATTIDs based on prefixMap and ATTIDs based on msDS-IntId
are in separate ranges.

Other way to implement this index was to merge msDS-IntId values
in attributeID_id index.
This led me to a shorted but not so obvious implementation.
2010-06-21 02:57:55 +03:00
Matthias Dieter Wallnöfer
ecbe9a74c6 s4:kdc/db-glue.c - remove unreachable code
Would be nice if someone could check if this fits.
2010-06-20 22:33:03 +02:00
Matthias Dieter Wallnöfer
05f31c3f6d s4:registry/regf.c - add some casts to suppress build warnings on Solaris 2010-06-20 22:33:02 +02:00
Matthias Dieter Wallnöfer
2adfe47303 s4:registry/rpc.c - fix Solaris warnings by casts 2010-06-20 22:33:02 +02:00
Matthias Dieter Wallnöfer
2f49c8f58e s4:samr RPC server - fix Solaris build warning 2010-06-20 22:33:01 +02:00
Matthias Dieter Wallnöfer
871cdec414 s4:registry RPC server - quite some build warnings on Solaris 2010-06-20 22:33:01 +02:00
Matthias Dieter Wallnöfer
82fd483758 s4:lsa_lookup.c - fix type argument 2010-06-20 22:33:00 +02:00
Matthias Dieter Wallnöfer
0bf26edf6c s4:rpc_server/service_rpc.c - fix warnings on Solaris 2010-06-20 22:32:59 +02:00
Matthias Dieter Wallnöfer
c972e6ec23 s4:rpc_server/service_rpc.c - deactivate the 0-length struct
This should fix the build on Solaris
2010-06-20 22:32:59 +02:00