samba.git
12 years agofix typo
Andrew Bartlett [Fri, 29 Feb 2008 00:02:54 +0000 (11:02 +1100)]
fix typo
(This used to be commit 61953e24a5789f08e82fb697f45535f4a87883b1)

12 years agoMerge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local
Andrew Bartlett [Thu, 28 Feb 2008 23:56:56 +0000 (10:56 +1100)]
Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local
(This used to be commit 124d2ee788f1ac4b201a2843b58be21de358deb0)

12 years agoProve that not supporting ldapi is a bit problem.
Andrew Bartlett [Thu, 28 Feb 2008 23:56:04 +0000 (10:56 +1100)]
Prove that not supporting ldapi is a bit problem.

For a while now, ldapi support has been busted, but it was only tested
when we were running against an external LDAP server.

Andrew Bartlett
(This used to be commit faf324cac613f9b74e1de46fe490f4973dab995c)

12 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
Jelmer Vernooij [Thu, 28 Feb 2008 23:47:14 +0000 (00:47 +0100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
(This used to be commit 80ce9a3bbc43535d7c4bdd0ec402272175732ebc)

12 years agoConvert to new torture API.
Jelmer Vernooij [Thu, 28 Feb 2008 23:46:44 +0000 (00:46 +0100)]
Convert to new torture API.
(This used to be commit 40dffc177babec01c63fb717506fa86ff70a5b28)

12 years agoMerge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local
Andrew Bartlett [Thu, 28 Feb 2008 23:09:35 +0000 (10:09 +1100)]
Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local
(This used to be commit f002a98c7ae0fc93cc738fde1ee62534f8e576ac)

12 years agolibreplace: try and fix rep_getifaddrs() for Tru64.
Michael Adam [Thu, 28 Feb 2008 23:06:55 +0000 (00:06 +0100)]
libreplace: try and fix rep_getifaddrs() for Tru64.

Don't fail when there is no address assigned to the interface.
Put NULL into the ifaddrs structure instead.

Michael
(This used to be commit ee170c85e0e76411bd752de5fe51db6940dab929)

12 years agolibreplace: use the new getifaddrs test also for autoconf.
Michael Adam [Thu, 28 Feb 2008 20:44:31 +0000 (21:44 +0100)]
libreplace: use the new getifaddrs test also for autoconf.

Michael
(This used to be commit a2a506ff0eae2a64ebe2ddbb81a6c2a5fa7fe3da)

12 years agolibreplace: add extended getifaddrs test that prints out the interfaces.
Michael Adam [Thu, 28 Feb 2008 20:43:06 +0000 (21:43 +0100)]
libreplace: add extended getifaddrs test that prints out the interfaces.

Michael
(This used to be commit 9d2bab09aac22c00fe23f1e1265a2dbd0901e9ce)

12 years agoMerge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local
Andrew Bartlett [Thu, 28 Feb 2008 21:48:57 +0000 (08:48 +1100)]
Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local
(This used to be commit 04db9b184491415b3479fd79e1c07ba738818eb9)

12 years agoSimplify the 'password must change' logic
Andrew Bartlett [Thu, 28 Feb 2008 21:47:42 +0000 (08:47 +1100)]
Simplify the 'password must change' logic

This takes the previous patches further, so we catch all the cases
(the KDC looked at the time directly).

Andrew Bartlett
(This used to be commit cda4642a937d249399e25eaa6e5e20a0d440bcbf)

12 years agoRemove use of global_loadparm.
Jelmer Vernooij [Thu, 28 Feb 2008 20:02:49 +0000 (21:02 +0100)]
Remove use of global_loadparm.
(This used to be commit 3cf3922c806d0e33439073d204b44bf0af3102d5)

12 years agoRemove use of global_loadparm.
Jelmer Vernooij [Thu, 28 Feb 2008 19:30:03 +0000 (20:30 +0100)]
Remove use of global_loadparm.
(This used to be commit 4472d7e1e47d4fe6b1c60e28d168cce99b237979)

12 years agoRemove sDefault as static variable.
Jelmer Vernooij [Thu, 28 Feb 2008 19:04:58 +0000 (20:04 +0100)]
Remove sDefault as static variable.
(This used to be commit 16f36ce499e93860dd535034a584ec2b93e7a172)

12 years agoMerge branch 'v4-0-trivial' into v4-0-test
Jelmer Vernooij [Thu, 28 Feb 2008 17:27:29 +0000 (18:27 +0100)]
Merge branch 'v4-0-trivial' into v4-0-test
(This used to be commit 6cbb241c05539cc62526a366094c9c472e6422a5)

12 years agoCache iconv_convenience.
Jelmer Vernooij [Thu, 21 Feb 2008 15:41:38 +0000 (16:41 +0100)]
Cache iconv_convenience.
(This used to be commit fe1d3e69990a71d7639ac8718f6ca51de4d7e6d2)

12 years agotorture/t_strcmp.c: Remove obsolete file - proper testing is now done in the libutil...
Jelmer Vernooij [Thu, 21 Feb 2008 15:23:52 +0000 (16:23 +0100)]
torture/t_strcmp.c: Remove obsolete file - proper testing is now done in the libutil testsuite.
(This used to be commit 239bdf5e81f4ede4cd70bd9907e785d60a755e98)

12 years agoMore share_init to more apprioriate place.
Jelmer Vernooij [Thu, 21 Feb 2008 15:21:32 +0000 (16:21 +0100)]
More share_init to more apprioriate place.
(This used to be commit 990135517618afcef873f0cd0e6f8c3098247b50)

12 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
Jelmer Vernooij [Thu, 28 Feb 2008 13:11:45 +0000 (14:11 +0100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
(This used to be commit 84b677285250d9b9a1120fcfd6e4bbbb8f939fe8)

12 years agopvfs_open: fix callers of odb_get_delete_on_close()
Stefan Metzmacher [Wed, 27 Feb 2008 21:22:56 +0000 (22:22 +0100)]
pvfs_open: fix callers of odb_get_delete_on_close()

metze
(This used to be commit 608e5cd881d64b8db9146dfc4b3a1778a93a0f8e)

12 years agoopendb: only return delete_on_close on odb_get_delete_on_close()
Stefan Metzmacher [Wed, 27 Feb 2008 21:16:55 +0000 (22:16 +0100)]
opendb: only return delete_on_close on odb_get_delete_on_close()

metze
(This used to be commit e699633db2d377a9077ff490208da277e250239b)

12 years agopvfs: remove unused args from pvfs_delete_on_close_set()
Stefan Metzmacher [Wed, 27 Feb 2008 21:22:10 +0000 (22:22 +0100)]
pvfs: remove unused args from pvfs_delete_on_close_set()

metze
(This used to be commit 73f12be7c6a648d4d5336328a340510ac7b1d6de)

12 years agopvfs_open: use the delete_path of odb_close_file()
Stefan Metzmacher [Wed, 27 Feb 2008 20:52:52 +0000 (21:52 +0100)]
pvfs_open: use the delete_path of odb_close_file()

metze
(This used to be commit c78451ce0618de92321430d2b50f9a8172d283f4)

12 years agoopendb: return the path that should be deleted in odb_close_file()
Stefan Metzmacher [Wed, 27 Feb 2008 20:50:51 +0000 (21:50 +0100)]
opendb: return the path that should be deleted in odb_close_file()

That means the last close returns the path name if the
delete_on_close flag is set.

metze
(This used to be commit fc27730bad24e8dddaa2e7f754a16811e38a2f60)

12 years agoEnsure we don't try and set the acct_flags if they are 0 (meaning
Andrew Bartlett [Wed, 27 Feb 2008 23:43:57 +0000 (10:43 +1100)]
Ensure we don't try and set the acct_flags if they are 0 (meaning
unchanged in this interface).

We seem to have two very similar interfaces here, and this is the
poorer interface, for this reason.

Andrew Bartlett
(This used to be commit 582073eff1f21f81abb3e5f1ce2eca4ebef56a00)

12 years agoMerge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local
Andrew Bartlett [Wed, 27 Feb 2008 23:33:54 +0000 (10:33 +1100)]
Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local
(This used to be commit ba864cfd7ce4b69179431131cac9661cbf48bf32)

12 years agoFix up the libnet tests.
Andrew Bartlett [Wed, 27 Feb 2008 23:32:06 +0000 (10:32 +1100)]
Fix up the libnet tests.

These tests still do not pass against windows, but at least now it
doesn't reset acct_flags to 0.

This is enough to have Samba4 pass it's own tests for the moment.

Andrew Bartlett
(This used to be commit aa3901311eb7ce6f2d2b2413323e31a5b064cfc4)

12 years agoCheck for and reject invalid account flags.
Andrew Bartlett [Wed, 27 Feb 2008 23:05:32 +0000 (10:05 +1100)]
Check for and reject invalid account flags.

(lest we have an account set with 0 flags)

Andrew Bartlett
(This used to be commit 7a46e72f8dbb191ac8a811eb4cd95210fab7dc7b)

12 years agoGenerate ACB_PW_EXPIRED correctly
Andrew Bartlett [Wed, 27 Feb 2008 21:50:00 +0000 (08:50 +1100)]
Generate ACB_PW_EXPIRED correctly

More correctly handle expired passwords, and do not expire machine accounts.

Test that the behaviour is consistant with windows, using the RPC-SAMR test.

Change NETLOGON to directly query the userAccountControl, just because
we don't want to do the extra expiry processing here.

Andrew Bartlett
(This used to be commit acda1f69bc9b9c43e157e254d0bae54d11363661)

12 years agoUsers and computers now share the same template.
Andrew Bartlett [Wed, 27 Feb 2008 21:43:10 +0000 (08:43 +1100)]
Users and computers now share the same template.

Slowly work away at the samldb module again, it is clear that AD does
not use much of a templating system.  samAccountType is managed, as
far as I can tell, when groupType or userAccountControl changes.

Andrew Bartlett
(This used to be commit 447d5a795441aa6beab2f057c5ac1bc3c04e08c4)

12 years agoReorder modules to have rdn_name before objectclass.
Andrew Bartlett [Wed, 27 Feb 2008 21:39:45 +0000 (08:39 +1100)]
Reorder modules to have rdn_name before objectclass.

This ensures the relative DN is placed in the correct case into the
DB.

Andrew Bartlett
(This used to be commit 16378219fbf9e8a26621f848e85426180822ea29)

12 years agoFix rdn_name errors.
Andrew Bartlett [Wed, 27 Feb 2008 21:38:53 +0000 (08:38 +1100)]
Fix rdn_name errors.

Return the correct error when the DN is mismatched with it's RDN
attribute (now matches AD).

Andrew Bartlett
(This used to be commit bf7166e785e5c5d52dbb0c12e5e4206d74e72f4e)

12 years agoExtend the ldap.js test
Andrew Bartlett [Wed, 27 Feb 2008 21:37:11 +0000 (08:37 +1100)]
Extend the ldap.js test

Now we verify sAMAccountType and userAccountControl, as well as rename and
DN mismatch semantics.

Andrew Bartlett
(This used to be commit 0a5fa41dd7ed76e4848fe4a779edff2a12e8ea67)

12 years agoDo not re-randomise in an individual test.
Andrew Bartlett [Wed, 27 Feb 2008 21:36:13 +0000 (08:36 +1100)]
Do not re-randomise in an individual test.

smbtorture calls srandom() once for the whole suite, with command line
override to allow reproduceable random tests.

Andrew Bartlett
(This used to be commit 68dcd1073cfed830fb6e2013e27d2ebbc443c451)

12 years agounixinfo.idl: don't use utf8string anymore
Stefan Metzmacher [Wed, 27 Feb 2008 18:47:23 +0000 (19:47 +0100)]
unixinfo.idl: don't use utf8string anymore

Note:

This changes the on wire format!!!

But it's a very bad idea to keep utf8string
as it's not valid NDR encoding and noone
would be able to write a compatible IDL
file using another compiler than pidl.

Maybe we should change the uuid,
but as this isn't really used yet
I keep the old one.

metze
(This used to be commit 5753d7fd8300d36558d3304418e1b0a300f56575)

12 years agoRemove more global_loadparm uses.
Jelmer Vernooij [Thu, 21 Feb 2008 15:18:23 +0000 (16:18 +0100)]
Remove more global_loadparm uses.
(This used to be commit f920e78ea7bb8aa575e6a2ebb5cc53462fbe2fe9)

12 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
Jelmer Vernooij [Wed, 27 Feb 2008 18:37:45 +0000 (19:37 +0100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
(This used to be commit 91980a2bd352f26cf6ddb058d0f330ca20fa6554)

12 years agoClarify comments.
Jelmer Vernooij [Thu, 21 Feb 2008 15:18:01 +0000 (16:18 +0100)]
Clarify comments.
(This used to be commit 5193b383761129e59241cd2cc6000f0b038b49d4)

12 years agoSet lp_ctx properly.
Jelmer Vernooij [Wed, 27 Feb 2008 16:36:49 +0000 (17:36 +0100)]
Set lp_ctx properly.
(This used to be commit 5d274f19aedbb022d61b1493857dce66877dc809)

12 years agoSet lp_ctx properly.
Jelmer Vernooij [Wed, 27 Feb 2008 16:36:49 +0000 (17:36 +0100)]
Set lp_ctx properly.
(This used to be commit 11289759cae6a8062ea3556dbcbddfd44a3c0331)

12 years agoRAW-OPLOCK: be more strict with share modes against windows and samba4
Stefan Metzmacher [Wed, 27 Feb 2008 15:23:57 +0000 (16:23 +0100)]
RAW-OPLOCK: be more strict with share modes against windows and samba4

But still allow samba3 behavior.

metze
(This used to be commit a0decdf63e2f7ef6ee62a3fda5070b2fccee5682)

12 years agoselftest: samba4 doesn't pass RAW-OPLOCK BATCH19 und 20 yet
Stefan Metzmacher [Wed, 27 Feb 2008 15:22:45 +0000 (16:22 +0100)]
selftest: samba4 doesn't pass RAW-OPLOCK BATCH19 und 20 yet

metze
(This used to be commit e3a9ad303f6f935aa2b5d60036f9e6dfba5cc893)

12 years agoRAW-OPLOCK: use torture_result(TORTURE_FAIL) so that the knownfailures file work
Stefan Metzmacher [Wed, 27 Feb 2008 15:22:04 +0000 (16:22 +0100)]
RAW-OPLOCK: use torture_result(TORTURE_FAIL) so that the knownfailures file work

metze
(This used to be commit 656011add338ab87188849c4a716d3c65a102a74)

12 years agoRAW-OPLOCK: add BATCH20 test renaming via setpathinfo() and setfileinfo()
Stefan Metzmacher [Wed, 27 Feb 2008 14:45:08 +0000 (15:45 +0100)]
RAW-OPLOCK: add BATCH20 test renaming via setpathinfo() and setfileinfo()

metze
(This used to be commit b66c246c5db78db897bcf21a6ea3c777d65cfc6a)

12 years agoRAW-OPLOCK: add BATCH19 test renaming via setpathinfo
Stefan Metzmacher [Wed, 27 Feb 2008 14:43:04 +0000 (15:43 +0100)]
RAW-OPLOCK: add BATCH19 test renaming via setpathinfo

This is really strange as, it seems to complete ignore
oplocks and share modes and doesn't match the behavior
of RENAME and NTRENAME.

metze
(This used to be commit 7bac95db5edcc7432aea067e0a9ba9230c7dc1b0)

12 years agoRAW-OPLOCK: add BATCH18 test a ntrename with FLAG_RENAME
Stefan Metzmacher [Wed, 27 Feb 2008 10:07:53 +0000 (11:07 +0100)]
RAW-OPLOCK: add BATCH18 test a ntrename with FLAG_RENAME

metze
(This used to be commit 22c35d9ee7858c0ff58d5d0b4a9bf69fe0b8653f)

12 years agoRAW-OPLOCK: add BATCH17 test rename on a file with oplock
Stefan Metzmacher [Wed, 27 Feb 2008 09:41:47 +0000 (10:41 +0100)]
RAW-OPLOCK: add BATCH17 test rename on a file with oplock

metze
(This used to be commit 32f138d4b313a6c5e8ef8e15945df02e3b4db864)

12 years agoRAW-OPLOCK: add EXCLISIVE6 test a rename on a file with an oplock
Stefan Metzmacher [Wed, 27 Feb 2008 09:40:19 +0000 (10:40 +0100)]
RAW-OPLOCK: add EXCLISIVE6 test a rename on a file with an oplock

metze
(This used to be commit 3886a5dea2fa26eeed8bc1d20c44ef012ea1f746)

12 years agoRAW-OPLOCK: add EXCLUSIVE5 to test attribute only with OVERWRITE_IF
Stefan Metzmacher [Wed, 27 Feb 2008 09:02:52 +0000 (10:02 +0100)]
RAW-OPLOCK: add EXCLUSIVE5 to test attribute only with OVERWRITE_IF

metze
(This used to be commit 06547036e6554dc94f683263b54d528eac227ea8)

12 years agoRAW-OPLOCK: add BATCH16 and tests attribute only with OVERWRITE_IF
Stefan Metzmacher [Wed, 27 Feb 2008 08:41:44 +0000 (09:41 +0100)]
RAW-OPLOCK: add BATCH16 and tests attribute only with OVERWRITE_IF

metze
(This used to be commit 2453628623795c34ece18a285e6c2de40c4518de)

12 years agopvfs_rename: we need a do a odb_rename() after pvfs_do_rename()
Stefan Metzmacher [Wed, 27 Feb 2008 10:25:33 +0000 (11:25 +0100)]
pvfs_rename: we need a do a odb_rename() after pvfs_do_rename()

metze
(This used to be commit f4f593a1acd4a39f7be639465f0be4b3a97a9bfc)

12 years agopvfs_rename: add retry logic after sharing violation or non granted oplock
Stefan Metzmacher [Wed, 27 Feb 2008 10:24:37 +0000 (11:24 +0100)]
pvfs_rename: add retry logic after sharing violation or non granted oplock

metze
(This used to be commit 79e42a5dfbfd59b856bca16456295cd2c93ab0ca)

12 years agoopendb_tdb: EXCLUSIVE oplock use the same matching logic
Stefan Metzmacher [Wed, 27 Feb 2008 08:40:49 +0000 (09:40 +0100)]
opendb_tdb: EXCLUSIVE oplock use the same matching logic

metze
(This used to be commit 48e703d5a6b8a7b273d0bf15fc6198ef25b0a7c4)

12 years agoRAW-OPLOCK: add EXCLUSIVE4 a attribute only open doesn't break an exclusive oplock
Stefan Metzmacher [Wed, 27 Feb 2008 07:51:25 +0000 (08:51 +0100)]
RAW-OPLOCK: add EXCLUSIVE4 a attribute only open doesn't break an exclusive oplock

metze
(This used to be commit b22587a5db4a1e2d5fa1a944896330f1a86eef11)

12 years agoRAW-OPLOCK: add EXCLUSIVE3
Stefan Metzmacher [Tue, 26 Feb 2008 15:16:31 +0000 (16:16 +0100)]
RAW-OPLOCK: add EXCLUSIVE3

This tests that a setpathinfo EOF breaks
an exclusive oplock to none.

metze
(This used to be commit fd5b4b3d4ec52572619dba065d689d58bec71ae0)

12 years agoRAW-OPLOCK: add EXCLUSIVE2
Stefan Metzmacher [Tue, 26 Feb 2008 14:51:17 +0000 (15:51 +0100)]
RAW-OPLOCK: add EXCLUSIVE2

Exclusive oplocks break to LEVEL2

metze
(This used to be commit 1cddadb052106394046f03d65297ea68232e7492)

12 years agoRAW-OPLOCK: rename test (NORMAL => EXCLUSIVE1)
Stefan Metzmacher [Tue, 26 Feb 2008 13:58:00 +0000 (14:58 +0100)]
RAW-OPLOCK: rename test (NORMAL => EXCLUSIVE1)

metze
(This used to be commit 546536dde07d82dbba6724df95cdd1ba50caf8c5)

12 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial
Jelmer Vernooij [Wed, 27 Feb 2008 15:03:00 +0000 (16:03 +0100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial
(This used to be commit d96fcc52a70fd1236b767b1d88a39d78c4e8c48c)

12 years agoFix cases, add version number. (#4935)
Matthias Dieter Wallnöfer [Wed, 27 Feb 2008 12:47:34 +0000 (13:47 +0100)]
Fix cases, add version number. (#4935)
(This used to be commit d2eb404ba1711abf6bb2718f8bb1dbbd104e7d4d)

12 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake-simple
Jelmer Vernooij [Wed, 27 Feb 2008 12:17:08 +0000 (13:17 +0100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake-simple
(This used to be commit a9fe1b785dd59acbfab4eb90256e7a0cb0f4da6e)

12 years agolibreplace: standalone build: use -I$srcdir instead of -I.
Michael Adam [Wed, 27 Feb 2008 09:33:32 +0000 (10:33 +0100)]
libreplace: standalone build: use -I$srcdir instead of -I.

Michael
(This used to be commit ff311e613226e660998824b887cb9595ffbe0275)

12 years agolibreplace: fix standalone build - add necessary libs.
Michael Adam [Wed, 27 Feb 2008 00:41:30 +0000 (01:41 +0100)]
libreplace: fix standalone build - add necessary libs.

The libs needed for getifaddrs replacements have to be added
to LIBS and used for the testsuite target.

Michael
(This used to be commit e7c1d6513b945b205abe84b18a251d06e737e659)

12 years agolibreplace: fix standalone build on some systems.
Michael Adam [Wed, 27 Feb 2008 00:29:12 +0000 (01:29 +0100)]
libreplace: fix standalone build on some systems.

getifaddr tests include system/network.h, which does not
find getaddrinfo.h without "-I.".

Michael
(This used to be commit cd95c702ed90128f659e27709c61d4c6abc969ef)

12 years agolibreplace: Add tests for connect and gethostbyname.
Michael Adam [Tue, 26 Feb 2008 12:24:54 +0000 (13:24 +0100)]
libreplace: Add tests for connect and gethostbyname.

Provide dummy replacements when a function isnt found.
The functions are also searched for in certain libraries,
and variables SOCKET_LIBS and NSL_LIBS are set accordingly.

One purpose of this is to fix the getifaddrs tests on
systems where e.g. the socket calls require special libs
for linking.

Michael
(This used to be commit 900d17acb95f1becfc46656a12c107336c027ef7)

12 years agopidl: Remove superfluous semicolon in perl code.
Michael Adam [Tue, 26 Feb 2008 14:38:45 +0000 (15:38 +0100)]
pidl: Remove superfluous semicolon in perl code.

Michael
(This used to be commit 85f707c6abc48739c0c3b423ac0b196d2b75e40c)

12 years agoRAW-OPLOCK: BATCH15: make sure a qpathinfo doesn't break batch oplocks
Stefan Metzmacher [Tue, 26 Feb 2008 13:52:50 +0000 (14:52 +0100)]
RAW-OPLOCK: BATCH15: make sure a qpathinfo doesn't break batch oplocks

metze
(This used to be commit 4d17d44d3f418216a40c80f290f97a4dc29147b0)

12 years agoRely on GNU make to build static libraries.
Jelmer Vernooij [Tue, 26 Feb 2008 13:20:31 +0000 (14:20 +0100)]
Rely on GNU make to build static libraries.

Conflicts:

source/build/smb_build/makefile.pm
(This used to be commit f34a17a92bcc9a27b629a6ec9ed9a818bd13acc0)

12 years agoopendb_tdb: with break_to_none attribute only opens also break oplocks
Stefan Metzmacher [Tue, 26 Feb 2008 11:52:46 +0000 (12:52 +0100)]
opendb_tdb: with break_to_none attribute only opens also break oplocks

metze
(This used to be commit c475353e34154eb13e35cc8b6cf553e3986f8677)

12 years agopvfs_open: pass down an access mask to pvfs_can_update_file_size()
Stefan Metzmacher [Tue, 26 Feb 2008 09:26:33 +0000 (10:26 +0100)]
pvfs_open: pass down an access mask to pvfs_can_update_file_size()

You just need SEC_FILE_WRITE_ATTRIBUTE to change
the filesize...

metze
(This used to be commit 27e39063a0b759c7bced1cc9d7a6cb9192820c70)

12 years agopvfs_qfileinfo: down discard the return value of pvfs_can_stat()
Stefan Metzmacher [Tue, 26 Feb 2008 09:29:07 +0000 (10:29 +0100)]
pvfs_qfileinfo: down discard the return value of pvfs_can_stat()

The odb_can_open() code returns DELETE_PENDING if
a delete is really pending.

metze
(This used to be commit 066ba3c7cfff12cb0b5298fc45eabb5fc097d056)

12 years agopvfs_open: pass down an access mask in pvfs_can_stat()
Stefan Metzmacher [Tue, 26 Feb 2008 09:28:07 +0000 (10:28 +0100)]
pvfs_open: pass down an access mask in pvfs_can_stat()

metze
(This used to be commit 6c34c7bc6801e470e5ec50aa93d0a07f7ad59314)

12 years agopvfs_open: pass NTCREATEX_DISP_OPEN to odb_can_open()
Stefan Metzmacher [Tue, 26 Feb 2008 09:21:39 +0000 (10:21 +0100)]
pvfs_open: pass NTCREATEX_DISP_OPEN to odb_can_open()

As 0 is NTCREATEX_DISP_SUPERSEDE and that's not what we want here.

metze
(This used to be commit 10c42e3d4ab71a71dfe620b40841dfe98f458c1a)

12 years agoFix build on VOS: socklen_t is needed for rep_inet_ntop: move it up.
Michael Adam [Tue, 26 Feb 2008 10:18:51 +0000 (11:18 +0100)]
Fix build on VOS: socklen_t is needed for rep_inet_ntop: move it up.

Michael
(This used to be commit 8a26a6e8f11aca5119b15e304213548ad608dc5b)

12 years agoBASE-DEFER_OPEN: be less strict with to late responses
Stefan Metzmacher [Tue, 26 Feb 2008 09:31:37 +0000 (10:31 +0100)]
BASE-DEFER_OPEN: be less strict with to late responses

The server might be just busy.

metze
(This used to be commit 16c60cd347a42a2d98753585cbefddc948e2860f)

12 years agoselftest: Samba4 passes all oplocks tests now
Stefan Metzmacher [Sat, 23 Feb 2008 10:54:01 +0000 (11:54 +0100)]
selftest: Samba4 passes all oplocks tests now

The support for oplocks is not completely finished
I believe we will not pass some non existing test.
But it's a good start.

metze
(This used to be commit 278eea57fa9f59908672c935187f942e7780f0aa)

12 years agopvfs_setpathinfo: retry setpathinfo after oplock not granted on on setpathinfo ALLOCA...
Stefan Metzmacher [Sat, 23 Feb 2008 10:50:19 +0000 (11:50 +0100)]
pvfs_setpathinfo: retry setpathinfo after oplock not granted on on setpathinfo ALLOCATION_INFO and END_OF_FILE_INFO

metze
(This used to be commit 4e27ac8c529d5a1675fb02215191a2be7913ec97)

12 years agopvfs_open: add pvfs_can_update_file_size()
Stefan Metzmacher [Sat, 23 Feb 2008 10:49:39 +0000 (11:49 +0100)]
pvfs_open: add pvfs_can_update_file_size()

TODO: this is not complete, we need more tests to trigger this

metze
(This used to be commit 66ad1081f2be8a0caa16fb0d614b857a5bde751c)

12 years agopvfs_unlink: retry unlink after oplock not granted
Stefan Metzmacher [Fri, 22 Feb 2008 10:52:17 +0000 (11:52 +0100)]
pvfs_unlink: retry unlink after oplock not granted

metze
(This used to be commit 746e89ce2e74dbd2cea8f5575c403e4c61f82cb8)

12 years agopvfs: add posix:oplocktimeout=30 option
Stefan Metzmacher [Mon, 25 Feb 2008 18:17:45 +0000 (19:17 +0100)]
pvfs: add posix:oplocktimeout=30 option

metze
(This used to be commit 5abc57ddab558c13db3864d13afc2ad3b1641d1c)

12 years agopvfs_setfileinfo: break level2 oplocks on setfileinfo() ALLOCATION_INFO and END_OF_FI...
Stefan Metzmacher [Sat, 23 Feb 2008 10:46:43 +0000 (11:46 +0100)]
pvfs_setfileinfo: break level2 oplocks on setfileinfo() ALLOCATION_INFO and END_OF_FILE_INFO

metze
(This used to be commit b258f9d8d4bf3606f4884d1bff548f16dadc08aa)

12 years agopvfs: send oplock breaks to none to level2 holders on write/lock requests
Stefan Metzmacher [Fri, 22 Feb 2008 15:34:50 +0000 (16:34 +0100)]
pvfs: send oplock breaks to none to level2 holders on write/lock requests

metze
(This used to be commit b8c42a1ff8fd4131ef2a1ad92a7405a2e4d335d3)

12 years agopvfs_oplocks: add pvfs_break_level2_oplocks()
Stefan Metzmacher [Fri, 22 Feb 2008 15:34:50 +0000 (16:34 +0100)]
pvfs_oplocks: add pvfs_break_level2_oplocks()

metze
(This used to be commit e0837238b6b09143970f03b6a78201c3fe55f3cd)

12 years agopvfs: handle oplock releases in its own function pvfs_oplock_release()
Stefan Metzmacher [Mon, 25 Feb 2008 08:51:58 +0000 (09:51 +0100)]
pvfs: handle oplock releases in its own function pvfs_oplock_release()

metze
(This used to be commit 27ec7bfc8b7f46c97e6878caf5cd694c517ce053)

12 years agopvfs_open: call pvfs_setup_oplock() if an oplock was granted
Stefan Metzmacher [Mon, 25 Feb 2008 07:39:13 +0000 (08:39 +0100)]
pvfs_open: call pvfs_setup_oplock() if an oplock was granted

This is needed to receive oplock breaks from other "processes"

metze
(This used to be commit dd56f55afdc0d114a0b0bceb0e4feb022919323a)

12 years agopvfs: add pvfs_setup_oplock() to receive oplock breaks and pass them to the client
Stefan Metzmacher [Mon, 25 Feb 2008 07:32:35 +0000 (08:32 +0100)]
pvfs: add pvfs_setup_oplock() to receive oplock breaks and pass them to the client

metze
(This used to be commit b09a2b126723bd75afd245f549703a04e512e129)

12 years agopvfs_open: make the retry logic indepdendent from open and sharing violations
Stefan Metzmacher [Thu, 21 Feb 2008 16:48:13 +0000 (17:48 +0100)]
pvfs_open: make the retry logic indepdendent from open and sharing violations

metze
(This used to be commit 56bd63a4236ebf360d3e805c8560df86759573f7)

12 years agopvfs_open: fix odb_can_open() callers after prototype change
Stefan Metzmacher [Mon, 25 Feb 2008 16:50:22 +0000 (17:50 +0100)]
pvfs_open: fix odb_can_open() callers after prototype change

metze
(This used to be commit 904159327b3cb80fbec6aa5a4feaa141190a3f3a)

12 years agoopendb: unify the parameters of odb_open_file() and odb_can_open()
Stefan Metzmacher [Mon, 25 Feb 2008 16:48:13 +0000 (17:48 +0100)]
opendb: unify the parameters of odb_open_file() and odb_can_open()

metze
(This used to be commit e6b708a52b0eada3fd374b66292ded3b0f6ce217)

12 years agopvfs_open: pass down open_disposition and break_to_none to odb_open_file()
Stefan Metzmacher [Mon, 25 Feb 2008 15:49:40 +0000 (16:49 +0100)]
pvfs_open: pass down open_disposition and break_to_none to odb_open_file()

metze
(This used to be commit 46500983fe2f63540a67e2e963ab264fa8a090d0)

12 years agoopendb: pass down open_disposition and break_to_none to odb_open_file()
Stefan Metzmacher [Mon, 25 Feb 2008 15:47:48 +0000 (16:47 +0100)]
opendb: pass down open_disposition and break_to_none to odb_open_file()

metze
(This used to be commit aaaa26ae5e810495f313dfada771a8de86cedbd4)

12 years agopvfs_setfileinfo_rename: map DELETE_PENDING to ACCESS_DENIED
Stefan Metzmacher [Tue, 26 Feb 2008 08:14:54 +0000 (09:14 +0100)]
pvfs_setfileinfo_rename: map DELETE_PENDING to ACCESS_DENIED

This is needed as odb_can_open/pvfs_can_delete changed the return value.

metze
(This used to be commit 1ba0b9a8f1f84c7c949b3d184843462b87446707)

12 years agoopendb_tdb: only file->delete_on_close == true should give DELETE_PENDING
Stefan Metzmacher [Mon, 25 Feb 2008 19:20:35 +0000 (20:20 +0100)]
opendb_tdb: only file->delete_on_close == true should give DELETE_PENDING

metze
(This used to be commit 5b12157e0f0f1cf6ea90503a72b56ab2032cb6e5)

12 years agoopendb_tdb: move sharemode, oplock logic into odb_tdb_open_can_internal()
Stefan Metzmacher [Mon, 25 Feb 2008 15:26:04 +0000 (16:26 +0100)]
opendb_tdb: move sharemode, oplock logic into odb_tdb_open_can_internal()

metze
(This used to be commit 65cfe71b2617598f8e38d04537cfc9ce44a36680)

12 years agoopendb_tdb: add force break to none logic
Stefan Metzmacher [Mon, 25 Feb 2008 15:14:23 +0000 (16:14 +0100)]
opendb_tdb: add force break to none logic

metze
(This used to be commit fbfe953ba347a902297bd8eae900ca70efd2db01)

12 years agoopendb_tdb: attribute only opens doesn't conflict with BATCH oplocks
Stefan Metzmacher [Fri, 22 Feb 2008 16:26:40 +0000 (17:26 +0100)]
opendb_tdb: attribute only opens doesn't conflict with BATCH oplocks

metze
(This used to be commit 7872b05abe7532676c4cc25620b96ea5d59117d2)

12 years agoopendb_tdb: grant level2 oplocks
Stefan Metzmacher [Fri, 22 Feb 2008 16:26:40 +0000 (17:26 +0100)]
opendb_tdb: grant level2 oplocks

metze
(This used to be commit 57f1b9d11cfcac3b5fdee1ad9e4ba81d0859c8dc)

12 years agoopendb: add odb_break_oplocks() function
Stefan Metzmacher [Fri, 22 Feb 2008 15:30:13 +0000 (16:30 +0100)]
opendb: add odb_break_oplocks() function

This send breaks to none to all level2 holders

metze
(This used to be commit bd3654500b14e4ed8d4a8bb25ff9da5035a16a8b)

12 years agoRemove more cruft about smbscript.
Andrew Bartlett [Tue, 26 Feb 2008 05:24:09 +0000 (16:24 +1100)]
Remove more cruft about smbscript.

Andrew Bartlett
(This used to be commit f68fc4582d446bbf48ebafcbd4a0e1862b1e9aae)

12 years agoMerge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local
Andrew Bartlett [Tue, 26 Feb 2008 05:19:57 +0000 (16:19 +1100)]
Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local
(This used to be commit 35f7f488d84e3ec3224f3b40ff5881e91c11764d)

12 years agoMake use of smbpython clear.
Andrew Bartlett [Tue, 26 Feb 2008 05:19:42 +0000 (16:19 +1100)]
Make use of smbpython clear.

Andrew Bartlett
(This used to be commit 98461d6053b9ad98a372ec59ded2c7eaade99640)