• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/samba-3.0.13/source/nsswitch/

Lines Matching refs:response

35 	struct winbindd_response response;
42 ZERO_STRUCT(response);
46 if (winbindd_request(WINBINDD_INFO, NULL, &response) !=
53 sep = response.data.info.winbind_separator;
67 struct winbindd_response response;
70 ZERO_STRUCT(response);
74 if (winbindd_request(WINBINDD_DOMAIN_NAME, NULL, &response) !=
82 fstrcpy(winbind_domain, response.data.domain_name);
116 struct winbindd_response response;
120 ZERO_STRUCT(response);
126 result = winbindd_request(WINBINDD_GETGROUPS, &request, &response);
131 for (i = 0; i < response.data.num_entries; i++)
132 d_printf("%d\n", (int)((gid_t *)response.extra_data)[i]);
134 SAFE_FREE(response.extra_data);
144 struct winbindd_response response;
149 ZERO_STRUCT(response);
154 result = winbindd_request(WINBINDD_GETUSERSIDS, &request, &response);
159 s = response.extra_data;
160 for (i = 0; i < response.data.num_entries; i++) {
165 SAFE_FREE(response.extra_data);
175 struct winbindd_response response;
178 ZERO_STRUCT(response);
184 if (winbindd_request(WINBINDD_WINS_BYNAME, &request, &response) !=
189 /* Display response */
191 printf("%s\n", response.data.winsresp);
201 struct winbindd_response response;
204 ZERO_STRUCT(response);
210 if (winbindd_request(WINBINDD_WINS_BYIP, &request, &response) !=
215 /* Display response */
217 printf("%s\n", response.data.winsresp);
226 struct winbindd_response response;
229 ZERO_STRUCT(response);
233 if (winbindd_request(WINBINDD_LIST_TRUSTDOM, NULL, &response) !=
237 /* Display response */
239 if (response.extra_data) {
240 const char *extra_data = (char *)response.extra_data;
245 SAFE_FREE(response.extra_data);
256 struct winbindd_response response;
258 ZERO_STRUCT(response);
266 if (winbindd_request(WINBINDD_SHOW_SEQUENCE, &request, &response) !=
270 /* Display response */
272 if (response.extra_data) {
273 char *extra_data = (char *)response.extra_data;
275 SAFE_FREE(response.extra_data);
286 struct winbindd_response response;
289 ZERO_STRUCT(response);
295 if (winbindd_request(WINBINDD_DOMAIN_INFO, &request, &response) !=
299 /* Display response */
301 d_printf("Name : %s\n", response.data.domain_info.name);
302 d_printf("Alt_Name : %s\n", response.data.domain_info.alt_name);
304 d_printf("SID : %s\n", response.data.domain_info.sid);
307 response.data.domain_info.active_directory ? "Yes" : "No");
309 response.data.domain_info.native_mode ? "Yes" : "No");
312 response.data.domain_info.primary ? "Yes" : "No");
314 d_printf("Sequence : %d\n", response.data.domain_info.sequence_number);
323 struct winbindd_response response;
326 ZERO_STRUCT(response);
328 result = winbindd_request(WINBINDD_CHECK_MACHACC, NULL, &response);
335 response.data.auth.nt_status_string,
336 response.data.auth.nt_status);
346 struct winbindd_response response;
349 ZERO_STRUCT(response);
355 if (winbindd_request(WINBINDD_UID_TO_SID, &request, &response) !=
359 /* Display response */
361 d_printf("%s\n", response.data.sid.sid);
371 struct winbindd_response response;
374 ZERO_STRUCT(response);
380 if (winbindd_request(WINBINDD_GID_TO_SID, &request, &response) !=
384 /* Display response */
386 d_printf("%s\n", response.data.sid.sid);
396 struct winbindd_response response;
399 ZERO_STRUCT(response);
405 if (winbindd_request(WINBINDD_SID_TO_UID, &request, &response) !=
409 /* Display response */
411 d_printf("%d\n", (int)response.data.uid);
419 struct winbindd_response response;
422 ZERO_STRUCT(response);
428 if (winbindd_request(WINBINDD_SID_TO_GID, &request, &response) !=
432 /* Display response */
434 d_printf("%d\n", (int)response.data.gid);
456 struct winbindd_response response;
459 ZERO_STRUCT(response);
465 if (winbindd_request(WINBINDD_LOOKUPSID, &request, &response) !=
469 /* Display response */
471 d_printf("%s%c%s %d\n", response.data.name.dom_name,
472 winbind_separator(), response.data.name.name,
473 response.data.name.type);
483 struct winbindd_response response;
488 ZERO_STRUCT(response);
493 if (winbindd_request(WINBINDD_LOOKUPNAME, &request, &response) !=
497 /* Display response */
499 d_printf("%s %s (%d)\n", response.data.sid.sid, sid_type_lookup(response.data.sid.type), response.data.sid.type);
509 struct winbindd_response response;
516 ZERO_STRUCT(response);
528 result = winbindd_request(WINBINDD_PAM_AUTH, &request, &response);
530 /* Display response */
535 if (response.data.auth.nt_status)
537 response.data.auth.nt_status_string,
538 response.data.auth.nt_status,
539 response.data.auth.error_string);
544 /* Authenticate a user with a challenge/response */
549 struct winbindd_response response;
559 ZERO_STRUCT(response);
626 result = winbindd_request(WINBINDD_PAM_AUTH_CRAP, &request, &response);
628 /* Display response */
630 d_printf("challenge/response password authentication %s\n",
633 if (response.data.auth.nt_status)
635 response.data.auth.nt_status_string,
636 response.data.auth.nt_status,
637 response.data.auth.error_string);
647 struct winbindd_response response;
654 ZERO_STRUCT(response);
670 result = winbindd_request(WINBINDD_PAM_AUTH, &request, &response);
672 /* Display response */
677 if (response.data.auth.nt_status)
679 response.data.auth.nt_status_string,
680 response.data.auth.nt_status,
681 response.data.auth.error_string);
686 if (response.extra_data == NULL) {
691 if (!afs_settoken_str((char *)response.extra_data)) {
707 struct winbindd_response response;
713 ZERO_STRUCT(response);
718 result = winbindd_request(WINBINDD_CREATE_USER, &request, &response);
721 d_printf("New RID is %d\n", response.data.rid);
733 struct winbindd_response response;
739 ZERO_STRUCT(response);
743 result = winbindd_request(WINBINDD_DELETE_USER, &request, &response);
755 struct winbindd_response response;
761 ZERO_STRUCT(response);
765 result = winbindd_request(WINBINDD_CREATE_GROUP, &request, &response);
777 struct winbindd_response response;
783 ZERO_STRUCT(response);
787 result = winbindd_request(WINBINDD_DELETE_GROUP, &request, &response);
822 struct winbindd_response response;
828 ZERO_STRUCT(response);
837 result = winbindd_request(WINBINDD_ADD_USER_TO_GROUP, &request, &response);
849 struct winbindd_response response;
855 ZERO_STRUCT(response);
864 result = winbindd_request(WINBINDD_REMOVE_USER_FROM_GROUP, &request, &response);
874 struct winbindd_response response;
881 ZERO_STRUCT(response);
891 if (winbindd_request(WINBINDD_LIST_USERS, &request, &response) !=
897 if (!response.extra_data)
900 extra_data = (const char *)response.extra_data;
905 SAFE_FREE(response.extra_data);
915 struct winbindd_response response;
920 ZERO_STRUCT(response);
929 if (winbindd_request(WINBINDD_LIST_GROUPS, &request, &response) !=
935 if (!response.extra_data)
938 extra_data = (const char *)response.extra_data;
943 SAFE_FREE(response.extra_data);
1046 /* Display response */
1268 "challenge/response\n", string_arg);