1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x10,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x02, 0x00, 0x00, 0x58, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x68, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x00, 0x0c, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x78, 0x02, 0x00, 0x00,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0xb8,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x10, 0x00,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x00, 0x00, 0xc8, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x08,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x00, 0xcc, 0xcc, 0xcc, 0xcc, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x00, 0x00, 0x02, 0x00, 0x30, 0xe3, 0xd6, 0x9e, 0x99, 0x2b, 0xd3, 0x01, 0xff,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0xff, 0x7f, 0xe2, 0xf7, 0x8a, 0xaf, 0x00, 0x0f, 0xd0, 0x01, 0xe2, 0xb7, 0xf4,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0xd9, 0xc9, 0x0f, 0xd0, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x06, 0x00, 0x06, 0x00, 0x04, 0x00, 0x02, 0x00, 0x06, 0x00, 0x06, 0x00, 0x08,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x02, 0x00, 0x00, 0x00,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x00, 0x00, 0x10, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x02,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x02, 0x00, 0x45, 0x02, 0x00, 0x00,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x50, 0x04, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x1c,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x00, 0x02, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x00, 0x14,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x00, 0x20, 0x00, 0x02, 0x00, 0x04, 0x00, 0x06, 0x00, 0x24, 0x00, 0x02, 0x00,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x28, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x2c, 0x00, 0x02, 0x00,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x74, 0x00,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x75, 0x00, 0x31, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x00, 0x03, 0x00, 0x00, 0x00, 0x74, 0x00, 0x20, 0x00, 0x75, 0x00, 0x00, 0x00,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0xfd, 0xa2, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0x07,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x00, 0x00, 0x00, 0x5c, 0x04, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x56, 0x04,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x89, 0xa6, 0x00, 0x00, 0x07, 0x00, 0x00,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x41, 0x00, 0x44, 0x00, 0x2d, 0x00, 0x53, 0x00, 0x45, 0x00, 0x52, 0x00, 0x56,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x00, 0x45, 0x00, 0x52, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x41, 0x00, 0x44, 0x00, 0x04, 0x00, 0x00,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x00, 0x01, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x15, 0x00, 0x00, 0x00,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0xf8, 0x12, 0x13, 0xdc, 0x47, 0xf3, 0x1c, 0x76, 0x47, 0x2f, 0x2e, 0xd7, 0x02,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x00, 0x00, 0x00, 0x30, 0x00, 0x02, 0x00, 0x07, 0x00, 0x00, 0x00, 0x34, 0x00,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x02, 0x00, 0x07, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x01, 0x05, 0x00,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x00, 0x00, 0x00, 0x00, 0x05, 0x15, 0x00, 0x00, 0x00, 0x29, 0xc9, 0x4f, 0xd9,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0xc2, 0x3c, 0xc3, 0x78, 0x36, 0x55, 0x87, 0xf8, 0x54, 0x04, 0x00, 0x00, 0x05,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x00, 0x00, 0x00, 0x01, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x15, 0x00,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x00, 0x00, 0x25, 0xe1, 0xff, 0x1c, 0xf7, 0x87, 0x6b, 0x2c, 0x25, 0xd2, 0x0c,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0xe3, 0xf2, 0x03, 0x00, 0x00, 0x00, 0x2c, 0x29, 0x89, 0x65, 0x2d, 0xd3, 0x01,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x06, 0x00, 0x74, 0x00, 0x75, 0x00, 0x31, 0x00, 0x20, 0x00, 0x10, 0x00, 0x10,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x74, 0x00,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x75, 0x00, 0x31, 0x00, 0x74, 0x00, 0x65, 0x00, 0x73, 0x00, 0x74, 0x00, 0x40,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x00, 0x61, 0x00, 0x64, 0x00, 0x2e, 0x00, 0x64, 0x00, 0x65, 0x00, 0x76, 0x00,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x65, 0x00, 0x6c, 0x00, 0x41, 0x00, 0x44, 0x00, 0x2e, 0x00, 0x44, 0x00, 0x45,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x00, 0x56, 0x00, 0x45, 0x00, 0x4c, 0x00, 0x10, 0x00, 0x00, 0x00, 0x76, 0x8e,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x25, 0x32, 0x7c, 0x85, 0x00, 0x32, 0xac, 0x8f, 0x02, 0x2c, 0x10, 0x00, 0x00,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose0x00, 0x6b, 0xe8, 0x51, 0x03, 0x30, 0xed, 0xca, 0x7d, 0xe2, 0x12, 0xa5, 0xde};
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Boseenum nss_status _nss_sss_getpwuid_r(uid_t uid, struct passwd *result,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose struct sss_cli_req_data sss_data = { sizeof(pac), pac };
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose fprintf(stderr, "[%ld][%d][%ld][%s] started\n", time(NULL), getpid(),
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose for (c = 0; c < 1000; c++) {
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose /* sss_pac_make_request() does not protect the client's file
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose * descriptor to the PAC responder. With this one thread will miss a
080e1bfb72ed0e8d96e390d83ad35eaba79bd450René Genz * reply for an SSS_GET_VERSION request and will wait until
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose * SSS_CLI_SOCKET_TIMEOUT is passed.
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose ret = sss_pac_make_request(SSS_PAC_ADD_PAC_USER, &sss_data,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose NULL, NULL, &errnop);
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose ret = sss_pac_make_request_with_lock(SSS_PAC_ADD_PAC_USER, &sss_data,
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose && !(ret == NSS_STATUS_UNAVAIL && errnop != ECONNREFUSED)) {
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose /* NSS_STATUS_UNAVAIL is returned if the PAC responder rejects
080e1bfb72ed0e8d96e390d83ad35eaba79bd450René Genz * the request which is ok because the client is waiting for a
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose * response here as well. Only errnop == ECONNREFUSED should
080e1bfb72ed0e8d96e390d83ad35eaba79bd450René Genz * be treated as error because this means that the PAC
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose * responder is not running. */
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose fprintf(stderr, "pac: [%s][%d][%d]\n", (char *)arg, ret, errnop);
1f331476e7d33bb03cc35a2a9064ee1cc5bed6cfSumit Bose fprintf(stderr, "[%ld][%s] done\n", time(NULL),(char *) arg);