summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-12-17 09:35:54 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:53:40 -0500
commitefe5a8eb0bb8805d1630663ad827ef3a68565f37 (patch)
treeed7202c2da7ba90512edcccbec81b507975b8daa /source3
parented0131feddefa322f6b0a1f82cc7ce0ba3b1b948 (diff)
downloadsamba-efe5a8eb0bb8805d1630663ad827ef3a68565f37.tar.gz
samba-efe5a8eb0bb8805d1630663ad827ef3a68565f37.tar.bz2
samba-efe5a8eb0bb8805d1630663ad827ef3a68565f37.zip
r4252: Comment clarification from Love Hörnquist Åstrand <lha@stacken.kth.se>.
Thanks, Volker (This used to be commit 207625c7ab8ce41d7b59981e6a767dc299178335)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/afs.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/source3/lib/afs.c b/source3/lib/afs.c
index 8688fde6b1..d3921ab9be 100644
--- a/source3/lib/afs.c
+++ b/source3/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;