summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-01-26 09:52:55 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-01-26 09:52:55 +0000
commit85018fecfad1f7f6ef44b511bac937881a7bf937 (patch)
treef4f9575bb24b1876e438e21616cf930c46d64a1a
parenta41fe2f6c845789c719de1d9a26a1374fb0e7fdb (diff)
downloadsamba-85018fecfad1f7f6ef44b511bac937881a7bf937.tar.gz
samba-85018fecfad1f7f6ef44b511bac937881a7bf937.tar.xz
samba-85018fecfad1f7f6ef44b511bac937881a7bf937.zip
Allow a winbind client to obtain the server's domain name.
-rw-r--r--source/nsswitch/winbindd_misc.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/source/nsswitch/winbindd_misc.c b/source/nsswitch/winbindd_misc.c
index 883f9a4e22f..64eaea3153a 100644
--- a/source/nsswitch/winbindd_misc.c
+++ b/source/nsswitch/winbindd_misc.c
@@ -167,7 +167,7 @@ enum winbindd_result winbindd_info(struct winbindd_cli_state *state)
return WINBINDD_OK;
}
-/* List various tidbits of information */
+/* Tell the client the current interface version */
enum winbindd_result winbindd_interface_version(struct winbindd_cli_state *state)
{
@@ -178,3 +178,15 @@ enum winbindd_result winbindd_interface_version(struct winbindd_cli_state *state
return WINBINDD_OK;
}
+
+/* What domain are we a member of? */
+
+enum winbindd_result winbindd_domain_name(struct winbindd_cli_state *state)
+{
+
+ DEBUG(3, ("[%5d]: request domain name\n", state->pid));
+
+ fstrcpy(state->response.data.domain_name, lp_workgroup());
+
+ return WINBINDD_OK;
+}