summaryrefslogtreecommitdiff
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
commit4691c931e8a75b01d461395239f463258c1b12be (patch)
tree31596b6a54776f033baadd39b0d270caf65c834c
parent88ed747e2907066bc55f89349d86479b319793fc (diff)
downloadsamba-4691c931e8a75b01d461395239f463258c1b12be.tar.gz
samba-4691c931e8a75b01d461395239f463258c1b12be.tar.bz2
samba-4691c931e8a75b01d461395239f463258c1b12be.zip
Allow a winbind client to obtain the server's domain name.
(This used to be commit 85018fecfad1f7f6ef44b511bac937881a7bf937)
-rw-r--r--source3/nsswitch/winbindd_misc.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_misc.c b/source3/nsswitch/winbindd_misc.c
index 883f9a4e22..64eaea3153 100644
--- a/source3/nsswitch/winbindd_misc.c
+++ b/source3/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;
+}