samba.git
16 years agontlm_auth: Prepare for a deeper rewrite of the helper functions
Kai Blin [Wed, 16 Jan 2008 13:45:22 +0000 (14:45 +0100)]
ntlm_auth: Prepare for a deeper rewrite of the helper functions
(This used to be commit f8243d1913cd19401ce6a13f53c6b84a36fc9dd6)

16 years agontlm_auth: Dynamically allocate the read buffer.
Kai Blin [Wed, 16 Jan 2008 08:52:26 +0000 (09:52 +0100)]
ntlm_auth: Dynamically allocate the read buffer.

This ports over my changes from Samba4
(This used to be commit 4a475baf26ba9f99bc05f13dd2745494174a00c1)

16 years agoLink ndr_xattr.o with LIBNDR_GEN_OBJ
Volker Lendecke [Sat, 19 Jan 2008 11:54:46 +0000 (12:54 +0100)]
Link ndr_xattr.o with LIBNDR_GEN_OBJ

It will be used elsewhere (net xattr for example)
(This used to be commit 924c4ede2acbd4e1d327ccdefc92bbbb3d67d7d8)

16 years agoActually test vl's new code and make it work to fix the build farm :-).
Jeremy Allison [Sat, 19 Jan 2008 02:39:27 +0000 (18:39 -0800)]
Actually test vl's new code and make it work to fix the build farm :-).
Jeremy.
(This used to be commit 63defd3e9d4ba3f02f36ec5ad7b73463f31962a1)

16 years agoAlways return nlink=1 for directories
Volker Lendecke [Thu, 17 Jan 2008 16:48:33 +0000 (17:48 +0100)]
Always return nlink=1 for directories

I did not test it, but it should not affect cifsfs, there are special posix
calls that also return the stat information unfiltered.
(This used to be commit e96cf1309e45628f4c27d03f77a4eef5e00602df)

16 years agoutil_str: Don't return memory from talloc_tos(), use mem_ctx instead.
Kai Blin [Sat, 19 Jan 2008 01:12:35 +0000 (02:12 +0100)]
util_str: Don't return memory from talloc_tos(), use mem_ctx instead.
(This used to be commit ab0ee6e9a6a9eee317228f0c2bde254ad9a59b85)

16 years agoFix error message for new allinfo command.
Jeremy Allison [Fri, 18 Jan 2008 21:47:10 +0000 (13:47 -0800)]
Fix error message for new allinfo command.
Jeremy.
(This used to be commit 3a1bcbfa7ca2b55265eb486e2b7c740e04775698)

16 years agoFix typo that disabled setting group id. Thanks, Henrik.
Derrell Lipman [Fri, 18 Jan 2008 19:22:49 +0000 (14:22 -0500)]
Fix typo that disabled setting group id.  Thanks, Henrik.
(This used to be commit 843e1694cfe4a999ed14a9c215b8e77723d0fe79)

16 years agoRevert "Host SerNet-AIX has __ss_family instead of ss_family in sockaddr_storage"
Stefan Metzmacher [Tue, 15 Jan 2008 15:34:06 +0000 (16:34 +0100)]
Revert "Host SerNet-AIX has __ss_family instead of ss_family in sockaddr_storage"

This reverts commit e33286f4a68352e55df081d06307f64f190773b3.

393bab185e0e9f02aac5740becc2aba2762133c8 is the v4-0-test fix
for the same problem.

metze
(This used to be commit b8a57a24c390355c4950ca499c1d96aff80abad7)

16 years agolibreplace: Escape asterisk.
Jelmer Vernooij [Mon, 14 Jan 2008 21:24:07 +0000 (22:24 +0100)]
libreplace: Escape asterisk.
(cherry picked from commit df36c78549b40ee5e47d5cc79de2eb79f58c567a)
(This used to be commit 174a45ec18fff064d89f6a12b044973ab3c10c54)

16 years agoTry to fix the build on Tru64; avoid single quotes because they get expanded by perl...
Jelmer Vernooij [Sun, 13 Jan 2008 03:46:11 +0000 (04:46 +0100)]
Try to fix the build on Tru64; avoid single quotes because they get expanded by perl in the build system.
(cherry picked from commit bba8914af56cb161c275fbbdea2479d6f8bd703c)
(This used to be commit a0e663ff2c6548e48c9710e3fb314f3bbabb59d0)

16 years agor26550: libreplace: fallback to __ss_family of struct sockaddr_storage
Stefan Metzmacher [Thu, 20 Dec 2007 14:59:39 +0000 (15:59 +0100)]
r26550: libreplace: fallback to __ss_family of struct sockaddr_storage

metze
(cherry picked from commit 11bdc9bed80b9842ac1ab8f22509a5d191cddc91)
(This used to be commit c11122afda52ce787dd1d3357bd85b6ce36b8ca4)

