mirror of
https://github.com/samba-team/samba.git
synced 2025-11-28 12:23:49 +03:00
Try to catch up on the code I've put into HEAD that should be in 3.0:
- vorlan's hosts allow with DNS names patch - use x_fileno() in debug.c, not the struct directly. - check for server timeout on password change (was reporting success) - better error/status loggin in both the pam_winbind client and winbindd_pam server code. - (pdb_ldap) don't set the ldap version twice - we do it on every bind anyway.
This commit is contained in:
@@ -832,7 +832,7 @@ void client_setfd(int fd)
|
||||
|
||||
char *client_name(void)
|
||||
{
|
||||
return get_socket_name(client_fd);
|
||||
return get_socket_name(client_fd,False);
|
||||
}
|
||||
|
||||
char *client_addr(void)
|
||||
@@ -890,7 +890,7 @@ static BOOL matchname(char *remotehost,struct in_addr addr)
|
||||
/*******************************************************************
|
||||
return the DNS name of the remote end of a socket
|
||||
******************************************************************/
|
||||
char *get_socket_name(int fd)
|
||||
char *get_socket_name(int fd, BOOL force_lookup)
|
||||
{
|
||||
static pstring name_buf;
|
||||
static fstring addr_buf;
|
||||
@@ -902,7 +902,7 @@ char *get_socket_name(int fd)
|
||||
situations won't work because many networks don't link dhcp
|
||||
with dns. To avoid the delay we avoid the lookup if
|
||||
possible */
|
||||
if (!lp_hostname_lookups()) {
|
||||
if (!lp_hostname_lookups() && (force_lookup == False)) {
|
||||
return get_socket_addr(fd);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user