1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

16794 Commits

Author SHA1 Message Date
Andrzej Hajda
0731aaddfc Import WMI implementation from wmi-0.1.12. 2008-09-15 17:36:49 +02:00
Jelmer Vernooij
d106cb2ee5 Reimport COM and DCOM libraries. 2008-09-15 17:36:46 +02:00
Jeremy Allison
a1cf3ad5d6 Remove unecessary msync.
Jeremy.
(cherry picked from commit 0bae1ef3de8fda5e1e2d641b14a408e627396912)
(This used to be commit db2acaf46fdc38078b6b28b68909e289f6c9e0ec)
2008-09-14 19:20:09 +02:00
Simo Sorce
b39e332bd7 The msync manpage reports that msync *must* be called before munmap. Failure to do so may result in lost data. Fix an ifdef check, I really think we meant to check HAVE_MMAP here.
(cherry picked from commit 74c8575b3f3b90ea21ae6aa7ccd95947838af956)
(This used to be commit 8fd54bb55f0c23bd025d1719abcbe75c6a2ea8ac)
2008-09-14 19:19:55 +02:00
Volker Lendecke
8c88209c6f Attempt to fix bug 5684
With the ctdb checkin dde9f3f006 tdb optimized out write lock checks for
write-enabled transaction. Sadly, this also removed the possibility to ever
remove dead records left over from tdb_delete calls within a transaction.

Tridge, please check this! Did dde9f3f006 have any reason beyond performance
optimizations?

Thanks,

Volker
(cherry picked from commit 3f884c4ae36f3260e63626bdd4989d9258ae6497)
(This used to be commit 1d85e0647e287d269b3f6b534da88f497d6f76c3)
2008-09-14 19:19:45 +02:00
Stefan Metzmacher
9d6e473c22 Fix warnings on SuSE 9.0.
The macros "[un]likely" are already defined on SuSE 9.0.
Patch from Volker.

(partialy cherry-picked 30d181c92463aecd6e649330d3645d86d5a17e43)
metze
(This used to be commit ad7ed33f786124e4afbba4330201a3a6463c6f73)
2008-09-14 18:50:13 +02:00
Volker Lendecke
f5d9068359 Fix bug 5400
Thanks to Jason Mader!

Volker
(cherry picked from commit 87d8a63ce4e6dd91ea3193d0a2574520a5857be2)
(This used to be commit 34ab9e5a23458c9f9845d1ff808c142cb2f1f2a4)
2008-09-14 18:47:15 +02:00
Stefan Metzmacher
121bcbdb7f Fix out of tree build. Remove the embedded srcdir path from talloc and tdb.
(partialy cherry picked from commit 359921acd436684a0b4cf76ba15f82a224d2c337)
metze
(This used to be commit d89b8fee5210c7b4d8fad24edea34f9732aec708)
2008-09-14 18:46:34 +02:00
Yannick Bergeron
6b7c4413fe using NGROUPS_MAX instead of 32 for the max group value in rep_initgroups() subroutine in lib/replace/replace.c
(cherry picked from commit 13b1a232d2fe05ae3e924ea2503d05ff5084146e)
(This used to be commit 0d2fb0e280e497094a4c95f8dca1383ee1cfa982)
2008-09-14 18:26:59 +02:00
Yannick Bergeron
b3b28162b6 Solve an IBM XL C/C++ compiler error encountered in get_exit_code() auth_errors array initialization in client/smbspool.c
(cherry picked from commit b45e7fabc64e699e4fa013ef15f98a004dae3f32)
(This used to be commit 661f8e166118d257ab32a30392cd616db097bc4c)
2008-09-14 18:26:59 +02:00
Karolin Seeger
2bb8ef091c Fix typo.
retieve -> retrieve