16 years agor26102: libreplace: remove system/printing.h as it only contains samba3 stuff
Stefan Metzmacher [Thu, 22 Nov 2007 13:42:14 +0000 (14:42 +0100)]
r26102: libreplace: remove system/printing.h as it only contains samba3 stuff

metze
(cherry picked from commit 1ecb4ec01b0506c95a5f90a62040329e7a39ee93)
(This used to be commit ff8a001f0d3f2655efafed41f2f0b14552a5c7e7)

16 years agor25976: libreplace: not all platforms like _XOPEN_SOURCE=600
Stefan Metzmacher [Thu, 15 Nov 2007 15:40:32 +0000 (16:40 +0100)]
r25976: libreplace: not all platforms like _XOPEN_SOURCE=600

- Only use _XOPEN_SOURCE=600 on Tru64
- _OSF_SOURCE is also Tru64 specific

metze
(cherry picked from commit d19ab62081ce4ee4273ff752ad0443782a994826)
(This used to be commit dbff70b2ebe7cc09f7fbe5a0319f978dfcfa1da9)

16 years agor25974: libreplace: see what the build-farm says if we use _XOPEN_SOURCE=600
Stefan Metzmacher [Thu, 15 Nov 2007 14:43:14 +0000 (15:43 +0100)]
r25974: libreplace: see what the build-farm says if we use _XOPEN_SOURCE=600

On Tru64 this brings in socklen_t and some other socket stuff

metze
(cherry picked from commit d42f2e5759332f1f0c6c1269bd29ac62ddb11016)
(This used to be commit af3772e22f5e6e0158783086e9791ffc95ee5368)

16 years agor25971: libreplace: remove AC_EXTENSION_FLAG as it's the same as AC_N_DEFINE
Stefan Metzmacher [Thu, 15 Nov 2007 13:55:48 +0000 (14:55 +0100)]
r25971: libreplace: remove AC_EXTENSION_FLAG as it's the same as AC_N_DEFINE

metze
(cherry picked from commit 05b4619c5beff474488d1abe5e647acd94a3e20c)
(This used to be commit 58932ca791024bd9a543ff5e21bc26970ceed477)

16 years agor25970: libreplace: fix AC_N_DEFINE() so that some appears in config.h
Stefan Metzmacher [Thu, 15 Nov 2007 13:46:47 +0000 (14:46 +0100)]
r25970: libreplace: fix AC_N_DEFINE() so that some appears in config.h

metze
(cherry picked from commit a07c983fde52607806745914bb41039afb5618cc)
(This used to be commit 3db37038b3e5a59a9baa85f6bcd32ac6e5ec2da1)

16 years agoUse C99 structure initializers for netlogon_params_reg_ops.
Michael Adam [Fri, 18 Jan 2008 11:07:02 +0000 (12:07 +0100)]
Use C99 structure initializers for netlogon_params_reg_ops.

Michael
(This used to be commit f3901f179b770ffadb3e5a82ac5a2da00d83f40a)

16 years agoAdd the "allinfo" command to smbclient
Volker Lendecke [Fri, 18 Jan 2008 10:08:17 +0000 (11:08 +0100)]
Add the "allinfo" command to smbclient

Modeled after the Samba4 allinfo command
(This used to be commit 3fa0cf3fe5f819f6e76df6f7cef3bb4e1c307a52)

16 years agoAdd a registry backend netlogon_params that replaces the former dynamic overlay.
Michael Adam [Fri, 18 Jan 2008 08:40:42 +0000 (09:40 +0100)]
Add a registry backend netlogon_params that replaces the former dynamic overlay.

This is the first step in replacing the dynamic overlays by proper
backends implementing REGISTRY_OPS.

Michael
(This used to be commit e8a0524961d81fa83e0316905dc9d215e4aa7656)

16 years agoFix typo in debug message.
Michael Adam [Fri, 18 Jan 2008 07:15:27 +0000 (08:15 +0100)]
Fix typo in  debug message.

Michael
(This used to be commit d7a8d7ffbd724a59aa3fc4bdeca6be5d5a0e7258)

16 years agoFix the build w/o ADS.
Günther Deschner [Fri, 18 Jan 2008 07:48:44 +0000 (08:48 +0100)]
Fix the build w/o ADS.

Guenther
(This used to be commit 645f2376d40fabdc787902ac7506ad7234616619)

16 years agoAdd header for NetGetJoinableOUs to libnetapi.
Günther Deschner [Fri, 18 Jan 2008 02:14:08 +0000 (03:14 +0100)]
Add header for NetGetJoinableOUs to libnetapi.

Guenther
(This used to be commit f297ea259d58f7a12924b7111ab79818188cff46)

