···103 self._send_json_ok(gen_mockuser(username=username, uid=uid, gid=uid, home_directory=f"/home/{username}", snakeoil_pubkey=SNAKEOIL_PUBLIC_KEY))
104 return
1050000000000106 # authorize endpoint
107 elif pu.path == "/computeMetadata/v1/oslogin/authorize":
108 # is user allowed to login?
···103 self._send_json_ok(gen_mockuser(username=username, uid=uid, gid=uid, home_directory=f"/home/{username}", snakeoil_pubkey=SNAKEOIL_PUBLIC_KEY))
104 return
105106+ # we need to provide something at the groups endpoint.
107+ # the nss module does segfault if we don't.
108+ elif pu.path == "/computeMetadata/v1/oslogin/groups":
109+ self._send_json_ok({
110+ "posixGroups": [
111+ {"name" : "demo", "gid" : 4294967295}
112+ ],
113+ })
114+ return
115+116 # authorize endpoint
117 elif pu.path == "/computeMetadata/v1/oslogin/authorize":
118 # is user allowed to login?
···11 "11.4" = "082dkk5y34wyvjgj2p5j1d00rk8xaxb9z0mhvz16bd469r1bw2qk";
12 "11.5" = "sha256-AKRZbke0K59lakhTi8dX2cR2aBuWPZkiQxyKaZTvHrI=";
13 "11.6" = "sha256-AsLNmAplfuQbXg9zt09tXAuFJ524EtTYsQuUlV1tPkE=";
14- # maybe fixed by https://github.com/NVIDIA/cuda-samples/pull/133
15 "11.7" = throw "The tag 11.7 of cuda-samples does not exist";
16- "11.8" = throw "The tag 11.8 of cuda-samples does not exist";
17 }.${prev.cudaVersion};
1819in {
···11 "11.4" = "082dkk5y34wyvjgj2p5j1d00rk8xaxb9z0mhvz16bd469r1bw2qk";
12 "11.5" = "sha256-AKRZbke0K59lakhTi8dX2cR2aBuWPZkiQxyKaZTvHrI=";
13 "11.6" = "sha256-AsLNmAplfuQbXg9zt09tXAuFJ524EtTYsQuUlV1tPkE=";
014 "11.7" = throw "The tag 11.7 of cuda-samples does not exist";
15+ "11.8" = "sha256-7+1P8+wqTKUGbCUBXGMDO9PkxYr2+PLDx9W2hXtXbuc=";
16 }.${prev.cudaVersion};
1718in {