Displaying 20 results from an estimated 48 matches for "talloc_ctx".
Did you mean:
alloc_ctx
2023 Oct 15
1
Compiling within Samba Source-Tree
...should be able to just add crypto to your list of deps.
>
>> no talloc stackframe at
>> ../../source3/passdb/machine_account_secrets.c:60, leaking memory
>>
>> So here's my second question: How do I avoid this warning?
>
> I guess you're missing a
>
> TALLOC_CTX *frame = talloc_stackframe();
>
> in your initialisation.
>
> -slow
>
> --
> Ralph Boehme, Samba Team???????? https://samba.org/
> SerNet Samba Team Lead??????? https://sernet.de/en/
> Worldwide Samba Support, Consulting and Development
> SAMBA+ Samba packages????????...
2016 Aug 29
1
Issue with acl_xattr:ignore system acls in 4.5rc2
...lowing change made it
much clearer (at least to me).
diff --git a/source3/modules/vfs_acl_common.c b/source3/modules/vfs_acl_common.c
index 2163a75..870e6da 100644
--- a/source3/modules/vfs_acl_common.c
+++ b/source3/modules/vfs_acl_common.c
@@ -625,7 +625,7 @@ static NTSTATUS validate_nt_acl_blob(TALLOC_CTX *mem_ctx,
vfs_handle_struct *handle,
files_struct *fsp,
const struct smb_filename *smb_fname,
- DATA_BLOB *blob,
+ con...
2016 Aug 26
2
Issue with acl_xattr:ignore system acls in 4.5rc2
...deletions(-)
>
> diff --git a/source3/modules/vfs_acl_common.c b/source3/modules/vfs_acl_common.c
> index 2fda938e..a287945 100644
> --- a/source3/modules/vfs_acl_common.c
> +++ b/source3/modules/vfs_acl_common.c
> @@ -379,10 +379,12 @@ static NTSTATUS make_default_filesystem_acl(TALLOC_CTX *ctx,
> gid_to_sid(&group_sid, psbuf->st_ex_gid);
>
> /*
> - * We provide 2 ACEs:
> - * - Owner
> - * - NT System
> - */
> + We provide up to 4 ACEs
> + - Owner
> + - Group
> + - Everyone
> + - NT System
> + */
>
> if (mode &...
2016 Aug 26
2
Issue with acl_xattr:ignore system acls in 4.5rc2
On Fri, Aug 26, 2016 at 06:33:26PM +0200, Ralph Böhme via samba wrote:
> On Thu, Aug 25, 2016 at 12:14:00PM -0700, Jeremy Allison wrote:
> > On Wed, Aug 24, 2016 at 04:06:42PM +0200, Ralph Böhme via samba wrote:
> > >
> > > Yeah, as much as I'd like to avoid adding a new option, I guess we
> > > have to do something about it, my latest take on this is
>
2016 Aug 27
2
Issue with acl_xattr:ignore system acls in 4.5rc2
On Fri, Aug 26, 2016 at 04:03:49PM -0700, Jeremy Allison wrote:
> On Fri, Aug 26, 2016 at 02:46:19PM -0700, Jeremy Allison via samba wrote:
> > On Fri, Aug 26, 2016 at 06:44:05PM +0200, Ralph Böhme wrote:
> > >
> > > Cheerio!
> > > -slow
> >
> > Still reviewing this - but a few things that will need changing:
> >
> > When adding the
2017 Jun 15
2
Joining a Windows Server 2008 / 2008 R2 DC to a Samba AD - ISSUE - The RPC server is unavailable
On Wed, 2017-06-14 at 11:01 +0100, Rowland Penny via samba wrote:
> On Wed, 14 Jun 2017 15:13:13 +0530
> Arjit Gupta <arjitk.gupta at gmail.com> wrote:
>
> > Thanks for the response.
> >
> > Is this xattr causing this RPC server is unavailable issue ?
> >
> > Arjit Kumar
> >
> >
>
> Lets be perfectly honest here, the lack of
2004 Aug 31
4
winbind problem (?) on samba 3 ADS
Hi,
I have installed samba 3.0.6 based on the "Official
HOWTO" to join out Active Directory environment, with
winbind and pam support. I have join the samba to the
domain using "net ads join -Umyloginame". I can do the
"wbinfo -g", "getent passwd" and "getent group"
correctly. I also can list shares on other machine,
using kerberos:
# kinit
2015 Nov 27
2
nitwit's attempt to edit samba source
Hi Viktor!
Thanks for your try at this, I am already doing what you suggest: the
iptables - timestaps. But that is rather troublesome, and I would very
much samba to log this vital info.
Anyway, I tried what you suggested, and now it stopped compiling. :-)
Does this error perhaps tell you something, or are you just as clueless
as I am now:
> [1955/4033] Compiling source4/auth/ntlm/auth.c
2023 Oct 15
1
Compiling within Samba Source-Tree
...rypto and store the dependency, you
should be able to just add crypto to your list of deps.
> no talloc stackframe at
> ../../source3/passdb/machine_account_secrets.c:60, leaking memory
>
> So here's my second question: How do I avoid this warning?
I guess you're missing a
TALLOC_CTX *frame = talloc_stackframe();
in your initialisation.
-slow
--
Ralph Boehme, Samba Team https://samba.org/
SerNet Samba Team Lead https://sernet.de/en/
Worldwide Samba Support, Consulting and Development
SAMBA+ Samba packages https://samba.plus/
-------------- next part...
2017 Sep 06
0
Joining a Windows Server 2008 / 2008 R2 DC to a Samba AD - ISSUE - The RPC server is unavailable
...[socket_get_remote_addr() failed]
As mentioned by you earlier that it requires "credentials passing via
the getpeereid()
call or SO_PEERCRED"
On investigating it further i found below condition that fails
File :- lib/tsocket/tsocket_bsd.c
Function
int _tsocket_address_bsd_from_sockaddr(TALLOC_CTX *mem_ctx,
const struct sockaddr *sa,
size_t sa_socklen,
struct tsocket_address **_addr,
const char *location)
{
.......
if (*sa_socklen < sizeof(sa->sa_family*)) { *//sa_socklen is zero thus we
are getting above error*
errno = EINVAL;
return -1;
}
.......
}
The reason...
2019 Nov 18
1
logging of ldap queries
Hi everyone,
I am looking at a way to easily trace ldap queries to easily single out computers that have buggy software that download the whole AD (like a getent passwd with winbind enum users = yes for example). Increasing the debug level to 5 gives me the result I am looking for, however it is very very talkative and it fills up the log partition way too fast. I wanted to try to single out one
2006 Jun 05
2
[PATCH] Pet peave then->than
...y.h
===================================================================
--- source/lib/registry/registry.h (revision 16046)
+++ source/lib/registry/registry.h (working copy)
@@ -103,11 +103,11 @@
WERROR (*num_values) (const struct registry_key *, uint32_t *count);
WERROR (*get_subkey_by_index) (TALLOC_CTX *, const struct registry_key *, int idx, struct registry_key **);
- /* Can not contain more then one level */
+ /* Can not contain more than one level */
WERROR (*get_subkey_by_name) (TALLOC_CTX *, const struct registry_key *, const char *name, struct registry_key **);
WERROR (*get_value_by_i...
2018 Jun 18
2
CVE-2008-4250?
Good morning/day/night to all!
After moving all my infrastructure to Debian9, changed my ADDC from
Win2K12 to Samba4 scanning my network I found the following:
--------------------------------------------------------------------------------------------------------------------------------
koratsuki at happyharry:~$ nmap --script smb-vuln-ms08-067.nse -p445
smb-addc.tld
Starting Nmap 7.50 (
2020 Jun 30
2
[Announce] Samba 4.11.10 Available for Download
Release Announcements
---------------------
This is the latest stable release of the Samba 4.11 release series.
Changes since 4.11.9
--------------------
o Jeremy Allison <jra at samba.org>
* BUG 14374: Fix segfault when using SMBC_opendir_ctx() routine for share
folder that contains incorrect symbols in any file name.
o Ralph Boehme <slow at samba.org>
* BUG 14350:
2020 Jun 30
2
[Announce] Samba 4.11.10 Available for Download
Release Announcements
---------------------
This is the latest stable release of the Samba 4.11 release series.
Changes since 4.11.9
--------------------
o Jeremy Allison <jra at samba.org>
* BUG 14374: Fix segfault when using SMBC_opendir_ctx() routine for share
folder that contains incorrect symbols in any file name.
o Ralph Boehme <slow at samba.org>
* BUG 14350:
2006 Jul 13
2
Kerberos Keytab Code Update in 3.0.23
First thing - I'd like to say a big "THANK YOU" to the developers.
I just upgraded to samba-3.0.23 and I've noticed an alarming issue with
respect to my configuration.
I've been using the built-in keytab management and it looks like the updated
code no longer creates the userPrincipal in Active Directory.
Whether this is an issue for others or not, it would be nice to have
2015 Nov 29
0
nitwit's attempt to edit samba source
...e some function that
looks helpful. In the tsocket guide that he's posted, there seems to be
a function that you want, which takes your remote_host and converts it
to what looks to be a proper (ipv4 or ipv6) string.
char *tsocket_address_inet_addr_string(const struct tsocket_address
*addr, TALLOC_CTX *mem_ctx);
Give it a go. There might be a few other functions you might find useful
in there.
Cheers,
Garming
On 28/11/15 04:12, mourik jan heupink wrote:
> Hi Viktor!
>
> Thanks for your try at this, I am already doing what you suggest: the
> iptables - timestaps. But that is ra...
2019 Feb 18
0
SMB Signing with "map to guest = " options
...s probably a case we haven't really consdidered before.
'map to guest = bad uid' is quite different to the other map to guest
options, because in this case a full authentication against the DC was
done and we have correct session keys.
The bug is in:
NTSTATUS make_server_info_info3(TALLOC_CTX *mem_ctx,
const char *sent_nt_username,
const char *domain,
struct auth_serversupplied_info **server_info,
const struct netr_SamInfo3 *info3)
The problem is this bit:
nt_status = check_account(tmp_ctx,
nt_domain,
nt_username,
&found_username,
&pwd...
2019 May 29
1
How to improve the performance with unix_convert ?
...suming .
if I modify the code get_real_filename_full_scan in the filename.c .the client will be failed to find some file .but the write speed will be improved .
static int get_real_filename_full_scan(connection_struct *conn,
const char *path, const char *name,
bool mangled,
TALLOC_CTX *mem_ctx, char **found_name)
{
struct smb_Dir *cur_dir;
const char *dname = NULL;
char *talloced = NULL;
char *unmangled_name = NULL;
long curpos;
struct smb_filename *smb_fname = NULL;
/* handle null paths */
if ((path == NULL) || (*path == 0)) {
path = ".";
}
/* If we have a case-se...
2000 Apr 29
0
fix to lib/talloc.c
...n entire talloced space will
be returned to system at talloc_destroy() time.
# Original code has chance of keeping space for
# 'struct talloc_chunk'.
--- ./source/lib/talloc.c 2000/04/28 12:04:08 1.1
+++ ./source/lib/talloc.c 2000/04/29 14:23:16
@@ -55,25 +55,22 @@
void *talloc(TALLOC_CTX *t, size_t size)
{
void *p;
- size = (size + TALLOC_ALIGN) & (~TALLOC_ALIGN-1);
+ size = (size + TALLOC_ALIGN) & (~(TALLOC_ALIGN-1));
if (!t->list || (t->list->total_size - t->list->alloc_size) < size) {
struct talloc_chunk *c;
- size_t asize = (size + TALLOC_...