mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 04:11:49 +02:00
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
|
// name/value are the fields from the export array above
|
||||||
function export_new_attrib($buffer,$name,$value) {
|
function export_new_attrib($buffer,$name,$value) {
|
||||||
if ($this->export[$name]) {
|
if ($this->export[$name]) {
|
||||||
|
if (strstr($value,"\n")) {
|
||||||
|
$value = ": ".base64_encode($value);
|
||||||
|
} else {
|
||||||
|
$value = " ".$value;
|
||||||
|
}
|
||||||
$buffer[$this->id][$this->export[$name]] = $value;
|
$buffer[$this->id][$this->export[$name]] = $value;
|
||||||
//echo '<br>'.$this->id.' - '.$this->export[$name].': '.$buffer[$this->id][$this->export[$name]];
|
//echo '<br>'.$this->id.' - '.$this->export[$name].': '.$buffer[$this->id][$this->export[$name]];
|
||||||
}
|
}
|
||||||
|
@ -42,8 +42,8 @@
|
|||||||
"url" => "url",
|
"url" => "url",
|
||||||
"pubkey" => "publickey",
|
"pubkey" => "publickey",
|
||||||
|
|
||||||
"org_name" => "o", // company
|
"org_name" => "phpgworgname", // company
|
||||||
"org_unit" => "ou", // division
|
"org_unit" => "phpgworgunit", // division
|
||||||
"title" => "title",
|
"title" => "title",
|
||||||
|
|
||||||
"adr_one_street" => "street",
|
"adr_one_street" => "street",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user