From 7cafb65387f50a58172acb1d0e8e5962e615a522 Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Thu, 13 Aug 2009 09:42:14 +0200 Subject: [PATCH] s4 winbind: Implement a stubbed out version of WINBINDD_DOMAIN_INFO --- source4/winbind/wb_samba3_cmd.c | 16 ++++++++++++++++ source4/winbind/wb_samba3_protocol.c | 4 +++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/source4/winbind/wb_samba3_cmd.c b/source4/winbind/wb_samba3_cmd.c index 2c273e517595..7f5a69ca6bbc 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 77c5bf3a1eca..829a26cd503b 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: -- 2.34.1