forked from extern/egroupware
Fix Netscape to export base64 encoded fields as required, and fix fields in phpgw_LDIF
This commit is contained in:
parent
d2b5ae466b
commit
0f6b8c94d1
@ -75,6 +75,11 @@
|
||||
// name/value are the fields from the export array above
|
||||
function export_new_attrib($buffer,$name,$value) {
|
||||
if ($this->export[$name]) {
|
||||
if (strstr($value,"\n")) {
|
||||
$value = ": ".base64_encode($value);
|
||||
} else {
|
||||
$value = " ".$value;
|
||||
}
|
||||
$buffer[$this->id][$this->export[$name]] = $value;
|
||||
//echo '<br>'.$this->id.' - '.$this->export[$name].': '.$buffer[$this->id][$this->export[$name]];
|
||||
}
|
||||
@ -103,7 +108,7 @@
|
||||
reset($this->export);
|
||||
while (list($name,$value)=each($this->export)) {
|
||||
if ($value != 'dn') {
|
||||
$entries .= $value . ": " . $buffer[$i][$value] . "\n";
|
||||
$entries .= $value . ":" . $buffer[$i][$value] . "\n";
|
||||
}
|
||||
}
|
||||
$entries .= "xmozillauseconferenceserver: " . $buffer[$i]["xmozillauseconferenceserver"] . "\n";
|
||||
|
@ -42,8 +42,8 @@
|
||||
"url" => "url",
|
||||
"pubkey" => "publickey",
|
||||
|
||||
"org_name" => "o", // company
|
||||
"org_unit" => "ou", // division
|
||||
"org_name" => "phpgworgname", // company
|
||||
"org_unit" => "phpgworgunit", // division
|
||||
"title" => "title",
|
||||
|
||||
"adr_one_street" => "street",
|
||||
|
Loading…
Reference in New Issue
Block a user