summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/winbind/wb_samba3_cmd.c16
-rw-r--r--source4/winbind/wb_samba3_protocol.c4
2 files changed, 19 insertions, 1 deletions
diff --git a/source4/winbind/wb_samba3_cmd.c b/source4/winbind/wb_samba3_cmd.c
index 2c273e5175..7f5a69ca6b 100644
--- a/source4/winbind/wb_samba3_cmd.c
+++ b/source4/winbind/wb_samba3_cmd.c
@@ -128,6 +128,22 @@ NTSTATUS wbsrv_samba3_ping(struct wbsrv_samba3_call *s3call)
return NT_STATUS_OK;
}
+NTSTATUS wbsrv_samba3_domain_info(struct wbsrv_samba3_call *s3call)
+{
+ DEBUG(0, ("wbsrv_samba3_domain_info called, stub\n"));
+ s3call->response.result = WINBINDD_OK;
+ fstrcpy(s3call->response.data.domain_info.name,
+ s3call->request.domain_name);
+ fstrcpy(s3call->response.data.domain_info.alt_name,
+ s3call->request.domain_name);
+ fstrcpy(s3call->response.data.domain_info.sid, "S-1-2-3-4");
+ s3call->response.data.domain_info.native_mode = false;
+ s3call->response.data.domain_info.active_directory = false;
+ s3call->response.data.domain_info.primary = false;
+
+ return NT_STATUS_OK;
+}
+
/* Plaintext authentication
This interface is used by ntlm_auth in it's 'basic' authentication
diff --git a/source4/winbind/wb_samba3_protocol.c b/source4/winbind/wb_samba3_protocol.c
index 77c5bf3a1e..829a26cd50 100644
--- a/source4/winbind/wb_samba3_protocol.c
+++ b/source4/winbind/wb_samba3_protocol.c
@@ -175,6 +175,9 @@ NTSTATUS wbsrv_samba3_handle_call(struct wbsrv_samba3_call *s3call)
case WINBINDD_DUAL_GID2SID:
return wbsrv_samba3_gid2sid(s3call);
+ case WINBINDD_DOMAIN_INFO:
+ return wbsrv_samba3_domain_info(s3call);
+
/* Unimplemented commands */
case WINBINDD_PAM_CHAUTHTOK:
@@ -187,7 +190,6 @@ NTSTATUS wbsrv_samba3_handle_call(struct wbsrv_samba3_call *s3call)
case WINBINDD_SET_MAPPING:
case WINBINDD_REMOVE_MAPPING:
case WINBINDD_SET_HWM:
- case WINBINDD_DOMAIN_INFO:
case WINBINDD_SHOW_SEQUENCE:
case WINBINDD_WINS_BYIP:
case WINBINDD_WINS_BYNAME: