summaryrefslogtreecommitdiff
path: root/source4/kdc/hdb-ldb.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-06-28 00:56:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:18:55 -0500
commit3ff79165715049f265ee35196c417a800808f088 (patch)
treeb56b46f648a3af2bcde539b1c45371058b2f9a5c /source4/kdc/hdb-ldb.c
parentf9861c9c5aee332545a9ea51683da28a87bdb10c (diff)
downloadsamba-3ff79165715049f265ee35196c417a800808f088.tar.gz
samba-3ff79165715049f265ee35196c417a800808f088.tar.bz2
samba-3ff79165715049f265ee35196c417a800808f088.zip
r7969: It seems reasonable that our tickets be marked renewable, in the
absense of an apparent AD flag to control this behaviour. Andrew Bartlett (This used to be commit 9886aa6f0e64cdb30774bfba3f2c683a3dbec9c4)
Diffstat (limited to 'source4/kdc/hdb-ldb.c')
-rw-r--r--source4/kdc/hdb-ldb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/kdc/hdb-ldb.c b/source4/kdc/hdb-ldb.c
index 149ebeedca..231d7db436 100644
--- a/source4/kdc/hdb-ldb.c
+++ b/source4/kdc/hdb-ldb.c
@@ -109,6 +109,8 @@ static HDBFlags uf2HDBFlags(krb5_context context, int userAccountControl, enum h
/* mark the principal as invalid to start with */
flags.invalid = 1;
+ flags.renewable = 1;
+
/* Account types - clear the invalid bit if it turns out to be valid */
if (userAccountControl & UF_NORMAL_ACCOUNT) {
if (ent_type == HDB_LDB_ENT_TYPE_CLIENT || ent_type == HDB_LDB_ENT_TYPE_ANY) {