Karolin
(partialy cherry-picked from 37c64130701ab13b6f34998ac17fec2d128c2e08)
metze
(This used to be commit 4d92e6d582a5b2094b2aaa9008a54b37ccfcc2d7)
2008-09-14 18:26:59 +02:00
Volker Lendecke
277e095f78 Correctly find a [u]int32_t replacement
(cherry picked from commit 346375cda557a675f8f882ca2ae8edffec725a72)
(cherry picked from commit 15a53945c9563b4517bd8b69a9bb0554eef5edff)
(This used to be commit 46c3fc67e91bbdb820e4bddd085933a8570e504c)
2008-09-14 18:22:17 +02:00
Jeremy Allison
b2c4838543 Fix replacement getpass. If we ^C at the prompt echo was left off.
Jeremy.
(cherry picked from commit e54c71954ae484fe4a4e195db33440490e78e256)
(This used to be commit d61a86b8cdb4dd474611baadc61a0c37db0f8e62)
2008-09-14 18:19:59 +02:00
Stefan Metzmacher
9a222474bb rpc_server: don't send auth trailers in level connect
Also ignore auth trailers in level connect on receive.

This fixes [krb5,connect] against windows.

TODO: maybe the gensec mech need to decide if signatures
      are needed in level connect.

metze
(This used to be commit 2e3629719790e7631d9de383b565dc8a0997bcfb)
2008-09-13 20:37:12 +02:00
Stefan Metzmacher
48f500edc0 librpc/rpc: don't send auth trailers in level connect
Also ignore auth trailers in level connect on receive.

This fixes [krb5,connect] against windows.

TODO: maybe the gensec mech need to decide if signatures
      are needed in level connect.

metze
(This used to be commit eca0502b8620f2110a303b84def4f0bf48cc4ea5)
2008-09-13 20:37:12 +02:00
Stefan Metzmacher
de53ddee89 rpc_server: correctly calculate the auth padding
metze
(This used to be commit e82468a8f538aa0cf6d477fb54cc0178c0d64574)
2008-09-13 20:37:11 +02:00
Stefan Metzmacher
73ebb58f2d client free credentials when not needed anymore
(This used to be commit d982b69df638f17da6af398e2613986240031064)
2008-09-13 20:37:11 +02:00
Jeremy Allison
6ce1c893fa Comment the delay write time tests so I know what they're
testing.
Jeremy.
(This used to be commit 2bf9074c7751324483744f55b02cfb044bb0b2dd)
2008-09-12 14:59:32 -07:00
Jelmer Vernooij
218a1c8a67 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into manpage
(This used to be commit eff27744d3dcb4f6bcdf9bd03583bb38634c398d)
2008-09-12 21:31:56 +02:00
Jelmer Vernooij
fc23663f4b Revert "Add option for generating coverage data from python tests."
This reverts commit 43c0fdfff02021caef2d8f73d6bfdc4b051a65ef.
(This used to be commit 696f30fff249656409f2efcc81b86a421d0c6880)
2008-09-12 21:28:48 +02:00
Simo Sorce
e4412a0470 Remove ancient remains of first experimentations about
supporting a schema
(This used to be commit 53b57300c799a079b4d64815243fe6120e0a9fa2)
2008-09-12 13:57:50 -04:00
Simo Sorce
e060303670 Fix spellings and file names
(This used to be commit baddefd0a6fa430af1a3001064149127e0d29361)
2008-09-12 13:29:51 -04:00
Andrew Bartlett
acf11ddd5f Fix failure to load the schema on read-only DB.
This also tries to simplify the logic in the schema -> @ATTRIBUTES and
@INDEXES code.

Andrew Bartlett
(This used to be commit a383b8bf88a5681f9c9c6839ba645c872a735051)
2008-09-12 07:45:28 +10:00
Andrew Bartlett
ab555eb199 Remove the complexity of transactions from the attributes-setting code.
I think it is just too complex and error prone to init and cancel
transactions during the module init code.  Instead, this isn't prone
to races as it will always achieve a steady state (eventually), and
most cases will never do the write.

Andrew Bartlett
(This used to be commit d60977cc7f89f89f34187f310c91d1ab7db6ccf2)
2008-09-11 20:51:26 +10:00
Andrew Bartlett
d30caa011c Make cn=aggregate output less pretty, by more like Win2008.
I'm not sure if this fixes bug #5713, as this is not consistantly
reproducably on my equipment.

