Jeremy Allison [Fri, 21 Dec 2007 20:18:35 +0000 (12:18 -0800)]
Fix build failure if symlink already exists.
Jeremy.
Jeremy Allison [Fri, 21 Dec 2007 20:18:17 +0000 (12:18 -0800)]
Fix const warning.
Jeremy.
Jeremy Allison [Fri, 21 Dec 2007 20:11:23 +0000 (12:11 -0800)]
Fix initialization warnings.
Jeremy.
Jeremy Allison [Fri, 21 Dec 2007 20:06:37 +0000 (12:06 -0800)]
Fix making the new proto file after a distclean.
Jeremy.
Gerald (Jerry) Carter [Fri, 21 Dec 2007 19:50:13 +0000 (13:50 -0600)]
Fix "make test" using the LD_LIBRARY_PATH for selftest script so
smbd can locate the libwbclient library (if neccessary).
Gerald (Jerry) Carter [Fri, 21 Dec 2007 19:47:45 +0000 (13:47 -0600)]
Compile fix: Correct use of wbcDomainInfo() after function signature change.
Also fixes a doxygen warngin about an undocumented parameter in the same
function.
Gerald (Jerry) Carter [Fri, 21 Dec 2007 17:59:56 +0000 (11:59 -0600)]
De-couple smbd from staticly linking against winbindd client files.
Implements a wrapper layer in winbind_util.c which are just stubs
if compiled --without-winbind. When building with winbindd, it
is now required to build the libwbclient DSO first (in the Makefile)
and then either set LD_LIBRARY_PATH or /etc/ld.so.conf to pick up the
library PATH.
Gerald (Jerry) Carter [Fri, 21 Dec 2007 17:57:34 +0000 (11:57 -0600)]
Add files for new LGPL libwbclient DSO implementing the Winbind client API
(based on the winbind_struct_protocol.h).
The API in incomplete, but sufficient to merge. See wbclienbt.h for the i
interface functions.
Günther Deschner [Fri, 21 Dec 2007 16:29:15 +0000 (17:29 +0100)]
Move gtk app to the correct location. Thanks obnox!
Guenther
Günther Deschner [Fri, 21 Dec 2007 16:05:55 +0000 (17:05 +0100)]
Move libnetapi examples into subdirs.
Guenther
Günther Deschner [Fri, 21 Dec 2007 15:49:33 +0000 (16:49 +0100)]
Gitignore some generated files.
Guenther
Günther Deschner [Fri, 21 Dec 2007 15:44:52 +0000 (16:44 +0100)]
Deactive remote join code server side until some last issues are resolved.
Guenther
Günther Deschner [Fri, 21 Dec 2007 15:36:06 +0000 (16:36 +0100)]
Add netdomjoin-gui (my first gui application), another libnetapi user.
Guenther
Günther Deschner [Fri, 21 Dec 2007 15:08:13 +0000 (16:08 +0100)]
Add netdomjoin cmd line tool (another libnetapi example).
Guenther
Günther Deschner [Fri, 21 Dec 2007 15:03:12 +0000 (16:03 +0100)]
Make sure libnetapi has getdcname support.
Guenther
Günther Deschner [Fri, 21 Dec 2007 15:02:35 +0000 (16:02 +0100)]
Add getdc.c, a libnetapi example (incl. Makefile).
Guenther
Günther Deschner [Fri, 21 Dec 2007 14:51:00 +0000 (15:51 +0100)]
Add basic remote NetGetDCName and NetGetAnyDCName versions to libnetapi.
Guenther
Günther Deschner [Fri, 21 Dec 2007 14:30:29 +0000 (15:30 +0100)]
Make libnetapi_errstr use our NTSTATUS and WERROR error string macros.
Guenther
Günther Deschner [Thu, 20 Dec 2007 14:06:20 +0000 (15:06 +0100)]
Add error string for access denied in libnetapi.
Guenther
Günther Deschner [Thu, 20 Dec 2007 14:03:12 +0000 (15:03 +0100)]
Remove doubled cli_set_timeout calls from libnetapi.
Guenther
Günther Deschner [Thu, 20 Dec 2007 11:13:04 +0000 (12:13 +0100)]
Fix typo.
Guenther
Günther Deschner [Thu, 20 Dec 2007 11:12:06 +0000 (12:12 +0100)]
Keep libnetapi_NetX calls static for now.
Guenther
Günther Deschner [Thu, 20 Dec 2007 00:19:26 +0000 (01:19 +0100)]
Merge all headers into libnetapi.h.
Guenther
Günther Deschner [Wed, 19 Dec 2007 15:07:40 +0000 (16:07 +0100)]
Implement NetServerSetInfo level 1005 in local mode with smbconf registry.
Guenther
Günther Deschner [Wed, 19 Dec 2007 14:10:24 +0000 (15:10 +0100)]
Add NetServerGetInfo and NetServerSetInfo (for level 1005).
Guenther
Günther Deschner [Wed, 19 Dec 2007 12:52:51 +0000 (13:52 +0100)]
Split out local and remote paths for NetGetJoinInformation.
Guenther
Günther Deschner [Wed, 19 Dec 2007 11:09:08 +0000 (12:09 +0100)]
Add libnetapi_errstr().
Guenther
Günther Deschner [Wed, 19 Dec 2007 10:03:45 +0000 (11:03 +0100)]
Add support for remote and local unjoining in libnetapi.
Guenther
Günther Deschner [Wed, 19 Dec 2007 10:02:39 +0000 (11:02 +0100)]
Add libnet_Unjoin(), libnet_UnjoinCtx and friends.
Guenther
Günther Deschner [Wed, 19 Dec 2007 09:55:52 +0000 (10:55 +0100)]
Remove unrequired TALLOC_CTX from libnetapi_NetJoinDomain & friends.
Guenther
Günther Deschner [Wed, 19 Dec 2007 09:52:45 +0000 (10:52 +0100)]
Fix NetJoinDomainLocal.
Guenther
Günther Deschner [Wed, 19 Dec 2007 01:25:15 +0000 (02:25 +0100)]
Use DsGetDcName in local libnetapi join to find a dc.
Guenther
Günther Deschner [Tue, 18 Dec 2007 10:24:10 +0000 (11:24 +0100)]
Build libnetapi shared and static if possible.
Guenther
Günther Deschner [Tue, 18 Dec 2007 09:31:12 +0000 (10:31 +0100)]
In libnet join code, try lsa query with level 12 first.
Guenther
Günther Deschner [Tue, 18 Dec 2007 09:16:40 +0000 (10:16 +0100)]
Making do_DomainJoin return NTSTATUS again.
Guenther
Günther Deschner [Tue, 18 Dec 2007 01:54:18 +0000 (02:54 +0100)]
Move NetJoinDomain and friends to NET_API_STATUS and the static libnetapi_ctx.
Guenther
Günther Deschner [Tue, 18 Dec 2007 01:52:34 +0000 (02:52 +0100)]
Missed on instance of external creds.
Guenther
Günther Deschner [Tue, 18 Dec 2007 01:47:01 +0000 (02:47 +0100)]
Add static libnetapi_ctx.
Guenther
Günther Deschner [Tue, 18 Dec 2007 01:43:22 +0000 (02:43 +0100)]
Use full string based debug_parse_levels in libnetapi.
Guenther
Günther Deschner [Tue, 18 Dec 2007 01:34:07 +0000 (02:34 +0100)]
Add basic credential functions for libnetapi.
Guenther
Günther Deschner [Tue, 18 Dec 2007 01:29:50 +0000 (02:29 +0100)]
Move basic libnetapi functions to NET_API_STATUS.
Guenther
Günther Deschner [Tue, 18 Dec 2007 01:21:38 +0000 (02:21 +0100)]
Define NET_API_STATUS to be just a uin32_t.
Guenther
Günther Deschner [Tue, 18 Dec 2007 01:15:49 +0000 (02:15 +0100)]
Getting rid of external credentials in libnetapi.
Guenther
Günther Deschner [Fri, 14 Dec 2007 16:37:24 +0000 (17:37 +0100)]
Make sure we also support non-domain join.
Guenther
Günther Deschner [Fri, 14 Dec 2007 11:22:20 +0000 (12:22 +0100)]
Some libnet and netapi build fixes.
Guenther
Günther Deschner [Thu, 13 Dec 2007 15:21:27 +0000 (16:21 +0100)]
Fill in local branch of NetGetJoinInformation().
Guenther
Günther Deschner [Wed, 12 Dec 2007 18:00:41 +0000 (19:00 +0100)]
More minor libnetapi fixes.
Guenther
Günther Deschner [Wed, 12 Dec 2007 17:14:54 +0000 (18:14 +0100)]
Build fixes for libnetapi.
Guenther
Günther Deschner [Wed, 12 Dec 2007 15:12:14 +0000 (16:12 +0100)]
Add _wkssvc_NetrJoinDomain2() server.
Guenther
Günther Deschner [Tue, 11 Dec 2007 20:32:16 +0000 (21:32 +0100)]
Fill in NetJoinDomainLocal().
Guenther
Günther Deschner [Tue, 11 Dec 2007 20:31:44 +0000 (21:31 +0100)]
Add libnet_Join().
Heavily based on existing code in net_ads_join().
Guenther
Günther Deschner [Tue, 11 Dec 2007 20:25:41 +0000 (21:25 +0100)]
Add libnet_JoinCtx structure.
Guenther
Günther Deschner [Tue, 11 Dec 2007 20:23:40 +0000 (21:23 +0100)]
Split NetJoinDomain() into NetJoinDomainRemote() and the unsupported
NetJoinDomainLocal().
Guenther
Günther Deschner [Tue, 11 Dec 2007 20:21:17 +0000 (21:21 +0100)]
Very quick conversion of net_conf functions into the libnet_conf layer.
Certainly needs cleanup later.
Guenther
Günther Deschner [Thu, 6 Dec 2007 18:15:30 +0000 (19:15 +0100)]
For the fun of it, build netapi.so|.a.
Guenther
Günther Deschner [Thu, 6 Dec 2007 18:04:49 +0000 (19:04 +0100)]
Add NetGetJoinInformation().
Guenther
Günther Deschner [Fri, 21 Dec 2007 14:28:01 +0000 (15:28 +0100)]
Add get_friendly_werror_msg().
Guenther
Günther Deschner [Fri, 21 Dec 2007 14:12:40 +0000 (15:12 +0100)]
Kill fstring in getdcname & getanydcname return.
Guenther
Günther Deschner [Fri, 21 Dec 2007 12:40:11 +0000 (13:40 +0100)]
Use ADS_IGNORE_PRINCIPAL define.
Guenther
Volker Lendecke [Fri, 21 Dec 2007 11:53:12 +0000 (12:53 +0100)]
Fix the build on Solaris
Volker Lendecke [Thu, 20 Dec 2007 21:27:01 +0000 (22:27 +0100)]
Some C++ fixes
Volker Lendecke [Thu, 20 Dec 2007 21:17:16 +0000 (22:17 +0100)]
Some C++ warnings
Volker Lendecke [Thu, 20 Dec 2007 20:25:00 +0000 (21:25 +0100)]
Fix a C++ warning
Volker Lendecke [Thu, 20 Dec 2007 19:59:44 +0000 (20:59 +0100)]
Fix a C++ warning
Volker Lendecke [Thu, 20 Dec 2007 19:59:27 +0000 (20:59 +0100)]
Fix a missing prototype warning
Volker Lendecke [Sun, 9 Dec 2007 17:25:34 +0000 (18:25 +0100)]
Remove some statics from md4.c
Volker Lendecke [Thu, 20 Dec 2007 15:05:57 +0000 (16:05 +0100)]
Add a singleton cache
First user is yp_default_domain
Volker Lendecke [Thu, 20 Dec 2007 14:16:25 +0000 (15:16 +0100)]
Make data_blob_string_const return null terminated strings
... nobody was using it, so we're free to change it now :-)
Volker Lendecke [Wed, 19 Dec 2007 20:59:28 +0000 (21:59 +0100)]
Remove next_token_nr_talloc and its associated global
Only client.c and clitar.c used this, I think they should carry the static
themselves. Also move the a bit funny routine toktocliplist to clitar.c, the
only place where it is used.
Volker Lendecke [Thu, 20 Dec 2007 13:54:33 +0000 (14:54 +0100)]
Convert the pwnam cache to memcache
Volker Lendecke [Thu, 20 Dec 2007 13:41:58 +0000 (14:41 +0100)]
Add memcache_add_talloc
The first memcache API only had blobs, but we have quite a few objects that are
more complex talloc'ed structues. The current one I'm looking at is the
getpwnam cache, but there are others around.
Volker Lendecke [Thu, 20 Dec 2007 09:55:45 +0000 (10:55 +0100)]
Add a global cache
It hurts, but I think this global variable is necessary for transition, and it
has the potential to remove quite a few other global variables without messing
with APIs too much.
Herb Lewis [Thu, 20 Dec 2007 22:57:29 +0000 (14:57 -0800)]
fix dump printout when byte >= 0x80
James Peach [Thu, 20 Dec 2007 16:31:27 +0000 (08:31 -0800)]
Fix typo in filesystem capabilities bits.
Volker Lendecke [Thu, 20 Dec 2007 09:33:13 +0000 (10:33 +0100)]
Attempt to fix the build
James, at least on my Linux system neither FILE_CASE_SENSITIVE_SEARCH nor
FILE_CASE_PRESERVING_NAMES seem to be defined anywhere. Is it possible that
this is a MacOS/X specific thing? If so, could you add configure tests for
this?
Thanks,
Volker
James Peach [Thu, 20 Dec 2007 06:39:40 +0000 (22:39 -0800)]
Remove unused variable 'didmsg'.
James Peach [Thu, 20 Dec 2007 06:33:43 +0000 (22:33 -0800)]
Fix a couple of warnings in mDNS registration. One of these is an
actual bug where we pass a pointer instead of a pointer to a pointer.
James Peach [Mon, 15 Oct 2007 21:03:40 +0000 (14:03 -0700)]
Add filesystem capabilities bitmask to statfs info.
This patch adds Darwin support for the Samba statfs VFS call. It
also adds a filesystem capabilities bitmask to the information
returned by the call.
James Peach [Mon, 15 Oct 2007 21:01:12 +0000 (14:01 -0700)]
Expose per-fsp extension talloc context.
This patch supplements the fsp extension API with an operation to
retrieve the malloc zone pointer for that fsp.
James Peach [Mon, 15 Oct 2007 20:59:37 +0000 (13:59 -0700)]
Release per-fsp data on file closure.
Michael Adam [Wed, 19 Dec 2007 16:53:14 +0000 (17:53 +0100)]
Only retrieve password policies in pam_auth when WBFLAG_PAM_GET_PWD_POLICY is set.
This essentially re-establishes r14496 (
2155bb0535656f294bd054d6a0a7d16a9a71c31b)
which was undone in r17723 (
43bd8c00abb38eb23a1497a255d194fb1bbffffb) for
reasons that are unclear to me. Maybe I am being too naive.
Now we do again only retrieve the password policy when called from
the pam_winbind module. This fixes logons delegated to AD trusted
domain controllers: We need to connect to the sam to retrieve the
password policy. But auhtenticated session setup is not possible
when contacting the trusted domain dc and afterwards, SamrConnect
also fails with whatever credentials and method used.
Michael
Michael Adam [Wed, 5 Dec 2007 08:53:10 +0000 (09:53 +0100)]
Change the prototype of the vfs function get_nt_acl().
Up to now, get_nt_acl() took a files_struct pointer (fsp) and
a file name. All the underlying functions should need and now
do need (after the previous preparatory work), is a connection_struct
and a file name. The connection_struct is already there in the
vfs_handle passed to the vfs functions. So the files_struct
argument can be eliminated.
This eliminates the need of calling open_file_stat in a couple
of places to produce the fsp needed.
Michael
Michael Adam [Tue, 4 Dec 2007 08:45:14 +0000 (09:45 +0100)]
Prepare the afs acl module for the api change in get_nt_acl().
This makes both of afsacl_[f]get_nt_acl() more specific,
eliminating the need for afs_get_nt_acl(). Instead, split
afs_to_nt_acl.
Michael
Michael Adam [Mon, 3 Dec 2007 17:31:03 +0000 (18:31 +0100)]
Prepare the aix2 acl module for the api change in get_nt_acl().
This makes both of aixjfs2_[f]get_nt_acl() more specific,
eliminating the need for aixjfs2_get_nt_acl_common().
Michael
Michael Adam [Mon, 3 Dec 2007 17:24:56 +0000 (18:24 +0100)]
Change aixjfs2_get_nfs4_acl() to take file name instead of fsp.
In preparation of the api change in api change in get_nt_acl().
Michael
Michael Adam [Tue, 4 Dec 2007 07:25:21 +0000 (08:25 +0100)]
Fix two debug statements: Add missing printf parameter.
Michael
Michael Adam [Tue, 4 Dec 2007 07:19:40 +0000 (08:19 +0100)]
Reformatting: wrap long lines and remove trailing spaces.
Michael
Michael Adam [Fri, 16 Nov 2007 17:33:39 +0000 (18:33 +0100)]
Prepare the zfs acl module for the api change in get_nt_acl().
Michael
Michael Adam [Fri, 16 Nov 2007 17:33:39 +0000 (18:33 +0100)]
Prepare the gpfs acl module for the api change in get_nt_acl().
This moves functionality from gpfsacl_get_nt_acl_common()
back to gpfsacl_get_nt_acl() and gpfsacl_fget_nt_acl(),
making both these functions more specific (calling the
corresponding fsp- and non-fsp functions).
gpfsacl_get_nt_acl_common(). is removed.
Michael
Michael Adam [Wed, 14 Nov 2007 23:46:20 +0000 (00:46 +0100)]
Split smb_get_nt_acl_nfs4 into two (f- and non-f-variant).
This is the next step in preparation of a get_nt_acl prototype change.
Michael
Michael Adam [Fri, 9 Nov 2007 00:01:55 +0000 (01:01 +0100)]
Split smbacl4_GetFileOwner into two (f- and non-f-variant).
This is in preparation of a get_nt_acl prototype change.
Michael Adam [Tue, 6 Nov 2007 07:01:31 +0000 (08:01 +0100)]
Split get_nt_acl() into two functions: fsp- and non-fsp variant.
Replace smbd/posix_acls.c:get_nt_acl() by two funcions:
posix_get_nt_acl() and posix_fget_nt_acl(). The first
takes a connection struct and a file name instead of a
files_struct pointer. This is in preparation of changing
the vfs api for SMB_VFS_GET_NT_ACL.
Michael
Michael Adam [Tue, 6 Nov 2007 05:20:51 +0000 (06:20 +0100)]
Remove the "is_directory" parameter from canonicalise_acl():
It can be retrieved from the stat buffer.
Michael
Michael Adam [Sat, 27 Oct 2007 23:38:59 +0000 (01:38 +0200)]
Change canonicalise_acl() to not take an fsp.
Convert canonicalise_acl() to take connection_struct, is_directory
and file name instead of files_struct pointer.
Michael
Michael Adam [Sat, 27 Oct 2007 23:24:41 +0000 (01:24 +0200)]
Change ensure_canon_entry_valid() to not take and fsp.
Convert ensure_canon_entry_valid() to take share_params and an is_directory
flag instead of an files_struct pointer.
Michael
Michael Adam [Sat, 27 Oct 2007 23:14:51 +0000 (01:14 +0200)]
Change apply_default_perms() to not take an fsp.
This is a first change in a series: Pass what is needed instead of files_struct
pointers to some functions. This is in preparation of introducing two variants
of get_nt_acl - one for fname (which does not need an fsp), one for file
descriptor.
This changes apply_default_perms to take share_params (rather thatn snum)
and an is_directory flag instead of an fsp.
Michael
Volker Lendecke [Wed, 19 Dec 2007 14:02:59 +0000 (15:02 +0100)]
Remove Get_Pwnam and its associated static variable
All callers are replaced by Get_Pwnam_alloc
Volker Lendecke [Wed, 19 Dec 2007 19:27:47 +0000 (20:27 +0100)]
Fix a "no prototype" warning
Volker Lendecke [Wed, 19 Dec 2007 19:24:33 +0000 (20:24 +0100)]
Fix debug messages
When warning that "client plaintext auth" is not enabled where the server
requested them we should not talk about "client use plaintext auth"
Volker Lendecke [Wed, 19 Dec 2007 12:48:49 +0000 (13:48 +0100)]
Samba Shared Repository - branch v3-2-test updated -
initial-v3-2-unstable-716-g12cce3b
On Tue, Dec 18, 2007 at 06:04:32PM -0600, Jeremy Allison wrote:
> Fix valgrind error in dbwrap_rbt where rec_priv->node was
> being accessed after free. VALOKER PLEASE CHECK THIS VERY
> CAREFULLY !!!! This is a correct fix in that it fixes the
> valgrind error, but it looks inelegant to me. I think if
> I understood this code better I could craft a more subtle
> fix. Still looking at it....
Thanks a lot. Fully correct. What about the attached little
simplification?
Volker