Hi,
I found this while looking at some logs. I think the intent of sdap_print_server() is to print the IP address of the server SSSD is connected to. If I understand it correctly to get this getpeername() should be used, getsockname() will return the local IP address SSSD is using to connect to the server.
bye, Sumit
On Fri, Oct 24, 2014 at 09:19:18PM +0200, Sumit Bose wrote:
Hi,
I found this while looking at some logs. I think the intent of sdap_print_server() is to print the IP address of the server SSSD is connected to. If I understand it correctly to get this getpeername() should be used, getsockname() will return the local IP address SSSD is using to connect to the server.
bye, Sumit
ACK
I guess now I have to wear a paper bag over my face for commiting the code in the first place..
On Fri, Oct 24, 2014 at 09:30:37PM +0200, Jakub Hrozek wrote:
On Fri, Oct 24, 2014 at 09:19:18PM +0200, Sumit Bose wrote:
Hi,
I found this while looking at some logs. I think the intent of sdap_print_server() is to print the IP address of the server SSSD is connected to. If I understand it correctly to get this getpeername() should be used, getsockname() will return the local IP address SSSD is using to connect to the server.
bye, Sumit
ACK
I guess now I have to wear a paper bag over my face for commiting the code in the first place..
* master: a859ef56cf6c0df732d022b66819caf4d401a0a2
sssd-devel@lists.fedorahosted.org