/* Call for the first time */
- ZERO_STRUCT(response);
- ZERO_STRUCT(request);
-
- request.data.uid = uid;
+ response = (struct winbindd_response) {
+ .length = 0,
+ };
+ request = (struct winbindd_request) {
+ .wb_flags = WBFLAG_FROM_NSS,
+ .data = {
+ .uid = uid,
+ },
+ };
winbind_set_client_name("nss_winbind");
ret = winbindd_request_response(NULL, WINBINDD_GETPWUID, &request, &response);
/* Call for the first time */
- ZERO_STRUCT(response);
- ZERO_STRUCT(request);
+ response = (struct winbindd_response) {
+ .length = 0,
+ };
+ request = (struct winbindd_request) {
+ .wb_flags = WBFLAG_FROM_NSS,
+ };
strncpy(request.data.username, name,
sizeof(request.data.username) - 1);
/* Call for the first time */
- ZERO_STRUCT(request);
- ZERO_STRUCT(response);
+ response = (struct winbindd_response) {
+ .length = 0,
+ };
+ request = (struct winbindd_request) {
+ .wb_flags = WBFLAG_FROM_NSS,
+ };
strncpy(request.data.groupname, name,
sizeof(request.data.groupname));
/* Call for the first time */
- ZERO_STRUCT(request);
- ZERO_STRUCT(response);
+ response = (struct winbindd_response) {
+ .length = 0,
+ };
+ request = (struct winbindd_request) {
+ .wb_flags = WBFLAG_FROM_NSS,
+ };
+
request.data.gid = gid;