1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-26 01:49:31 +03:00

winbindd: winbindd_info() -> bool_dispatch_table

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Volker Lendecke
2018-05-02 16:36:49 +02:00
parent 214d78a6fa
commit 25c365c637
3 changed files with 6 additions and 4 deletions

View File

@ -534,7 +534,6 @@ static struct winbindd_dispatch_table {
/* Miscellaneous */
{ WINBINDD_INFO, winbindd_info, "INFO" },
{ WINBINDD_PING, winbindd_ping, "PING" },
{ WINBINDD_DOMAIN_NAME, winbindd_domain_name, "DOMAIN_NAME" },
{ WINBINDD_DOMAIN_INFO, winbindd_domain_info, "DOMAIN_INFO" },
@ -560,6 +559,9 @@ static struct winbindd_bool_dispatch_table {
{ WINBINDD_INTERFACE_VERSION,
winbindd_interface_version,
"INTERFACE_VERSION" },
{ WINBINDD_INFO,
winbindd_info,
"INFO" },
};
struct winbindd_async_dispatch_table {

View File

@ -510,14 +510,14 @@ void winbindd_ping(struct winbindd_cli_state *state)
/* List various tidbits of information */
void winbindd_info(struct winbindd_cli_state *state)
bool winbindd_info(struct winbindd_cli_state *state)
{
DEBUG(3, ("[%5lu]: request misc info\n", (unsigned long)state->pid));
state->response->data.info.winbind_separator = *lp_winbind_separator();
fstrcpy(state->response->data.info.samba_version, samba_version_string());
request_ok(state);
return true;
}
/* Tell the client the current interface version */

View File

@ -388,7 +388,7 @@ void winbindd_show_sequence(struct winbindd_cli_state *state);
void winbindd_domain_info(struct winbindd_cli_state *state);
void winbindd_dc_info(struct winbindd_cli_state *state);
void winbindd_ping(struct winbindd_cli_state *state);
void winbindd_info(struct winbindd_cli_state *state);
bool winbindd_info(struct winbindd_cli_state *state);
bool winbindd_interface_version(struct winbindd_cli_state *state);
void winbindd_domain_name(struct winbindd_cli_state *state);
void winbindd_netbios_name(struct winbindd_cli_state *state);