summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1b98e1e)
raw | patch | inline | side by side (parent: 1b98e1e)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 8 Sep 2006 06:32:13 +0000 (06:32 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 8 Sep 2006 06:32:13 +0000 (06:32 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4622 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/fai/class_faiProfile.inc | patch | blob | history |
index 40c61eb329fbc33aa2238fc939b48fbd6d67d415..65871611b31db6f43195d4ea74c3c9d924ceaa8b 100644 (file)
$ldap = $this->config->get_ldap_link();
$ldap->cd($_SESSION['CurrentMainBase']);
- $ldap->search("(&(objectClass=FAIprofile)(cn=".$this->cn.")(!cn=".$this->old_cn."))",array("*"));
+ if ($this->old_cn == ""){
+ $ldap->search("(&(objectClass=FAIprofile)(cn=".$this->cn."))",array("*"));
+ } else {
+ $ldap->search("(&(objectClass=FAIprofile)(cn=".$this->cn.")(!cn=".$this->old_cn."))",array("*"));
+ }
if($ldap->count()){
$message[]=_("There is already a profile with this class name defined.");