16 years agomerged changes from v4-0-test
Andrew Tridgell [Fri, 18 Jan 2008 04:46:15 +0000 (15:46 +1100)]
merged changes from v4-0-test
(This used to be commit 8c89d60924b0380231da834cd3c097b4f8cdc369)

16 years agoAdd NetGetJoinableOUs() to libnetapi (incl. example).
Günther Deschner [Fri, 18 Jan 2008 01:50:33 +0000 (02:50 +0100)]
Add NetGetJoinableOUs() to libnetapi (incl. example).

Guenther
(This used to be commit 8858e403e1940c362d307b4d4125f977abb0b96a)

16 years agoCosmetics and error string reporting for libnetapi.
Günther Deschner [Fri, 18 Jan 2008 01:38:35 +0000 (02:38 +0100)]
Cosmetics and error string reporting for libnetapi.

Guenther
(This used to be commit 4ca33928512bd71268bafd41d2b608e814a7295f)

16 years agoAdd some more debugging into netdomjoin-gui.
Günther Deschner [Fri, 18 Jan 2008 01:30:53 +0000 (02:30 +0100)]
Add some more debugging into netdomjoin-gui.

Guenther
(This used to be commit d4c5b323229c6f43c824e3559084c98e370730a5)

16 years agoFix local hostname detection in netdomjoin-gui.
Günther Deschner [Fri, 18 Jan 2008 01:30:09 +0000 (02:30 +0100)]
Fix local hostname detection in netdomjoin-gui.

Guenther
(This used to be commit 30458116b389889cad845eb96b54c3edc833e722)

16 years agoImprove libnetapi_set_error_string().
Günther Deschner [Fri, 18 Jan 2008 00:56:01 +0000 (01:56 +0100)]
Improve libnetapi_set_error_string().

Guenther
(This used to be commit 96f645553ae5c75aabfe588e1a67f3d4bfacb5cb)

16 years agoAdd and correct some WERROR codes.
Michael Adam [Fri, 18 Jan 2008 00:04:40 +0000 (01:04 +0100)]
Add and correct some WERROR codes.

Michael
(This used to be commit 7aec862ddc2aa2b5152c3a452971e55ba43646a5)

16 years agoMerge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test
Derrell Lipman [Thu, 17 Jan 2008 16:50:41 +0000 (11:50 -0500)]
Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test
(This used to be commit 7135d2aea5a68a79e2a77d4a02219436f5e154cc)

16 years agostop bothering me about example programs not checked in
Derrell Lipman [Thu, 17 Jan 2008 16:50:22 +0000 (11:50 -0500)]
stop bothering me about example programs not checked in
(This used to be commit 41ad5c7700c5ef3839c0629ee5eb42ec0fe61da6)

16 years agoFix bug 5185: repeated calls to smbc_getxattr() lose sid-name mapping
Derrell Lipman [Thu, 17 Jan 2008 16:49:17 +0000 (11:49 -0500)]
Fix bug 5185: repeated calls to smbc_getxattr() lose sid-name mapping

If we're going to cache connections to IPC$, we'd better also cache the policy
handle and not use a stack-based handle that's invalid on subsequent calls.

Derrell
(This used to be commit 67c415661f6466c21cd0eaafabe58cba049d2af3)

16 years agoAdd a program to test repeated calls to smbc_getxattr().
Derrell Lipman [Thu, 17 Jan 2008 16:46:41 +0000 (11:46 -0500)]
Add a program to test repeated calls to smbc_getxattr().
(This used to be commit f5f46de404dba2e4a03d205a62cd5cf7ea4e075a)

16 years agoFix two uninitialized variables in vfs_hpuxacl.c
Volker Lendecke [Thu, 17 Jan 2008 16:17:52 +0000 (17:17 +0100)]
Fix two uninitialized variables in vfs_hpuxacl.c

Thanks to David Leonard <David.Leonard@quest.com>, this fixes bug 5208.

Volker
(This used to be commit a3b36c3cb0fe5f3e78c200290afa59829934f496)

16 years agoUse new pidl-generated netlogon client calls in NetApi GetDcName().
Günther Deschner [Thu, 17 Jan 2008 09:39:15 +0000 (10:39 +0100)]
Use new pidl-generated netlogon client calls in NetApi GetDcName().

Guenther
(This used to be commit 733e07a06ce3c903ff5837df6a5119f6d6e3eccb)

16 years agoInclude auto-generated client headers for netlogon/samr.
Günther Deschner [Thu, 17 Jan 2008 09:35:55 +0000 (10:35 +0100)]
Include auto-generated client headers for netlogon/samr.

Guenther
(This used to be commit ad8f6933322e7175b74cc3de525fda58ae150baa)

