summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ea54e71)
raw | patch | inline | side by side (parent: ea54e71)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 6 May 2008 07:25:10 +0000 (07:25 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 6 May 2008 07:25:10 +0000 (07:25 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10778 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/heimdal/admin/systems/services/kerberos/class_password-methods-MIT.inc | patch | blob | history |
diff --git a/gosa-plugins/heimdal/admin/systems/services/kerberos/class_password-methods-MIT.inc b/gosa-plugins/heimdal/admin/systems/services/kerberos/class_password-methods-MIT.inc
index 3cdad03185d9bb86ef634b33e8d4dfce1086b986..54ef642e9089628b02c866c087a4806a51c81a3c 100644 (file)
/* Try to detect server our principal is configured on
*/
- if($this->map['PRINCIPAL_SERVER'][$p_name]){
+ if(isset($this->map['PRINCIPAL_SERVER'][$p_name])){
$server= $this->map['PRINCIPAL_SERVER'][$p_name];
$this->goKrbRealm = $this->map['SERVER_REALM'][$server];
$this->principal = $p_name;
$o = new gosaSupportDaemon();
$tmp = array();
$tmp = $o->krb5_get_principal($server,$name);
+
+ print_a($tmp);
+
if($o->is_error()){
$this->si_error = TRUE;
/* Load flags
*/
- if(isset($tmp['ATTRIBUTES'])){
- foreach($this->flags as $flag){
- if(in_array($flag,$tmp['ATTRIBUTES'])){
- $this->$flag = TRUE;
- }
- }
- }
+# if(isset($tmp['ATTRIBUTES'])){
+# foreach($this->flags as $flag){
+# if(in_array($flag,$tmp['ATTRIBUTES'])){
+# $this->$flag = TRUE;
+# }
+# }
+# }
/* Load readonly attributes
*/
foreach($this->readonly as $attr){
if(isset($tmp[$attr])){
- $this->$flag = $tmp[$attr];
+ $this->$attr = $tmp[$attr];
}
}
*/
foreach($this->values as $attr){
if(isset($tmp[$attr])){
- $this->$flag = $tmp[$attr];
+ $this->$attr = $tmp[$attr];
}
}
}
}
}
if(count($flags)){
- $entry['ATTRIBUTES'] = $flags;
+ $entry['ATTRIBUTES'] = "23";
}
/* Append other values */
$entry['POLICY'] = $policy;
}
+ foreach(array("PRINC_EXPIRE_TIME","PW_EXPIRATION") as $times){
+ if(!empty($entry[$times])) {
+ $entry[$times] = strtotime($entry[$times]);
+ }
+ }
+
/* Save principal changes */
$o = new gosaSupportDaemon();
if(in_array($principal,$this->server_list[$server_name]['principals'])){