[imp] How are ldap prefs encoded?

Lee lee@disinfo.com
Fri, 28 Jun 2002 17:22:34 -0400


This is a multi-part message in MIME format.

---------------------- multipart/alternative attachment
I'm trying to access the horde pref data stored in our ldap directory on
latest versions of horde/imp/turba.
 
When I select all the attributes and values and print them using my own
php script, I get junk where the values should be (i.e:
 
identities:YToyOntpOjA7YTox334MTp7czoyOiJpZCI7czoxOToibGVlQGxlZS1ob2ZmbW
FuLmNvbSI7czo4OiJmdWxsbmFtZSI7czozOiJMZWUiO3M6OToiZnJvbV9hZGRyIjtzOjE5Oi
JsZWVAbGVlLWhvZmZtYW4uY29tIjtzOjEyOiJyZXBseXRvX2FkZHIiO3M6MDoiIjtzOjk6In
NpZ25hdHVyZSI7czowOiIiO3M6OToic2lnX2ZpcnN0IjtpOjA7czoxdMDoic2lnX2Rhc2hlc
yI7aTowO3M6MTQ6InNhdmVfc2VudF9tYWlsIjtzOjE6IjEiO3M6MTY6InNlbnRfbWFpbF9mb
2xkZXIiO3M6OToic2VudC1tYWlsIjtzOjExOiJwcml2YXRlX2tleSI7TjtzOjE2OiJwcml2Y
XRlX2tleV90eXBlIjtOO31pOjE7YToxMTp7czoyOiJpZCI7czoxNToibGVlQGRpc2luZm8uY
29tIjtzOjg6ImfdfsdZ1bGxuYW1lIjtzOjM6IkxlZSI7czo5OiJmcm9tX2FkZHIiO3M6MTU6
ImxlZUBkaXNpbmZvLmNvbSI7czoxMjoicmVwbHl0b19hZGRyIjtzOjA6IiI7czo5OiJzaWdu
YXR1cmUiO3M6MDoiIjtzOjEwOiJzaWdfZGFzaGVzIjtpOjA7czo5OiJzaWdfZmlyc3QiO2k6
MDtzOjE0OiJzYXZlX3NlbnRfbWFpbCI7aTowO3M6MTY6InNlbnRfbWFpb44F9mb2xkZXIiO3
M6OToic2VuxcdC1tYWlsIjtzOjExOiJwcml2YXRlX2tleSI7TjtzOjE2OiJwcml2YXRlX2tl
eV90eXBlIjtOO319
hordeprefs: signature:
hordeprefs: sig_dashes:MA==
hordeprefs: sig_first:MA==  
 
 
).
 
How do decode these values? I tried base64_decode, utf8_decode,
imap_utf7_decode, none seem to fix the data.
 
Thanks,
Lee

---------------------- multipart/alternative attachment
<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 10">
<meta name=3DOriginator content=3D"Microsoft Word 10">
<link rel=3DFile-List href=3D"cid:filelist.xml@01C21EC8.6405A820">
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;
	text-underline:single;}
p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
	{margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
span.EmailStyle17
	{mso-style-type:personal-compose;
	mso-style-noshow:yes;
	mso-ansi-font-size:10.0pt;
	mso-bidi-font-size:10.0pt;
	font-family:Arial;
	mso-ascii-font-family:Arial;
	mso-hansi-font-family:Arial;
	mso-bidi-font-family:Arial;
	color:windowtext;}
span.SpellE
	{mso-style-name:"";
	mso-spl-e:yes;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */=20
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin:0in;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple =
style=3D'tab-interval:.5in'>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I&#8217;m trying to access the horde <span =
class=3DSpellE>pref</span>
data stored in our <span class=3DSpellE>ldap</span> directory on latest =
versions
of horde/imp/<span =
class=3DSpellE>turba</span>.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>When I select all the attributes and values and print =
them
using my own <span class=3DSpellE>php</span> script, I get junk where =
the values
should be (<span class=3DSpellE>i.e</span>:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>identities:YToyOntpOjA7YTox334MTp7czoyOiJpZCI7czoxOToibGVlQGxlZS1=
ob2ZmbWFuLmNvbSI7czo4OiJmdWxsbmFtZSI7czozOiJMZWUiO3M6OToiZnJvbV9hZGRyIjtz=
OjE5OiJsZWVAbGVlLWhvZmZtYW4uY29tIjtzOjEyOiJyZXBseXRvX2FkZHIiO3M6MDoiIjtzO=
jk6InNpZ25hdHVyZSI7czowOiIiO3M6OToic2lnX2ZpcnN0IjtpOjA7czoxdMDoic2lnX2Rhc=
2hlcyI7aTowO3M6MTQ6InNhdmVfc2VudF9tYWlsIjtzOjE6IjEiO3M6MTY6InNlbnRfbWFpbF=
9mb2xkZXIiO3M6OToic2VudC1tYWlsIjtzOjExOiJwcml2YXRlX2tleSI7TjtzOjE2OiJwcml=
2YXRlX2tleV90eXBlIjtOO31pOjE7YToxMTp7czoyOiJpZCI7czoxNToibGVlQGRpc2luZm8u=
Y29tIjtzOjg6ImfdfsdZ1bGxuYW1lIjtzOjM6IkxlZSI7czo5OiJmcm9tX2FkZHIiO3M6MTU6=
ImxlZUBkaXNpbmZvLmNvbSI7czoxMjoicmVwbHl0b19hZGRyIjtzOjA6IiI7czo5OiJzaWduY=
XR1cmUiO3M6MDoiIjtzOjEwOiJzaWdfZGFzaGVzIjtpOjA7czo5OiJzaWdfZmlyc3QiO2k6MD=
tzOjE0OiJzYXZlX3NlbnRfbWFpbCI7aTowO3M6MTY6InNlbnRfbWFpb44F9mb2xkZXIiO3M6O=
Toic2VuxcdC1tYWlsIjtzOjExOiJwcml2YXRlX2tleSI7TjtzOjE2OiJwcml2YXRlX2tleV90=
eXBlIjtOO319<br>
<span class=3DSpellE>hordeprefs</span>: signature:<br>
<span class=3DSpellE>hordeprefs</span>: <span =
class=3DSpellE>sig_dashes:MA</span>=3D=3D<br>
<span class=3DSpellE>hordeprefs</span>: <span =
class=3DSpellE>sig_first:MA</span>=3D=3D</span></font><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'> <span
style=3D'mso-spacerun:yes'>&nbsp;</span></span></font><span =
style=3D'mso-no-proof:
yes'><o:p></o:p></span></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>).<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>How do decode these values? I tried base64_decode, utf8_decode,
imap_utf7_decode, none seem to fix the =
data.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>Thanks,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>Lee<o:p></o:p></span></font></p>

</div>

</body>

</html>

---------------------- multipart/alternative attachment--