16 years agoFinally enable pidl generated SAMR & NETLOGON headers and clients.
Günther Deschner [Thu, 17 Jan 2008 09:24:34 +0000 (10:24 +0100)]
Finally enable pidl generated SAMR & NETLOGON headers and clients.

Guenther
(This used to be commit f7100156a7df7ac3ae84e45a47153b38d9375215)

16 years agoRe-run make idl to regnerated netlogon.
Günther Deschner [Thu, 17 Jan 2008 09:20:50 +0000 (10:20 +0100)]
Re-run make idl to regnerated netlogon.

Guenther
(This used to be commit 0230284cfa83477ad5a084a7970db1ea0cfe8563)

16 years agoAdd NETLOGON_GRACE_LOGON flag to netr_UserFlags.
Günther Deschner [Thu, 17 Jan 2008 09:19:15 +0000 (10:19 +0100)]
Add NETLOGON_GRACE_LOGON flag to netr_UserFlags.

Guenther
(This used to be commit 9097846466a8dea171f4d241661083f896591292)

16 years agoRe-run make idl to generate SAMR output.
Günther Deschner [Thu, 17 Jan 2008 09:15:30 +0000 (10:15 +0100)]
Re-run make idl to generate SAMR output.

Guenther
(This used to be commit b4c1904022cd34c239f163d49d5a13925d238cda)

16 years agoUse pidl generated data from misc.idl.
Günther Deschner [Thu, 17 Jan 2008 09:11:28 +0000 (10:11 +0100)]
Use pidl generated data from misc.idl.

Guenther
(This used to be commit 5d8e5cbc3b3ddd1c5788d66f252e4801739243bb)

16 years agoRe-run make idl to regenerate netlogon output.
Günther Deschner [Thu, 17 Jan 2008 09:00:37 +0000 (10:00 +0100)]
Re-run make idl to regenerate netlogon output.

Guenther
(This used to be commit b0e86c5b4d375f21f06208dc063adb9d2659d30b)

16 years agoRemove dependency for nbt.idl (the NBT_SERVER_* flags) in netlogon.idl.
Günther Deschner [Thu, 17 Jan 2008 08:54:35 +0000 (09:54 +0100)]
Remove dependency for nbt.idl (the NBT_SERVER_* flags) in netlogon.idl.

Guenther
(This used to be commit 37d976d90c9bd7697010309e5efbc7853aced9e5)

16 years agoRemove samba4 specifi struct server_id from misc.idl.
Günther Deschner [Thu, 17 Jan 2008 08:52:21 +0000 (09:52 +0100)]
Remove samba4 specifi struct server_id from misc.idl.

Guenther
(This used to be commit 9d76153f54aea671d5d1543eaa3e617aad1ba9e9)

16 years agoImport recent misc.idl from Samba4.
Günther Deschner [Thu, 17 Jan 2008 08:50:45 +0000 (09:50 +0100)]
Import recent misc.idl from Samba4.

Guenther
(This used to be commit 9afc7d957d1b5362e470c2e87e336fdd74b8be3c)

16 years agoAdd samba3 [out,ref] pointer massage to samr&netlogon idl.
Günther Deschner [Thu, 17 Jan 2008 08:49:10 +0000 (09:49 +0100)]
Add samba3 [out,ref] pointer massage to samr&netlogon idl.

Guenther
(This used to be commit 8a895a37a0a0d155fddf0a6a124f161e3ace5e0b)

16 years agoImport recent netlogon and samr IDL from samba4.
Günther Deschner [Thu, 17 Jan 2008 08:41:58 +0000 (09:41 +0100)]
Import recent netlogon and samr IDL from samba4.

Guenther
(This used to be commit f24dfaa8466b28416a7fdd941990948210a400c7)

16 years agoAdd a reg_getversion() function to reg_api and use it in srv_winreg_nt.c.
Michael Adam [Thu, 17 Jan 2008 10:22:01 +0000 (11:22 +0100)]
Add a reg_getversion() function to reg_api and use it in srv_winreg_nt.c.

Michael
(This used to be commit 903223b160eef6ba6ff19a8bfef19e5fe7008631)

16 years agoAdd my (C) to reg_api.c - Michael
Michael Adam [Thu, 17 Jan 2008 10:09:08 +0000 (11:09 +0100)]
Add my (C) to reg_api.c - Michael
(This used to be commit 81d6a1fbed5e685376637af8e8bcd70ab2701aa0)

16 years agoAdd a comment header comparing winreg.idl and reg_api.c.
Michael Adam [Thu, 17 Jan 2008 10:07:28 +0000 (11:07 +0100)]
Add a comment header comparing winreg.idl and reg_api.c.

Michael
(This used to be commit 15163926a8ae1116a0f0986f35fc16bcf9ce6ce2)

