29 "userPassword" =>
"US_PASSWD",
30 "telephonenumber" =>
"US_PHONE",
34 "registeredAddress" =>
"",
35 "destinationIndicator" =>
"",
36 "preferredDeliveryMethod" =>
"",
38 "telexTerminalIdentifier" =>
"",
39 "internationaliSDNNumner" =>
"",
40 "facsimiletelephonenumber" =>
"US_FAX",
42 "postOfficeBox" =>
"",
43 "postalcode" =>
"US_WORKPOSTALCODE",
44 "postalAddress" =>
"US_WORKADDR",
45 "physicalDeliveryOfficeName" =>
"",
51 "businessCategory" =>
"",
53 "departmentNumber" =>
"US_SERV",
55 "employeeNumber" =>
"US_MATRICULE",
56 "employeeType" =>
"US_TYPE",
57 "givenName" =>
"US_FNAME",
58 "homePhone" =>
"US_HOMEPHONE",
59 "homePostalAddress" =>
"",
60 "initials" =>
"US_INITIALS",
61 "jpegPhoto" =>
"US_PHOTO",
62 "labeledURI" =>
"US_WORKWEB",
65 "mobile" =>
"US_MOBILE",
69 "roomNumber" =>
"US_LOCALISATION",
72 "userCertificate" =>
"",
73 "x500uniqueIdentifier" =>
"",
74 "preferredLanguage" =>
"",
75 "userSMIMECertificate" =>
"",
83 $endCardFound =
false;
84 $beginCardFound =
false;
87 while ((!feof($this->fd)) && (!$beginCardFound)) {
88 $line = fgets($this->fd, 4096);
89 $beginCardFound = preg_match(
"/dn:(.*)/",
$line);
92 while ((!feof($this->fd)) && (!$endCardFound)) {
95 if (preg_match(
"/([a-z;]*):(.*)/",
$line, $reg)) $tattr[$reg[1]] = $reg[2];
98 $line = fgets($this->fd, 4096);
99 $endCardFound = preg_match(
"/objectclass:(.*)/",
$line);
102 return (!feof($this->fd));