samba.git
16 years agotorture/rpc-winreg: General fixes for a number of tests.
Andrew Kroeger [Tue, 19 Feb 2008 15:03:32 +0000 (09:03 -0600)]
torture/rpc-winreg: General fixes for a number of tests.

Cleaned up issues with tests being run without the correct state being setup.
Also corrected an issue with a test expecting the wrong return value to indicate
a successful test run.
(This used to be commit d015e595ca82f8fd3941753c00a2f3d816300be9)

16 years agoregistry: Add an explicit test for recursive deletion.
Andrew Kroeger [Sat, 16 Feb 2008 21:21:26 +0000 (15:21 -0600)]
registry: Add an explicit test for recursive deletion.
(This used to be commit 5e905804993df4c2ac28090d056e6db6bb63ac44)

16 years agoregistry: Implement recursive deletes for regf-backed registry.
Andrew Kroeger [Sat, 16 Feb 2008 21:19:00 +0000 (15:19 -0600)]
registry: Implement recursive deletes for regf-backed registry.

When deleting a registry key that contains subkeys or values, Windows performs a
recursive deletion that removes any subkeys or values.  This update makes
deletes for an regf-backed registry consistent with Windows.

The regf-backed registry does not have transactional integrity when performing
multiple operations.  Therefore, if an error occurs during the recursive
deletion, the regf-backed registry may be left in an inconsistent state.
(This used to be commit b0321bad290d1a9399b4aba140a622e3af6d7575)

16 years agoregistry: Implement recursive deletes for dir-backed registry.
Andrew Kroeger [Sat, 16 Feb 2008 21:15:50 +0000 (15:15 -0600)]
registry: Implement recursive deletes for dir-backed registry.

When deleting a registry key that contains subkeys or values, Windows performs a
recursive deletion that removes any subkeys or values.  This update makes
deletes for an dir-backed registry consistent with Windows.

The dir-backed registry relies on the underlying filesystem, which does not
generally have transactional integrity when performing multiple operations.
Therefore, if an error occurs during the recursive deletion, the dir-backed
registry may be left in an inconsistent state.
(This used to be commit 6b5fbf7e4e38342bcd80e63f46cd295f89ab1ee9)

16 years agoregistry: Implement recursive deletes for ldb-backed registry.
Andrew Kroeger [Sat, 16 Feb 2008 21:08:28 +0000 (15:08 -0600)]
registry: Implement recursive deletes for ldb-backed registry.

When deleting a registry key that contains subkeys or values, Windows performs a
recursive deletion that removes any subkeys or values.  This update makes
deletes for an ldb-backed registry consistent with Windows.

Under ldb, the deletion is done using an explicit transaction.  If an error
occurs during the deletion the entire transaction is cancelled, leaving the
registry as it was before the deletions started.
(This used to be commit ca796c8fb10598674a5eef31d15863e79bcf3db8)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 years agohowto: We need bin/smbpython to run python provisioning
Kai Blin [Tue, 26 Feb 2008 05:17:04 +0000 (06:17 +0100)]
howto: We need bin/smbpython to run python provisioning
(This used to be commit bb1107118951aa37c69b053f5cae624706966f1e)

16 years agoUpdate homepages for talloc, tdb and ldb subprojects
Simo Sorce [Mon, 25 Feb 2008 19:03:07 +0000 (14:03 -0500)]
Update homepages for talloc, tdb and ldb subprojects
(This used to be commit 8cb07814bc6627fc8eba228eafd13336e3ca3758)

16 years agoopendb: add odb_update_oplock() call
Stefan Metzmacher [Thu, 21 Feb 2008 15:12:27 +0000 (16:12 +0100)]
opendb: add odb_update_oplock() call

metze
(This used to be commit df576d69c6981a4879a0e9447069fcfacb3588db)

16 years agoopendb: send also the oplock break level on MSG_NTVFS_OPLOCK_BREAK
Stefan Metzmacher [Thu, 21 Feb 2008 11:20:31 +0000 (12:20 +0100)]
opendb: send also the oplock break level on MSG_NTVFS_OPLOCK_BREAK

