summaryrefslogtreecommitdiff
path: root/source4/winbind
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2009-08-13 09:42:14 +0200
committerKai Blin <kai@samba.org>2009-08-18 20:26:10 +0200
commit7cafb65387f50a58172acb1d0e8e5962e615a522 (patch)
tree33370165a61a90855674bb50050eaf44ad3ce3a9 /source4/winbind
parentbc0e0a4c69d11fbdb61b1edc1e8d088090807249 (diff)
downloadsamba-7cafb65387f50a58172acb1d0e8e5962e615a522.tar.gz
samba-7cafb65387f50a58172acb1d0e8e5962e615a522.tar.bz2
samba-7cafb65387f50a58172acb1d0e8e5962e615a522.zip
s4 winbind: Implement a stubbed out version of WINBINDD_DOMAIN_INFO
Diffstat (limited to 'source4/winbind')
-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: