summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 523dfde)
raw | patch | inline | side by side (parent: 523dfde)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 2 Apr 2008 14:48:00 +0000 (14:48 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 2 Apr 2008 14:48:00 +0000 (14:48 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10123 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/fai/admin/fai/class_faiPackage.inc | patch | blob | history |
diff --git a/gosa-plugins/fai/admin/fai/class_faiPackage.inc b/gosa-plugins/fai/admin/fai/class_faiPackage.inc
index 8b1744ebd6928cbfaebfd7a9b1bd8e570900a24a..d76d2dd78824ab3f3af4ee5214a17708b1e99ad7 100644 (file)
}
FAI::prepare_to_save_FAI_object($this->dn,$this->attrs);
- $ldap->cd($this->dn);
-
+ if (!$ldap->success()){
+ msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, 0, get_class()));
+ }
+
if($this->initially_was_account){
new log("modify","fai/".get_class($this),$this->dn,$this->attributes);
- $ldap->modify($this->attrs);
}else{
new log("create","fai/".get_class($this),$this->dn,$this->attributes);
- $ldap->add($this->attrs);
}
- if (!$ldap->success()){
- msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, 0, get_class()));
- }
-
+ $ldap->cd($this->dn);
/* Save Package configurations */
foreach($this->ConfiguredPackages as $pkgname => $attrs){
$pkgattrs['FAIvariableContent'] = $attr['Value'];
$pkgdn = "FAIvariable=".$name.",".$this->dn;
- /* Tag object */
- $this->tag_attrs($pkgattrs, $pkgdn, $this->gosaUnitTag);
+ /* Tag object */
+ $this->tag_attrs($pkgattrs, $pkgdn, $this->gosaUnitTag);
if(in_array($pkgattrs['FAIvariableType'],array("boolean","multiselect","password","select","string","text"))){
FAI::prepare_to_save_FAI_object($pkgdn,$pkgattrs);