home *** CD-ROM | disk | FTP | other *** search
MacBinary | 2003-06-30 | 10.1 KB | [TEXT/CWIE] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Janne Salmijarvi Optimizer (music/janneSalmijarviOptimizer)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Mon Jun 30 01:51:52 2003, modified Mon Jun 30 01:51:52 2003, creator 'CWIE', type ASCII, 9602 bytes "nsLDAPPrefsService.js" , at 0x2602 416 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 15 6e 73 4c 44 41 50 | 50 72 65 66 73 53 65 72 |..nsLDAP|PrefsSer|
|00000010| 76 69 63 65 2e 6a 73 00 | 00 00 00 00 00 00 00 00 |vice.js.|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 00 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 25 82 00 | 00 01 a0 bb 25 80 78 bb |.....%..|....%.x.|
|00000060| 25 80 78 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |%.x.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 45 18 00 00 |........|....E...|
|00000080| 2f 2a 20 0d 20 2a 20 54 | 68 65 20 63 6f 6e 74 65 |/* . * T|he conte|
|00000090| 6e 74 73 20 6f 66 20 74 | 68 69 73 20 66 69 6c 65 |nts of t|his file|
|000000a0| 20 61 72 65 20 73 75 62 | 6a 65 63 74 20 74 6f 20 | are sub|ject to |
|000000b0| 74 68 65 20 4d 6f 7a 69 | 6c 6c 61 20 50 75 62 6c |the Mozi|lla Publ|
|000000c0| 69 63 0d 20 2a 20 4c 69 | 63 65 6e 73 65 20 56 65 |ic. * Li|cense Ve|
|000000d0| 72 73 69 6f 6e 20 31 2e | 31 20 28 74 68 65 20 22 |rsion 1.|1 (the "|
|000000e0| 4c 69 63 65 6e 73 65 22 | 29 3b 20 79 6f 75 20 6d |License"|); you m|
|000000f0| 61 79 20 6e 6f 74 20 75 | 73 65 20 74 68 69 73 20 |ay not u|se this |
|00000100| 66 69 6c 65 0d 20 2a 20 | 65 78 63 65 70 74 20 69 |file. * |except i|
|00000110| 6e 20 63 6f 6d 70 6c 69 | 61 6e 63 65 20 77 69 74 |n compli|ance wit|
|00000120| 68 20 74 68 65 20 4c 69 | 63 65 6e 73 65 2e 20 59 |h the Li|cense. Y|
|00000130| 6f 75 20 6d 61 79 20 6f | 62 74 61 69 6e 20 61 20 |ou may o|btain a |
|00000140| 63 6f 70 79 20 6f 66 0d | 20 2a 20 74 68 65 20 4c |copy of.| * the L|
|00000150| 69 63 65 6e 73 65 20 61 | 74 20 68 74 74 70 3a 2f |icense a|t http:/|
|00000160| 2f 77 77 77 2e 6d 6f 7a | 69 6c 6c 61 2e 6f 72 67 |/www.moz|illa.org|
|00000170| 2f 4d 50 4c 2f 0d 20 2a | 20 0d 20 2a 20 53 6f 66 |/MPL/. *| . * Sof|
|00000180| 74 77 61 72 65 20 64 69 | 73 74 72 69 62 75 74 65 |tware di|stribute|
|00000190| 64 20 75 6e 64 65 72 20 | 74 68 65 20 4c 69 63 65 |d under |the Lice|
|000001a0| 6e 73 65 20 69 73 20 64 | 69 73 74 72 69 62 75 74 |nse is d|istribut|
|000001b0| 65 64 20 6f 6e 20 61 6e | 20 22 41 53 0d 20 2a 20 |ed on an| "AS. * |
|000001c0| 49 53 22 20 62 61 73 69 | 73 2c 20 57 49 54 48 4f |IS" basi|s, WITHO|
|000001d0| 55 54 20 57 41 52 52 41 | 4e 54 59 20 4f 46 20 41 |UT WARRA|NTY OF A|
|000001e0| 4e 59 20 4b 49 4e 44 2c | 20 65 69 74 68 65 72 20 |NY KIND,| either |
|000001f0| 65 78 70 72 65 73 73 20 | 6f 72 0d 20 2a 20 69 6d |express |or. * im|
|00000200| 70 6c 69 65 64 2e 20 53 | 65 65 20 74 68 65 20 4c |plied. S|ee the L|
|00000210| 69 63 65 6e 73 65 20 66 | 6f 72 20 74 68 65 20 73 |icense f|or the s|
|00000220| 70 65 63 69 66 69 63 20 | 6c 61 6e 67 75 61 67 65 |pecific |language|
|00000230| 20 67 6f 76 65 72 6e 69 | 6e 67 0d 20 2a 20 72 69 | governi|ng. * ri|
|00000240| 67 68 74 73 20 61 6e 64 | 20 6c 69 6d 69 74 61 74 |ghts and| limitat|
|00000250| 69 6f 6e 73 20 75 6e 64 | 65 72 20 74 68 65 20 4c |ions und|er the L|
|00000260| 69 63 65 6e 73 65 2e 0d | 20 2a 20 0d 20 2a 20 54 |icense..| * . * T|
|00000270| 68 65 20 4f 72 69 67 69 | 6e 61 6c 20 43 6f 64 65 |he Origi|nal Code|
|00000280| 20 69 73 20 6d 6f 7a 69 | 6c 6c 61 2e 6f 72 67 20 | is mozi|lla.org |
|00000290| 63 6f 64 65 2e 0d 20 2a | 20 0d 20 2a 20 54 68 65 |code.. *| . * The|
|000002a0| 20 49 6e 69 74 69 61 6c | 20 44 65 76 65 6c 6f 70 | Initial| Develop|
|000002b0| 65 72 20 6f 66 20 74 68 | 65 20 4f 72 69 67 69 6e |er of th|e Origin|
|000002c0| 61 6c 20 43 6f 64 65 20 | 69 73 20 4e 65 74 73 63 |al Code |is Netsc|
|000002d0| 61 70 65 0d 20 2a 20 43 | 6f 6d 6d 75 6e 69 63 61 |ape. * C|ommunica|
|000002e0| 74 69 6f 6e 73 20 43 6f | 72 70 6f 72 61 74 69 6f |tions Co|rporatio|
|000002f0| 6e 2e 20 20 50 6f 72 74 | 69 6f 6e 73 20 63 72 65 |n. Port|ions cre|
|00000300| 61 74 65 64 20 62 79 20 | 4e 65 74 73 63 61 70 65 |ated by |Netscape|
|00000310| 20 61 72 65 20 0d 20 2a | 20 43 6f 70 79 72 69 67 | are . *| Copyrig|
|00000320| 68 74 20 28 43 29 20 32 | 30 30 31 20 4e 65 74 73 |ht (C) 2|001 Nets|
|00000330| 63 61 70 65 20 43 6f 6d | 6d 75 6e 69 63 61 74 69 |cape Com|municati|
|00000340| 6f 6e 73 20 43 6f 72 70 | 6f 72 61 74 69 6f 6e 2e |ons Corp|oration.|
|00000350| 20 20 41 6c 6c 0d 20 2a | 20 52 69 67 68 74 73 20 | All. *| Rights |
|00000360| 52 65 73 65 72 76 65 64 | 2e 0d 20 2a 20 0d 20 2a |Reserved|.. * . *|
|00000370| 20 43 6f 6e 74 72 69 62 | 75 74 6f 72 28 73 29 3a | Contrib|utor(s):|
|00000380| 20 0d 20 2a 20 53 72 69 | 6c 61 74 68 61 20 4d 6f | . * Sri|latha Mo|
|00000390| 74 75 72 69 20 3c 73 72 | 69 6c 61 74 68 61 40 6e |turi <sr|ilatha@n|
|000003a0| 65 74 73 63 61 70 65 2e | 63 6f 6d 3e 0d 20 2a 2f |etscape.|com>. */|
|000003b0| 0d 0d 2f 2a 20 63 6f 6d | 70 6f 6e 65 6e 74 73 20 |../* com|ponents |
|000003c0| 64 65 66 69 6e 65 64 20 | 69 6e 20 74 68 69 73 20 |defined |in this |
|000003d0| 66 69 6c 65 20 2a 2f 0d | 0d 63 6f 6e 73 74 20 4e |file */.|.const N|
|000003e0| 53 5f 4c 44 41 50 50 52 | 45 46 53 53 45 52 56 49 |S_LDAPPR|EFSSERVI|
|000003f0| 43 45 5f 43 4f 4e 54 52 | 41 43 54 49 44 20 3d 0d |CE_CONTR|ACTID =.|
|00000400| 20 20 20 20 22 40 6d 6f | 7a 69 6c 6c 61 2e 6f 72 | "@mo|zilla.or|
|00000410| 67 2f 6c 64 61 70 70 72 | 65 66 73 2d 73 65 72 76 |g/ldappr|efs-serv|
|00000420| 69 63 65 3b 31 22 3b 0d | 63 6f 6e 73 74 20 4e 53 |ice;1";.|const NS|
|00000430| 5f 4c 44 41 50 50 52 45 | 46 53 53 45 52 56 49 43 |_LDAPPRE|FSSERVIC|
|00000440| 45 5f 43 49 44 20 3d 0d | 20 20 20 20 43 6f 6d 70 |E_CID =.| Comp|
|00000450| 6f 6e 65 6e 74 73 2e 49 | 44 28 22 7b 35 61 34 39 |onents.I|D("{5a49|
|00000460| 31 31 65 30 2d 34 34 63 | 64 2d 31 31 64 35 2d 39 |11e0-44c|d-11d5-9|
|00000470| 30 37 34 2d 30 30 31 30 | 61 34 62 32 36 63 64 61 |074-0010|a4b26cda|
|00000480| 7d 22 29 3b 0d 63 6f 6e | 73 74 20 4e 53 5f 4c 44 |}");.con|st NS_LD|
|00000490| 41 50 50 52 45 46 53 53 | 45 52 56 49 43 45 5f 49 |APPREFSS|ERVICE_I|
|000004a0| 49 44 20 3d 20 43 6f 6d | 70 6f 6e 65 6e 74 73 2e |ID = Com|ponents.|
|000004b0| 69 6e 74 65 72 66 61 63 | 65 73 2e 6e 73 49 4c 44 |interfac|es.nsILD|
|000004c0| 41 50 50 72 65 66 73 53 | 65 72 76 69 63 65 3b 0d |APPrefsS|ervice;.|
|000004d0| 0d 2f 2a 20 69 6e 74 65 | 72 66 61 63 65 73 20 75 |./* inte|rfaces u|
|000004e0| 73 65 64 20 69 6e 20 74 | 68 69 73 20 66 69 6c 65 |sed in t|his file|
|000004f0| 20 2a 2f 0d 63 6f 6e 73 | 74 20 6e 73 49 53 75 70 | */.cons|t nsISup|
|00000500| 70 6f 72 74 73 20 20 20 | 20 20 20 20 20 3d 20 43 |ports | = C|
|00000510| 6f 6d 70 6f 6e 65 6e 74 | 73 2e 69 6e 74 65 72 66 |omponent|s.interf|
|00000520| 61 63 65 73 2e 6e 73 49 | 53 75 70 70 6f 72 74 73 |aces.nsI|Supports|
|00000530| 3b 0d 63 6f 6e 73 74 20 | 6e 73 49 53 75 70 70 6f |;.const |nsISuppo|
|00000540| 72 74 73 53 74 72 69 6e | 67 20 20 3d 20 43 6f 6d |rtsStrin|g = Com|
|00000550| 70 6f 6e 65 6e 74 73 2e | 69 6e 74 65 72 66 61 63 |ponents.|interfac|
|00000560| 65 73 2e 6e 73 49 53 75 | 70 70 6f 72 74 73 53 74 |es.nsISu|pportsSt|
|00000570| 72 69 6e 67 3b 0d 63 6f | 6e 73 74 20 6e 73 49 50 |ring;.co|nst nsIP|
|00000580| 72 65 66 42 72 61 6e 63 | 68 20 20 20 20 20 20 3d |refBranc|h =|
|00000590| 20 43 6f 6d 70 6f 6e 65 | 6e 74 73 2e 69 6e 74 65 | Compone|nts.inte|
|000005a0| 72 66 61 63 65 73 2e 6e | 73 49 50 72 65 66 42 72 |rfaces.n|sIPrefBr|
|000005b0| 61 6e 63 68 3b 0d 63 6f | 6e 73 74 20 6e 73 49 4c |anch;.co|nst nsIL|
|000005c0| 44 41 50 55 52 4c 20 20 | 20 20 20 20 20 20 20 3d |DAPURL | =|
|000005d0| 20 43 6f 6d 70 6f 6e 65 | 6e 74 73 2e 69 6e 74 65 | Compone|nts.inte|
|000005e0| 72 66 61 63 65 73 2e 6e | 73 49 4c 44 41 50 55 52 |rfaces.n|sILDAPUR|
|000005f0| 4c 3b 0d 0d 63 6f 6e 73 | 74 20 6b 44 65 66 61 75 |L;..cons|t kDefau|
|00000600| 6c 74 4c 44 41 50 50 6f | 72 74 20 3d 20 33 38 39 |ltLDAPPo|rt = 389|
|00000610| 3b 0d 63 6f 6e 73 74 20 | 6b 44 65 66 61 75 6c 74 |;.const |kDefault|
|00000620| 53 65 63 75 72 65 4c 44 | 41 50 50 6f 72 74 20 3d |SecureLD|APPort =|
|00000630| 20 36 33 36 3b 0d 0d 2f | 2a 20 6e 73 4c 44 41 50 | 636;../|* nsLDAP|
|00000640| 50 72 65 66 73 20 73 65 | 72 76 69 63 65 20 2a 2f |Prefs se|rvice */|
|00000650| 0d 66 75 6e 63 74 69 6f | 6e 20 6e 73 4c 44 41 50 |.functio|n nsLDAP|
|00000660| 50 72 65 66 73 53 65 72 | 76 69 63 65 28 29 20 7b |PrefsSer|vice() {|
|00000670| 0d 20 20 76 61 72 20 61 | 72 72 61 79 4f 66 44 69 |. var a|rrayOfDi|
|00000680| 72 65 63 74 6f 72 69 65 | 73 3b 0d 20 20 76 61 72 |rectorie|s;. var|
|00000690| 20 6a 20 3d 20 30 3b 0d | 20 20 74 72 79 20 7b 0d | j = 0;.| try {.|
|000006a0| 20 20 20 20 67 50 72 65 | 66 49 6e 74 20 3d 20 43 | gPre|fInt = C|
|000006b0| 6f 6d 70 6f 6e 65 6e 74 | 73 2e 63 6c 61 73 73 65 |omponent|s.classe|
|000006c0| 73 5b 22 40 6d 6f 7a 69 | 6c 6c 61 2e 6f 72 67 2f |s["@mozi|lla.org/|
|000006d0| 70 72 65 66 65 72 65 6e | 63 65 73 2d 73 65 72 76 |preferen|ces-serv|
|000006e0| 69 63 65 3b 31 22 5d 3b | 0d 20 20 20 20 67 50 72 |ice;1"];|. gPr|
|000006f0| 65 66 49 6e 74 20 3d 20 | 67 50 72 65 66 49 6e 74 |efInt = |gPrefInt|
|00000700| 2e 67 65 74 53 65 72 76 | 69 63 65 28 6e 73 49 50 |.getServ|ice(nsIP|
|00000710| 72 65 66 42 72 61 6e 63 | 68 29 3b 0d 20 20 7d 0d |refBranc|h);. }.|
|00000720| 20 20 63 61 74 63 68 20 | 28 65 78 29 20 7b 0d 20 | catch |(ex) {. |
|00000730| 20 20 20 64 75 6d 70 28 | 22 66 61 69 6c 65 64 20 | dump(|"failed |
|00000740| 74 6f 20 67 65 74 20 70 | 72 65 66 73 20 73 65 72 |to get p|refs ser|
|00000750| 76 69 63 65 21 5c 6e 22 | 29 3b 0d 20 20 20 20 72 |vice!\n"|);. r|
|00000760| 65 74 75 72 6e 3b 0d 20 | 20 7d 0d 20 20 2f 2a 20 |eturn;. | }. /* |
|00000770| 67 65 6e 65 72 61 74 65 | 20 74 68 65 20 6c 69 73 |generate| the lis|
|00000780| 74 20 6f 66 20 64 69 72 | 65 63 74 6f 72 79 20 73 |t of dir|ectory s|
|00000790| 65 72 76 65 72 73 20 66 | 72 6f 6d 20 70 72 65 66 |ervers f|rom pref|
|000007a0| 65 72 65 6e 63 65 73 20 | 2a 2f 0d 20 20 76 61 72 |erences |*/. var|
|000007b0| 20 70 72 65 66 43 6f 75 | 6e 74 20 3d 20 7b 76 61 | prefCou|nt = {va|
|000007c0| 6c 75 65 3a 30 7d 3b 0d | 20 20 74 72 79 20 7b 0d |lue:0};.| try {.|
|000007d0| 20 20 20 20 61 72 72 61 | 79 4f 66 44 69 72 65 63 | arra|yOfDirec|
|000007e0| 74 6f 72 69 65 73 20 3d | 20 74 68 69 73 2e 67 65 |tories =| this.ge|
|000007f0| 74 53 65 72 76 65 72 4c | 69 73 74 28 67 50 72 65 |tServerL|ist(gPre|
|00000800| 66 49 6e 74 2c 20 70 72 | 65 66 43 6f 75 6e 74 29 |fInt, pr|efCount)|
|00000810| 3b 0d 20 20 7d 0d 20 20 | 63 61 74 63 68 20 28 65 |;. }. |catch (e|
|00000820| 78 29 20 7b 0d 20 20 20 | 20 61 72 72 61 79 4f 66 |x) {. | arrayOf|
|00000830| 44 69 72 65 63 74 6f 72 | 69 65 73 20 3d 20 6e 75 |Director|ies = nu|
|00000840| 6c 6c 3b 0d 20 20 7d 0d | 20 20 69 66 20 28 61 72 |ll;. }.| if (ar|
|00000850| 72 61 79 4f 66 44 69 72 | 65 63 74 6f 72 69 65 73 |rayOfDir|ectories|
|00000860| 29 20 7b 0d 20 20 20 20 | 74 68 69 73 2e 61 76 61 |) {. |this.ava|
|00000870| 69 6c 44 69 72 65 63 74 | 6f 72 69 65 73 20 3d 20 |ilDirect|ories = |
|00000880| 6e 65 77 20 41 72 72 61 | 79 28 29 3b 0d 20 20 20 |new Arra|y();. |
|00000890| 20 76 61 72 20 70 6f 73 | 69 74 69 6f 6e 3b 0d 20 | var pos|ition;. |
|000008a0| 20 20 20 76 61 72 20 64 | 65 73 63 72 69 70 74 69 | var d|escripti|
|000008b0| 6f 6e 3b 0d 20 20 20 20 | 66 6f 72 20 28 76 61 72 |on;. |for (var|
|000008c0| 20 69 20 3d 20 30 3b 20 | 69 20 3c 20 70 72 65 66 | i = 0; |i < pref|
|000008d0| 43 6f 75 6e 74 2e 76 61 | 6c 75 65 3b 20 69 2b 2b |Count.va|lue; i++|
|000008e0| 29 0d 20 20 20 20 7b 0d | 20 20 20 20 20 20 69 66 |). {.| if|
|000008f0| 20 28 28 61 72 72 61 79 | 4f 66 44 69 72 65 63 74 | ((array|OfDirect|
|00000900| 6f 72 69 65 73 5b 69 5d | 20 21 3d 20 22 6c 64 61 |ories[i]| != "lda|
|00000910| 70 5f 32 2e 73 65 72 76 | 65 72 73 2e 70 61 62 22 |p_2.serv|ers.pab"|
|00000920| 29 20 26 26 20 0d 20 20 | 20 20 20 20 20 20 28 61 |) && . | (a|
|00000930| 72 72 61 79 4f 66 44 69 | 72 65 63 74 6f 72 69 65 |rrayOfDi|rectorie|
|00000940| 73 5b 69 5d 20 21 3d 20 | 22 6c 64 61 70 5f 32 2e |s[i] != |"ldap_2.|
|00000950| 73 65 72 76 65 72 73 2e | 68 69 73 74 6f 72 79 22 |servers.|history"|
|00000960| 29 29 20 7b 0d 20 20 20 | 20 20 20 20 20 74 72 79 |)) {. | try|
|00000970| 7b 0d 20 20 20 20 20 20 | 20 20 20 20 70 6f 73 69 |{. | posi|
|00000980| 74 69 6f 6e 20 3d 20 67 | 50 72 65 66 49 6e 74 2e |tion = g|PrefInt.|
|00000990| 67 65 74 49 6e 74 50 72 | 65 66 28 61 72 72 61 79 |getIntPr|ef(array|
|000009a0| 4f 66 44 69 72 65 63 74 | 6f 72 69 65 73 5b 69 5d |OfDirect|ories[i]|
|000009b0| 2b 22 2e 70 6f 73 69 74 | 69 6f 6e 22 29 3b 0d 20 |+".posit|ion");. |
|000009c0| 20 20 20 20 20 20 20 7d | 0d 20 20 20 20 20 20 20 | }|. |
|000009d0| 20 63 61 74 63 68 28 65 | 78 29 7b 0d 20 20 20 20 | catch(e|x){. |
|000009e0| 20 20 20 20 20 20 70 6f | 73 69 74 69 6f 6e 20 3d | po|sition =|
|000009f0| 20 31 3b 0d 20 20 20 20 | 20 20 20 20 7d 0d 20 20 | 1;. | }. |
|00000a00| 20 20 20 20 20 20 74 72 | 79 7b 0d 20 20 20 20 20 | tr|y{. |
|00000a10| 20 20 20 20 20 64 69 72 | 54 79 70 65 20 3d 20 67 | dir|Type = g|
|00000a20| 50 72 65 66 49 6e 74 2e | 67 65 74 49 6e 74 50 72 |PrefInt.|getIntPr|
|00000a30| 65 66 28 61 72 72 61 79 | 4f 66 44 69 72 65 63 74 |ef(array|OfDirect|
|00000a40| 6f 72 69 65 73 5b 69 5d | 2b 22 2e 64 69 72 54 79 |ories[i]|+".dirTy|
|00000a50| 70 65 22 29 3b 0d 20 20 | 20 20 20 20 20 20 7d 0d |pe");. | }.|
|00000a60| 20 20 20 20 20 20 20 20 | 63 61 74 63 68 28 65 78 | |catch(ex|
|00000a70| 29 7b 0d 20 20 20 20 20 | 20 20 20 20 20 64 69 72 |){. | dir|
|00000a80| 54 79 70 65 20 3d 20 31 | 3b 0d 20 20 20 20 20 20 |Type = 1|;. |
|00000a90| 20 20 7d 0d 20 20 20 20 | 20 20 20 20 69 66 20 28 | }. | if (|
|00000aa0| 28 70 6f 73 69 74 69 6f | 6e 20 21 3d 20 30 29 20 |(positio|n != 0) |
|00000ab0| 26 26 20 28 64 69 72 54 | 79 70 65 20 3d 3d 20 31 |&& (dirT|ype == 1|
|00000ac0| 29 29 20 7b 0d 20 20 20 | 20 20 20 20 20 20 20 74 |)) {. | t|
|00000ad0| 72 79 7b 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |ry{. | |
|00000ae0| 64 65 73 63 72 69 70 74 | 69 6f 6e 20 3d 20 67 50 |descript|ion = gP|
|00000af0| 72 65 66 49 6e 74 2e 67 | 65 74 43 6f 6d 70 6c 65 |refInt.g|etComple|
|00000b00| 78 56 61 6c 75 65 28 61 | 72 72 61 79 4f 66 44 69 |xValue(a|rrayOfDi|
|00000b10| 72 65 63 74 6f 72 69 65 | 73 5b 69 5d 2b 22 2e 64 |rectorie|s[i]+".d|
|00000b20| 65 73 63 72 69 70 74 69 | 6f 6e 22 2c 0d 20 20 20 |escripti|on",. |
|00000b30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b60| 43 6f 6d 70 6f 6e 65 6e | 74 73 2e 69 6e 74 65 72 |Componen|ts.inter|
|00000b70| 66 61 63 65 73 2e 6e 73 | 49 53 75 70 70 6f 72 74 |faces.ns|ISupport|
|00000b80| 73 53 74 72 69 6e 67 29 | 2e 64 61 74 61 3b 0d 20 |sString)|.data;. |
|00000b90| 20 20 20 20 20 20 20 20 | 20 7d 0d 20 20 20 20 20 | | }. |
|00000ba0| 20 20 20 20 20 63 61 74 | 63 68 28 65 78 29 7b 0d | cat|ch(ex){.|
|00000bb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 64 65 73 63 | | desc|
|00000bc0| 72 69 70 74 69 6f 6e 20 | 3d 20 6e 75 6c 6c 3b 0d |ription |= null;.|
|00000bd0| 20 20 20 20 20 20 20 20 | 20 20 7d 0d 20 20 20 20 | | }. |
|00000be0| 20 20 20 20 20 20 69 66 | 20 28 64 65 73 63 72 69 | if| (descri|
|00000bf0| 70 74 69 6f 6e 29 20 7b | 0d 20 20 20 20 20 20 20 |ption) {|. |
|00000c00| 20 20 20 20 20 74 68 69 | 73 2e 61 76 61 69 6c 44 | thi|s.availD|
|00000c10| 69 72 65 63 74 6f 72 69 | 65 73 5b 6a 5d 20 3d 20 |irectori|es[j] = |
|00000c20| 6e 65 77 20 41 72 72 61 | 79 28 32 29 3b 0d 20 20 |new Arra|y(2);. |
|00000c30| 20 20 20 20 20 20 20 20 | 20 20 74 68 69 73 2e 61 | | this.a|
|00000c40| 76 61 69 6c 44 69 72 65 | 63 74 6f 72 69 65 73 5b |vailDire|ctories[|
|00000c50| 6a 5d 5b 30 5d 20 3d 20 | 61 72 72 61 79 4f 66 44 |j][0] = |arrayOfD|
|00000c60| 69 72 65 63 74 6f 72 69 | 65 73 5b 69 5d 3b 0d 20 |irectori|es[i];. |
|00000c70| 20 20 20 20 20 20 20 20 | 20 20 20 74 68 69 73 2e | | this.|
|00000c80| 61 76 61 69 6c 44 69 72 | 65 63 74 6f 72 69 65 73 |availDir|ectories|
|00000c90| 5b 6a 5d 5b 31 5d 20 3d | 20 64 65 73 63 72 69 70 |[j][1] =| descrip|
|00000ca0| 74 69 6f 6e 3b 0d 20 20 | 20 20 20 20 20 20 20 20 |tion;. | |
|00000cb0| 20 20 6a 2b 2b 3b 0d 20 | 20 20 20 20 20 20 20 20 | j++;. | |
|00000cc0| 20 7d 0d 20 20 20 20 20 | 20 20 20 7d 0d 20 20 20 | }. | }. |
|00000cd0| 20 20 20 7d 0d 20 20 20 | 20 7d 0d 20 20 7d 0d 20 | }. | }. }. |
|00000ce0| 20 74 68 69 73 2e 6d 69 | 67 72 61 74 65 28 29 3b | this.mi|grate();|
|00000cf0| 0d 7d 0d 6e 73 4c 44 41 | 50 50 72 65 66 73 53 65 |.}.nsLDA|PPrefsSe|
|00000d00| 72 76 69 63 65 2e 70 72 | 6f 74 6f 74 79 70 65 2e |rvice.pr|ototype.|
|00000d10| 70 72 65 66 73 5f 6d 69 | 67 72 61 74 65 64 20 3d |prefs_mi|grated =|
|00000d20| 20 66 61 6c 73 65 3b 0d | 6e 73 4c 44 41 50 50 72 | false;.|nsLDAPPr|
|00000d30| 65 66 73 53 65 72 76 69 | 63 65 2e 70 72 6f 74 6f |efsServi|ce.proto|
|00000d40| 74 79 70 65 2e 61 76 61 | 69 6c 44 69 72 65 63 74 |type.ava|ilDirect|
|00000d50| 6f 72 69 65 73 20 3d 20 | 6e 75 6c 6c 3b 0d 0d 6e |ories = |null;..n|
|00000d60| 73 4c 44 41 50 50 72 65 | 66 73 53 65 72 76 69 63 |sLDAPPre|fsServic|
|00000d70| 65 2e 70 72 6f 74 6f 74 | 79 70 65 2e 51 75 65 72 |e.protot|ype.Quer|
|00000d80| 79 49 6e 74 65 72 66 61 | 63 65 20 3d 0d 66 75 6e |yInterfa|ce =.fun|
|00000d90| 63 74 69 6f 6e 20 28 69 | 69 64 29 20 7b 0d 0d 20 |ction (i|id) {.. |
|00000da0| 20 20 20 69 66 20 28 21 | 69 69 64 2e 65 71 75 61 | if (!|iid.equa|
|00000db0| 6c 73 28 6e 73 49 53 75 | 70 70 6f 72 74 73 29 20 |ls(nsISu|pports) |
|00000dc0| 26 26 0d 20 20 20 20 20 | 20 20 20 21 69 69 64 2e |&&. | !iid.|
|00000dd0| 65 71 75 61 6c 73 28 4e | 53 5f 4c 44 41 50 50 52 |equals(N|S_LDAPPR|
|00000de0| 45 46 53 53 45 52 56 49 | 43 45 5f 49 49 44 29 29 |EFSSERVI|CE_IID))|
|00000df0| 0d 20 20 20 20 20 20 20 | 20 74 68 72 6f 77 20 43 |. | throw C|
|00000e00| 6f 6d 70 6f 6e 65 6e 74 | 73 2e 72 65 73 75 6c 74 |omponent|s.result|
|00000e10| 73 2e 4e 53 5f 45 52 52 | 4f 52 5f 4e 4f 5f 49 4e |s.NS_ERR|OR_NO_IN|
|00000e20| 54 45 52 46 41 43 45 3b | 0d 0d 20 20 20 20 72 65 |TERFACE;|.. re|
|00000e30| 74 75 72 6e 20 74 68 69 | 73 3b 0d 7d 0d 0d 63 6f |turn thi|s;.}..co|
|00000e40| 6e 73 74 20 70 72 65 66 | 52 6f 6f 74 20 3d 20 22 |nst pref|Root = "|
|00000e50| 6c 64 61 70 5f 32 2e 73 | 65 72 76 65 72 73 22 3b |ldap_2.s|ervers";|
|00000e60| 0d 63 6f 6e 73 74 20 70 | 61 72 65 6e 74 20 3d 20 |.const p|arent = |
|00000e70| 22 6c 64 61 70 5f 32 2e | 73 65 72 76 65 72 73 2e |"ldap_2.|servers.|
|00000e80| 22 3b 0d 0d 6e 73 4c 44 | 41 50 50 72 65 66 73 53 |";..nsLD|APPrefsS|
|00000e90| 65 72 76 69 63 65 2e 70 | 72 6f 74 6f 74 79 70 65 |ervice.p|rototype|
|00000ea0| 2e 67 65 74 53 65 72 76 | 65 72 4c 69 73 74 20 3d |.getServ|erList =|
|00000eb0| 20 0d 66 75 6e 63 74 69 | 6f 6e 20 28 70 72 65 66 | .functi|on (pref|
|00000ec0| 42 72 61 6e 63 68 2c 20 | 61 43 6f 75 6e 74 29 20 |Branch, |aCount) |
|00000ed0| 7b 0d 20 20 76 61 72 20 | 70 72 65 66 43 6f 75 6e |{. var |prefCoun|
|00000ee0| 74 20 3d 20 7b 76 61 6c | 75 65 3a 30 7d 3b 0d 20 |t = {val|ue:0};. |
|00000ef0| 20 0d 20 20 2f 2f 20 67 | 65 74 20 61 6c 6c 20 74 | . // g|et all t|
|00000f00| 68 65 20 70 72 65 66 65 | 72 65 6e 63 65 73 20 77 |he prefe|rences w|
|00000f10| 69 74 68 20 70 72 65 66 | 69 78 20 6c 64 61 70 5f |ith pref|ix ldap_|
|00000f20| 32 2e 73 65 72 76 65 72 | 73 0d 20 20 76 61 72 20 |2.server|s. var |
|00000f30| 64 69 72 65 63 74 6f 72 | 69 65 73 4c 69 73 74 20 |director|iesList |
|00000f40| 3d 20 70 72 65 66 42 72 | 61 6e 63 68 2e 67 65 74 |= prefBr|anch.get|
|00000f50| 43 68 69 6c 64 4c 69 73 | 74 28 70 72 65 66 52 6f |ChildLis|t(prefRo|
|00000f60| 6f 74 2c 20 70 72 65 66 | 43 6f 75 6e 74 29 3b 0d |ot, pref|Count);.|
|00000f70| 20 20 0d 20 20 76 61 72 | 20 63 68 69 6c 64 4c 69 | . var| childLi|
|00000f80| 73 74 20 3d 20 6e 65 77 | 20 41 72 72 61 79 28 29 |st = new| Array()|
|00000f90| 3b 0d 20 20 76 61 72 20 | 63 6f 75 6e 74 20 3d 20 |;. var |count = |
|00000fa0| 30 3b 0d 20 20 69 66 20 | 28 64 69 72 65 63 74 6f |0;. if |(directo|
|00000fb0| 72 69 65 73 4c 69 73 74 | 29 20 7b 0d 20 20 20 20 |riesList|) {. |
|00000fc0| 64 69 72 65 63 74 6f 72 | 69 65 73 4c 69 73 74 2e |director|iesList.|
|00000fd0| 73 6f 72 74 28 29 3b 0d | 20 20 20 20 76 61 72 20 |sort();.| var |
|00000fe0| 70 72 65 66 69 78 4c 65 | 6e 3b 0d 20 20 20 20 2f |prefixLe|n;. /|
|00000ff0| 2f 20 6c 61 73 74 44 69 | 72 65 63 74 6f 72 79 20 |/ lastDi|rectory |
|00001000| 63 6f 6e 74 61 69 6e 73 | 20 74 68 65 20 6c 61 73 |contains| the las|
|00001010| 74 20 65 6e 74 72 79 20 | 74 68 61 74 20 69 73 20 |t entry |that is |
|00001020| 61 64 64 65 64 20 74 6f | 20 74 68 65 20 0d 20 20 |added to| the . |
|00001030| 20 20 2f 2f 20 61 72 72 | 61 79 20 63 68 69 6c 64 | // arr|ay child|
|00001040| 4c 69 73 74 2e 0d 20 20 | 20 20 76 61 72 20 6c 61 |List.. | var la|
|00001050| 73 74 44 69 72 65 63 74 | 6f 72 79 20 3d 20 22 22 |stDirect|ory = ""|
|00001060| 3b 0d 0d 20 20 20 20 2f | 2f 20 6f 6e 6c 79 20 61 |;.. /|/ only a|
|00001070| 64 64 20 74 6f 70 6c 65 | 76 65 6c 20 70 72 65 66 |dd tople|vel pref|
|00001080| 6e 61 6d 65 73 20 74 6f | 20 74 68 65 20 6c 69 73 |names to| the lis|
|00001090| 74 2c 0d 20 20 20 20 2f | 2f 20 69 2e 65 2e 20 61 |t,. /|/ i.e. a|
|000010a0| 64 64 20 6c 64 61 70 5f | 32 2e 73 65 72 76 65 72 |dd ldap_|2.server|
|000010b0| 73 2e 3c 73 65 72 76 65 | 72 2d 6e 61 6d 65 3e 20 |s.<serve|r-name> |
|000010c0| 0d 20 20 20 20 2f 2f 20 | 62 75 74 20 6e 6f 74 20 |. // |but not |
|000010d0| 6c 64 61 70 5f 32 2e 73 | 65 72 76 65 72 73 2e 3c |ldap_2.s|ervers.<|
|000010e0| 73 65 72 76 65 72 2d 6e | 61 6d 65 3e 2e 66 6f 6f |server-n|ame>.foo|
|000010f0| 0d 20 20 20 20 66 6f 72 | 28 69 3d 30 3b 20 69 3c |. for|(i=0; i<|
|00001100| 70 72 65 66 43 6f 75 6e | 74 2e 76 61 6c 75 65 3b |prefCoun|t.value;|
|00001110| 20 69 2b 2b 29 20 7b 0d | 20 20 20 20 20 20 2f 2f | i++) {.| //|
|00001120| 20 41 73 73 69 67 6e 20 | 74 68 65 20 70 72 65 66 | Assign |the pref|
|00001130| 69 78 20 6c 64 61 70 5f | 32 2e 73 65 72 76 65 72 |ix ldap_|2.server|
|00001140| 73 2e 3c 73 65 72 76 65 | 72 2d 6e 61 6d 65 3e 20 |s.<serve|r-name> |
|00001150| 74 6f 20 64 69 72 65 63 | 74 6f 72 69 65 73 4c 69 |to direc|toriesLi|
|00001160| 73 74 0d 20 20 20 20 20 | 20 70 72 65 66 69 78 4c |st. | prefixL|
|00001170| 65 6e 20 3d 20 64 69 72 | 65 63 74 6f 72 69 65 73 |en = dir|ectories|
|00001180| 4c 69 73 74 5b 69 5d 2e | 69 6e 64 65 78 4f 66 28 |List[i].|indexOf(|
|00001190| 22 2e 22 2c 20 70 61 72 | 65 6e 74 2e 6c 65 6e 67 |".", par|ent.leng|
|000011a0| 74 68 29 3b 0d 20 20 20 | 20 20 20 69 66 20 28 70 |th);. | if (p|
|000011b0| 72 65 66 69 78 4c 65 6e | 20 21 3d 20 2d 31 29 20 |refixLen| != -1) |
|000011c0| 7b 0d 20 20 20 20 20 20 | 20 20 64 69 72 65 63 74 |{. | direct|
|000011d0| 6f 72 69 65 73 4c 69 73 | 74 5b 69 5d 20 3d 20 64 |oriesLis|t[i] = d|
|000011e0| 69 72 65 63 74 6f 72 69 | 65 73 4c 69 73 74 5b 69 |irectori|esList[i|
|000011f0| 5d 2e 73 75 62 73 74 72 | 28 30 2c 20 70 72 65 66 |].substr|(0, pref|
|00001200| 69 78 4c 65 6e 29 3b 0d | 20 20 20 20 20 20 20 20 |ixLen);.| |
|00001210| 69 66 20 28 64 69 72 65 | 63 74 6f 72 69 65 73 4c |if (dire|ctoriesL|
|00001220| 69 73 74 5b 69 5d 20 21 | 3d 20 6c 61 73 74 44 69 |ist[i] !|= lastDi|
|00001230| 72 65 63 74 6f 72 79 29 | 20 7b 0d 20 20 20 20 20 |rectory)| {. |
|00001240| 20 20 20 20 20 2f 2f 20 | 61 64 64 20 74 68 65 20 | // |add the |
|00001250| 65 6e 74 72 79 20 74 6f | 20 63 68 69 6c 64 4c 69 |entry to| childLi|
|00001260| 73 74 20 0d 20 20 20 20 | 20 20 20 20 20 20 2f 2f |st . | //|
|00001270| 20 6f 6e 6c 79 20 69 66 | 20 69 74 20 69 73 20 6e | only if| it is n|
|00001280| 6f 74 20 61 64 64 65 64 | 20 79 65 74 0d 20 20 20 |ot added| yet. |
|00001290| 20 20 20 20 20 20 20 6c | 61 73 74 44 69 72 65 63 | l|astDirec|
|000012a0| 74 6f 72 79 20 3d 20 64 | 69 72 65 63 74 6f 72 69 |tory = d|irectori|
|000012b0| 65 73 4c 69 73 74 5b 69 | 5d 3b 0d 20 20 20 20 20 |esList[i|];. |
|000012c0| 20 20 20 20 20 63 68 69 | 6c 64 4c 69 73 74 5b 63 | chi|ldList[c|
|000012d0| 6f 75 6e 74 5d 20 3d 20 | 64 69 72 65 63 74 6f 72 |ount] = |director|
|000012e0| 69 65 73 4c 69 73 74 5b | 69 5d 3b 0d 20 20 20 20 |iesList[|i];. |
|000012f0| 20 20 20 20 20 20 63 6f | 75 6e 74 2b 2b 3b 0d 20 | co|unt++;. |
|00001300| 20 20 20 20 20 20 20 7d | 0d 20 20 20 20 20 20 7d | }|. }|
|00001310| 0d 20 20 20 20 7d 0d 20 | 20 7d 0d 0d 20 20 69 66 |. }. | }.. if|
|00001320| 20 28 21 63 6f 75 6e 74 | 29 0d 20 20 2f 2f 20 6e | (!count|). // n|
|00001330| 6f 20 70 72 65 66 65 72 | 65 6e 63 65 73 20 77 69 |o prefer|ences wi|
|00001340| 74 68 20 74 68 65 20 70 | 72 65 66 69 78 20 6c 64 |th the p|refix ld|
|00001350| 61 70 5f 32 2e 73 65 72 | 76 65 72 73 0d 20 20 20 |ap_2.ser|vers. |
|00001360| 20 74 68 72 6f 77 20 43 | 6f 6d 70 6f 6e 65 6e 74 | throw C|omponent|
|00001370| 73 2e 72 65 73 75 6c 74 | 73 2e 4e 53 5f 45 52 52 |s.result|s.NS_ERR|
|00001380| 4f 52 5f 46 41 49 4c 55 | 52 45 3b 0d 0d 20 20 61 |OR_FAILU|RE;.. a|
|00001390| 43 6f 75 6e 74 2e 76 61 | 6c 75 65 20 3d 20 63 6f |Count.va|lue = co|
|000013a0| 75 6e 74 3b 0d 20 20 72 | 65 74 75 72 6e 20 63 68 |unt;. r|eturn ch|
|000013b0| 69 6c 64 4c 69 73 74 3b | 0d 7d 0d 0d 2f 2a 20 6d |ildList;|.}../* m|
|000013c0| 69 67 72 61 74 65 20 34 | 2e 78 20 6c 64 61 70 20 |igrate 4|.x ldap |
|000013d0| 70 72 65 66 73 20 74 6f | 20 6d 6f 7a 69 6c 6c 61 |prefs to| mozilla|
|000013e0| 20 66 6f 72 6d 61 74 2e | 20 0d 20 20 20 43 6f 6e | format.| . Con|
|000013f0| 76 65 72 74 73 20 68 6f | 73 74 6e 61 6d 65 2c 20 |verts ho|stname, |
|00001400| 62 61 73 65 64 6e 2c 20 | 70 6f 72 74 20 74 6f 20 |basedn, |port to |
|00001410| 75 72 69 20 28 6e 73 4c | 44 41 50 55 52 4c 29 2e |uri (nsL|DAPURL).|
|00001420| 20 20 20 20 0d 20 2a 2f | 0d 6e 73 4c 44 41 50 50 | . */|.nsLDAPP|
|00001430| 72 65 66 73 53 65 72 76 | 69 63 65 2e 70 72 6f 74 |refsServ|ice.prot|
|00001440| 6f 74 79 70 65 2e 6d 69 | 67 72 61 74 65 20 3d 20 |otype.mi|grate = |
|00001450| 0d 66 75 6e 63 74 69 6f | 6e 20 28 29 20 7b 0d 20 |.functio|n () {. |
|00001460| 20 76 61 72 20 70 72 65 | 66 5f 73 74 72 69 6e 67 | var pre|f_string|
|00001470| 3b 0d 20 20 76 61 72 20 | 6c 64 61 70 55 72 6c 3d |;. var |ldapUrl=|
|00001480| 6e 75 6c 6c 3b 0d 20 20 | 76 61 72 20 65 6e 61 62 |null;. |var enab|
|00001490| 6c 65 20 3d 20 66 61 6c | 73 65 3b 0d 20 20 69 66 |le = fal|se;. if|
|000014a0| 20 28 74 68 69 73 2e 70 | 72 65 66 73 5f 6d 69 67 | (this.p|refs_mig|
|000014b0| 72 61 74 65 64 29 20 72 | 65 74 75 72 6e 3b 0d 20 |rated) r|eturn;. |
|000014c0| 20 76 61 72 20 67 50 72 | 65 66 49 6e 74 20 3d 20 | var gPr|efInt = |
|000014d0| 6e 75 6c 6c 3b 0d 20 20 | 76 61 72 20 68 6f 73 74 |null;. |var host|
|000014e0| 3b 0d 20 20 74 72 79 20 | 7b 0d 20 20 20 20 67 50 |;. try |{. gP|
|000014f0| 72 65 66 49 6e 74 20 3d | 20 43 6f 6d 70 6f 6e 65 |refInt =| Compone|
|00001500| 6e 74 73 2e 63 6c 61 73 | 73 65 73 5b 22 40 6d 6f |nts.clas|ses["@mo|
|00001510| 7a 69 6c 6c 61 2e 6f 72 | 67 2f 70 72 65 66 65 72 |zilla.or|g/prefer|
|00001520| 65 6e 63 65 73 2d 73 65 | 72 76 69 63 65 3b 31 22 |ences-se|rvice;1"|
|00001530| 5d 3b 0d 20 20 20 20 67 | 50 72 65 66 49 6e 74 20 |];. g|PrefInt |
|00001540| 3d 20 67 50 72 65 66 49 | 6e 74 2e 67 65 74 53 65 |= gPrefI|nt.getSe|
|00001550| 72 76 69 63 65 28 43 6f | 6d 70 6f 6e 65 6e 74 73 |rvice(Co|mponents|
|00001560| 2e 69 6e 74 65 72 66 61 | 63 65 73 2e 6e 73 49 50 |.interfa|ces.nsIP|
|00001570| 72 65 66 42 72 61 6e 63 | 68 29 3b 0d 20 20 7d 0d |refBranc|h);. }.|
|00001580| 20 20 63 61 74 63 68 20 | 28 65 78 29 20 7b 0d 20 | catch |(ex) {. |
|00001590| 20 20 20 64 75 6d 70 28 | 22 66 61 69 6c 65 64 20 | dump(|"failed |
|000015a0| 74 6f 20 67 65 74 20 70 | 72 65 66 73 20 73 65 72 |to get p|refs ser|
|000015b0| 76 69 63 65 21 5c 6e 22 | 29 3b 0d 20 20 20 20 72 |vice!\n"|);. r|
|000015c0| 65 74 75 72 6e 3b 0d 20 | 20 7d 0d 20 20 76 61 72 |eturn;. | }. var|
|000015d0| 20 6d 69 67 72 61 74 65 | 64 20 3d 20 66 61 6c 73 | migrate|d = fals|
|000015e0| 65 3b 0d 20 20 74 72 79 | 7b 0d 20 20 20 20 6d 69 |e;. try|{. mi|
|000015f0| 67 72 61 74 65 64 20 3d | 20 67 50 72 65 66 49 6e |grated =| gPrefIn|
|00001600| 74 2e 67 65 74 42 6f 6f | 6c 50 72 65 66 28 22 6c |t.getBoo|lPref("l|
|00001610| 64 61 70 5f 32 2e 70 72 | 65 66 73 5f 6d 69 67 72 |dap_2.pr|efs_migr|
|00001620| 61 74 65 64 22 29 3b 0d | 20 20 7d 0d 20 20 63 61 |ated");.| }. ca|
|00001630| 74 63 68 28 65 78 29 7b | 7d 0d 20 20 69 66 20 28 |tch(ex){|}. if (|
|00001640| 6d 69 67 72 61 74 65 64 | 29 7b 0d 20 20 20 20 74 |migrated|){. t|
|00001650| 68 69 73 2e 70 72 65 66 | 73 5f 6d 69 67 72 61 74 |his.pref|s_migrat|
|00001660| 65 64 20 3d 20 74 72 75 | 65 3b 0d 20 20 20 20 72 |ed = tru|e;. r|
|00001670| 65 74 75 72 6e 3b 0d 20 | 20 7d 0d 20 20 74 72 79 |eturn;. | }. try|
|00001680| 7b 0d 20 20 20 20 76 61 | 72 20 75 73 65 44 69 72 |{. va|r useDir|
|00001690| 65 63 74 6f 72 79 20 3d | 20 67 50 72 65 66 49 6e |ectory =| gPrefIn|
|000016a0| 74 2e 67 65 74 42 6f 6f | 6c 50 72 65 66 28 22 6c |t.getBoo|lPref("l|
|000016b0| 64 61 70 5f 32 2e 73 65 | 72 76 65 72 73 2e 75 73 |dap_2.se|rvers.us|
|000016c0| 65 44 69 72 65 63 74 6f | 72 79 22 29 3b 0d 20 20 |eDirecto|ry");. |
|000016d0| 7d 0d 20 20 63 61 74 63 | 68 28 65 78 29 20 7b 7d |}. catc|h(ex) {}|
|000016e0| 0d 20 20 66 6f 72 20 28 | 76 61 72 20 69 3d 30 3b |. for (|var i=0;|
|000016f0| 20 69 20 3c 20 74 68 69 | 73 2e 61 76 61 69 6c 44 | i < thi|s.availD|
|00001700| 69 72 65 63 74 6f 72 69 | 65 73 2e 6c 65 6e 67 74 |irectori|es.lengt|
|00001710| 68 3b 20 69 2b 2b 29 20 | 7b 0d 20 20 20 20 70 72 |h; i++) |{. pr|
|00001720| 65 66 5f 73 74 72 69 6e | 67 20 3d 20 74 68 69 73 |ef_strin|g = this|
|00001730| 2e 61 76 61 69 6c 44 69 | 72 65 63 74 6f 72 69 65 |.availDi|rectorie|
|00001740| 73 5b 69 5d 5b 30 5d 3b | 0d 20 20 20 20 74 72 79 |s[i][0];|. try|
|00001750| 7b 0d 20 20 20 20 20 20 | 68 6f 73 74 20 3d 20 67 |{. |host = g|
|00001760| 50 72 65 66 49 6e 74 2e | 67 65 74 43 68 61 72 50 |PrefInt.|getCharP|
|00001770| 72 65 66 28 70 72 65 66 | 5f 73 74 72 69 6e 67 20 |ref(pref|_string |
|00001780| 2b 20 22 2e 73 65 72 76 | 65 72 4e 61 6d 65 22 29 |+ ".serv|erName")|
|00001790| 3b 0d 20 20 20 20 7d 0d | 20 20 20 20 63 61 74 63 |;. }.| catc|
|000017a0| 68 20 28 65 78 29 20 7b | 0d 20 20 20 20 20 20 68 |h (ex) {|. h|
|000017b0| 6f 73 74 20 3d 20 6e 75 | 6c 6c 3b 0d 20 20 20 20 |ost = nu|ll;. |
|000017c0| 7d 0d 20 20 20 20 69 66 | 20 28 68 6f 73 74 29 20 |}. if| (host) |
|000017d0| 7b 0d 20 20 20 20 20 20 | 74 72 79 20 7b 0d 20 20 |{. |try {. |
|000017e0| 20 20 20 20 20 20 6c 64 | 61 70 55 72 6c 20 3d 20 | ld|apUrl = |
|000017f0| 43 6f 6d 70 6f 6e 65 6e | 74 73 2e 63 6c 61 73 73 |Componen|ts.class|
|00001800| 65 73 5b 22 40 6d 6f 7a | 69 6c 6c 61 2e 6f 72 67 |es["@moz|illa.org|
|00001810| 2f 6e 65 74 77 6f 72 6b | 2f 6c 64 61 70 2d 75 72 |/network|/ldap-ur|
|00001820| 6c 3b 31 22 5d 3b 0d 20 | 20 20 20 20 20 20 20 6c |l;1"];. | l|
|00001830| 64 61 70 55 72 6c 20 3d | 20 6c 64 61 70 55 72 6c |dapUrl =| ldapUrl|
|00001840| 2e 63 72 65 61 74 65 49 | 6e 73 74 61 6e 63 65 28 |.createI|nstance(|
|00001850| 29 2e 51 75 65 72 79 49 | 6e 74 65 72 66 61 63 65 |).QueryI|nterface|
|00001860| 28 6e 73 49 4c 44 41 50 | 55 52 4c 29 3b 0d 20 20 |(nsILDAP|URL);. |
|00001870| 20 20 20 20 7d 0d 20 20 | 20 20 20 20 63 61 74 63 | }. | catc|
|00001880| 68 20 28 65 78 29 20 7b | 0d 20 20 20 20 20 20 20 |h (ex) {|. |
|00001890| 20 64 75 6d 70 28 22 66 | 61 69 6c 65 64 20 74 6f | dump("f|ailed to|
|000018a0| 20 67 65 74 20 6c 64 61 | 70 20 75 72 6c 21 5c 6e | get lda|p url!\n|
|000018b0| 22 29 3b 0d 20 20 20 20 | 20 20 20 20 72 65 74 75 |");. | retu|
|000018c0| 72 6e 3b 0d 20 20 20 20 | 20 20 7d 0d 20 20 20 20 |rn;. | }. |
|000018d0| 20 20 6c 64 61 70 55 72 | 6c 2e 68 6f 73 74 20 3d | ldapUr|l.host =|
|000018e0| 20 68 6f 73 74 3b 0d 20 | 20 20 20 20 20 74 72 79 | host;. | try|
|000018f0| 7b 0d 20 20 20 20 20 20 | 20 20 6c 64 61 70 55 72 |{. | ldapUr|
|00001900| 6c 2e 64 6e 20 3d 20 67 | 50 72 65 66 49 6e 74 2e |l.dn = g|PrefInt.|
|00001910| 67 65 74 43 6f 6d 70 6c | 65 78 56 61 6c 75 65 28 |getCompl|exValue(|
|00001920| 70 72 65 66 5f 73 74 72 | 69 6e 67 20 2b 20 22 2e |pref_str|ing + ".|
|00001930| 73 65 61 72 63 68 42 61 | 73 65 22 2c 0d 20 20 20 |searchBa|se",. |
|00001940| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001950| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001960| 20 20 20 20 20 20 20 20 | 20 20 20 6e 73 49 53 75 | | nsISu|
|00001970| 70 70 6f 72 74 73 53 74 | 72 69 6e 67 29 2e 64 61 |pportsSt|ring).da|
|00001980| 74 61 3b 0d 20 20 20 20 | 20 20 7d 0d 20 20 20 20 |ta;. | }. |
|00001990| 20 20 63 61 74 63 68 20 | 28 65 78 29 20 7b 0d 20 | catch |(ex) {. |
|000019a0| 20 20 20 20 20 7d 0d 20 | 20 20 20 20 20 76 61 72 | }. | var|
|000019b0| 20 73 65 63 75 72 65 20 | 3d 20 66 61 6c 73 65 3b | secure |= false;|
|000019c0| 0d 20 20 20 20 20 20 74 | 72 79 20 7b 0d 20 20 20 |. t|ry {. |
|000019d0| 20 20 20 20 20 73 65 63 | 75 72 65 20 3d 20 67 50 | sec|ure = gP|
|000019e0| 72 65 66 49 6e 74 2e 67 | 65 74 42 6f 6f 6c 50 72 |refInt.g|etBoolPr|
|000019f0| 65 66 28 70 72 65 66 5f | 73 74 72 69 6e 67 20 2b |ef(pref_|string +|
|00001a00| 20 22 2e 69 73 53 65 63 | 75 72 65 22 29 3b 0d 20 | ".isSec|ure");. |
|00001a10| 20 20 20 20 20 7d 0d 20 | 20 20 20 20 20 63 61 74 | }. | cat|
|00001a20| 63 68 28 65 78 29 20 7b | 2f 2f 20 69 66 20 74 68 |ch(ex) {|// if th|
|00001a30| 69 73 20 70 72 65 66 65 | 72 65 6e 63 65 20 64 6f |is prefe|rence do|
|00001a40| 65 73 20 6e 6f 74 20 65 | 78 69 73 74 20 69 74 73 |es not e|xist its|
|00001a50| 20 6f 6b 0d 20 20 20 20 | 20 20 7d 0d 20 20 20 20 | ok. | }. |
|00001a60| 20 20 76 61 72 20 70 6f | 72 74 3b 0d 20 20 20 20 | var po|rt;. |
|00001a70| 20 20 69 66 20 28 73 65 | 63 75 72 65 29 20 7b 0d | if (se|cure) {.|
|00001a80| 20 20 20 20 20 20 20 20 | 6c 64 61 70 55 72 6c 2e | |ldapUrl.|
|00001a90| 6f 70 74 69 6f 6e 73 20 | 7c 3d 20 6c 64 61 70 75 |options ||= ldapu|
|00001aa0| 72 6c 2e 4f 50 54 5f 53 | 45 43 55 52 45 3b 0d 20 |rl.OPT_S|ECURE;. |
|00001ab0| 20 20 20 20 20 20 20 70 | 6f 72 74 20 3d 20 6b 44 | p|ort = kD|
|00001ac0| 65 66 61 75 6c 74 53 65 | 63 75 72 65 4c 44 41 50 |efaultSe|cureLDAP|
|00001ad0| 50 6f 72 74 3b 0d 20 20 | 20 20 20 20 7d 0d 20 20 |Port;. | }. |
|00001ae0| 20 20 20 20 65 6c 73 65 | 0d 20 20 20 20 20 20 20 | else|. |
|00001af0| 20 70 6f 72 74 20 3d 20 | 6b 44 65 66 61 75 6c 74 | port = |kDefault|
|00001b00| 4c 44 41 50 50 6f 72 74 | 3b 0d 20 20 20 20 20 20 |LDAPPort|;. |
|00001b10| 74 72 79 20 7b 0d 20 20 | 20 20 20 20 20 20 70 6f |try {. | po|
|00001b20| 72 74 20 3d 20 67 50 72 | 65 66 49 6e 74 2e 67 65 |rt = gPr|efInt.ge|
|00001b30| 74 49 6e 74 50 72 65 66 | 28 70 72 65 66 5f 73 74 |tIntPref|(pref_st|
|00001b40| 72 69 6e 67 20 2b 20 22 | 2e 70 6f 72 74 22 29 3b |ring + "|.port");|
|00001b50| 0d 20 20 20 20 20 20 7d | 0d 20 20 20 20 20 20 63 |. }|. c|
|00001b60| 61 74 63 68 28 65 78 29 | 20 7b 0d 09 20 20 20 20 |atch(ex)| {.. |
|00001b70| 2f 2f 20 69 66 20 74 68 | 69 73 20 70 72 65 66 65 |// if th|is prefe|
|00001b80| 72 65 6e 63 65 20 64 6f | 65 73 20 6e 6f 74 20 65 |rence do|es not e|
|00001b90| 78 69 73 74 20 77 65 20 | 77 69 6c 6c 20 75 73 65 |xist we |will use|
|00001ba0| 20 64 65 66 61 75 6c 74 | 20 76 61 6c 75 65 73 2e | default| values.|
|00001bb0| 0d 20 20 20 20 20 20 7d | 0d 20 20 20 20 20 20 6c |. }|. l|
|00001bc0| 64 61 70 55 72 6c 2e 70 | 6f 72 74 20 3d 20 70 6f |dapUrl.p|ort = po|
|00001bd0| 72 74 3b 0d 20 20 20 20 | 20 20 6c 64 61 70 55 72 |rt;. | ldapUr|
|00001be0| 6c 2e 73 63 6f 70 65 20 | 3d 20 32 3b 0d 0d 20 20 |l.scope |= 2;.. |
|00001bf0| 20 20 20 20 76 61 72 20 | 75 72 69 20 3d 20 43 6f | var |uri = Co|
|00001c00| 6d 70 6f 6e 65 6e 74 73 | 2e 63 6c 61 73 73 65 73 |mponents|.classes|
|00001c10| 5b 22 40 6d 6f 7a 69 6c | 6c 61 2e 6f 72 67 2f 73 |["@mozil|la.org/s|
|00001c20| 75 70 70 6f 72 74 73 2d | 73 74 72 69 6e 67 3b 31 |upports-|string;1|
|00001c30| 22 5d 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |"]. | |
|00001c40| 20 20 20 20 20 20 20 20 | 20 2e 63 72 65 61 74 65 | | .create|
|00001c50| 49 6e 73 74 61 6e 63 65 | 28 43 6f 6d 70 6f 6e 65 |Instance|(Compone|
|00001c60| 6e 74 73 2e 69 6e 74 65 | 72 66 61 63 65 73 2e 6e |nts.inte|rfaces.n|
|00001c70| 73 49 53 75 70 70 6f 72 | 74 73 53 74 72 69 6e 67 |sISuppor|tsString|
|00001c80| 29 3b 0d 20 20 20 20 20 | 20 75 72 69 2e 64 61 74 |);. | uri.dat|
|00001c90| 61 20 3d 20 6c 64 61 70 | 55 72 6c 2e 73 70 65 63 |a = ldap|Url.spec|
|00001ca0| 3b 0d 20 20 20 20 20 20 | 67 50 72 65 66 49 6e 74 |;. |gPrefInt|
|00001cb0| 2e 73 65 74 43 6f 6d 70 | 6c 65 78 56 61 6c 75 65 |.setComp|lexValue|
|00001cc0| 28 70 72 65 66 5f 73 74 | 72 69 6e 67 20 2b 20 22 |(pref_st|ring + "|
|00001cd0| 2e 75 72 69 22 2c 20 43 | 6f 6d 70 6f 6e 65 6e 74 |.uri", C|omponent|
|00001ce0| 73 2e 69 6e 74 65 72 66 | 61 63 65 73 2e 6e 73 49 |s.interf|aces.nsI|
|00001cf0| 53 75 70 70 6f 72 74 73 | 53 74 72 69 6e 67 2c 20 |Supports|String, |
|00001d00| 75 72 69 29 3b 0d 0d 20 | 20 20 20 20 20 2f 2a 20 |uri);.. | /* |
|00001d10| 69 73 20 74 68 69 73 20 | 73 65 72 76 65 72 20 73 |is this |server s|
|00001d20| 65 6c 65 63 74 65 64 20 | 66 6f 72 20 61 75 74 6f |elected |for auto|
|00001d30| 63 6f 6d 70 6c 65 74 69 | 6f 6e 3f 20 0d 20 20 20 |completi|on? . |
|00001d40| 20 20 20 20 20 20 69 66 | 20 79 65 73 2c 20 63 6f | if| yes, co|
|00001d50| 6e 76 65 72 74 20 74 68 | 65 20 70 72 65 66 65 72 |nvert th|e prefer|
|00001d60| 65 6e 63 65 20 74 6f 20 | 6d 6f 7a 69 6c 6c 61 20 |ence to |mozilla |
|00001d70| 66 6f 72 6d 61 74 2e 0d | 20 20 20 20 20 20 20 20 |format..| |
|00001d80| 20 41 74 6d 6f 73 74 20 | 6f 6e 65 20 73 65 72 76 | Atmost |one serv|
|00001d90| 65 72 20 69 73 20 73 65 | 6c 65 63 74 65 64 20 66 |er is se|lected f|
|00001da0| 6f 72 20 61 75 74 6f 63 | 6f 6d 70 6c 65 74 69 6f |or autoc|ompletio|
|00001db0| 6e 2e 20 0d 20 20 20 20 | 20 20 20 2a 2f 0d 20 20 |n. . | */. |
|00001dc0| 20 20 20 20 69 66 20 28 | 75 73 65 44 69 72 65 63 | if (|useDirec|
|00001dd0| 74 6f 72 79 20 26 26 20 | 21 65 6e 61 62 6c 65 29 |tory && |!enable)|
|00001de0| 7b 0d 20 20 20 20 20 20 | 20 20 74 72 79 20 7b 0d |{. | try {.|
|00001df0| 20 20 20 20 20 20 20 20 | 20 65 6e 61 62 6c 65 20 | | enable |
|00001e00| 3d 20 67 50 72 65 66 49 | 6e 74 2e 67 65 74 42 6f |= gPrefI|nt.getBo|
|00001e10| 6f 6c 50 72 65 66 28 70 | 72 65 66 5f 73 74 72 69 |olPref(p|ref_stri|
|00001e20| 6e 67 20 2b 20 22 2e 61 | 75 74 6f 63 6f 6d 70 6c |ng + ".a|utocompl|
|00001e30| 65 74 65 2e 65 6e 61 62 | 6c 65 64 22 29 3b 0d 20 |ete.enab|led");. |
|00001e40| 20 20 20 20 20 20 20 7d | 20 0d 20 20 20 20 20 20 | }| . |
|00001e50| 20 20 63 61 74 63 68 28 | 65 78 29 20 7b 7d 0d 20 | catch(|ex) {}. |
|00001e60| 20 20 20 20 20 20 20 69 | 66 20 28 65 6e 61 62 6c | i|f (enabl|
|00001e70| 65 29 20 7b 0d 20 20 20 | 20 20 20 20 20 20 20 67 |e) {. | g|
|00001e80| 50 72 65 66 49 6e 74 2e | 73 65 74 43 68 61 72 50 |PrefInt.|setCharP|
|00001e90| 72 65 66 28 22 6c 64 61 | 70 5f 32 2e 73 65 72 76 |ref("lda|p_2.serv|
|00001ea0| 65 72 73 2e 64 69 72 65 | 63 74 6f 72 79 53 65 72 |ers.dire|ctorySer|
|00001eb0| 76 65 72 22 2c 20 70 72 | 65 66 5f 73 74 72 69 6e |ver", pr|ef_strin|
|00001ec0| 67 29 3b 0d 20 20 20 20 | 20 20 20 20 7d 0d 20 20 |g);. | }. |
|00001ed0| 20 20 20 20 7d 0d 20 20 | 20 20 7d 0d 20 20 7d 0d | }. | }. }.|
|00001ee0| 20 20 74 72 79 20 7b 0d | 20 20 20 20 67 50 72 65 | try {.| gPre|
|00001ef0| 66 49 6e 74 2e 73 65 74 | 42 6f 6f 6c 50 72 65 66 |fInt.set|BoolPref|
|00001f00| 28 22 6c 64 61 70 5f 32 | 2e 70 72 65 66 73 5f 6d |("ldap_2|.prefs_m|
|00001f10| 69 67 72 61 74 65 64 22 | 2c 20 74 72 75 65 29 3b |igrated"|, true);|
|00001f20| 0d 20 20 20 20 76 61 72 | 20 73 76 63 20 3d 20 43 |. var| svc = C|
|00001f30| 6f 6d 70 6f 6e 65 6e 74 | 73 2e 63 6c 61 73 73 65 |omponent|s.classe|
|00001f40| 73 5b 22 40 6d 6f 7a 69 | 6c 6c 61 2e 6f 72 67 2f |s["@mozi|lla.org/|
|00001f50| 70 72 65 66 65 72 65 6e | 63 65 73 2d 73 65 72 76 |preferen|ces-serv|
|00001f60| 69 63 65 3b 31 22 5d 0d | 20 20 20 20 20 20 20 20 |ice;1"].| |
|00001f70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001f80| 2e 67 65 74 53 65 72 76 | 69 63 65 28 43 6f 6d 70 |.getServ|ice(Comp|
|00001f90| 6f 6e 65 6e 74 73 2e 69 | 6e 74 65 72 66 61 63 65 |onents.i|nterface|
|00001fa0| 73 2e 6e 73 49 50 72 65 | 66 53 65 72 76 69 63 65 |s.nsIPre|fService|
|00001fb0| 29 3b 0d 20 20 20 20 73 | 76 63 2e 73 61 76 65 50 |);. s|vc.saveP|
|00001fc0| 72 65 66 46 69 6c 65 28 | 6e 75 6c 6c 29 3b 0d 20 |refFile(|null);. |
|00001fd0| 20 7d 0d 20 20 63 61 74 | 63 68 20 28 65 78 29 20 | }. cat|ch (ex) |
|00001fe0| 7b 64 75 6d 70 20 28 22 | 45 52 52 4f 52 3a 22 20 |{dump ("|ERROR:" |
|00001ff0| 2b 20 65 78 20 2b 20 22 | 5c 6e 22 29 3b 7d 0d 20 |+ ex + "|\n");}. |
|00002000| 20 20 20 0d 20 20 74 68 | 69 73 2e 70 72 65 66 73 | . th|is.prefs|
|00002010| 5f 6d 69 67 72 61 74 65 | 64 20 3d 20 74 72 75 65 |_migrate|d = true|
|00002020| 3b 0d 7d 0d 0d 2f 2a 20 | 66 61 63 74 6f 72 79 20 |;.}../* |factory |
|00002030| 66 6f 72 20 6e 73 4c 44 | 41 50 50 72 65 66 73 20 |for nsLD|APPrefs |
|00002040| 73 65 72 76 69 63 65 20 | 28 6e 73 4c 44 41 50 50 |service |(nsLDAPP|
|00002050| 72 65 66 73 53 65 72 76 | 69 63 65 29 20 2a 2f 0d |refsServ|ice) */.|
|00002060| 0d 76 61 72 20 6e 73 4c | 44 41 50 50 72 65 66 73 |.var nsL|DAPPrefs|
|00002070| 46 61 63 74 6f 72 79 20 | 3d 20 6e 65 77 20 4f 62 |Factory |= new Ob|
|00002080| 6a 65 63 74 28 29 3b 0d | 0d 6e 73 4c 44 41 50 50 |ject();.|.nsLDAPP|
|00002090| 72 65 66 73 46 61 63 74 | 6f 72 79 2e 63 72 65 61 |refsFact|ory.crea|
|000020a0| 74 65 49 6e 73 74 61 6e | 63 65 20 3d 0d 0d 66 75 |teInstan|ce =..fu|
|000020b0| 6e 63 74 69 6f 6e 20 28 | 6f 75 74 65 72 2c 20 69 |nction (|outer, i|
|000020c0| 69 64 29 20 7b 0d 20 20 | 20 20 69 66 20 28 6f 75 |id) {. | if (ou|
|000020d0| 74 65 72 20 21 3d 20 6e | 75 6c 6c 29 0d 20 20 20 |ter != n|ull). |
|000020e0| 20 20 20 20 20 74 68 72 | 6f 77 20 43 6f 6d 70 6f | thr|ow Compo|
|000020f0| 6e 65 6e 74 73 2e 72 65 | 73 75 6c 74 73 2e 4e 53 |nents.re|sults.NS|
|00002100| 5f 45 52 52 4f 52 5f 4e | 4f 5f 41 47 47 52 45 47 |_ERROR_N|O_AGGREG|
|00002110| 41 54 49 4f 4e 3b 0d 0d | 20 20 20 20 69 66 20 28 |ATION;..| if (|
|00002120| 21 69 69 64 2e 65 71 75 | 61 6c 73 28 6e 73 49 53 |!iid.equ|als(nsIS|
|00002130| 75 70 70 6f 72 74 73 29 | 29 0d 20 20 20 20 20 20 |upports)|). |
|00002140| 20 20 74 68 72 6f 77 20 | 43 6f 6d 70 6f 6e 65 6e | throw |Componen|
|00002150| 74 73 2e 72 65 73 75 6c | 74 73 2e 4e 53 5f 45 52 |ts.resul|ts.NS_ER|
|00002160| 52 4f 52 5f 49 4e 56 41 | 4c 49 44 5f 41 52 47 3b |ROR_INVA|LID_ARG;|
|00002170| 0d 0d 20 20 20 20 72 65 | 74 75 72 6e 20 6e 65 77 |.. re|turn new|
|00002180| 20 6e 73 4c 44 41 50 50 | 72 65 66 73 53 65 72 76 | nsLDAPP|refsServ|
|00002190| 69 63 65 28 29 3b 0d 7d | 0d 0d 76 61 72 20 6e 73 |ice();.}|..var ns|
|000021a0| 4c 44 41 50 50 72 65 66 | 73 4d 6f 64 75 6c 65 20 |LDAPPref|sModule |
|000021b0| 3d 20 6e 65 77 20 4f 62 | 6a 65 63 74 28 29 3b 0d |= new Ob|ject();.|
|000021c0| 6e 73 4c 44 41 50 50 72 | 65 66 73 4d 6f 64 75 6c |nsLDAPPr|efsModul|
|000021d0| 65 2e 72 65 67 69 73 74 | 65 72 53 65 6c 66 20 3d |e.regist|erSelf =|
|000021e0| 0d 66 75 6e 63 74 69 6f | 6e 20 28 63 6f 6d 70 4d |.functio|n (compM|
|000021f0| 67 72 2c 20 66 69 6c 65 | 53 70 65 63 2c 20 6c 6f |gr, file|Spec, lo|
|00002200| 63 61 74 69 6f 6e 2c 20 | 74 79 70 65 29 0d 7b 0d |cation, |type).{.|
|00002210| 20 20 20 20 63 6f 6d 70 | 4d 67 72 20 3d 20 63 6f | comp|Mgr = co|
|00002220| 6d 70 4d 67 72 2e 51 75 | 65 72 79 49 6e 74 65 72 |mpMgr.Qu|eryInter|
|00002230| 66 61 63 65 28 43 6f 6d | 70 6f 6e 65 6e 74 73 2e |face(Com|ponents.|
|00002240| 69 6e 74 65 72 66 61 63 | 65 73 2e 6e 73 49 43 6f |interfac|es.nsICo|
|00002250| 6d 70 6f 6e 65 6e 74 52 | 65 67 69 73 74 72 61 72 |mponentR|egistrar|
|00002260| 29 3b 0d 0d 20 20 20 20 | 63 6f 6d 70 4d 67 72 2e |);.. |compMgr.|
|00002270| 72 65 67 69 73 74 65 72 | 46 61 63 74 6f 72 79 4c |register|FactoryL|
|00002280| 6f 63 61 74 69 6f 6e 28 | 4e 53 5f 4c 44 41 50 50 |ocation(|NS_LDAPP|
|00002290| 52 45 46 53 53 45 52 56 | 49 43 45 5f 43 49 44 2c |REFSSERV|ICE_CID,|
|000022a0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000022b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000022c0| 20 20 20 20 20 22 6e 73 | 4c 44 41 50 50 72 65 66 | "ns|LDAPPref|
|000022d0| 73 20 53 65 72 76 69 63 | 65 22 2c 0d 20 20 20 20 |s Servic|e",. |
|000022e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000022f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002300| 4e 53 5f 4c 44 41 50 50 | 52 45 46 53 53 45 52 56 |NS_LDAPP|REFSSERV|
|00002310| 49 43 45 5f 43 4f 4e 54 | 52 41 43 54 49 44 2c 20 |ICE_CONT|RACTID, |
|00002320| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00002330| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002340| 20 20 20 20 20 66 69 6c | 65 53 70 65 63 2c 0d 20 | fil|eSpec,. |
|00002350| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002360| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002370| 20 20 20 6c 6f 63 61 74 | 69 6f 6e 2c 0d 20 20 20 | locat|ion,. |
|00002380| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002390| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000023a0| 20 74 79 70 65 29 3b 0d | 7d 0d 0d 6e 73 4c 44 41 | type);.|}..nsLDA|
|000023b0| 50 50 72 65 66 73 4d 6f | 64 75 6c 65 2e 75 6e 72 |PPrefsMo|dule.unr|
|000023c0| 65 67 69 73 74 65 72 53 | 65 6c 66 20 3d 0d 66 75 |egisterS|elf =.fu|
|000023d0| 6e 63 74 69 6f 6e 28 63 | 6f 6d 70 4d 67 72 2c 20 |nction(c|ompMgr, |
|000023e0| 66 69 6c 65 53 70 65 63 | 2c 20 6c 6f 63 61 74 69 |fileSpec|, locati|
|000023f0| 6f 6e 29 0d 7b 0d 20 20 | 20 20 63 6f 6d 70 4d 67 |on).{. | compMg|
|00002400| 72 20 3d 20 63 6f 6d 70 | 4d 67 72 2e 51 75 65 72 |r = comp|Mgr.Quer|
|00002410| 79 49 6e 74 65 72 66 61 | 63 65 28 43 6f 6d 70 6f |yInterfa|ce(Compo|
|00002420| 6e 65 6e 74 73 2e 69 6e | 74 65 72 66 61 63 65 73 |nents.in|terfaces|
|00002430| 2e 6e 73 49 43 6f 6d 70 | 6f 6e 65 6e 74 52 65 67 |.nsIComp|onentReg|
|00002440| 69 73 74 72 61 72 29 3b | 0d 20 20 20 20 63 6f 6d |istrar);|. com|
|00002450| 70 4d 67 72 2e 75 6e 72 | 65 67 69 73 74 65 72 46 |pMgr.unr|egisterF|
|00002460| 61 63 74 6f 72 79 4c 6f | 63 61 74 69 6f 6e 28 4e |actoryLo|cation(N|
|00002470| 53 5f 4c 44 41 50 50 52 | 45 46 53 53 45 52 56 49 |S_LDAPPR|EFSSERVI|
|00002480| 43 45 5f 43 49 44 2c 20 | 66 69 6c 65 53 70 65 63 |CE_CID, |fileSpec|
|00002490| 29 3b 0d 7d 0d 0d 6e 73 | 4c 44 41 50 50 72 65 66 |);.}..ns|LDAPPref|
|000024a0| 73 4d 6f 64 75 6c 65 2e | 67 65 74 43 6c 61 73 73 |sModule.|getClass|
|000024b0| 4f 62 6a 65 63 74 20 3d | 0d 66 75 6e 63 74 69 6f |Object =|.functio|
|000024c0| 6e 20 28 63 6f 6d 70 4d | 67 72 2c 20 63 69 64 2c |n (compM|gr, cid,|
|000024d0| 20 69 69 64 29 20 7b 0d | 20 20 20 20 69 66 20 28 | iid) {.| if (|
|000024e0| 63 69 64 2e 65 71 75 61 | 6c 73 28 4e 53 5f 4c 44 |cid.equa|ls(NS_LD|
|000024f0| 41 50 50 52 45 46 53 53 | 45 52 56 49 43 45 5f 43 |APPREFSS|ERVICE_C|
|00002500| 49 44 29 29 0d 20 20 20 | 20 20 20 20 20 72 65 74 |ID)). | ret|
|00002510| 75 72 6e 20 6e 73 4c 44 | 41 50 50 72 65 66 73 46 |urn nsLD|APPrefsF|
|00002520| 61 63 74 6f 72 79 3b 0d | 20 20 20 20 74 68 72 6f |actory;.| thro|
|00002530| 77 20 43 6f 6d 70 6f 6e | 65 6e 74 73 2e 72 65 73 |w Compon|ents.res|
|00002540| 75 6c 74 73 2e 4e 53 5f | 45 52 52 4f 52 5f 4e 4f |ults.NS_|ERROR_NO|
|00002550| 5f 49 4e 54 45 52 46 41 | 43 45 3b 20 20 0d 7d 0d |_INTERFA|CE; .}.|
|00002560| 0d 6e 73 4c 44 41 50 50 | 72 65 66 73 4d 6f 64 75 |.nsLDAPP|refsModu|
|00002570| 6c 65 2e 63 61 6e 55 6e | 6c 6f 61 64 20 3d 0d 66 |le.canUn|load =.f|
|00002580| 75 6e 63 74 69 6f 6e 28 | 63 6f 6d 70 4d 67 72 29 |unction(|compMgr)|
|00002590| 0d 7b 0d 20 20 20 20 72 | 65 74 75 72 6e 20 74 72 |.{. r|eturn tr|
|000025a0| 75 65 3b 0d 7d 0d 0d 2f | 2a 20 65 6e 74 72 79 70 |ue;.}../|* entryp|
|000025b0| 6f 69 6e 74 20 2a 2f 0d | 66 75 6e 63 74 69 6f 6e |oint */.|function|
|000025c0| 20 4e 53 47 65 74 4d 6f | 64 75 6c 65 28 63 6f 6d | NSGetMo|dule(com|
|000025d0| 70 4d 67 72 2c 20 66 69 | 6c 65 53 70 65 63 29 20 |pMgr, fi|leSpec) |
|000025e0| 7b 0d 20 20 20 20 72 65 | 74 75 72 6e 20 6e 73 4c |{. re|turn nsL|
|000025f0| 44 41 50 50 72 65 66 73 | 4d 6f 64 75 6c 65 3b 0d |DAPPrefs|Module;.|
|00002600| 7d 0d 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |}.......|........|
|00002610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002680| 00 00 01 00 00 00 01 5f | 00 00 00 5f 00 00 00 41 |......._|..._...A|
|00002690| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002780| 00 00 00 5b 66 d0 28 40 | 3f e5 32 30 00 04 00 00 |...[f.(@|?.20....|
|00002790| 00 00 00 00 00 00 bb 25 | 3a 28 bb 25 3a 28 00 00 |.......%|:(.%:(..|
|000027a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 11 6b |........|.......k|
|000027b0| 61 69 65 25 6e 65 74 73 | 63 61 70 65 2e 63 6f 6d |aie%nets|cape.com|
|000027c0| 00 00 00 15 6e 73 4c 44 | 41 50 50 72 65 66 73 53 |....nsLD|APPrefsS|
|000027d0| 65 72 76 69 63 65 2e 6a | 73 00 00 00 00 00 00 00 |ervice.j|s.......|
|000027e0| 00 01 00 00 00 01 5f 00 | 00 00 5f 00 00 00 41 00 |......_.|.._...A.|
|000027f0| 0e 80 84 42 be 00 00 00 | 1c 00 32 00 00 63 6b 69 |...B....|..2..cki|
|00002800| 64 00 00 00 0a 00 80 00 | 00 00 00 00 00 01 3b 21 |d.......|......;!|
|00002810| 50 0e 50 72 6f 6a 65 63 | 74 6f 72 20 44 61 74 61 |P.Projec|tor Data|
|00002820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+