Michael Adam [Sun, 20 Jan 2008 00:21:45 +0000 (01:21 +0100)]
Some reformatting in tcpip_params_fetch_values().
Michael
Michael Adam [Sat, 19 Jan 2008 22:46:13 +0000 (23:46 +0100)]
Add a registry backend tcpip_params that replaces the former dynamic overlay.
Michael
Michael Adam [Sun, 20 Jan 2008 00:25:08 +0000 (01:25 +0100)]
Some reformatting in prod_options_fetch_values().
Michael
Michael Adam [Fri, 18 Jan 2008 15:15:43 +0000 (16:15 +0100)]
Add a registry backend prod_options that replaces the former dynamic overlay.
Michael
Michael Adam [Sun, 20 Jan 2008 00:30:38 +0000 (01:30 +0100)]
Some reformatting in netlogon_params_fetch_values().
Michael
Michael Adam [Sat, 19 Jan 2008 21:42:30 +0000 (22:42 +0100)]
Rename netlogon_params_fetch_reg_values() to netlogon_params_fetch_values().
Michael
Michael Adam [Sat, 19 Jan 2008 21:39:33 +0000 (22:39 +0100)]
In reg_backend_netlogon_params, delegate fetch_subkeys() to regdb.
In order to be able to open the netlogon_params key (the new backend replacing
the former dynamic overlay), certain methods need to be provided. Delegate these
to the regdb backend (like e.g. the smbconf backend does).
Michael
Michael Adam [Fri, 18 Jan 2008 16:51:57 +0000 (17:51 +0100)]
Fix registering Registry backends in reghook_cache_add().
This was broken in
331c0d6216e1a1607a49ed7eb4078e10138ec16a
(pstring removal).
Michael
Michael Adam [Fri, 18 Jan 2008 15:13:01 +0000 (16:13 +0100)]
Use constant KEY_NETLOGON_PARAMS instead of literal key.
Michael
Michael Adam [Fri, 18 Jan 2008 11:13:37 +0000 (12:13 +0100)]
Volker is right: why keep commented out migrated dynamic reg overlays around?...
Michael
Michael Adam [Sat, 19 Jan 2008 22:09:38 +0000 (23:09 +0100)]
Use c99 struct initializers for REGISTRY_OPS in reg_shares.c
Michael
Michael Adam [Sat, 19 Jan 2008 22:06:12 +0000 (23:06 +0100)]
Use c99 struct initializers for REGISTRY_OPS in reg_printing.c
Michael
Michael Adam [Sat, 19 Jan 2008 22:01:58 +0000 (23:01 +0100)]
Use c99 struct initializers for REGISTRY_OPS in reg_smbconf.c.
Michael
Volker Lendecke [Sat, 19 Jan 2008 23:44:14 +0000 (00:44 +0100)]
Some systems do not have XATTR_ defined
Volker Lendecke [Sat, 19 Jan 2008 22:36:34 +0000 (23:36 +0100)]
vfs_streams_depot
Store streams in a file each. Not 100% finished, and not built by default.
Volker Lendecke [Sat, 19 Jan 2008 22:33:11 +0000 (23:33 +0100)]
vfs_streams_xattr module
Store streams in posix xattrs. A kludge, as xattrs are limited in many ways,
but it might be a help for some situations.
Volker Lendecke [Sat, 19 Jan 2008 22:25:36 +0000 (23:25 +0100)]
Add streams support
This is the core of the streams support. The main change is that in
files_struct there is now a base_fsp pointer that holds the main file open
while a stream is open. This is necessary to get the rather strange delete
semantics right: You can't delete the main file while a stream is open without
FILE_SHARE_DELETE, and while a stream is open a successful unlink of the main
file leads to DELETE_PENDING for all further access on the main file or any
stream.
Volker Lendecke [Sat, 19 Jan 2008 22:10:09 +0000 (23:10 +0100)]
Add "split_ntfs_stream_name()" together with a torture test
Volker Lendecke [Sat, 19 Jan 2008 21:44:55 +0000 (22:44 +0100)]
Add an error mapping for ENOATTR
Volker Lendecke [Sat, 19 Jan 2008 19:41:15 +0000 (20:41 +0100)]
Add the STREAMINFO vfs call
Based on jpeach's work, modified the streaminfo prototype
Make use of it in trans2.c together with marshall_stream_info()
Volker Lendecke [Sat, 19 Jan 2008 18:31:02 +0000 (19:31 +0100)]
Use SAFE_FREE instead of free
Corinna Vinschen [Sat, 19 Jan 2008 14:14:45 +0000 (15:14 +0100)]
Tiny memory leak in lib/version.c
Hi,
while implementing the extra_info version stuff, it occured to me that
samba_version_string() potentially allocates memory which is unused but
never free'd.
If SAMBA_VERSION_VENDOR_PATCH is defined, a second call to asprintf
takes place. The result is stored in tmp_version. Afterwards,
samba_version is set to tmp_version without free'ing samba_version
first. Looks like a simple free(samba_version) is missing. Patch
against 3.2-test below.
Ok, this only happens once over the lifetime of the application, so it's
no big deal, but I though it doesn't hurt to mention it.
Corinna
* lib/version.c (samba_version_string): Free samba_version
before setting to tmp_version.
Volker Lendecke [Sat, 19 Jan 2008 14:44:48 +0000 (15:44 +0100)]
Fix error return in xattr_tdb_load_attrs
Volker Lendecke [Sat, 19 Jan 2008 15:19:08 +0000 (16:19 +0100)]
The remote storage op is gone
Alexander, I think this ok...
Volker Lendecke [Sat, 19 Jan 2008 15:07:56 +0000 (16:07 +0100)]
Add get_ea_names_from_file to sanely list posix xattrs
Refactor get_ea_list_from_file to use that.
Volker Lendecke [Tue, 15 Jan 2008 12:22:39 +0000 (13:22 +0100)]
Make get_ea_value public
Volker Lendecke [Sat, 19 Jan 2008 12:37:40 +0000 (13:37 +0100)]
Fix the build
... forgot to "git add" it
Kai Blin [Sat, 19 Jan 2008 11:27:31 +0000 (12:27 +0100)]
afs: Use talloc_stackframe() instead of talloc_init()
Thanks to vl for pointing this out.
Kai Blin [Sat, 19 Jan 2008 11:29:03 +0000 (12:29 +0100)]
ntlm_auth: Get rid of statics in manage_squid_ntlmssp_request
Kai Blin [Fri, 18 Jan 2008 13:40:47 +0000 (14:40 +0100)]
ntlm_auth: Rewrite manage_client_ntlmssp_request without statics.
Kai Blin [Fri, 18 Jan 2008 09:37:16 +0000 (10:37 +0100)]
nltm_auth: Use struct ntlm_auth_state in helper functions.
Now rewriting the helpers one after the other can start.
Kai Blin [Wed, 16 Jan 2008 13:45:22 +0000 (14:45 +0100)]
ntlm_auth: Prepare for a deeper rewrite of the helper functions
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
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)
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.
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.
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.
Jeremy Allison [Fri, 18 Jan 2008 21:47:10 +0000 (13:47 -0800)]
Fix error message for new allinfo command.
Jeremy.
Derrell Lipman [Fri, 18 Jan 2008 19:22:49 +0000 (14:22 -0500)]
Fix typo that disabled setting group id. Thanks, Henrik.
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
Jelmer Vernooij [Mon, 14 Jan 2008 21:24:07 +0000 (22:24 +0100)]
libreplace: Escape asterisk.
(cherry picked from commit
df36c78549b40ee5e47d5cc79de2eb79f58c567a)
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)
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)
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)
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)
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)
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)
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)
Michael Adam [Fri, 18 Jan 2008 11:07:02 +0000 (12:07 +0100)]
Use C99 structure initializers for netlogon_params_reg_ops.
Michael
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
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
Michael Adam [Fri, 18 Jan 2008 07:15:27 +0000 (08:15 +0100)]
Fix typo in debug message.
Michael
Günther Deschner [Fri, 18 Jan 2008 07:48:44 +0000 (08:48 +0100)]
Fix the build w/o ADS.
Guenther
Günther Deschner [Fri, 18 Jan 2008 02:14:08 +0000 (03:14 +0100)]
Add header for NetGetJoinableOUs to libnetapi.
Guenther
Andrew Tridgell [Fri, 18 Jan 2008 04:46:15 +0000 (15:46 +1100)]
merged changes from v4-0-test
Günther Deschner [Fri, 18 Jan 2008 01:50:33 +0000 (02:50 +0100)]
Add NetGetJoinableOUs() to libnetapi (incl. example).
Guenther
Günther Deschner [Fri, 18 Jan 2008 01:38:35 +0000 (02:38 +0100)]
Cosmetics and error string reporting for libnetapi.
Guenther
Günther Deschner [Fri, 18 Jan 2008 01:30:53 +0000 (02:30 +0100)]
Add some more debugging into netdomjoin-gui.
Guenther
Günther Deschner [Fri, 18 Jan 2008 01:30:09 +0000 (02:30 +0100)]
Fix local hostname detection in netdomjoin-gui.
Guenther
Günther Deschner [Fri, 18 Jan 2008 00:56:01 +0000 (01:56 +0100)]
Improve libnetapi_set_error_string().
Guenther
Michael Adam [Fri, 18 Jan 2008 00:04:40 +0000 (01:04 +0100)]
Add and correct some WERROR codes.
Michael
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
Derrell Lipman [Thu, 17 Jan 2008 16:50:22 +0000 (11:50 -0500)]
stop bothering me about example programs not checked in
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
Derrell Lipman [Thu, 17 Jan 2008 16:46:41 +0000 (11:46 -0500)]
Add a program to test repeated calls to smbc_getxattr().
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
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
Günther Deschner [Thu, 17 Jan 2008 09:35:55 +0000 (10:35 +0100)]
Include auto-generated client headers for netlogon/samr.
Guenther
Günther Deschner [Thu, 17 Jan 2008 09:24:34 +0000 (10:24 +0100)]
Finally enable pidl generated SAMR & NETLOGON headers and clients.
Guenther
Günther Deschner [Thu, 17 Jan 2008 09:20:50 +0000 (10:20 +0100)]
Re-run make idl to regnerated netlogon.
Guenther
Günther Deschner [Thu, 17 Jan 2008 09:19:15 +0000 (10:19 +0100)]
Add NETLOGON_GRACE_LOGON flag to netr_UserFlags.
Guenther
Günther Deschner [Thu, 17 Jan 2008 09:15:30 +0000 (10:15 +0100)]
Re-run make idl to generate SAMR output.
Guenther
Günther Deschner [Thu, 17 Jan 2008 09:11:28 +0000 (10:11 +0100)]
Use pidl generated data from misc.idl.
Guenther
Günther Deschner [Thu, 17 Jan 2008 09:00:37 +0000 (10:00 +0100)]
Re-run make idl to regenerate netlogon output.
Guenther
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
Günther Deschner [Thu, 17 Jan 2008 08:52:21 +0000 (09:52 +0100)]
Remove samba4 specifi struct server_id from misc.idl.
Guenther
Günther Deschner [Thu, 17 Jan 2008 08:50:45 +0000 (09:50 +0100)]
Import recent misc.idl from Samba4.
Guenther
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
Günther Deschner [Thu, 17 Jan 2008 08:41:58 +0000 (09:41 +0100)]
Import recent netlogon and samr IDL from samba4.
Guenther
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
Michael Adam [Thu, 17 Jan 2008 10:09:08 +0000 (11:09 +0100)]
Add my (C) to reg_api.c - Michael
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
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
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
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
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
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
Michael Adam [Wed, 16 Jan 2008 23:57:53 +0000 (00:57 +0100)]
Add some sectioning comments to reg_api.c
Michael
Michael Adam [Wed, 16 Jan 2008 23:16:58 +0000 (00:16 +0100)]
Make utility function reg_deletekey_recursive_internal() static.
Michael
Michael Adam [Wed, 16 Jan 2008 22:19:38 +0000 (23:19 +0100)]
Use the proper boolean constants in reg_frontend_hilvl.c
Michael
Michael Adam [Wed, 16 Jan 2008 22:18:07 +0000 (23:18 +0100)]
Reformatting: Strip trailing white spaces from reg_frontent_hilvl.c.
Michael
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.
Jelmer Vernooij [Thu, 17 Jan 2008 12:34:18 +0000 (13:34 +0100)]
idl: Remove use of [ref], which is the default.
Jelmer Vernooij [Thu, 17 Jan 2008 12:16:27 +0000 (13:16 +0100)]
idl: Update initshutdown and echo IDL from Samba 4.
Jelmer Vernooij [Thu, 17 Jan 2008 12:00:12 +0000 (13:00 +0100)]
idl: Update DFS IDL from Samba 4.
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
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
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
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.
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.