1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
Commit Graph

24230 Commits

Author SHA1 Message Date
Günther Deschner
b738381816 Kill fstring in getdcname & getanydcname return.
Guenther
2007-12-21 15:12:40 +01:00
Günther Deschner
763e13315f Use ADS_IGNORE_PRINCIPAL define.
Guenther
2007-12-21 14:13:55 +01:00
Volker Lendecke
5f5e52ba7b Fix the build on Solaris 2007-12-21 12:53:12 +01:00
Volker Lendecke
5c392c4c6e Some C++ fixes 2007-12-21 09:58:21 +01:00
Volker Lendecke
5ab82d4f57 Some C++ warnings 2007-12-21 09:58:20 +01:00
Volker Lendecke
c31c7e3e24 Fix a C++ warning 2007-12-21 09:58:20 +01:00
Volker Lendecke
7e1d9b561f Fix a C++ warning 2007-12-21 09:58:20 +01:00
Volker Lendecke
93e5de23e7 Fix a missing prototype warning 2007-12-21 09:58:20 +01:00
Volker Lendecke
7e193c68b2 Remove some statics from md4.c 2007-12-21 09:58:20 +01:00
Volker Lendecke
c19363eb77 Add a singleton cache
First user is yp_default_domain
2007-12-21 09:58:20 +01:00
Volker Lendecke
4b06c68482 Make data_blob_string_const return null terminated strings
... nobody was using it, so we're free to change it now :-)
2007-12-21 09:58:20 +01:00
Volker Lendecke
86d9412611 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.
2007-12-21 09:58:20 +01:00
Volker Lendecke
032c5589fe Convert the pwnam cache to memcache 2007-12-21 09:58:20 +01:00
Volker Lendecke
ea0e5ad9a1 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.
2007-12-21 09:58:20 +01:00
Volker Lendecke
c131d0dc52 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.
2007-12-21 09:58:20 +01:00
Herb Lewis
e18fab269c fix dump printout when byte >= 0x80 2007-12-20 14:57:29 -08:00
James Peach
08fee0d28a Fix typo in filesystem capabilities bits. 2007-12-20 08:31:27 -08:00
Volker Lendecke
465fd43850 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
2007-12-20 10:33:13 +01:00
James Peach
5de89dd6e0 Remove unused variable 'didmsg'. 2007-12-19 22:39:40 -08:00
James Peach
36db675510 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.
2007-12-19 22:33:43 -08:00
James Peach
555173eb3f 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.
2007-12-19 22:20:39 -08:00
James Peach
d5d9e4084c 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.
2007-12-19 22:20:09 -08:00
James Peach
9fead46b54 Release per-fsp data on file closure. 2007-12-19 22:19:55 -08:00
Michael Adam
6d765e0de5 Only retrieve password policies in pam_auth when WBFLAG_PAM_GET_PWD_POLICY is set.
This essentially re-establishes r14496 (2155bb0535)
which was undone in r17723 (43bd8c00ab) 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
2007-12-20 02:05:55 +01:00
Michael Adam
b5f600fab5 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
2007-12-19 23:08:01 +01:00
Michael Adam
15caf58c81 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
2007-12-19 23:08:00 +01:00
Michael Adam
36e2a814ba 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
2007-12-19 23:08:00 +01:00
Michael Adam
40a1438e17 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
2007-12-19 23:08:00 +01:00
Michael Adam
1c4f74551f Fix two debug statements: Add missing printf parameter.
Michael
2007-12-19 23:07:59 +01:00
Michael Adam
f6db5a0d05 Reformatting: wrap long lines and remove trailing spaces.
Michael
2007-12-19 23:07:59 +01:00
Michael Adam
04258231dc Prepare the zfs acl module for the api change in get_nt_acl().
Michael
2007-12-19 23:07:58 +01:00
Michael Adam
d6043c1066 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
2007-12-19 23:07:58 +01:00
Michael Adam
7afeb1c6cb 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
2007-12-19 23:07:57 +01:00
Michael Adam
e0672a46a2 Split smbacl4_GetFileOwner into two (f- and non-f-variant).
This is in preparation of a get_nt_acl prototype change.
2007-12-19 23:07:57 +01:00
Michael Adam
50c82cc145 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
2007-12-19 23:07:56 +01:00
Michael Adam
b0ae830bf5 Remove the "is_directory" parameter from canonicalise_acl():
It can be retrieved from the stat buffer.

Michael
2007-12-19 23:07:56 +01:00
Michael Adam
d579a7f84f 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
2007-12-19 23:07:55 +01:00
Michael Adam
bdb208124b 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
2007-12-19 23:07:55 +01:00
Michael Adam
d7e2e93758 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
2007-12-19 23:07:55 +01:00
Volker Lendecke
735f593154 Remove Get_Pwnam and its associated static variable
All callers are replaced by Get_Pwnam_alloc
2007-12-19 21:09:10 +01:00
Volker Lendecke
e5bd32812d Fix a "no prototype" warning 2007-12-19 20:48:45 +01:00
Volker Lendecke
7799e18994 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"
2007-12-19 20:48:45 +01:00
Volker Lendecke
5b72828600 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
2007-12-19 10:16:43 -08:00
Volker Lendecke
0af02db6f2 packet_struct is used in several places as raw memory
-> Fix more uninitialized variable warnings
2007-12-19 17:15:45 +01:00
Volker Lendecke
ff644cfa1b Some paranoia checks 2007-12-19 16:57:48 +01:00
Volker Lendecke
9ec4f91f35 Zero the tdb key, there might be padding
This leads to uninitialized variable warnings if nmbd is run under valgrind.
2007-12-19 16:57:40 +01:00
Volker Lendecke
93f3a1172a Today is not my day...
dmapi.c certainly did compile now...
2007-12-19 16:30:36 +01:00
Volker Lendecke
b8db804e07 Rename cache.[ch] to memcache.[ch]
cache.h conflicts with an XFS DMAPI include on "opi" :-(
2007-12-19 16:07:19 +01:00
Günther Deschner
7b52864787 Merge WERR_NO_SUCH_LOGON_SESSION from Samba4.
Guenther
2007-12-19 11:15:29 +01:00
Günther Deschner
6ccbf67a0c Add and use some keystr functions using talloc_tos() in secrets api.
Guenther
2007-12-19 11:15:17 +01:00