struct winbindd_request *request,
struct winbindd_response *response);
+/* List groups a user is a member of */
+
static BOOL wbinfo_get_usergroups(char *user)
{
struct winbindd_request request;
static BOOL wbinfo_check_secret(void)
{
- return False;
+ struct winbindd_response response;
+ BOOL result;
+
+ ZERO_STRUCT(response);
+
+ result = winbindd_request(WINBINDD_CHECK_MACHACC, NULL, &response) ==
+ NSS_STATUS_SUCCESS;
+
+ if (result) {
+
+ if (response.data.num_entries) {
+ printf("Secret is good\n");
+ } else {
+ printf("Secret is bad\n");
+ }
+
+ return True;
+ }
+
+ return False;
}
/* Convert uid to sid */
return 1;
}
break;
-
- /* Invalid option */
+
+ /* Invalid option */
default:
usage();