metze
(This used to be commit 49402007f6e9e02a29792344c088e40d1a9b7acf)

16 years agoopendb: add odb_get_key() function to get the key back from a struct odb_lock
Stefan Metzmacher [Fri, 22 Feb 2008 09:18:13 +0000 (10:18 +0100)]
opendb: add odb_get_key() function to get the key back from a struct odb_lock

metze
(This used to be commit 11f35a2a4d383b506ced35ba06120f9531bac70c)

16 years agopvfs_unlink: move stream logic into pvfs_unlink_one()
Stefan Metzmacher [Fri, 22 Feb 2008 08:41:41 +0000 (09:41 +0100)]
pvfs_unlink: move stream logic into pvfs_unlink_one()

metze
(This used to be commit 438032e12f3040fbb58488ca537e4d8da39b6124)

16 years agopvfs_unlink: splitup the logic into generic and file specific functions
Stefan Metzmacher [Fri, 22 Feb 2008 08:37:22 +0000 (09:37 +0100)]
pvfs_unlink: splitup the logic into generic and file specific functions

metze
(This used to be commit 7572afdc2635bdf9afbe1eda3c7498d0b5201db3)

16 years agopvfs_unlink: add a fast path for the non wildcard case
Stefan Metzmacher [Fri, 22 Feb 2008 08:30:51 +0000 (09:30 +0100)]
pvfs_unlink: add a fast path for the non wildcard case

metze
(This used to be commit 83e6c99f78990b6b1df520bdee14b9f931ad0420)

16 years agopvfs_unlink: move !name->stream_exists into the caller
Stefan Metzmacher [Fri, 22 Feb 2008 08:28:51 +0000 (09:28 +0100)]
pvfs_unlink: move !name->stream_exists into the caller

metze
(This used to be commit e01554e1617dc3c08a4ed6b4e016fd627f529ef9)

16 years agopvfs_unlink: pass down union smb_unlink completely to sub functions
Stefan Metzmacher [Fri, 22 Feb 2008 08:23:53 +0000 (09:23 +0100)]
pvfs_unlink: pass down union smb_unlink completely to sub functions

metze
(This used to be commit 8301189e94be850494482e8c064b2400a5d11157)

16 years agopvfs_unlink: pass down a struct pvfs_filename to pvfs_unlink_one()
Stefan Metzmacher [Thu, 21 Feb 2008 19:12:46 +0000 (20:12 +0100)]
pvfs_unlink: pass down a struct pvfs_filename to pvfs_unlink_one()

metze
(This used to be commit 43ec7fa2d898ce306557ea9092b6412bcc2f97ec)

16 years agopvfs_open: unify talloc behavior in pvfs_can_delete/rename/stat()
Stefan Metzmacher [Thu, 21 Feb 2008 18:56:36 +0000 (19:56 +0100)]
pvfs_open: unify talloc behavior in pvfs_can_delete/rename/stat()

And also handle NULL for lckp in the error path
without crashing.

metze
(This used to be commit 04eb1be0c67317067ee0ca70c731fef958cd513c)

16 years agopvfs: handle SHARING_VIOLATION and OPLOCK_NOT_GRANTED in pvfs_can_delete/rename()
Stefan Metzmacher [Thu, 21 Feb 2008 19:01:25 +0000 (20:01 +0100)]
pvfs: handle SHARING_VIOLATION and OPLOCK_NOT_GRANTED in pvfs_can_delete/rename()

If the caller asks for the odb_lock return it
also if we return NT_STATUS_SHARING_VIOLATION
or NT_STATUS_OPLOCK_NOT_GRANTED so that the caller
can add the pending notification.

metze
(This used to be commit daab9cb11eb540fae7ec3c024a586f5fd02cfc71)

16 years agopvfs: pass NULL to pvfs_can_*() when no odb_lock is needed by the caller
Stefan Metzmacher [Thu, 21 Feb 2008 18:59:13 +0000 (19:59 +0100)]
pvfs: pass NULL to pvfs_can_*() when no odb_lock is needed by the caller

metze
(This used to be commit e585e2306334bd919f567f53d8d08903dfdfb102)

16 years agopvfs_wait: use struct pvfs_wait * instead of void *
Stefan Metzmacher [Thu, 21 Feb 2008 08:02:17 +0000 (09:02 +0100)]
pvfs_wait: use struct pvfs_wait * instead of void *

metze
(This used to be commit 3b70331536d2402814db13a9f1f226a39373313a)

16 years agopvfs_wait: 'private' -> 'private_data' and use talloc_get_type()
Stefan Metzmacher [Thu, 21 Feb 2008 07:59:21 +0000 (08:59 +0100)]
pvfs_wait: 'private' -> 'private_data' and use talloc_get_type()

metze
(This used to be commit 16a7d0cc37614fc41245fdcdf3b5a4a4a421f31d)

16 years agoRAW-OPLOCK: remove unused var
Stefan Metzmacher [Sat, 23 Feb 2008 10:51:43 +0000 (11:51 +0100)]
RAW-OPLOCK: remove unused var
(This used to be commit 6820da44828172769d9fdfa161acf762e3937a88)

16 years agoRAW-OPLOCK: fix typo (send oplock releases on the correct connection)
Stefan Metzmacher [Sat, 23 Feb 2008 10:51:23 +0000 (11:51 +0100)]
RAW-OPLOCK: fix typo (send oplock releases on the correct connection)

metze
(This used to be commit f6ecf59c7555917374fc9e5430034815fd4cd245)

16 years agoselftest: we pass the BASE-DEFER_OPEN test
Stefan Metzmacher [Mon, 25 Feb 2008 06:42:38 +0000 (07:42 +0100)]
selftest: we pass the BASE-DEFER_OPEN test

We just need to pass the same sharedelay time
to smbtorture as we use for smbd.

metze
(This used to be commit 3b78dc7ab2f8e3faffa2eb3ae2462c133e368be3)

16 years agoBASE-DEFER_OPEN: add torture:sharedelays option to run this test faster
Stefan Metzmacher [Sat, 23 Feb 2008 23:13:36 +0000 (00:13 +0100)]
BASE-DEFER_OPEN: add torture:sharedelays option to run this test faster

metze
(This used to be commit 877cc375d0523cb31324a5d611e73d666e7a9a78)

16 years agoRespect the return value of asprintf
Volker Lendecke [Sat, 23 Feb 2008 09:26:52 +0000 (10:26 +0100)]
Respect the return value of asprintf

This removes tons of warnings

warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result

for me. Lots of that kind left though :-)
(This used to be commit ba29219ea243cc217ab3522b036a82ff8dfeedc8)

16 years agolibreplace: don't use socketwrapper for getifaddrs() implementations.
Michael Adam [Fri, 22 Feb 2008 12:53:05 +0000 (13:53 +0100)]
libreplace: don't use socketwrapper for getifaddrs() implementations.

Michael
(cherry picked from commit 85eec1d1d6b674294c50eb912fbe7d5a1dd42909)
(This used to be commit a83db886e50b6ceeb71d93bf86fb5e0964b8d45f)

16 years agoHappy New Year 2008! :-)
Stefan Metzmacher [Fri, 22 Feb 2008 13:08:13 +0000 (14:08 +0100)]
Happy New Year 2008! :-)

metze
(This used to be commit a601ecff4e8cbf71de9f140ee2faa0b75d695559)

16 years agolibreplace: Fix comment originating from old samba source.
Michael Adam [Fri, 22 Feb 2008 09:42:22 +0000 (10:42 +0100)]
libreplace: Fix comment originating from old samba source.

Michael
(This used to be commit 0440bcfe6359ca4842f473b1ca799cad9f1c6c96)

16 years agolibreplace: fix creation of conftest files for getifaddrs tests.
Michael Adam [Thu, 21 Feb 2008 23:34:41 +0000 (00:34 +0100)]
libreplace: fix creation of conftest files for getifaddrs tests.

Add missing includes of replace.c and defines of SOCKET_WRAPPER_NOT_REPLACE.

Michael
(cherry picked from commit 26e6ebc7090b5742deb67805d85d809cafb4543d)
(This used to be commit e00c6513e05afe91d4c419287283b34e931a161c)

16 years agoFix linked list of ifaddrs in implementations of rep_getifaddrs.
Michael Adam [Thu, 21 Feb 2008 23:27:00 +0000 (00:27 +0100)]
Fix linked list of ifaddrs in implementations of rep_getifaddrs.

Produce proper list instead of one-node-loop.

Michael
(cherry picked from commit ec9f4f5066ba7a8bf3af931fd4969590140c0b2b)
(This used to be commit 744d5ba7adab65a9774a18eb42b7090f49e423f2)

16 years agoAdd missing initalizations of lastif in rep_getifaddr implementations.
Michael Adam [Thu, 21 Feb 2008 23:24:11 +0000 (00:24 +0100)]
Add missing initalizations of lastif in rep_getifaddr implementations.

Michael
(cherry picked from commit 65710e752f72070cb911867ff9f31f91904ca5c0)
(This used to be commit 5bd613a2cda5d287706f2ce72f4ee08a7fa45b72)

16 years agolibreplace: fix compile errors in getifaddrs.c
Michael Adam [Thu, 21 Feb 2008 17:16:10 +0000 (18:16 +0100)]
libreplace: fix compile errors in getifaddrs.c

Michael
(cherry picked from commit 22cdd4cb507022d9c670b7d5cbc8d357b0b91637)
(This used to be commit 4da2d999a28c8fd3e93480194a153cf6a10de986)

16 years agoTry and fix getifaddrs check on irix: dont't try to include config.h
Michael Adam [Thu, 21 Feb 2008 16:56:33 +0000 (17:56 +0100)]
Try and fix getifaddrs check on irix: dont't try to include config.h

The missing header file is judged "catastrophic" on irix.

Michael
(cherry picked from commit 5778c90819a5a5cee38be690f442c571f3a6a051)
(This used to be commit 0d4522a06d4465f6eadbdf14381c9e08cf7e1dc9)

