summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f217c69)
raw | patch | inline | side by side (parent: f217c69)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 25 Apr 2008 12:00:27 +0000 (12:00 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 25 Apr 2008 12:00:27 +0000 (12:00 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10689 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 508a3d15bebe54109a4f03584300f7d92d8c2d97..f72ec66b4358b320f361055b8f0524671683267a 100644 (file)
/* Create Realm/Server/Principal mapping.
*/
foreach($principals as $principal){
- $this->map["PRINCIPAL_SERVER"][$principal] => $attrs['cn'][0];
- $this->map["PRINCIPAL_REALM"] [$principal] => $attrs['goKrbRealm'][0];
+ $this->map["PRINCIPAL_SERVER"][$principal] = $attrs['cn'][0];
+ $this->map["PRINCIPAL_REALM"] [$principal] = $attrs['goKrbRealm'][0];
}
- $this->map["SERVER_REALM"] [$attrs['cn'][0]] => $attrs['goKrbRealm'][0];
- $this->map["REALM_SERVER"] [$attrs['goKrbRealm'][0]] => $attrs['cn'][0];
+ $this->map["SERVER_REALM"][$attrs['cn'][0]] = $attrs['goKrbRealm'][0];
+ $this->map["REALM_SERVER"][$attrs['goKrbRealm'][0]] = $attrs['cn'][0];
/* Create Server list
*/
$this->server_list[$attrs['cn'][0]] = array("macAddress" => $attrs['macAddress'][0],
"description"=> $attrs['description'][0],
"dn" => $attrs['dn'],
- "principals" => $principals
+ "principals" => $principals,
"goKrbRealm" => $attrs['goKrbRealm'][0],
"cn" => $attrs['cn'][0]);
}
function remove_from_parent()
{
- if(!empty($this->principal && $this->goKrbRealm)){
+ if(!empty($this->principal) && $this->goKrbRealm){
$server = $this->map['REALM_SERVER'][$this->goKrbRealm];
$o = new gosaSupportDaemon();
if(!$o->krb5_del_principal($this->server_list[$server]['macAddress'],$this->principal)){
function set_password($password)
{
- if(!empty($this->principal && $this->goKrbRealm)){
+ if(!empty($this->principal) && $this->goKrbRealm){
$server = $this->map['REALM_SERVER'][$this->goKrbRealm];
$o = new gosaSupportDaemon();