summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bc46025)
raw | patch | inline | side by side (parent: bc46025)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 5 Dec 2007 14:56:32 +0000 (14:56 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 5 Dec 2007 14:56:32 +0000 (14:56 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8021 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_password-methods-heimdal.inc | patch | blob | history |
diff --git a/include/class_password-methods-heimdal.inc b/include/class_password-methods-heimdal.inc
index d6c6f50552908c5dfdd9e727d7e4dde4dfa5d19e..7508feb79e0c25fd520895224460e8525322575f 100644 (file)
$this->config= $config;
$this->parent_dn = $dn;
+ $this->is_account = FALSE;
+ $this->krb5MaxLife = 86400;
+ $this->krb5MaxRenew = 604800;
+ $this->krb5ValidStart = date("YmdHi",time()."Z");
+ $this->krb5ValidEnd = date("YmdHi",time()."Z");
+ $this->krb5PasswordEnd= date("YmdHi",time()."Z");
+
/* Load existing entries */
- $this->krb5MaxLife = "86400";
- $this->krb5MaxRenew = "604800";
- if($dn == "new"){
- $this->is_account = FALSE;
- }else{
+ if($dn != "new"){
$ldap = $this->config->get_ldap_link();
$ldap->cd($dn);
$ldap->ls("objectClass=krb5Principal",$dn,array("*"));
foreach($this->attributes as $attr){
if(isset($this->attrs[$attr][0])){
$this->$attr = $this->attrs[$attr][0];
+ }else{
+ $this->$attr = "";
}
}
}elseif($ldap->count() >= 2){