16 years agoUse reg_[gs]etkeysecurity() instead of regkey_[gs]et_secdes().
Michael Adam [Thu, 17 Jan 2008 10:06:32 +0000 (11:06 +0100)]
Use reg_[gs]etkeysecurity() instead of regkey_[gs]et_secdes().

Rationale: Use reg_api instead of backend functions.

Michael
(This used to be commit f986a708be15dd9b9fc28b9862f64f2d0f94accc)

16 years agoAdd reg_api functions reg_getkeysecurity() and reg_setkeysecurity().
Michael Adam [Thu, 17 Jan 2008 10:02:15 +0000 (11:02 +0100)]
Add reg_api functions reg_getkeysecurity() and reg_setkeysecurity().

These are wrappers around the lower level functions regkey_get_secdesc()
and regkey_set_secdesc(). Next step towards hiding reg_frontend from
the surface.

Michael
(This used to be commit 7251a24b489a008243091279d96157cacec35b62)

16 years agoComment out unused reg_create_path() and reg_delete_path().
Michael Adam [Thu, 17 Jan 2008 09:30:56 +0000 (10:30 +0100)]
Comment out unused reg_create_path() and reg_delete_path().

These functions are unused. Comment them out for now.

Michael
(This used to be commit 0cb8399d7c6f228b38c918f8c6c77fd31c346f89)

16 years agoMove reg_create_path() and reg_delete_path() to reg_api.c
Michael Adam [Thu, 17 Jan 2008 09:19:12 +0000 (10:19 +0100)]
Move reg_create_path() and reg_delete_path() to reg_api.c

Michael
(This used to be commit 4d82cc586c089a16d1d2db214f5e198062890b58)

16 years agoConvert sync_eventlog_params() to use reg_api instead of reg_frontend.
Michael Adam [Thu, 17 Jan 2008 00:47:00 +0000 (01:47 +0100)]
Convert sync_eventlog_params() to use reg_api instead of reg_frontend.

This is a step towards untangling the registry.
All places should use reg_api.c, reg_frontend should actually more
appropriately be named reg_backend_dispatcher and hidden from callers.

:-)

Michael
(This used to be commit 92e95fe58500dc8bf89bb43c1d65559702363767)

16 years agoAdd some sectioning comments to reg_api.c
Michael Adam [Wed, 16 Jan 2008 23:57:53 +0000 (00:57 +0100)]
Add some sectioning comments to reg_api.c

Michael
(This used to be commit d3c9c273740b42e5da101f53d4df3aee70cdacf7)

16 years agoMake utility function reg_deletekey_recursive_internal() static.
Michael Adam [Wed, 16 Jan 2008 23:16:58 +0000 (00:16 +0100)]
Make utility function reg_deletekey_recursive_internal() static.

Michael
(This used to be commit 3e661273229bcf021276cc0b71350acf8d8fed7c)

16 years agoUse the proper boolean constants in reg_frontend_hilvl.c
Michael Adam [Wed, 16 Jan 2008 22:19:38 +0000 (23:19 +0100)]
Use the proper boolean constants in reg_frontend_hilvl.c

Michael
(This used to be commit 5c0a1d5d45948fdc483d6f9de31cea39e12722c6)

16 years agoReformatting: Strip trailing white spaces from reg_frontent_hilvl.c.
Michael Adam [Wed, 16 Jan 2008 22:18:07 +0000 (23:18 +0100)]
Reformatting: Strip trailing white spaces from reg_frontent_hilvl.c.

Michael
(This used to be commit 36085d9004592e48b66b681f85346db15e6d9b3a)

16 years agoidl: Update IDL for eventlog, misc, netlogon and security from Samba 4.
Jelmer Vernooij [Thu, 17 Jan 2008 12:56:47 +0000 (13:56 +0100)]
idl: Update IDL for eventlog, misc, netlogon and security from Samba 4.
(This used to be commit 48288869d314d8c91d07282b5536b231d95db159)

16 years agoidl: Remove use of [ref], which is the default.
Jelmer Vernooij [Thu, 17 Jan 2008 12:34:18 +0000 (13:34 +0100)]
idl: Remove use of [ref], which is the default.
(This used to be commit c22d47b3d58de45c2b686badb9fe6a6cd5a6b047)

16 years agoidl: Update initshutdown and echo IDL from Samba 4.
Jelmer Vernooij [Thu, 17 Jan 2008 12:16:27 +0000 (13:16 +0100)]
idl: Update initshutdown and echo IDL from Samba 4.
(This used to be commit 35d71a40b385a62b8c85ed68e64b6d38d80aeb3c)

16 years agoidl: Update DFS IDL from Samba 4.
Jelmer Vernooij [Thu, 17 Jan 2008 12:00:12 +0000 (13:00 +0100)]
idl: Update DFS IDL from Samba 4.
(This used to be commit a6677b2e186212f723b24775293682ce5b94952e)

