Displaying 3 results from an estimated 3 matches for "sa_socklen".
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
2017 Sep 06
0
Joining a Windows Server 2008 / 2008 R2 DC to a Samba AD - ISSUE - The RPC server is unavailable
...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 of sa_socklen in zero is below:-
File:- source4/lib/socket_socket...
2014 Jan 10
1
samba 4.1.3 -- multiple bugs & 1, 297 coredumps -- coredump backtrace + full-backtrace included
...1\304\265l\177", '\000' <repeats 34
times>, "\200\030", '\000' <repeats 22 times>,
"@\005\304\265l\177\000\000\311\350\373\226", '\000' <repeats 20 times>,
"\035\061\304\265l\177\000"}
sa = 0x7ffff37d3db0
sa_socklen = 16
local_address = 0x7f6cb69a80e0
remote_address = 0x7f6cb69b4c60
locaddr = <optimized out>
remaddr = <optimized out>
rhost = 0x0
ret = <optimized out>
__FUNCTION__ = "smbd_process"
#20 0x00007f6cb5c4b084...