Subversion Repositories oidplus

Rev

Rev 1398 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1398 Rev 1399
Line 393... Line 393...
393
                $ldap_attributes["2.17.1.2.2"][2][] = "oidC";
393
                $ldap_attributes["2.17.1.2.2"][2][] = "oidC";
394
                $ldap_attributes["2.5.18.28"][2][] = "userPwdHistory";
394
                $ldap_attributes["2.5.18.28"][2][] = "userPwdHistory";
395
                $ldap_attributes["2.5.18.29"][2][] = "userPwdRecentlyExpired";
395
                $ldap_attributes["2.5.18.29"][2][] = "userPwdRecentlyExpired";
396
 
396
 
397
                // Vendor specific stuff
397
                // Vendor specific stuff
398
                $ldap_attributes["1.3.6.1.4.1.37476.2.5.2.9.4.1"] = ["ViaThinkSoft", "OIDplus System", ["OidplusSystemId"], "system-id"];
398
                $ldap_attributes["1.3.6.1.4.1.37476.2.5.2.9.4.1"] = ["ViaThinkSoft: OidplusAttributeTypes ASN.1 Module, Version 1", "OIDplus System", ["OidplusSystemId"], "system-id"];
399
                $ldap_attributes["1.3.6.1.4.1.37476.2.5.2.9.4.2"] = ["ViaThinkSoft", "OIDplus Object Hash", ["OidplusObjectHash"], "object-hash"];
399
                $ldap_attributes["1.3.6.1.4.1.37476.2.5.2.9.4.2"] = ["ViaThinkSoft: OidplusAttributeTypes ASN.1 Module, Version 1", "OIDplus Object Hash", ["OidplusObjectHash"], "object-hash"];
400
 
400
 
401
                // Test data
401
                // Test data
402
                /*
402
                /*
403
                for ($i=0; $i<=106; $i++) {
403
                for ($i=0; $i<=106; $i++) {
404
                        if (!isset($ldap_attributes["2.5.4.$i"])) echo "WARNING: 2.5.4.$i MISSING<br>\n";
404
                        if (!isset($ldap_attributes["2.5.4.$i"])) echo "WARNING: 2.5.4.$i MISSING<br>\n";
Line 660... Line 660...
660
                                        $char = substr($utf8, $i, 1);
660
                                        $char = substr($utf8, $i, 1);
661
                                        $html_encoded_str .= sprintf('%02s', strtoupper(dechex(ord($char))));
661
                                        $html_encoded_str .= sprintf('%02s', strtoupper(dechex(ord($char))));
662
                                }
662
                                }
663
                                $html_encoded_str .= '</abbr>';
663
                                $html_encoded_str .= '</abbr>';
664
                        }
664
                        }
-
 
665
                        if ($ary[0] == $found_oid) {
-
 
666
                                $html_encoded_string_notation = '<abbr title="'.htmlentities($found_hf_name).'">'.htmlentities($found_oid).'</abbr>='.$html_encoded_str . ($html_encoded_string_notation == '' ? '' : ',' . $html_encoded_string_notation);
-
 
667
                        } else {
665
                        $html_encoded_string_notation = '<abbr title="'.htmlentities(strtoupper($ary[0]) . ' = ' . $found_hf_name).'">'.htmlentities($found_oid).'</abbr>='.$html_encoded_str . ($html_encoded_string_notation == '' ? '' : ',' . $html_encoded_string_notation);
668
                                $html_encoded_string_notation = '<abbr title="'.htmlentities(strtoupper($ary[0]) . ' = ' . $found_hf_name).'">'.htmlentities($found_oid).'</abbr>='.$html_encoded_str . ($html_encoded_string_notation == '' ? '' : ',' . $html_encoded_string_notation);
666
                }
669
                        }
-
 
670
                }
667
 
671
 
668
                $tmp = _L('DCE/MSAD notation');
672
                $tmp = _L('DCE/MSAD notation');
669
                $tmp = str_replace('DCE', '<abbr title="'._L('Distributed Computing Environment').'">DCE</abbr>', $tmp);
673
                $tmp = str_replace('DCE', '<abbr title="'._L('Distributed Computing Environment').'">DCE</abbr>', $tmp);
670
                $tmp = str_replace('MSAD', '<abbr title="'._L('Microsoft ActiveDirectory').'">MSAD</abbr>', $tmp);
674
                $tmp = str_replace('MSAD', '<abbr title="'._L('Microsoft ActiveDirectory').'">MSAD</abbr>', $tmp);
671
                $tech_info[$tmp] = $html_dce_ad_notation;
675
                $tech_info[$tmp] = $html_dce_ad_notation;