16 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial
Jelmer Vernooij [Thu, 21 Feb 2008 15:11:13 +0000 (16:11 +0100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial
(This used to be commit 52a8d06f00ab3900e2186e047902dbcbe3138a01)

16 years agoRemove extra whitespace, use public variable in IDL.
Jelmer Vernooij [Thu, 21 Feb 2008 15:10:07 +0000 (16:10 +0100)]
Remove extra whitespace, use public variable in IDL.
(This used to be commit bf08b682586f6b9a17d4ec3934836be957ef955c)

16 years agoRemove more uses of global_loadparm.
Jelmer Vernooij [Thu, 21 Feb 2008 15:01:19 +0000 (16:01 +0100)]
Remove more uses of global_loadparm.
(This used to be commit 3430cc60972b94d0d238bc39f473feed96949c5d)

16 years agoselftest: fix --socket-wrapper-pcap
Stefan Metzmacher [Thu, 21 Feb 2008 14:54:31 +0000 (15:54 +0100)]
selftest: fix --socket-wrapper-pcap

metze
(This used to be commit f5ff4a571cdf7d00d065f4a4996880020f1f459f)

16 years agoldb_sqlite: fix the build
Stefan Metzmacher [Thu, 21 Feb 2008 14:51:40 +0000 (15:51 +0100)]
ldb_sqlite: fix the build

metze
(This used to be commit 14c8e3101cc3b0138a551afdf3a94f4bb11bb21d)

16 years agoRemove more uses of global_loadparm.
Jelmer Vernooij [Thu, 21 Feb 2008 14:45:32 +0000 (15:45 +0100)]
Remove more uses of global_loadparm.
(This used to be commit a1715b1f48ba44bd94844418cc9299649aaf1a5e)

16 years agoRemove more uses of global_loadparm.
Jelmer Vernooij [Thu, 21 Feb 2008 14:38:35 +0000 (15:38 +0100)]
Remove more uses of global_loadparm.
(This used to be commit 58a5b1de2b093fe642eb11d76d12db0edf60c25c)

16 years agoRemove more uses of global_loadparm.
Jelmer Vernooij [Thu, 21 Feb 2008 14:21:45 +0000 (15:21 +0100)]
Remove more uses of global_loadparm.
(This used to be commit 230355d2e6e27918dff40823eb238904c7a1870e)

16 years agoRemove more uses of global_loadparm.
Jelmer Vernooij [Thu, 21 Feb 2008 13:50:57 +0000 (14:50 +0100)]
Remove more uses of global_loadparm.
(This used to be commit 47d05ecf6fef66c90994f666b8c63e2e7b5a6cd8)

16 years agoAvoid use of global_loadparm.
Jelmer Vernooij [Thu, 21 Feb 2008 13:16:02 +0000 (14:16 +0100)]
Avoid use of global_loadparm.
(This used to be commit c5a95bbe0ce55c29e135a9c6058bf192ec3bb546)

16 years agosrvsvc.idl: don't use STR_LEN4 anymore
Stefan Metzmacher [Tue, 19 Feb 2008 15:40:48 +0000 (16:40 +0100)]
srvsvc.idl: don't use STR_LEN4 anymore

metze
(This used to be commit 8c7509bd684ccdabcdb9ad9f75f3dd693ee9c416)

16 years agosamr.idl: windows uses lsa_AsciiStringLarge in QueryDisplayInfo
Stefan Metzmacher [Fri, 15 Feb 2008 13:56:35 +0000 (14:56 +0100)]
samr.idl: windows uses lsa_AsciiStringLarge in QueryDisplayInfo

Tested with nt4 and w2k3.

metze
(This used to be commit 24ec069751ef8db1211c50e7ca1e527adaa6432c)

16 years agoidmap: Handle SID->gid
Kai Blin [Mon, 18 Feb 2008 22:47:30 +0000 (23:47 +0100)]
idmap: Handle SID->gid
(This used to be commit 78d22a28eca4dd89f629dbe75287e9ac3940606b)

16 years agoidmap: Handle SID->uid
Kai Blin [Mon, 18 Feb 2008 17:53:12 +0000 (18:53 +0100)]
idmap: Handle SID->uid
(This used to be commit 4037ca6b9cf14219b4a4475399a51db01c655da6)

16 years agoidmap: Handle gid->SID mapping
Kai Blin [Mon, 18 Feb 2008 13:30:17 +0000 (14:30 +0100)]
idmap: Handle gid->SID mapping
(This used to be commit 6f2d95030cd7b4b22d1b75d15b76881449eda697)

16 years agoidmap: Handle uid->SID mapping
Kai Blin [Mon, 18 Feb 2008 13:33:58 +0000 (14:33 +0100)]
idmap: Handle uid->SID mapping
(This used to be commit 6ac6de8476ba036eb041e054bc37e4503dc2fde8)

16 years agoloadparm: Add configuration settings for idmap.
Kai Blin [Sun, 17 Feb 2008 19:25:13 +0000 (20:25 +0100)]
loadparm: Add configuration settings for idmap.

Default behaviour for "idmap trusted only" is "False", meaning idmap creates
ID mappings for all SIDs.

If set to "True", idmap will create SID mappings for trusted users only.

"idmap database" allows to set the database idmap uses, defaulting to
idmap,ldb
(This used to be commit ed8178b110abcde95e5b18cfb22957c53fd3febd)

16 years agoMake setup/provision the name of the python provision script now that that is the...
Jelmer Vernooij [Thu, 21 Feb 2008 00:22:20 +0000 (01:22 +0100)]
Make setup/provision the name of the python provision script now that that is the default.
(This used to be commit a0a05c5a3d614d0f2936ecfcab5273a2ef7d61a8)

16 years agoRemove kinit with pkinit failure from known failures list again.
Jelmer Vernooij [Thu, 21 Feb 2008 00:20:12 +0000 (01:20 +0100)]
Remove kinit with pkinit failure from known failures list again.
(This used to be commit 157deac27d01dc61952601ffd2655c8161418ac7)

16 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial
Jelmer Vernooij [Thu, 21 Feb 2008 00:07:06 +0000 (01:07 +0100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial
(This used to be commit 1bb673ce4e84088bc77d490101e8904cf9a467a2)

16 years agoNever assume -fvisibility=hidden for modules unless explicitly specified (consistent...
Jelmer Vernooij [Thu, 21 Feb 2008 00:04:18 +0000 (01:04 +0100)]
Never assume -fvisibility=hidden for modules unless explicitly specified (consistent with what we do for other subsystems/libraries).
(This used to be commit e8751e513d5f9b30e518104bbc23bcbd203818a6)

16 years agoBe consistant about --ldap-backend-type
Andrew Bartlett [Wed, 20 Feb 2008 23:43:13 +0000 (10:43 +1100)]
Be consistant about --ldap-backend-type

Make the EJS provision and the selftest scripts both use the new
syntax for speicifying the ldap backend type.

Andrew Bartlett
(This used to be commit b1d2584277304be3f2a640465cbf6b2a3ec571cc)

16 years agoMerge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local
Andrew Bartlett [Wed, 20 Feb 2008 22:55:13 +0000 (09:55 +1100)]
Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local
(This used to be commit 5cd3310b78a85243eb436d05db3228c3495f9162)

16 years agoUntil the new ldb changes land, make ldb_wait set the error string.
Andrew Bartlett [Wed, 20 Feb 2008 22:53:11 +0000 (09:53 +1100)]
Until the new ldb changes land, make ldb_wait set the error string.

This makes it easier to track down which module only returned and
error code, but not the error string.

Andrew Bartlett
(This used to be commit c4d502f68fbd5d5bc2ac5bb6369950379c9176fc)

16 years agoSupport dlopen(NULL, ...) on HPUX.
Jelmer Vernooij [Wed, 20 Feb 2008 19:05:51 +0000 (20:05 +0100)]
Support dlopen(NULL, ...) on HPUX.
(This used to be commit 53c70b5f77a3b9abaab783590e66278129173d5f)

16 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial
Jelmer Vernooij [Wed, 20 Feb 2008 18:41:52 +0000 (19:41 +0100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial
(This used to be commit 54ebd4e353038e86470ad036aa038e18a4296b4b)

16 years agoMake more module init functions public, since they are compiled with -fvisibility...
Jelmer Vernooij [Wed, 20 Feb 2008 18:40:20 +0000 (19:40 +0100)]
Make more module init functions public, since they are compiled with -fvisibility=hidden. Not doing this causes failures on Mac OS X.
(This used to be commit da1a9438bd89569077ef1eaa9dc977b5f9d62836)

16 years agoMake all auth module init functions public, since they are compiled with -fvisibility...
Jelmer Vernooij [Wed, 20 Feb 2008 18:34:45 +0000 (19:34 +0100)]
Make all auth module init functions public, since they are compiled with -fvisibility=hidden. Not doing this causes failures on Mac OS X.
(This used to be commit 675bab738085cb5a9f17c1f159fbd97c4daafed2)

16 years agolibreplace: change samba_cv_ to libreplace_cv_ in libreplace.m4.
Michael Adam [Wed, 20 Feb 2008 11:53:07 +0000 (12:53 +0100)]
libreplace: change samba_cv_ to libreplace_cv_ in libreplace.m4.

Michael
(This used to be commit 83387ecccfe95b80525bf53c5fc9e945ffee10ec)

16 years agolibreplace: change samba_cv_ to libreplace_cv_ in system/config.m4.
Michael Adam [Wed, 20 Feb 2008 11:49:30 +0000 (12:49 +0100)]
libreplace: change samba_cv_ to libreplace_cv_ in system/config.m4.

Michael
(This used to be commit 00c173bfba9c659750bf231fbd9278dd38aa8bfc)