16 years agoMerge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test
Derrell Lipman [Thu, 17 Jan 2008 14:29:52 +0000 (09:29 -0500)]
Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test
(This used to be commit 15ef5e4884505bca7990e44200d0235764e9057f)

16 years agoFix stat results to be consistent between smbc_stat and smbc_fstat.
Derrell Lipman [Thu, 17 Jan 2008 14:29:13 +0000 (09:29 -0500)]
Fix stat results to be consistent between smbc_stat and smbc_fstat.

We create a kludged inode based on the checksum of the path.  We therefore
need to use the same (full) path when calculating it in both smbc_stat() and
smbc_fstat().

If struct stat has an rdev field, set it to zero.

Derrell
(This used to be commit b4282fbd6d27d868b2d5c04bb72d2d7421822da1)

16 years agoAdd some additional libsmbclient test programs.
Derrell Lipman [Thu, 17 Jan 2008 14:26:36 +0000 (09:26 -0500)]
Add some additional libsmbclient test programs.

testwrite: create or truncate a file and write to it.
teststat3: compare the results from smbc_stat() and smbc_fstat()

Derrell
(This used to be commit 5a4a7aec761c3388b741b9b47fa6358fc71a66ce)

16 years agoRemove is_remotestorage() call from VFS. We already have statvfs() there to handle...
Alexander Bokovoy [Thu, 17 Jan 2008 13:51:14 +0000 (16:51 +0300)]
Remove is_remotestorage() call from VFS. We already have statvfs() there to handle FS capabilities.

As discussed with Volker, it is better to calculate FS capabilities at
connection time. We already do this with help of VFS statvfs() call
which allows to fill-in system-specific attributes including FS
capabilities. So just re-use it if you want to represent additional
capabilities in your modules. The only caution is that you need to
call underlying statvfs() call to actually get system-specific
capabilities (and other fields) added. Then add module-specific ones.
(This used to be commit e342ca0d931f9a5c8ec9e472dc9c63f1fe012b3a)

16 years agoRework of VFS is_offline() function to only return boolean offline/online result...
Alexander Bokovoy [Thu, 17 Jan 2008 11:57:35 +0000 (14:57 +0300)]
Rework of VFS is_offline() function to only return boolean offline/online result for a file.

This makes sense as upper levels are only taking returned result of 0
(no error) into consideration when deciding whether to mark file
offline/online as returned from is_offline.

That means that we simply can move the decision down to VFS module and
clean up upper levels so that they always see only file status. If there
is an error when trying to identify file status, then VFS module could
decide what to return (offline or online) by itself -- after all, it
ought to have system-specific knowledge anyway.
(This used to be commit 75cc08661473cce62756fa062071bb2bc1fb39ec)

16 years agoFix more VFS API mixup with offline files
Alexander Bokovoy [Thu, 17 Jan 2008 04:34:33 +0000 (07:34 +0300)]
Fix more VFS API mixup with offline files

I'm sorry for this mess. :-(
(This used to be commit e1f5a8f10795831d3c7902d9803c9571c8ac811a)

16 years agoMerge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test
Alexander Bokovoy [Thu, 17 Jan 2008 04:26:12 +0000 (07:26 +0300)]
Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test
(This used to be commit 4256f8e093e81fbc2c1afd8f823725ae286945ce)

16 years agoFix bug found by Derrell - windows returns an read return
Jeremy Allison [Thu, 17 Jan 2008 01:33:19 +0000 (17:33 -0800)]
Fix bug found by Derrell - windows returns an read return
offset of zero if return size is zero. Should fix testread
libsmbclient code.
Jeremy.
(This used to be commit df3c4648399f8d62ff6fe0013be8b89abc18f0f0)

16 years agoFix the mess that ab just made of the new VFS code.
Jeremy Allison [Thu, 17 Jan 2008 01:22:31 +0000 (17:22 -0800)]
Fix the mess that ab just made of the new VFS code.
NEEDS MORE TESTING !
Jeremy.
(This used to be commit bcc94aed6f03211866aa85753a90fece87846ba9)

16 years agoTidy up code and debug for non-default krb5 IPv6 port.
Jeremy Allison [Wed, 16 Jan 2008 21:28:24 +0000 (13:28 -0800)]
Tidy up code and debug for non-default krb5 IPv6 port.
Jeremy.
(This used to be commit 79b7972de4c2a8c71e37642ddf7e5bbed53dd58a)

16 years agoFix IPv6 bug #5204, which caused krb5 DNS lookups
Jeremy Allison [Wed, 16 Jan 2008 21:21:46 +0000 (13:21 -0800)]
Fix IPv6 bug #5204, which caused krb5 DNS lookups
for a name '[<ipv6 addr>'.
Jeremy.
(This used to be commit f2aa921505e49f894bfed4e5e2f9fc01918b1bb0)

