summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 336bbfb)
raw | patch | inline | side by side (parent: 336bbfb)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 14 Dec 2010 13:52:58 +0000 (13:52 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 14 Dec 2010 13:52:58 +0000 (13:52 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@20555 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/functions.inc | patch | blob | history |
index f49f98e5c43990a1f5c4f6d5810c4b9e8f081edd..a126ff8d8d6970dfa52b2b63cf6536d8c9535da3 100644 (file)
// Fetch required attributes
foreach(array('shadowExpire','shadowLastChange','shadowMax','shadowMin',
- 'shadowInactive','shadowWarning') as $attr){
+ 'shadowInactive','shadowWarning','sambaKickoffTime') as $attr){
$$attr = (isset($attrs[$attr][0]))? $attrs[$attr][0] : null;
}
+ // Check if the account has reached its kick off limitations.
+ // ---------------------------------------------------------
+ // Once the accout reaches the kick off limit it has expired.
+ if($sambaKickoffTime !== null){
+ if(time() >= $sambaKickoffTime){
+ return(POSIX_ACCOUNT_EXPIRED);
+ }
+ }
+
+
// Check if the account has expired.
// ---------------------------------
// An account is locked/expired once its expiration date has reached (shadowExpire).