summaryrefslogtreecommitdiffstats
path: root/source/nsswitch/winbindd_misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/nsswitch/winbindd_misc.c')
-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;
+}