/* #define KDC_OPT_RESERVED 0x00040000 */
#define KDC_OPT_CNAME_IN_ADDL_TKT 0x00020000
#define KDC_OPT_CANONICALIZE 0x00010000
-#define KDC_OPT_REQUEST_ANONYMOUS 0x000080000
+#define KDC_OPT_REQUEST_ANONYMOUS 0x00008000
/* #define KDC_OPT_RESERVED 0x00004000 */
/* #define KDC_OPT_RESERVED 0x00002000 */
/* #define KDC_OPT_RESERVED 0x00001000 */
enc_tkt_reply.authorization_data = 0;
/* If anonymous requests are being used, adjust the realm of the client principal*/
- if (request->kdc_options & KDC_OPT_REQUEST_ANONYMOUS) {
+ if (isflagset(request->kdc_options, KDC_OPT_REQUEST_ANONYMOUS)) {
if (!krb5_principal_compare_any_realm(kdc_context, request->client,
krb5_anonymous_principal())) {
errcode = KRB5KDC_ERR_BADOPTION;
status = "Anonymous requested but anonymous principal not used.";
goto errout;
}
+ setflag(enc_tkt_reply.flags, TKT_FLG_ANONYMOUS);
krb5_free_principal(kdc_context, request->client);
errcode = krb5_copy_principal(kdc_context, krb5_anonymous_principal(),
&request->client);