* TAG_AUTH_REQUEST: client->server::
__le32 method; // CEPH_AUTH_{NONE, CEPHX, ...}
- __le32 len;
method specific payload
-* TAG_AUTH_BAD_METHOD (server only): reject client-selected auth method::
+* TAG_AUTH_BAD_METHOD server -> client: reject client-selected auth method::
__le32 method
+ __le32 negative error result code
__le32 num_methods
__le32 allowed_methods[num_methods] // CEPH_AUTH_{NONE, CEPHX, ...}
- - Returns the unsupported/forbidden method along with the list of allowed
- authentication methods.
-
-* TAG_AUTH_BAD_AUTH: server->client::
-
- __le32 error code (e.g., EPERM, EACCESS)
- __le32 len;
- error string;
-
- - Sent when the authentication fails
+ - Returns the attempted auth method, and error code (-EOPNOTSUPP if
+ the method is unsupported), and the list of allowed authentication
+ methods.
* TAG_AUTH_REPLY_MORE: server->client::
* TAG_AUTH_DONE: (server->client)::
- confounder (block_size bytes of random garbage)
- __le64 flags
- FLAG_ENCRYPTED 1
- FLAG_SIGNED 2
- signature
+ __le64 global_id
+ method specific payload
- The server is the one to decide authentication has completed.