search for: tsocket_address

Displaying 6 results from an estimated 6 matches for "tsocket_address".

Did you mean: socket_address
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
2015 Nov 29
0
nitwit's attempt to edit samba source
Hi, As Viktor has picked up on, remote_host is a struct of type tsocket_address. It's not very typical to be able to directly access this kind of information and there'll usually be 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...
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
2015 Nov 27
0
nitwit's attempt to edit samba source
...; Anyone with tip how to add a remote-ip (coming from ip) to failed > passwords attemp log lines? > > MJ > My C skills are very basic, and I never even looked at the Samba code till just now. Unlike the other two methods/properties, remote_host seems to return a structure of the type tsocket_address (https://github.com/Memeo/samba-unovero/blob/master/lib/tsocket/tsocket_guide.txt) and might need to be typecasted/converted first. Skimming through some of the source code, try to use the following line instead: state->user_info->remote_host->addr. Really, I'm just guessing. Someo...
2017 Sep 06
0
Joining a Windows Server 2008 / 2008 R2 DC to a Samba AD - ISSUE - The RPC server is unavailable
...low error single_terminate: reason[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; retur...
2015 Nov 26
2
nitwit's attempt to edit samba source
Hi, Since I really would like some more info (specifically: remote ip address) to be logged with failed password attempts, I have tried to edit the samba source code. :-) Anyway, I changed in source4/auth/ntlm/auth.c > if (tevent_req_is_nterror(req, &status)) { > DEBUG(2,("auth_check_password_recv: " > "%s authentication for user [%s\\%s] " >