1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

65003 Commits

Author SHA1 Message Date
Andreas Schneider
d3fff45904 s3-spoolss: Fixed a segfault if a value has no data. 2010-08-02 16:42:39 +02:00
Andreas Schneider
307bd439d7 s3-spoolss: Move some debug message to a higher level. 2010-08-02 16:42:39 +02:00
Andreas Schneider
4412bafa44 s3-spoolss: Fixed some C++ build warnings. 2010-08-02 16:42:39 +02:00
Andreas Schneider
772fbce9ff s3-spoolss: Use a stackframe to allocat memory.
This is faster and should be more secure to use if something goes wrong.
2010-08-02 16:37:12 +02:00
Günther Deschner
6463281f36 s4-smbtorture: remove another old and now invalid s3 special case during spoolss testing.
Guenther
2010-08-02 16:10:06 +02:00
Günther Deschner
45952b5679 spoolss: fix potential crash bug in spoolss_PrinterEnumValues push path.
Guenther
2010-08-02 15:52:09 +02:00
Günther Deschner
ff1c5b37f6 s3-spoolss: remove unused MAX_OPEN_PRINTER_EXS define.
Guenther
2010-08-02 15:31:10 +02:00
Günther Deschner
322b524194 s3-build: fix some c++ build warnings.
Guenther
2010-08-02 12:05:03 +02:00
Volker Lendecke
911db76114 s3: Use cups-config --libs 2010-08-02 11:55:02 +02:00
Matthias Dieter Wallnöfer
e4b32cb0d4 s4:ldap.py - remove superflous spaces
Sorry, forgot to delete them in the last commit
2010-08-01 22:12:04 +02:00
Matthias Dieter Wallnöfer
e92f447823 s4:ldap.py - additional "instanceType" checks 2010-08-01 21:30:30 +02:00
Matthias Dieter Wallnöfer
c38219adfc s4:instancetype LDB module - add checks requested by MS-ADTS 3.1.1.5.2.2
We've to test for the WRITE flag if we are performing an NC add. And if it
isn't an NC add then only the WRITE or no flag is allowed.
2010-08-01 21:30:29 +02:00
Matthias Dieter Wallnöfer
ba4578f98b s4:objectclass LDB module - consider the "instanceType" when adding NCs
This is requested by MS-ADTS 3.1.1.5.2.2 (NC add operation).
2010-08-01 21:30:29 +02:00
Matthias Dieter Wallnöfer
89c7859006 s4:descriptor LDB module - remove the "forest DN" check
Also here we have to work with the default base DN.

After some reading I've discovered that this isn't really true. The forest
partition does exist on one or more DCs and is there the same as the default
base DN (which is already checked by the module).
And if we have other DCs which contain child domains then they never contain
data of the forest domain beside the schema and the configuration partition
(which are checked anyway) since a DC can always contain only one domain!

Link: http://www.informit.com/articles/article.aspx?p=26896&seqNum=5
2010-08-01 21:30:28 +02:00
Matthias Dieter Wallnöfer
f824e459f0 s4:acl LDB module - remove the "forest DN" check
After some reading I've discovered that this isn't really true. The forest
partition does exist on one or more DCs and is there the same as the default
base DN (which is already checked by the module).
And if we have other DCs which contain child domains then they never contain
data of the forest domain beside the schema and the configuration partition
(which are checked anyway) since a DC can always contain only one domain!