16 years agoRevert "default to tdbsam instead of smbpasswd"
Volker Lendecke [Wed, 16 Jan 2008 20:26:16 +0000 (21:26 +0100)]
Revert "default to tdbsam instead of smbpasswd"

This reverts commit ab8ff39fd51929aae2f4088ca5b1d67e5cb7099e.
(This used to be commit 5838a9f556f151dc7c1773dcdc598b8ba79fca44)

16 years agoMerge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test
Alexander Bokovoy [Wed, 16 Jan 2008 20:24:44 +0000 (23:24 +0300)]
Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test
(This used to be commit b01f34141509c90b12003786957790866c286cba)

16 years agoDon't try ftruncate when the tdb is opened read-only
Volker Lendecke [Wed, 16 Jan 2008 20:18:26 +0000 (21:18 +0100)]
Don't try ftruncate when the tdb is opened read-only

Tridge, Jeremy, please check!

Thanks,

Volker
(This used to be commit e4f46d527411c54e8f26c05033b744c751810c32)

16 years agoNext try to fix the max dead record calculation
Volker Lendecke [Wed, 16 Jan 2008 20:04:52 +0000 (21:04 +0100)]
Next try to fix the max dead record calculation
(This used to be commit 4f95c58040f46f343f55f9a5db2655a5e3b62c00)

16 years agodefault to tdbsam instead of smbpasswd
Volker Lendecke [Wed, 16 Jan 2008 19:34:45 +0000 (20:34 +0100)]
default to tdbsam instead of smbpasswd
(This used to be commit ab8ff39fd51929aae2f4088ca5b1d67e5cb7099e)

16 years agoFix an uninitialized variable warning
Volker Lendecke [Wed, 16 Jan 2008 19:31:02 +0000 (20:31 +0100)]
Fix an uninitialized variable warning
(This used to be commit dcb7fb2c0d8e4b798b36e8caf480d198f3e08d00)

16 years agoFix some C++ warnings
Volker Lendecke [Wed, 16 Jan 2008 19:29:41 +0000 (20:29 +0100)]
Fix some C++ warnings
(This used to be commit 625241c4773ae5c80dd0cb0c07a86aff633c1ede)

16 years agoFix a missing prototype warning
Volker Lendecke [Wed, 16 Jan 2008 19:25:57 +0000 (20:25 +0100)]
Fix a missing prototype warning
(This used to be commit 871cee04f26da97756804b38acfd366b6011dc9e)

16 years agoMerge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-simo
Simo Sorce [Wed, 16 Jan 2008 17:06:34 +0000 (12:06 -0500)]
Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-simo
(This used to be commit 05c22a55a4c052c682a2f2afdb0696504195d18c)

16 years agoAdd "config backend" to the parameters forbidden in registry config.
Michael Adam [Wed, 16 Jan 2008 16:31:44 +0000 (17:31 +0100)]
Add "config backend" to the parameters forbidden in registry config.

Make registry based configs more fool-proof.

Michael
(This used to be commit 2ea55c03b25eb5e98be3449e12004a7246319acd)

16 years agoAdd my (C) to loadparm.c.
Michael Adam [Wed, 16 Jan 2008 16:15:08 +0000 (17:15 +0100)]
Add my (C) to loadparm.c.

I think now that I have changed some substantial logic,
I should confess.... :-)

Michael
(This used to be commit 704ac0ba49134d14dc00769b1cf2d9f55657bdfb)

16 years agoRemove special semantics of "include = registry" from loadparm.c
Michael Adam [Wed, 16 Jan 2008 16:09:07 +0000 (17:09 +0100)]
Remove special semantics of "include = registry" from loadparm.c

This is now replaced by "config backend = registry".

Michael
(This used to be commit 56801810253ae870437f694947f58c27661cef9b)

16 years agoUse lp_config_backend_is_registry() instead of lp_include_registry_globals().
Michael Adam [Wed, 16 Jan 2008 16:05:38 +0000 (17:05 +0100)]
Use lp_config_backend_is_registry() instead of lp_include_registry_globals().

Michael
(This used to be commit c5a7d421c512a6221b0300549d7b5de0368d252e)

16 years agoAdd utility function lp_config_backend_is_registry().
Michael Adam [Wed, 16 Jan 2008 16:03:21 +0000 (17:03 +0100)]
Add utility function lp_config_backend_is_registry().

So external callers can determine if we are running on
registry config without knowing the internals.

Michael
(This used to be commit d8a7c3ec8e2bd548509178f138d00a3b57119d10)

