s4:kdc: UF_TRUSTED_TO_AUTHENTICATE_FOR_DELEGATION => flags.trusted_for_delegation
authorStefan Metzmacher <metze@samba.org>
Thu, 7 Apr 2011 10:16:16 +0000 (12:16 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 18 May 2011 05:46:43 +0000 (07:46 +0200)
metze

source4/kdc/db-glue.c

index 732e553ca3d96d2fac09069344018897d474d715..1d37be40206f62aa14331bfef8760c7b7403ffae 100644 (file)
@@ -159,6 +159,20 @@ static HDBFlags uf2HDBFlags(krb5_context context, uint32_t userAccountControl, e
        if (userAccountControl & UF_TRUSTED_FOR_DELEGATION) {
                flags.ok_as_delegate = 1;
        }
+       if (userAccountControl & UF_TRUSTED_TO_AUTHENTICATE_FOR_DELEGATION) {
+               /*
+                * this is confusing...
+                *
+                * UF_TRUSTED_FOR_DELEGATION
+                * => ok_as_delegate
+                *
+                * and
+                *
+                * UF_TRUSTED_TO_AUTHENTICATE_FOR_DELEGATION
+                * => trusted_for_delegation
+                */
+               flags.trusted_for_delegation = 1;
+       }
        if (!(userAccountControl & UF_NOT_DELEGATED)) {
                flags.forwardable = 1;
                flags.proxiable = 1;