summaryrefslogtreecommitdiffstats
path: root/source/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-12-17 09:35:54 +0000
committerVolker Lendecke <vlendec@samba.org>2004-12-17 09:35:54 +0000
commit373fb371423bb9c26b7298d578edfa0f49b098f1 (patch)
treef7d170a9064777530814107a357600466bade0b0 /source/lib
parent8d9a90386159653f11d81b6d98bd31d5d33237b4 (diff)
downloadsamba-373fb371423bb9c26b7298d578edfa0f49b098f1.tar.gz
samba-373fb371423bb9c26b7298d578edfa0f49b098f1.tar.xz
samba-373fb371423bb9c26b7298d578edfa0f49b098f1.zip
r4252: Comment clarification from Love Hörnquist Åstrand <lha@stacken.kth.se>.
Thanks, Volker
Diffstat (limited to 'source/lib')
-rw-r--r--source/lib/afs.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/source/lib/afs.c b/source/lib/afs.c
index 8688fde6b1c..d3921ab9be7 100644
--- a/source/lib/afs.c
+++ b/source/lib/afs.c
@@ -124,9 +124,13 @@ static BOOL afs_createtoken(const char *username, const char *cell,
p += 8;
- /* Ticket lifetime. We fake everything here, so go as long as
- possible. This is in 5-minute intervals, so 255 is 21 hours
- and 15 minutes.*/
+ /* This is a kerberos 4 life time. The life time is expressed
+ * in units of 5 minute intervals up to 38400 seconds, after
+ * that a table is used up to lifetime 0xBF. Values between
+ * 0xC0 and 0xFF is undefined. 0xFF is defined to be the
+ * infinite time that never expire.
+ *
+ * So here we cheat and use the infinite time */
*p = 255;
p += 1;