16 years agoInitialise Globals.ConfigBackend from global var config_backend.
Michael Adam [Wed, 16 Jan 2008 15:58:29 +0000 (16:58 +0100)]
Initialise Globals.ConfigBackend from global var config_backend.

and use lp_config_backend() instead of config_backend.

Michael
(This used to be commit 9f69efe954cde6c6cce4283ba35a553ca980c347)

16 years agoAdd handling of [homes] and [printers] via registry shares.
Michael Adam [Wed, 16 Jan 2008 15:40:59 +0000 (16:40 +0100)]
Add handling of [homes] and [printers] via registry shares.

Now homes and printers shares can be accessed through the
registry meachanism on demand in pure registry configurations
with "config backend = registry" without the need to
have a special handler for these two.

Michael
(This used to be commit eec3248ef90fbfe6e048394c875173b164a8b439)

16 years agoAdd config parameter "config backend = registry".
Michael Adam [Wed, 16 Jan 2008 15:18:28 +0000 (16:18 +0100)]
Add config parameter "config backend = registry".

This adds a new config parameter "config backend" that can have
values "file" (default) and "registry". When lp_load() encounters
a "config backend = registry", then all config read up to that
point is discarded and globals are read from registry.

This is done in suche a way that as with "config file",
there is no way back to non-registry config during the
lifetime of a process: The file_list_changed mechanism
does not look at files anymore once config backend is
set to registry. This is modelled after the behaviour
of the "config file" option.

Note that only the global section is read by lp_load().
The shares are handled by the registry shares mechanism,
thus allowing for a smaller memory footprint since
share definitions are read on demand.

This new parameter is intended as a substitute of the
previously installed special semantics of "include = registry"
which allows for messed up mixed configurations.
This parameter (which has not yet been released) will
vanish next.

Michael
(This used to be commit 77b33cf34c2aec6673dfab3962733a60a60d126a)

16 years agoAdd "MSDFS options" separator to parm_table.
Michael Adam [Tue, 15 Jan 2008 12:46:02 +0000 (13:46 +0100)]
Add "MSDFS options" separator to parm_table.

Michael
(This used to be commit a103509a467bf6a93fbb21ec5e64456c5f086d6c)

16 years agoRe-order an option block in parm_table to re-unite the misc options.
Michael Adam [Tue, 15 Jan 2008 12:44:51 +0000 (13:44 +0100)]
Re-order an option block in parm_table to re-unite the misc options.

Michael
(This used to be commit 9e11768256623636e69eda67b3bb888426f9ab84)

16 years agoMerge branch 'ctdb-merge' into v3-2-test
Alexander Bokovoy [Wed, 16 Jan 2008 15:53:16 +0000 (18:53 +0300)]
Merge branch 'ctdb-merge' into v3-2-test
(This used to be commit 175662b5bbb5c8ecd81a60539f5846a938c26a3a)

16 years agoMerge lsarpc.idl from samba4 and rerun make idl.
Günther Deschner [Wed, 16 Jan 2008 15:31:49 +0000 (16:31 +0100)]
Merge lsarpc.idl from samba4 and rerun make idl.

Guenther
(This used to be commit d9c8a2271d5d4ff845f1fe5986a2c63d79c41415)

16 years agoAdd lsa_PolicyAuditEventType and lsa_PolicyAuditPolicy enums from samba3 to IDL.
Günther Deschner [Wed, 16 Jan 2008 15:01:50 +0000 (16:01 +0100)]
Add lsa_PolicyAuditEventType and lsa_PolicyAuditPolicy enums from samba3 to IDL.

Guenther
(This used to be commit 92bfa25922860a6951c72d41799f4d3c1bc7a007)

16 years agoMake resolve_ads() static.
Günther Deschner [Wed, 16 Jan 2008 14:52:53 +0000 (15:52 +0100)]
Make resolve_ads() static.

Guenther
(This used to be commit 57dc747136e880a25c03bdc4a1431fc41afd93a1)

16 years agoFix memleak in ads_build_path().
Günther Deschner [Wed, 16 Jan 2008 14:51:52 +0000 (15:51 +0100)]
Fix memleak in ads_build_path().

Guenther
(This used to be commit b7a06b54e0a58c4cd6c5351b1e4a0a2c253cfea1)

16 years agoAdds support for cifs.resolver upcall.
Igor Mammedov [Wed, 19 Dec 2007 14:48:43 +0000 (17:48 +0300)]
Adds support for cifs.resolver upcall.

Here is a patch for userspace cifs.spnego handler that adds support for cifs.resolver
upcall used in DFS code.
Any comments are appreciated.

#############################

Cifs upcall with key type cifs.resolver is used for resolving
server names in handling DFS refferals.

Signed-off-by: Igor Mammedov <niallain@gmail.com>
(This used to be commit dfc80b4f1c00c131ba8077432bfe79f22f63ccd1)