index e90e7e9b285c50af39b682dbbe92735117e93141..ae7d76f634fb23c828cfb6c34ba878859c0a067f 100644 (file)
foreach($this->SubObjects as $obj){
if($obj['status'] != "delete"){
- if((isset($obj['description']))&&(!empty($obj['description']))){
+ if((isset($obj['description']))&&(!empty($obj['description']))&&(!preg_match("/\[\*\]/",$obj['description']))){
if (preg_match("/\[\*\]/", $obj['description'])){
$a_return[$obj['cn']]= $obj['cn']." [".preg_replace("/\s*\[\*\]\s*/", "", $obj['description'])."]";
} else {
$tmp['objectClass'] = $this->subClasses;
$sub_dn = "cn=".$obj['cn'].",".$this->dn;
+
+ if($obj['status']=="new"){
+ $ldap->cat($sub_dn);
+ if($ldap->count()){
+ $obj['status']="modify";
+ }
+ }
if($obj['status'] == "delete"){
$ldap->cd($sub_dn);