Andrew Bartlett
(This used to be commit 02d6645efc84179efd652dd29ab32f62ae310147)
2008-09-11 12:36:58 +10:00
Andrew Bartlett
0cbfc686c4 Fix failures in the winbind struct-based test.
Don't try to pass the 'privileged' socket directory around for expected value testing - it is just too hard...

A better test (once we unify the winbind protocol with Samba3) would
be a operation to see if you are on the priv pipe, and that will give
acutal end-to-end testing.

Andrew Bartlett
(This used to be commit 2d4103518ab8a7286e65347b8b9b0ccb660e69f6)
2008-09-11 11:49:24 +10:00
Jeremy Allison
238679edfa Merge branch 'v4-0-test' of ssh://jra@git.samba.org/data/git/samba into v4-0-test
(This used to be commit 7cd0977a28e9973ff71e9e0146fef6e6771a72b5)
2008-09-09 21:25:03 -07:00
Jeremy Allison
bc731db854 A truncate write must be a smbcli_smbwrite, not a
smbcli_write.
Jeremy.
(This used to be commit 8cebd4d36c862dcdc6551dc6bf4dda2342dfede7)
2008-09-09 21:24:34 -07:00
Andrew Bartlett
9bc4d3ecba Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
(This used to be commit ed26195d0eda6dd1ca14508cfd31a48dde79d44f)
2008-09-10 14:09:07 +10:00
Andrew Bartlett
ba22de3d4f Return the same privilaged winbindd socket as we actually use.
Andrew Bartlett
(This used to be commit 2209787812fd9224d104f332e25d8ce64ef9ee95)
2008-09-10 14:08:40 +10:00
Matthias Dieter Wallnöfer
ce288824bb Fix uninstalling of binaries.
(This used to be commit 6ad94d10f79f206fcdeb23cf71595e38c7a77855)
2008-09-10 00:09:28 +02:00
Jelmer Vernooij
96ba74ba07 Merge branch 'v4-0-regClient' of git://repo.or.cz/Samba/mdw into manpage
(This used to be commit 6ac32d0a10a9a27abceca362fcab04bcfc55c33f)
2008-09-10 00:05:37 +02:00
Jelmer Vernooij
4f266dff13 Only try with -LPYTHONDIR/lib when python-config output didn't work.
(This used to be commit 62d76356c10b4223236425c4db32c2fc5105d155)
2008-09-09 23:49:07 +02:00
Volker Lendecke
1d8973a82e Attempt to correctly find python on host sunx
(This used to be commit 59b62280d27a9e0a72241e4b60022be07e4cbce2)
2008-09-09 23:35:17 +02:00
Jelmer Vernooij
d7dbb530b5 Remove unused scripts for installing binaries.
(This used to be commit 677179234ecaa6980dedc2bb6f77c525b56b532f)
2008-09-09 21:56:57 +02:00
Matthias Dieter Wallnöfer
3911808323 Fix up the "reg_common_open_remote" call
This fixes up the "reg_common_open_remote" call because it didn't work anymore without the event context.
(This used to be commit 42ab865fc937a625d1eece45abe96bf354ddff8b)
2008-09-09 18:03:54 +02:00
Matthias Dieter Wallnöfer
8b6b851390 Two useful "regshell" improvements
This patch corrects the "change key" command (Follow up isn't supported yet) and adds a newline in a error message.
(This used to be commit d1052dc42ef591208cfbf7059b28a078f6d4f0bf)
2008-09-09 18:01:20 +02:00
Jelmer Vernooij
37a63fb039 Remove calls to unused uninstallbin.sh
(This used to be commit 69956a5597b0339b7c0ee3f394d649421f037f03)
2008-09-09 16:01:37 +02:00
Jelmer Vernooij
faf83916ee Add option for generating coverage data from python tests.
(This used to be commit 43c0fdfff02021caef2d8f73d6bfdc4b051a65ef)
2008-09-09 15:55:10 +02:00
Stefan Metzmacher
d613041396 UNIX-WHOAMI: fix compiler warnings
metze
(This used to be commit ec5d8ddadb76ff0d2cb72872e4d145a7527f0ec6)
2008-09-09 13:01:34 +02:00
Stefan Metzmacher
5b70daad7a drsblobs.idl: add parser for ExtendedErrorInfo see [MS-EERR]: ExtendedError Remote Data Structure
metze
(This used to be commit 3edbbb12bda8e19a9f5a72849bc79e0fad7976f8)
2008-09-09 11:29:15 +02:00
Andrew Bartlett
ffc9f85bfb Fix reversed test trying to fix bug #5713
(It instead ensured that only 'top' had a SUP keyword)

This clearly shows that 937b466266256d26d02cf8d48e72a26272fe8627 was
not a full or correct fix, but despite this I can no longer reproduce
the issue.  Further investigation is required.

Andrew Bartlett
(This used to be commit 95a9e9b6b84866cd300b1d19915627c6718b4dde)
2008-09-09 18:02:05 +10:00
Andrew Bartlett
e7cc705efb Fix bug #5713 by correcting the generated schema.
This bug is entitled 'Schema patch breaks interoperability with
Microsoft MMC consoles.', and it does so very spectacularly.

The issue is that we would include an entry:
objectClasses: ( 2.5.6.0 NAME 'top' SUP top ABSTRACT..

The MMC Active Directory Users and Computers snap in presumably
objected to the 'loop' this would present. The fixed entry is:

objectClasses: ( 2.5.6.0 NAME 'top' ABSTRACT

Thanks to Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> for his
persistance in getting me to look at this.

Andrew Bartlett
(This used to be commit 937b466266256d26d02cf8d48e72a26272fe8627)
2008-09-09 16:21:22 +10:00
Jeremy Allison
2c2a79eefa Make it easier to see when tests start/end.
Jeremy.
(This used to be commit 6f89e728272ca14f0ed9557485e21647c0731ef2)
2008-09-08 14:58:58 -07:00
Stefan Metzmacher
ad34034797 BASE-DELAYWRITE: test behavior of SMBwrite truncate, writeX, SMBwrite truncate and writeX again
metze
(This used to be commit 66b8c8d80e1c8e45ab6ca38cabebea07aa122c40)
2008-09-08 16:22:57 +02:00
Stefan Metzmacher
f009e78864 BASE-DELAYWRITE: test behavior of writeX, SMBwrite truncate, writeX and SMBwrite again
metze
(This used to be commit 051164ba0a69d54aa706ffa876059e8dbbeacb36)
2008-09-08 16:22:57 +02:00
Stefan Metzmacher
1cf9d7e078 BASE-DELAYWRITE: demonstrate that a truncate write doesn't update the write time after SET_FILE_INFO
metze
(This used to be commit f81014db9d5afbf9e0b1c007bc56fc1d3a201309)
2008-09-08 16:22:53 +02:00
Stefan Metzmacher
a626b01193 BASE-DELAYWRITE: demonstrate that the time between the open and the first write doesn't matter
metze
(This used to be commit 13d051cd633f4a4152d360453fe5297ad53cc7b5)
2008-09-08 12:12:25 +02:00
Stefan Metzmacher
3ca48b015f BASE-DELAYWRITE: test more details of the truncate write time update behavior
metze
(This used to be commit 39367ef15fabbb52cd2c05be7ca59b25dc4aff71)
2008-09-08 08:31:34 +02:00
Andrew Bartlett
ef9169bfa6 Make it clear that the MMR password can differ from the admin passsword
In the future, we might simply randomly generate this, or allow the
admin to specify it seperate to the admin password.  However, both are
highly sensitive, as they imply read access to the krbtgt.

Andrew Bartlett
(This used to be commit 57d19ad002c523fb9a09694e6710ab7f588d44ec)
2008-09-08 15:09:06 +10:00