summaryrefslogtreecommitdiffstats
path: root/source3/nsswitch/wb_common.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-12-20 01:37:39 +0000
committerTim Potter <tpot@samba.org>2002-12-20 01:37:39 +0000
commit8c93138982da3f9444bdef63cf48de37876866ed (patch)
tree3bd6e6f763f90cbf0fffe97362bcf0f546222084 /source3/nsswitch/wb_common.c
parent45030bcbcac1657173a8bf64d237d92496886202 (diff)
downloadsamba-8c93138982da3f9444bdef63cf48de37876866ed.tar.gz
samba-8c93138982da3f9444bdef63cf48de37876866ed.tar.xz
samba-8c93138982da3f9444bdef63cf48de37876866ed.zip
Merge removal of unpopular winbind client environment variable.
(This used to be commit 0637f582fe1d41f8ef247e5989f84caa72162f05)
Diffstat (limited to 'source3/nsswitch/wb_common.c')
-rw-r--r--source3/nsswitch/wb_common.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/source3/nsswitch/wb_common.c b/source3/nsswitch/wb_common.c
index 51792f63fe2..89c751a4efb 100644
--- a/source3/nsswitch/wb_common.c
+++ b/source3/nsswitch/wb_common.c
@@ -24,8 +24,7 @@
Boston, MA 02111-1307, USA.
*/
-#include "winbind_nss_config.h"
-#include "winbindd_nss.h"
+#include "winbind_client.h"
/* Global variables. These are effectively the client state information */
@@ -45,25 +44,11 @@ void free_response(struct winbindd_response *response)
void init_request(struct winbindd_request *request, int request_type)
{
- static char *domain_env;
- static BOOL initialised;
-
request->length = sizeof(struct winbindd_request);
request->cmd = (enum winbindd_cmd)request_type;
request->pid = getpid();
- request->domain[0] = '\0';
-
- if (!initialised) {
- initialised = True;
- domain_env = getenv(WINBINDD_DOMAIN_ENV);
- }
- if (domain_env) {
- strncpy(request->domain, domain_env,
- sizeof(request->domain) - 1);
- request->domain[sizeof(request->domain) - 1] = '\0';
- }
}
/* Initialise a response structure */