s3:smbd make yp cache local.
authorSimo Sorce <ssorce@redhat.com>
Mon, 31 May 2010 14:36:02 +0000 (10:36 -0400)
committerAndreas Schneider <asn@samba.org>
Mon, 31 May 2010 16:21:29 +0000 (18:21 +0200)
commitb32b59d47f8ec597be9d215e5e260e5d1411d3a4
treee987a627a96749a7fc8c8086bc3ebe328c379f95
parent1da415345971fbd045808d26142b9eca797aaedf
s3:smbd make yp cache local.

The my_yp_domain variable is just a static cache needed to avoid
making over and over expensive and potentially blocking calls to
yp_get_default_domain().
Instead of keeping this onto the smbd_server_connection struct, just
keep it local to the only function ever using this variable.

This disentagle this function (and a number of calling functions)
from having to pass around smbd_server_connection and thus having
to link against smbd. It also removes a few ifdefs.

Nothing changes from a global/local pov, as the smbd_server_connection
variable passed around is also a global one.

Signed-off-by: Andreas Schneider <asn@samba.org>
source3/smbd/globals.h
source3/smbd/password.c
source3/smbd/process.c