Link: http://www.informit.com/articles/article.aspx?p=26896&seqNum=5
2010-08-01 21:30:28 +02:00
Matthias Dieter Wallnöfer
149f4251c5 s4:acl LDB module - remove unused call "is_root_base_dn" 2010-08-01 21:30:27 +02:00
Matthias Dieter Wallnöfer
3f2a8d5081 s4:urgent_replication.py test - adapt the test for the harder delete restrictions
Otherwise we are not able to delete the "test crossRef" object which points
to the default NC anymore.
2010-08-01 18:50:57 +02:00
Matthias Dieter Wallnöfer
ea5c40428f s4:ldap.py - perform tests on the additional delete constraint checks 2010-08-01 18:50:57 +02:00
Matthias Dieter Wallnöfer
316eda1206 s4:objectclass LDB module - implement additional delete constraint checks
MS-ADTS 3.1.1.5.5.3
2010-08-01 18:50:57 +02:00
Volker Lendecke
c59ab01e33 s3: Fix an uninitialized variable 2010-08-01 18:16:19 +02:00
Volker Lendecke
fb167a6028 s3: Fix a C++ warning 2010-08-01 18:16:19 +02:00
Volker Lendecke
0213cfa6af s3: Fix some nonempty blank lines 2010-08-01 18:11:06 +02:00
Volker Lendecke
9bf2d260aa s3: Fix an uninitialized variable 2010-08-01 17:58:01 +02:00
Matthias Dieter Wallnöfer
542396ccd9 s4:ldap.py - add a test for "CN=System" object rename behaviour 2010-08-01 14:00:10 +02:00
Matthias Dieter Wallnöfer
7ea1796fa4 s4:subtree_rename LDB module - rename "check_system_flags" into "check_constraints" and perform more checks
Always considering MS-ADTS 3.1.1.5.4.1.2.
2010-08-01 14:00:10 +02:00
Matthias Dieter Wallnöfer
2e66033ab9 s4:subtree_rename LDB module - introduce out of memory checks 2010-08-01 14:00:10 +02:00
Matthias Dieter Wallnöfer
f997fd299d s4:dsdb/samdb/ldb_modules/util.c - remove unused variables 2010-08-01 11:33:37 +02:00
Stefan Metzmacher
b99a02a7d4 s4:torture/rpc/winreg: fix "strict aliasing" compiler warnings
metze
2010-08-01 11:18:05 +02:00
Stefan Metzmacher
c7ba3c4dcf s4:torture/rpc/winreg: fix the build with non gcc compilers (e.g. on solaris)
metze
2010-08-01 11:17:14 +02:00
Matthias Dieter Wallnöfer
81cc92c5af s4:ldap.py - performs some "systemFlags" testing 2010-08-01 09:36:01 +02:00
Matthias Dieter Wallnöfer
3cdc83d4f9 s4:subtree_rename LDB module - introduce the "systemFlags" protection rules
This is done in a dedicated call "check_system_flags".
2010-08-01 09:35:54 +02:00
Matthias Dieter Wallnöfer
3244f6feaa s4:dsdb/pydsdb.c - import "systemFlags" into Python
Needed by ldap.py tests
2010-07-31 21:43:11 +02:00
Matthias Dieter Wallnöfer
4e3afb36da s4:subtree_rename LDB module - "subren_ctx_init" - fix the "out of memory" return 2010-07-31 21:33:33 +02:00
Matthias Dieter Wallnöfer
1b7029b47b s4:torture/winreg.c - fix warnings of Solaris 10 cc through the appropriate casts 2010-07-31 20:59:02 +02:00
Matthias Dieter Wallnöfer
380b2cb4b0 s4:torture/winreg.c - remove unreachable code 2010-07-31 20:58:47 +02:00
Matthias Dieter Wallnöfer
f0c4a1aff4 s4:torture/winreg.c - add a FIXME comment on a codepart which isn't standard C-compatible
It seems to be GCC specific since it doesn't compile on Solaris 10 cc:
http://build.samba.org/?function=View+Build;host=sunX;tree=samba_4_0_waf;compiler=cc
2010-07-31 20:57:18 +02:00
Matthias Dieter Wallnöfer
f5f236a4b9 s4:dcesrv_netr_LogonGetDomainInfo - improve the client OS informations update
As ekacnet pointed out on the mailing list we don't need to do a delete if we
(re)set the values afterwards - only if we don't set any new ones.
2010-07-31 20:44:29 +02:00
Stefan Metzmacher
76e5d41d6a s4:blackbox/newuser: use test specific user names
As this test doesn't delete the user accounts at the end,
we should use test specific user names. That lowers the
chance of conflicts with other tests.

metze
2010-07-31 11:35:31 +02:00
Stefan Metzmacher
0b4247ef7a s4:selftest: skip samba4.blackbox.ktpass for now as it's not portable
ktutil might not be installed or from MIT.
We should build a samba4ktutil and use that instead,
until then we need to skip this test.

metze
2010-07-31 11:31:43 +02:00
Stefan Metzmacher
34692556be s4:blackblock/ktpass: use test specific user name
metze
2010-07-31 11:22:15 +02:00
Stefan Metzmacher
1675619656 s4:librpc/rpc: use the correct ndr flags in dcerpc_ndr_validate_in()
metze
2010-07-31 09:07:45 +02:00
Günther Deschner
9e0000224a s3-printing: remove unused get_local_printer_publishing_data() call.
Guenther
2010-07-31 00:54:45 +02:00
Günther Deschner
813fbbd68c s3-build: avoid to globally include printing and spoolss headers.
This shrinks precompiled headers by 3MB and will slightly speed up any build.

Guenther
2010-07-31 00:50:31 +02:00
Simo Sorce
28c74564c5 cleanups: Trailing spaces, line length, etc... 2010-07-30 16:34:53 -04:00
Simo Sorce
57bd974e58 s3-dcerpc: Use dcerpc_guess_sizes in the server code too. 2010-07-30 14:55:28 -04:00
Simo Sorce
4c64e4d4af s3-dceprc: Improve dcerpc_guess_sizes() interface
Make it possible to pass in the NDR padding size so that theoretically
client and server code can decide to use a different alignment.

Pass in the header length as a parameter so that this function can be used for
different type of packets.

Make sure padding size will not make the fragment exceed the maximum length.

Calculate padding taking in account the header length.
2010-07-30 14:55:28 -04:00
Simo Sorce
3469fbc5e4 s3-dcerpc: rationalize packet creation in the server code
Move all related functions into create_next_packet, but make it transport
neutral (not pass in pipse_struct)
2010-07-30 14:55:27 -04:00
Simo Sorce
a9d3a596a7 s3-dcerpc: Make function to guess pdu sizes common. 2010-07-30 14:55:27 -04:00
Simo Sorce
9329a9fe84 s3-dceprc: consolidate use of dcerpc_push_dcerpc_auth() 2010-07-30 14:55:27 -04:00
Simo Sorce
da6c246aac s3-dcerpc: Remove unused functions 2010-07-30 14:55:27 -04:00