rfc2244.ACAP.txt 151 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035
  1. Network Working Group C. Newman
  2. Request for Comments: 2244 Innosoft
  3. Category: Standards Track J. G. Myers
  4. Netscape
  5. November 1997
  6. ACAP -- Application Configuration Access Protocol
  7. Status of this Memo
  8. This document specifies an Internet standards track protocol for the
  9. Internet community, and requests discussion and suggestions for
  10. improvements. Please refer to the current edition of the "Internet
  11. Official Protocol Standards" (STD 1) for the standardization state
  12. and status of this protocol. Distribution of this memo is unlimited.
  13. Copyright Notice
  14. Copyright (C) The Internet Society 1997. All Rights Reserved.
  15. Abstract
  16. The Application Configuration Access Protocol (ACAP) is designed to
  17. support remote storage and access of program option, configuration
  18. and preference information. The data store model is designed to
  19. allow a client relatively simple access to interesting data, to allow
  20. new information to be easily added without server re-configuration,
  21. and to promote the use of both standardized data and custom or
  22. proprietary data. Key features include "inheritance" which can be
  23. used to manage default values for configuration settings and access
  24. control lists which allow interesting personal information to be
  25. shared and group information to be restricted.
  26. Newman & Myers Standards Track [Page i]
  27. RFC 2244 ACAP November 1997
  28. Table of Contents
  29. Status of this Memo ............................................... i
  30. Copyright Notice .................................................. i
  31. Abstract .......................................................... i
  32. ACAP Protocol Specification ....................................... 1
  33. 1. Introduction ............................................. 1
  34. 1.1. Conventions Used in this Document ........................ 1
  35. 1.2. ACAP Data Model .......................................... 1
  36. 1.3. ACAP Design Goals ........................................ 1
  37. 1.4. Validation ............................................... 2
  38. 1.5. Definitions .............................................. 2
  39. 1.6. ACAP Command Overview .................................... 4
  40. 2. Protocol Framework ....................................... 4
  41. 2.1. Link Level ............................................... 4
  42. 2.2. Commands and Responses ................................... 4
  43. 2.2.1. Client Protocol Sender and Server Protocol Receiver ...... 4
  44. 2.2.2. Server Protocol Sender and Client Protocol Receiver ...... 5
  45. 2.3. Server States ............................................ 6
  46. 2.3.1. Non-Authenticated State .................................. 6
  47. 2.3.2. Authenticated State ...................................... 6
  48. 2.3.3. Logout State ............................................. 6
  49. 2.4. Operational Considerations ............................... 7
  50. 2.4.1. Untagged Status Updates .................................. 7
  51. 2.4.2. Response when No Command in Progress ..................... 7
  52. 2.4.3. Auto-logout Timer ........................................ 7
  53. 2.4.4. Multiple Commands in Progress ............................ 8
  54. 2.5. Server Command Continuation Request ...................... 8
  55. 2.6. Data Formats ............................................. 8
  56. 2.6.1. Atom ..................................................... 9
  57. 2.6.2. Number ................................................... 9
  58. 2.6.3. String ................................................... 9
  59. 2.6.3.1. 8-bit and Binary Strings ................................. 10
  60. 2.6.4. Parenthesized List ....................................... 10
  61. 2.6.5. NIL ...................................................... 10
  62. 3. Protocol Elements ........................................ 10
  63. 3.1. Entries and Attributes ................................... 10
  64. 3.1.1. Predefined Attributes .................................... 11
  65. 3.1.2. Attribute Metadata ....................................... 12
  66. 3.2. ACAP URL scheme .......................................... 13
  67. 3.2.1. ACAP URL User Name and Authentication Mechanism .......... 13
  68. 3.2.2. Relative ACAP URLs ....................................... 14
  69. 3.3. Contexts ................................................. 14
  70. Newman & Myers Standards Track [Page ii]
  71. RFC 2244 ACAP November 1997
  72. 3.4. Comparators .............................................. 15
  73. 3.5. Access Control Lists (ACLs) .............................. 17
  74. 3.6. Server Response Codes .................................... 18
  75. 4. Namespace Conventions .................................... 21
  76. 4.1. Dataset Namespace ........................................ 21
  77. 4.2. Attribute Namespace ...................................... 21
  78. 4.3. Formal Syntax for Dataset and Attribute Namespace ........ 22
  79. 5. Dataset Management ....................................... 23
  80. 5.1. Dataset Inheritance ...................................... 23
  81. 5.2. Dataset Attributes ....................................... 24
  82. 5.3. Dataset Creation ......................................... 25
  83. 5.4. Dataset Class Capabilities ............................... 25
  84. 5.5. Dataset Quotas ........................................... 26
  85. 6. Command and Response Specifications ...................... 26
  86. 6.1. Initial Connection ....................................... 26
  87. 6.1.1. ACAP Untagged Response ................................... 26
  88. 6.2. Any State ................................................ 27
  89. 6.2.1. NOOP Command ............................................. 27
  90. 6.2.2. LANG Command ............................................. 28
  91. 6.2.3. LANG Intermediate Response ............................... 28
  92. 6.2.4. LOGOUT Command ........................................... 29
  93. 6.2.5. OK Response .............................................. 29
  94. 6.2.6. NO Response .............................................. 29
  95. 6.2.7. BAD Response ............................................. 30
  96. 6.2.8. BYE Untagged Response .................................... 30
  97. 6.2.9. ALERT Untagged Response .................................. 31
  98. 6.3. Non-Authenticated State .................................. 31
  99. 6.3.1. AUTHENTICATE Command ..................................... 31
  100. 6.4. Searching ................................................ 33
  101. 6.4.1. SEARCH Command ........................................... 33
  102. 6.4.2. ENTRY Intermediate Response .............................. 37
  103. 6.4.3. MODTIME Intermediate Response ............................ 38
  104. 6.4.4. REFER Intermediate Response .............................. 38
  105. 6.4.5. Search Examples .......................................... 38
  106. 6.5. Contexts ................................................. 39
  107. 6.5.1. FREECONTEXT Command ...................................... 39
  108. 6.5.2. UPDATECONTEXT Command .................................... 40
  109. 6.5.3. ADDTO Untagged Response .................................. 40
  110. 6.5.4. REMOVEFROM Untagged Response ............................. 41
  111. 6.5.5. CHANGE Untagged Response ................................. 41
  112. 6.5.6. MODTIME Untagged Response ................................ 42
  113. 6.6. Dataset modification ..................................... 42
  114. 6.6.1. STORE Command ............................................ 42
  115. 6.6.2. DELETEDSINCE Command ..................................... 45
  116. 6.6.3. DELETED Intermediate Response ............................ 45
  117. 6.7. Access Control List Commands ............................. 45
  118. 6.7.1. SETACL Command ........................................... 46
  119. 6.7.2. DELETEACL Command ........................................ 46
  120. Newman & Myers Standards Track [Page iii]
  121. RFC 2244 ACAP November 1997
  122. 6.7.3. MYRIGHTS Command ......................................... 47
  123. 6.7.4. MYRIGHTS Intermediate Response ........................... 47
  124. 6.7.5. LISTRIGHTS Command ....................................... 47
  125. 6.7.6. LISTRIGHTS Intermediate Response ......................... 48
  126. 6.8. Quotas ................................................... 48
  127. 6.8.1. GETQUOTA Command ......................................... 48
  128. 6.8.3. QUOTA Untagged Response .................................. 49
  129. 6.9. Extensions ............................................... 49
  130. 7. Registration Procedures .................................. 49
  131. 7.1. ACAP Capabilities ........................................ 50
  132. 7.2. ACAP Response Codes ...................................... 50
  133. 7.3. Dataset Classes .......................................... 51
  134. 7.4. Vendor Subtree ........................................... 51
  135. 8. Formal Syntax ............................................ 52
  136. 9. Multi-lingual Considerations ............................. 61
  137. 10. Security Considerations .................................. 62
  138. 11. Acknowledgments .......................................... 63
  139. 12. Authors' Addresses ....................................... 63
  140. Appendices ........................................................ 64
  141. A. References ............................................... 64
  142. B. ACAP Keyword Index ....................................... 66
  143. C. Full Copyright Statement
  144. Newman & Myers Standards Track [Page iv]
  145. RFC 2244 ACAP November 1997
  146. ACAP Protocol Specification
  147. 1. Introduction
  148. 1.1. Conventions Used in this Document
  149. In examples, "C:" and "S:" indicate lines sent by the client and
  150. server respectively. If such lines are wrapped without a new "C:" or
  151. "S:" label, then the wrapping is for editorial clarity and is not
  152. part of the command.
  153. The key words "REQUIRED", "MUST", "MUST NOT", "SHOULD", "SHOULD NOT",
  154. and "MAY" in this document are to be interpreted as described in "Key
  155. words for use in RFCs to Indicate Requirement Levels" [KEYWORDS].
  156. 1.2. ACAP Data Model
  157. An ACAP server exports a hierarchical tree of entries. Each level of
  158. the tree is called a dataset, and each dataset is made up of a list
  159. of entries. Each entry has a unique name and may contain any number
  160. of named attributes. Each attribute within an entry may be single
  161. valued or multi-valued and may have associated metadata to assist
  162. access and interpretation of the value.
  163. The rules with which a client interprets the data within a portion of
  164. ACAP's tree of entries are called a dataset class.
  165. 1.3. ACAP Design Goals
  166. ACAP's primary purpose is to allow users access to their
  167. configuration data from multiple network-connected computers. Users
  168. can then sit down in front of any network-connected computer, run any
  169. ACAP-enabled application and have access to their own configuration
  170. data. Because it is hoped that many applications will become ACAP-
  171. enabled, client simplicity was preferred to server or protocol
  172. simplicity whenever reasonable.
  173. ACAP is designed to be easily manageable. For this reason, it
  174. includes "inheritance" which allows one dataset to inherit default
  175. attributes from another dataset. In addition, access control lists
  176. are included to permit delegation of management and quotas are
  177. included to control storage. Finally, an ACAP server which is
  178. conformant to this base specification should be able to support most
  179. dataset classes defined in the future without requiring a server
  180. reconfiguration or upgrade.
  181. Newman & Myers Standards Track [Page 1]
  182. RFC 2244 ACAP November 1997
  183. ACAP is designed to operate well with a client that only has
  184. intermittent access to an ACAP server. For this reason, each entry
  185. has a server maintained modification time so that the client may
  186. detect changes. In addition, the client may ask the server for a
  187. list of entries which have been removed since it last accessed the
  188. server.
  189. ACAP presumes that a dataset may be potentially large and/or the
  190. client's network connection may be slow, and thus offers server
  191. sorting, selective fetching and change notification for entries
  192. within a dataset.
  193. As required for most Internet protocols, security, scalability and
  194. internationalization were important design goals.
  195. Given these design goals, an attempt was made to keep ACAP as simple
  196. as possible. It is a traditional Internet text based protocol which
  197. massively simplifies protocol debugging. It was designed based on
  198. the successful IMAP [IMAP4] protocol framework, with a few
  199. refinements.
  200. 1.4. Validation
  201. By default, any value may be stored in any attribute for which the
  202. user has appropriate permission and quota. This rule is necessary to
  203. allow the addition of new simple dataset classes without
  204. reconfiguring or upgrading the server.
  205. In some cases, such as when the value has special meaning to the
  206. server, it is useful to have the server enforce validation by
  207. returning the INVALID response code to a STORE command. These cases
  208. MUST be explicitly identified in the dataset class specification
  209. which SHOULD include specific fixed rules for validation. Since a
  210. given ACAP server may be unaware of any particular dataset class
  211. specification, clients MUST NOT depend on the presence of enforced
  212. validation on the server.
  213. 1.5. Definitions
  214. access control list (ACL)
  215. A set of identifier, rights pairs associated with an object. An
  216. ACL is used to determine which operations a user is permitted to
  217. perform on that object. See section 3.5.
  218. attribute
  219. A named value within an entry. See section 3.1.
  220. Newman & Myers Standards Track [Page 2]
  221. RFC 2244 ACAP November 1997
  222. comparator
  223. A named function which can be used to perform one or more of
  224. three comparison operations: ordering, equality and substring
  225. matching. See section 3.4.
  226. context
  227. An ordered subset of entries in a dataset, created by a SEARCH
  228. command with a MAKECONTEXT modifier. See section 3.3.
  229. dataset
  230. One level of hierarchy in ACAP's tree of entries.
  231. dataset class specification
  232. The rules which allow a client to interpret the data within a
  233. portion of ACAP's tree of entries.
  234. entry
  235. A set of attributes with a unique entry name. See section 3.1.
  236. metadata
  237. Information describing an attribute, its value and any access
  238. controls associated with that attribute. See section 3.1.2.
  239. NIL This represents the non-existence of a particular data item.
  240. NUL A control character encoded as 0 in US-ASCII [US-ASCII].
  241. octet
  242. An 8-bit value. On most modern computer systems, an octet is
  243. one byte.
  244. SASL Simple Authentication and Security Layer [SASL].
  245. UTC Universal Coordinated Time as maintained by the Bureau
  246. International des Poids et Mesures (BIPM).
  247. UTF-8
  248. An 8-bit transformation format of the Universal Character Set
  249. [UTF8]. Note that an incompatible change was made to the coded
  250. character set referenced by [UTF8], so for the purpose of this
  251. document, UTF-8 refers to the UTF-8 encoding as defined by
  252. version 2.0 of Unicode [UNICODE-2], or ISO 10646 [ISO-10646]
  253. including amendments one through seven.
  254. Newman & Myers Standards Track [Page 3]
  255. RFC 2244 ACAP November 1997
  256. 1.6. ACAP Command Overview
  257. The AUTHENTICATE, NOOP, LANG and LOGOUT commands provide basic
  258. protocol services. The SEARCH command is used to select, sort, fetch
  259. and monitor changes to attribute values and metadata. The
  260. UPDATECONTEXT and FREECONTEXT commands are also used to assist in
  261. monitoring changes in attribute values and metadata. The STORE
  262. command is used to add, modify and delete entries and attributes.
  263. The DELETEDSINCE command is used to assist a client in
  264. re-synchronizing a cache with the server. The GETQUOTA, SETACL,
  265. DELETEACL, LISTRIGHTS and MYRIGHTS commands are used to examine
  266. storage quotas and examine or modify access permissions.
  267. 2. Protocol Framework
  268. 2.1. Link Level
  269. The ACAP protocol assumes a reliable data stream such as provided by
  270. TCP. When TCP is used, an ACAP server listens on port 674.
  271. 2.2. Commands and Responses
  272. An ACAP session consists of the establishment of a client/server
  273. connection, an initial greeting from the server, and client/server
  274. interactions. These client/server interactions consist of a client
  275. command, server data, and a server completion result.
  276. ACAP is a text-based line-oriented protocol. In general,
  277. interactions transmitted by clients and servers are in the form of
  278. lines; that is, sequences of characters that end with a CRLF. The
  279. protocol receiver of an ACAP client or server is either reading a
  280. line, or is reading a sequence of octets with a known count (a
  281. literal) followed by a line. Both clients and servers must be
  282. capable of handling lines of arbitrary length.
  283. 2.2.1. Client Protocol Sender and Server Protocol Receiver
  284. The client command begins an operation. Each client command is
  285. prefixed with a identifier (an alphanumeric string of no more than 32
  286. characters, e.g., A0001, A0002, etc.) called a "tag". A different
  287. tag SHOULD be generated by the client for each command.
  288. There are two cases in which a line from the client does not
  289. represent a complete command. In one case, a command argument is
  290. quoted with an octet count (see the description of literal in section
  291. 2.6.3); in the other case, the command arguments require server
  292. Newman & Myers Standards Track [Page 4]
  293. RFC 2244 ACAP November 1997
  294. feedback (see the AUTHENTICATE command). In some of these cases, the
  295. server sends a command continuation request if it is ready for the
  296. next part of the command. This response is prefixed with the token
  297. "+".
  298. Note: If, instead, the server detected an error in a
  299. command, it sends a BAD completion response with tag
  300. matching the command (as described below) to reject the
  301. command and prevent the client from sending any more of the
  302. command.
  303. It is also possible for the server to send a completion or
  304. intermediate response for some other command (if multiple
  305. commands are in progress), or untagged data. In either
  306. case, the command continuation request is still pending;
  307. the client takes the appropriate action for the response,
  308. and reads another response from the server.
  309. The ACAP server reads a command line from the client, parses the
  310. command and its arguments, and transmits server data and a server
  311. command completion result.
  312. 2.2.2. Server Protocol Sender and Client Protocol Receiver
  313. Data transmitted by the server to the client come in four forms:
  314. command continuation requests, command completion results,
  315. intermediate responses, and untagged responses.
  316. A command continuation request is prefixed with the token "+".
  317. A command completion result indicates the success or failure of the
  318. operation. It is tagged with the same tag as the client command
  319. which began the operation. Thus, if more than one command is in
  320. progress, the tag in a server completion response identifies the
  321. command to which the response applies. There are three possible
  322. server completion responses: OK (indicating success), NO (indicating
  323. failure), or BAD (indicating protocol error such as unrecognized
  324. command or command syntax error).
  325. An intermediate response returns data which can only be interpreted
  326. within the context of a command in progress. It is tagged with the
  327. same tag as the client command which began the operation. Thus, if
  328. more than one command is in progress, the tag in an intermediate
  329. response identifies the command to which the response applies. A
  330. tagged response other than "OK", "NO", or "BAD" is an intermediate
  331. response.
  332. Newman & Myers Standards Track [Page 5]
  333. RFC 2244 ACAP November 1997
  334. An untagged response returns data or status messages which may be
  335. interpreted outside the context of a command in progress. It is
  336. prefixed with the token "*". Untagged data may be sent as a result
  337. of a client command, or may be sent unilaterally by the server.
  338. There is no syntactic difference between untagged data that resulted
  339. from a specific command and untagged data that were sent
  340. unilaterally.
  341. The protocol receiver of an ACAP client reads a response line from
  342. the server. It then takes action on the response based upon the
  343. first token of the response, which may be a tag, a "*", or a "+" as
  344. described above.
  345. A client MUST be prepared to accept any server response at all times.
  346. This includes untagged data that it may not have requested.
  347. This topic is discussed in greater detail in the Server Responses
  348. section.
  349. 2.3. Server States
  350. An ACAP server is in one of three states. Most commands are valid in
  351. only certain states. It is a protocol error for the client to
  352. attempt a command while the server is in an inappropriate state for
  353. that command. In this case, a server will respond with a BAD command
  354. completion result.
  355. 2.3.1. Non-Authenticated State
  356. In non-authenticated state, the user must supply authentication
  357. credentials before most commands will be permitted. This state is
  358. entered when a connection starts.
  359. 2.3.2. Authenticated State
  360. In authenticated state, the user is authenticated and most commands
  361. will be permitted. This state is entered when acceptable
  362. authentication credentials have been provided.
  363. 2.3.3. Logout State
  364. In logout state, the session is being terminated, and the server will
  365. close the connection. This state can be entered as a result of a
  366. client request or by unilateral server decision.
  367. Newman & Myers Standards Track [Page 6]
  368. RFC 2244 ACAP November 1997
  369. +--------------------------------------+
  370. |initial connection and server greeting|
  371. +--------------------------------------+
  372. || (1) || (2)
  373. VV ||
  374. +-----------------+ ||
  375. |non-authenticated| ||
  376. +-----------------+ ||
  377. || (4) || (3) ||
  378. || VV ||
  379. || +----------------+ ||
  380. || | authenticated | ||
  381. || +----------------+ ||
  382. || || (4) ||
  383. VV VV VV
  384. +--------------------------------------+
  385. | logout and close connection |
  386. +--------------------------------------+
  387. (1) connection (ACAP greeting)
  388. (2) rejected connection (BYE greeting)
  389. (3) successful AUTHENTICATE command
  390. (4) LOGOUT command, server shutdown, or connection closed
  391. 2.4. Operational Considerations
  392. 2.4.1. Untagged Status Updates
  393. At any time, a server can send data that the client did not request.
  394. 2.4.2. Response when No Command in Progress
  395. Server implementations are permitted to send an untagged response
  396. while there is no command in progress. Server implementations that
  397. send such responses MUST deal with flow control considerations.
  398. Specifically, they must either (1) verify that the size of the data
  399. does not exceed the underlying transport's available window size, or
  400. (2) use non-blocking writes.
  401. 2.4.3. Auto-logout Timer
  402. If a server has an inactivity auto-logout timer, that timer MUST be
  403. of at least 30 minutes duration. The receipt of ANY command from the
  404. client during that interval MUST suffice to reset the auto-logout
  405. timer.
  406. Newman & Myers Standards Track [Page 7]
  407. RFC 2244 ACAP November 1997
  408. 2.4.4. Multiple Commands in Progress
  409. The client is not required to wait for the completion result of a
  410. command before sending another command, subject to flow control
  411. constraints on the underlying data stream. Similarly, a server is
  412. not required to process a command to completion before beginning
  413. processing of the next command, unless an ambiguity would result
  414. because of a command that would affect the results of other commands.
  415. If there is such an ambiguity, the server executes commands to
  416. completion in the order given by the client.
  417. 2.5. Server Command Continuation Request
  418. The command continuation request is indicated by a "+" token instead
  419. of a tag. This indicates that the server is ready to accept the
  420. continuation of a command from the client.
  421. This response is used in the AUTHENTICATE command to transmit server
  422. data to the client, and request additional client data. This
  423. response is also used if an argument to any command is a
  424. synchronizing literal (see section 2.6.3).
  425. The client is not permitted to send the octets of a synchronizing
  426. literal unless the server indicates that it expects it. This permits
  427. the server to process commands and reject errors on a line-by-line
  428. basis, assuming it checks for non-synchronizing literals at the end
  429. of each line. The remainder of the command, including the CRLF that
  430. terminates a command, follows the octets of the literal. If there
  431. are any additional command arguments the literal octets are followed
  432. by a space and those arguments.
  433. Example: C: A099 FREECONTEXT {10}
  434. S: + "Ready for additional command text"
  435. C: FRED
  436. C: FOOB
  437. S: A099 OK "FREECONTEXT completed"
  438. C: A044 BLURDYBLOOP {102856}
  439. S: A044 BAD "No such command as 'BLURDYBLOOP'"
  440. 2.6. Data Formats
  441. ACAP uses textual commands and responses. Data in ACAP can be in one
  442. of five forms: atom, number, string, parenthesized list or NIL.
  443. Newman & Myers Standards Track [Page 8]
  444. RFC 2244 ACAP November 1997
  445. 2.6.1. Atom
  446. An atom consists of one to 1024 non-special characters. It must
  447. begin with a letter. Atoms are used for protocol keywords.
  448. 2.6.2. Number
  449. A number consists of one or more digit characters, and represents a
  450. numeric value. Numbers are restricted to the range of an unsigned
  451. 32-bit integer: 0 < number < 4,294,967,296.
  452. 2.6.3. String
  453. A string is in one of two forms: literal and quoted string. The
  454. literal form is the general form of string. The quoted string form
  455. is an alternative that avoids the overhead of processing a literal at
  456. the cost of restrictions of what may be in a quoted string.
  457. A literal is a sequence of zero or more octets (including CR and LF),
  458. prefix-quoted with an octet count in the form of an open brace ("{"),
  459. the number of octets, close brace ("}"), and CRLF. In the case of
  460. literals transmitted from server to client, the CRLF is immediately
  461. followed by the octet data.
  462. There are two forms of literals transmitted from client to server.
  463. The form where the open brace ("{") and number of octets is
  464. immediately followed by a close brace ("}") and CRLF is called a
  465. synchronizing literal. When sending a synchronizing literal, the
  466. client must wait to receive a command continuation request before
  467. sending the octet data (and the remainder of the command). The other
  468. form of literal, the non-synchronizing literal, is used to transmit a
  469. string from client to server without waiting for a command
  470. continuation request. The non-synchronizing literal differs from the
  471. synchronizing literal by having a plus ("+") between the number of
  472. octets and the close brace ("}") and by having the octet data
  473. immediately following the CRLF.
  474. A quoted string is a sequence of zero to 1024 octets excluding NUL,
  475. CR and LF, with double quote (<">) characters at each end.
  476. The empty string is represented as "" (a quoted string with zero
  477. characters between double quotes), as {0} followed by CRLF (a
  478. synchronizing literal with an octet count of 0), or as {0+} followed
  479. by a CRLF (a non-synchronizing literal with an octet count of 0).
  480. Note: Even if the octet count is 0, a client transmitting a
  481. synchronizing literal must wait to receive a command
  482. continuation request.
  483. Newman & Myers Standards Track [Page 9]
  484. RFC 2244 ACAP November 1997
  485. 2.6.3.1. 8-bit and Binary Strings
  486. Most strings in ACAP are restricted to UTF-8 characters and may not
  487. contain NUL octets. Attribute values MAY contain any octets
  488. including NUL.
  489. 2.6.4. Parenthesized List
  490. Data structures are represented as a "parenthesized list"; a sequence
  491. of data items, delimited by space, and bounded at each end by
  492. parentheses. A parenthesized list can contain other parenthesized
  493. lists, using multiple levels of parentheses to indicate nesting.
  494. The empty list is represented as () -- a parenthesized list with no
  495. members.
  496. 2.6.5. NIL
  497. The special atom "NIL" represents the non-existence of a particular
  498. data item that is represented as a string or parenthesized list, as
  499. distinct from the empty string "" or the empty parenthesized list ().
  500. 3. Protocol Elements
  501. This section defines data formats and other protocol elements used
  502. throughout the ACAP protocol.
  503. 3.1. Entries and Attributes
  504. Within a dataset, each entry name is made up of zero or more UTF-8
  505. characters other than slash ("/"). A slash separated list of
  506. entries, one at each level of the hierarchy, forms the full path to
  507. an entry.
  508. Each entry is made up of a set of attributes. Each attribute has a
  509. hierarchical name in UTF-8, with each component of the name separated
  510. by a period (".").
  511. The value of an attribute is either single or multi-valued. A single
  512. value is NIL (has no value), or a string of zero or more octets. A
  513. multi-value is a list of zero or more strings, each of zero or more
  514. octets.
  515. Attribute names are not permitted to contain asterisk ("*") or
  516. percent ("%") and MUST be valid UTF-8 strings which do not contain
  517. NUL. Invalid attribute names result in a BAD response. Entry names
  518. Newman & Myers Standards Track [Page 10]
  519. RFC 2244 ACAP November 1997
  520. are not permitted to begin with "." or contain slash ("/") and MUST
  521. be valid UTF-8 strings which do not contain NUL. Invalid entry names
  522. in the entry field of a command result in a BAD response.
  523. Use of non-visible UTF-8 characters in attribute and entry names is
  524. discouraged.
  525. 3.1.1. Predefined Attributes
  526. Attribute names which do not contain a dot (".") are reserved for
  527. standardized attributes which have meaning in any dataset. The
  528. following attributes are defined by the ACAP protocol.
  529. entry
  530. Contains the name of the entry. MUST be single valued.
  531. Attempts to use illegal or multi-valued values for the entry
  532. attribute are protocol errors and MUST result in a BAD
  533. completion response. This is a special case.
  534. modtime
  535. Contains the date and time any read-write metadata in the entry
  536. was last modified. This value MUST be in UTC, MUST be
  537. automatically updated by the server.
  538. The value consists of 14 or more US-ASCII digits. The first
  539. four indicate the year, the next two indicate the month, the
  540. next two indicate the day of month, the next two indicate the
  541. hour (0 - 23), the next two indicate the minute, and the next
  542. two indicate the second. Any further digits indicate fractions
  543. of a second.
  544. The time, particularly fractions of a second, need not be
  545. accurate. It is REQUIRED, however, that any two entries in a
  546. dataset changed by successive modifications have strictly
  547. ascending modtime values. In addition, each STORE command
  548. within a dataset (including simultaneous stores from different
  549. connections) MUST use different modtime values.
  550. This attribute has enforced validation, so any attempt to STORE
  551. a value in this attribute MAY result in a NO response with an
  552. INVALID response code.
  553. subdataset
  554. If this attribute is set, it indicates the existence of a sub-
  555. dataset of this entry.
  556. Newman & Myers Standards Track [Page 11]
  557. RFC 2244 ACAP November 1997
  558. The value consists of a list of relative ACAP URLs (see section
  559. 3.2) which may be used to locate the sub-dataset. The base URL
  560. is the full path to the entry followed by a slash ("/"). The
  561. value "." indicates a subdataset is located directly under this
  562. one. Multiple values indicate replicated copies of the
  563. subdataset.
  564. For example, if the dataset "/folder/site/" has an entry
  565. "public-folder" with a subdataset attribute of ".", then there
  566. exists a dataset "/folder/site/public-folder/". If the value of
  567. the subdataset attribute was instead
  568. "//other.acap.domain//folder/site/public-folder/", that would
  569. indicate the dataset is actually located on a different ACAP
  570. server.
  571. A dataset can be created by storing a "subdataset" attribute
  572. including ".", and a sub-hierarchy of datasets is deleted by
  573. storing a NIL value to the "subdataset" attribute on the entry
  574. in the parent dataset.
  575. This attribute has enforced syntax validation. Specifically, if
  576. an attempt is made to STORE a non-list value (other than NIL),
  577. an empty list, or one of the values does not follow the URL
  578. syntax rules [BASIC-URL, REL-URL], then this will result in a NO
  579. response with an INVALID response code.
  580. 3.1.2. Attribute Metadata
  581. Each attribute is made up of metadata items which describe that
  582. attribute, its value and any associated access controls. Metadata
  583. items may be either read-only, in which case the client is never
  584. permitted to modify the item, or read-write, in which case the client
  585. may modify the item if the access control list (ACL) permits.
  586. The following metadata items are defined in this specification:
  587. acl The access control list for the attribute, if one exists. If
  588. the attribute does not have an ACL, NIL is returned.
  589. Read-write. See section 3.5 for the contents of an ACL.
  590. attribute
  591. The attribute name. Read-only.
  592. myrights
  593. The set of rights that the client has to the attribute.
  594. Read-only. See section 3.5 for the possible rights.
  595. Newman & Myers Standards Track [Page 12]
  596. RFC 2244 ACAP November 1997
  597. size This is the length of the value. In the case of a
  598. multi-value, this is a list of lengths for each of the values.
  599. Read-only.
  600. value The value. For a multi-value, this is a list of single
  601. values. Read-write.
  602. Additional items of metadata may be defined in extensions to this
  603. protocol. Servers MUST respond to unrecognized metadata by returning
  604. a BAD command completion result.
  605. 3.2. ACAP URL scheme
  606. ACAP URLs are used within the ACAP protocol for the "subdataset"
  607. attribute, referrals and inheritance. They provide a convenient
  608. syntax for referring to other ACAP datasets. The ACAP URL follows
  609. the common Internet scheme syntax as defined in [BASIC-URL] except
  610. that plaintext passwords are not permitted. If :<port> is omitted,
  611. the port defaults to 674.
  612. An ACAP URL has the following general form:
  613. url-acap = "acap://" url-server "/" url-enc-entry [url-filter]
  614. [url-extension]
  615. The <url-server> element includes the hostname, and optional user
  616. name, authentication mechanism and port number. The <url-enc-entry>
  617. element contains the name of an entry path encoded according to the
  618. rules in [BASIC-URL].
  619. The <url-filter> element is an optional list of interesting attribute
  620. names. If omitted, the URL refers to all attributes of the named
  621. entry. The <url-extension> element is reserved for extensions to
  622. this URL scheme.
  623. Note that unsafe or reserved characters such as " " or "?" MUST be
  624. hex encoded as described in the URL specification [BASIC-URL]. Hex
  625. encoded octets are interpreted according to UTF-8 [UTF8].
  626. 3.2.1. ACAP URL User Name and Authentication Mechanism
  627. A user name and/or authentication mechanism may be supplied. They
  628. are used in the "AUTHENTICATE" command after making the connection to
  629. the ACAP server. If no user name or authentication mechanism is
  630. supplied, then the SASL ANONYMOUS [SASL-ANON] mechanism is used by
  631. default. If an authentication mechanism is supplied without a user
  632. Newman & Myers Standards Track [Page 13]
  633. RFC 2244 ACAP November 1997
  634. name, then one SHOULD be obtained from the specified mechanism or
  635. requested from the user as appropriate. If a user name is supplied
  636. without an authentication mechanism then ";AUTH=*" is assumed.
  637. The ";AUTH=" authentication parameter is interpreted as described in
  638. the IMAP URL Scheme [IMAP-URL].
  639. Note that if unsafe or reserved characters such as " " or ";" are
  640. present in the user name or authentication mechanism, they MUST be
  641. encoded as described in the URL specification [BASIC-URL].
  642. 3.2.2. Relative ACAP URLs
  643. Because ACAP uses "/" as the hierarchy separator for dataset paths,
  644. it works well with the relative URL rules defined in the relative URL
  645. specification [REL-URL].
  646. The <aauth> grammar element is considered part of the user name for
  647. purposes of resolving relative ACAP URLs.
  648. The base URL for a relative URL stored in an attribute's value is
  649. formed by taking the path to the dataset containing that attribute,
  650. appending a "/" followed by the entry name of the entry containing
  651. that attribute followed by "/".
  652. 3.3. Contexts
  653. A context is subset of entries in a dataset or datasets, created by a
  654. SEARCH command with a MAKECONTEXT modifier. Context names are
  655. client-generated strings and must not start with the slash ('/')
  656. character.
  657. When a client creates a context, it may request automatic
  658. notification of changes. A client may also request enumeration of
  659. entries within a context. Enumeration simplifies the implementation
  660. of a "virtual scrollbar" by the client.
  661. A context exists only within the ACAP session in which it was
  662. created. When the connection is closed, all contexts associated with
  663. that connection are automatically discarded. A server is required to
  664. support at least 100 active contexts within a session. If the server
  665. supports a larger limit it must advertise it in a CONTEXTLIMIT
  666. capability.
  667. Newman & Myers Standards Track [Page 14]
  668. RFC 2244 ACAP November 1997
  669. 3.4. Comparators
  670. A comparator is a named function which takes two input values and can
  671. be used to perform one or more of four comparison operations:
  672. ordering, equality, prefix and substring matching.
  673. The ordering operation is used both for the SORT search modifier and
  674. the COMPARE and COMPARESTRICT search keys. Ordering comparators can
  675. determine the ordinal precedence of any two values. When used for
  676. ordering, a comparator's name can be prefixed with "+" or "-" to
  677. indicate that the ordering should be normal order or reversed order
  678. respectively. If no prefix is included, "+" is assumed.
  679. For the purpose of ordering, a comparator may designate certain
  680. values as having an undefined ordinal precedence. Such values always
  681. collate with equal value after all other values regardless of whether
  682. normal or reversed ordering is used. Unless the comparator
  683. definition specifies otherwise, multi-values and NIL values have an
  684. undefined ordinal precedence.
  685. The equality operation is used for the EQUAL search modifier, and
  686. simply determines if the two values are considered equal under the
  687. comparator function. When comparing a single value to a multi-value,
  688. the two are considered equal if any one of the multiple values is
  689. equal to the single value.
  690. The prefix match operation is used for the PREFIX search modifier,
  691. and simply determines if the search value is a prefix of the item
  692. being searched. In the case of prefix search on a multi-value, the
  693. match is successful if the value is a prefix of any one of the
  694. multiple values.
  695. The substring match operation is used for the SUBSTRING search
  696. modifier, and simply determines if search value is a substring of the
  697. item being searched. In the case of substring search on a multi-
  698. value, the match is successful if the value is a substring of any one
  699. of the multiple values.
  700. Rules for naming and registering comparators will be defined in a
  701. future specification. Servers MUST respond to unknown or improperly
  702. used comparators with a BAD command completion result.
  703. Newman & Myers Standards Track [Page 15]
  704. RFC 2244 ACAP November 1997
  705. The following comparators are defined by this standard and MUST be
  706. implemented:
  707. i;octet
  708. Operations: Ordering, Equality, Prefix match, Substring match
  709. For collation, the i;octet comparator interprets the value of
  710. an attribute as a series of unsigned octets with ordinal
  711. values from 0 to 255. When ordering two strings, each octet
  712. pair is compared in sequence until the octets are unequal or
  713. the end of the string is reached. When collating two strings
  714. where the shorter is a prefix of the longer, the shorter
  715. string is interpreted as having a smaller ordinal value. The
  716. "i;octet" or "+i;octet" forms collate smaller ordinal values
  717. earlier, and the "-i;octet" form collates larger ordinal
  718. values earlier.
  719. For the equality function, two strings are equal if they are
  720. the same length and contain the same octets in the same
  721. order. NIL is equal only to itself.
  722. For non-binary, non-nil single values, i;octet ordering is
  723. equivalent to the ANSI C [ISO-C] strcmp() function applied to
  724. C string representations of the values. For non-binary,
  725. non-nil single values, i;octet substring match is equivalent
  726. to the ANSI C strstr() function applied to the C string
  727. representations of the values.
  728. i;ascii-casemap
  729. Operations: Ordering, Equality, Prefix match, Substring match
  730. The i;ascii-casemap comparator first applies a mapping to the
  731. attribute values which translates all US-ASCII letters to
  732. uppercase (octet values 0x61 to 0x7A are translated to octet
  733. values 0x41 to 0x5A respectively), then applies the i;octet
  734. comparator as described above. With this function the values
  735. "hello" and "HELLO" have the same ordinal value and are
  736. considered equal.
  737. i;ascii-numeric
  738. Operations: Ordering, Equality
  739. The i;ascii-numeric comparator interprets strings as decimal
  740. positive integers represented as US-ASCII digits. All values
  741. which do not begin with a US-ASCII digit are considered equal
  742. with an ordinal value higher than all non-NIL single-valued
  743. Newman & Myers Standards Track [Page 16]
  744. RFC 2244 ACAP November 1997
  745. attributes. Otherwise, all US-ASCII digits (octet values
  746. 0x30 to 0x39) are interpreted starting from the beginning of
  747. the string to the first non-digit or the end of the string.
  748. 3.5. Access Control Lists (ACLs)
  749. An access control list is a set of identifier, rights pairs used to
  750. restrict access to a given dataset, attribute or attribute within an
  751. entry. An ACL is represented by a multi-value with each value
  752. containing an identifier followed by a tab character followed by the
  753. rights. The syntax is defined by the "acl" rule in the formal syntax
  754. in section 8.
  755. Identifier is a UTF-8 string. The identifier "anyone" is reserved to
  756. refer to the universal identity (all authentications, including
  757. anonymous). All user name strings accepted by the AUTHENTICATE
  758. command to authenticate to the ACAP server are reserved as
  759. identifiers for the corresponding user. Identifiers starting with a
  760. slash ("/") character are reserved for authorization groups which
  761. will be defined in a future specification. Identifiers MAY be
  762. prefixed with a dash ("-") to indicate a revocation of rights. All
  763. other identifiers have implementation-defined meanings.
  764. Rights is a string listing a (possibly empty) set of alphanumeric
  765. characters, each character listing a set of operations which is being
  766. controlled. Letters are reserved for "standard" rights, listed
  767. below. The set of standard rights may only be extended by a
  768. standards-track or IESG approved experimental RFC. Digits are
  769. reserved for implementation or site defined rights. The currently
  770. defined standard rights are:
  771. x - search (use EQUAL search key with i;octet comparator)
  772. r - read (access with SEARCH command)
  773. w - write (modify with STORE command)
  774. i - insert (perform STORE on a previously NIL value)
  775. a - administer (perform SETACL or STORE on ACL attribute/metadata)
  776. An implementation may force rights to always or never be granted. In
  777. particular, implementations are expected to grant implicit read and
  778. administer rights to a user's personal dataset storage in order to
  779. avoid denial of service problems. Rights are never tied, unlike the
  780. IMAP ACL extension [IMAP-ACL].
  781. It is possible for multiple identifiers in an access control list to
  782. apply to a given user (or other authentication identity). For
  783. example, an ACL may include rights to be granted to the identifier
  784. matching the user, one or more implementation-defined identifiers
  785. Newman & Myers Standards Track [Page 17]
  786. RFC 2244 ACAP November 1997
  787. matching groups which include the user, and/or the identifier
  788. "anyone". These rights are combined by taking the union of all
  789. positive rights which apply to a given user and subtracting the union
  790. of all negative rights which apply to that user. A client MAY avoid
  791. this calculation by using the MYRIGHTS command and metadata items.
  792. Each attribute of each entry of a dataset may potentially have an
  793. ACL. If an attribute in an entry does not have an ACL, then access
  794. is controlled by a default ACL for that attribute in the dataset, if
  795. it exists. If there is no default ACL for that attribute in the
  796. dataset, access is controlled by a default ACL for that dataset. The
  797. default ACL for a dataset must exist.
  798. In order to perform any access or manipulation on an entry in a
  799. dataset, the client must have 'r' rights on the "entry" attribute of
  800. the entry. Implementations should take care not to reveal via error
  801. messages the existence of an entry for which the client does not have
  802. 'r' rights. A client does not need access to the "subdataset"
  803. attribute of the parent dataset in order to access the contents of a
  804. dataset.
  805. Many of the ACL commands and responses include an "acl object"
  806. parameter, for specifying what the ACL applies to. This is a
  807. parenthesized list. The list contains just the dataset name when
  808. referring to the default ACL for a dataset. The list contains a
  809. dataset name and an attribute name when referring to the default ACL
  810. for an attribute in a dataset. The list contains a dataset name, an
  811. attribute name, and an entry name when referring to the ACL for an
  812. attribute of an entry of a dataset.
  813. 3.6. Server Response Codes
  814. An OK, NO, BAD, ALERT or BYE response from the server MAY contain a
  815. response code to describe the event in a more detailed machine
  816. parsable fashion. A response code consists of data inside
  817. parentheses in the form of an atom, possibly followed by a space and
  818. arguments. Response codes are defined when there is a specific
  819. action that a client can take based upon the additional information.
  820. In order to support future extension, the response code is
  821. represented as a slash-separated hierarchy with each level of
  822. hierarchy representing increasing detail about the error. Clients
  823. MUST tolerate additional hierarchical response code detail which they
  824. don't understand.
  825. The currently defined response codes are:
  826. Newman & Myers Standards Track [Page 18]
  827. RFC 2244 ACAP November 1997
  828. AUTH-TOO-WEAK
  829. This response code is returned on a tagged NO result from an
  830. AUTHENTICATE command. It indicates that site security policy
  831. forbids the use of the requested mechanism for the specified
  832. authentication identity.
  833. ENCRYPT-NEEDED
  834. This response code is returned on a tagged NO result from an
  835. AUTHENTICATE command. It indicates that site security policy
  836. requires the use of a strong encryption mechanism for the
  837. specified authentication identity and mechanism.
  838. INVALID
  839. This response code indicates that a STORE command included
  840. data which the server implementation does not permit. It
  841. MUST NOT be used unless the dataset class specification for
  842. the attribute in question explicitly permits enforced server
  843. validation. The argument is the attribute which was invalid.
  844. MODIFIED
  845. This response code indicates that a conditional store failed
  846. because the modtime on the entry is later than the modtime
  847. specified with the STORE command UNCHANGEDSINCE modifier.
  848. The argument is the entry which had been modified.
  849. NOEXIST
  850. This response code indicates that a search or NOCREATE store
  851. failed because a specified dataset did not exist. The
  852. argument is the dataset which does not exist.
  853. PERMISSION
  854. A command failed due to insufficient permission based on the
  855. access control list or implicit rights. The argument is the
  856. acl-object which caused the permission failure.
  857. QUOTA
  858. A STORE or SETACL command which would have increased the size
  859. of the dataset failed due to insufficient quota.
  860. REFER
  861. This response code may be returned in a tagged NO response to
  862. any command that takes a dataset name as a parameter. It has
  863. one or more arguments with the syntax of relative URLs. It
  864. is a referral, indicating that the command should be retried
  865. using one of the relative URLs.
  866. Newman & Myers Standards Track [Page 19]
  867. RFC 2244 ACAP November 1997
  868. SASL This response code can occur in the tagged OK response to a
  869. successful AUTHENTICATE command and includes the optional
  870. final server response data from the server as specified by
  871. SASL [SASL].
  872. TOOMANY
  873. This response code may be returned in a tagged OK response to
  874. a SEARCH command which includes the LIMIT modifier. The
  875. argument returns the total number of matching entries.
  876. TOOOLD
  877. The modtime specified in the DELETEDSINCE command is too old,
  878. so deletedsince information is no longer available.
  879. TRANSITION-NEEDED
  880. This response code occurs on a NO response to an AUTHENTICATE
  881. command. It indicates that the user name is valid, but the
  882. entry in the authentication database needs to be updated in
  883. order to permit authentication with the specified mechanism.
  884. This can happen if a user has an entry in a system
  885. authentication database such as Unix /etc/passwd, but does
  886. not have credentials suitable for use by the specified
  887. mechanism.
  888. TRYLATER
  889. A command failed due to a temporary server failure. The
  890. client MAY continue using local information and try the
  891. command later.
  892. TRYFREECONTEXT
  893. This response code may be returned in a tagged NO response to
  894. a SEARCH command which includes the MAKECONTEXT modifier. It
  895. indicates that a new context may not be created due to the
  896. server's limit on the number of existing contexts.
  897. WAYTOOMANY
  898. This response code may be returned in a tagged NO response to
  899. a SEARCH command which includes a HARDLIMIT search modifier.
  900. It indicates that the SEARCH would have returned more entries
  901. than the HARDLIMIT permitted.
  902. Additional response codes MUST be registered with IANA according
  903. to the proceedures in section 7.2. Client implementations MUST
  904. tolerate response codes that they do not recognize.
  905. Newman & Myers Standards Track [Page 20]
  906. RFC 2244 ACAP November 1997
  907. 4. Namespace Conventions
  908. 4.1. Dataset Namespace
  909. The dataset namespace is a slash-separated hierarchy. The first
  910. component of the dataset namespace is a dataset class. Dataset
  911. classes MUST have a vendor prefix (vendor.<vendor/product>) or be
  912. specified in a standards track or IESG approved experimental RFC.
  913. See section 7.3 for the registration template.
  914. The second component of the dataset name is "site", "group", "host",
  915. or "user" referring to server-wide data, administrative group data,
  916. per-host data and per-user data respectively.
  917. For "group", "host", and "user" areas, the third component of the
  918. path is the group name, the fully qualified host domain name, or the
  919. user name. A path of the form "/<dataset-class>/~/" is a convenient
  920. abbreviation for "/<dataset-class>/user/<current-user>/".
  921. Dataset names which begin with "/byowner/" are reserved as an
  922. alternate view of the namespace. This provides a way to see all the
  923. dataset classes which a particular owner uses. For example,
  924. "/byowner/~/<dataset-class>/" is an alternate name for
  925. "/<dataset-class>/~/". Byowner provides a way to view a list of
  926. dataset classes owned by a given user; this is done using the dataset
  927. "/byowner/user/<current-user>/" with the NOINHERIT SEARCH modifier.
  928. The dataset "/" may be used to find all dataset classes visible to
  929. the current user. A dataset of the form "/<dataset-class>/user/" may
  930. be used to find all users which have made a dataset or entry of that
  931. class visible to the current user.
  932. The formal syntax for a dataset name is defined by the "dataset-name"
  933. rule in section 4.3.
  934. 4.2. Attribute Namespace
  935. Attribute names which do not contain a dot (".") are reserved for
  936. standardized attributes which have meaning in any dataset. In order
  937. to simplify client implementations, the attribute namespace is
  938. intended to be unique across all datasets. To achieve this,
  939. attribute names are prefixed with the dataset class name followed by
  940. a dot ("."). Attributes which affect management of the dataset are
  941. prefixed with "dataset.". In addition, a subtree of the "vendor."
  942. attribute namespace may be registered with IANA according to the
  943. rules in section 7.4. ACAP implementors are encouraged to help
  944. define interoperable dataset classes specifications rather than using
  945. the private attribute namespace.
  946. Newman & Myers Standards Track [Page 21]
  947. RFC 2244 ACAP November 1997
  948. Some users or sites may wish to add their own private attributes to
  949. certain dataset classes. In order to enable this, the "user.<user-
  950. name>." and "site." subtrees of the attribute namespace are reserved
  951. for user-specific and site-specific attributes respectively and will
  952. not be standardized. Such attributes are not interoperable so are
  953. discouraged in favor of defining standard attributes. A future
  954. extension is expected to permit discovery of syntax for user or
  955. site-specific attributes. Clients wishing to support display of user
  956. or site-specific attributes should display the value of any non-NIL
  957. single-valued "user.<user-name>." or "site." attribute which has
  958. valid UTF-8 syntax.
  959. The formal syntax for an attribute name is defined by the
  960. "attribute-name" rule in the next section.
  961. 4.3. Formal Syntax for Dataset and Attribute Namespace
  962. The naming conventions for datasets and attributes are defined by the
  963. following ABNF. Note that this grammar is not part of the ACAP
  964. protocol syntax in section 8, as dataset names and attribute names
  965. are encoded as strings within the ACAP protocol.
  966. attribute-dacl = "dataset.acl" *("." name-component)
  967. attribute-dset = dataset-std 1*("." name-component)
  968. ;; MUST be defined in a dataset class specification
  969. attribute-name = attribute-std / attr-site / attr-user / vendor-name
  970. attribute-std = "entry" / "subdataset" / "modtime" /
  971. "dataset.inherit" / attribute-dacl / attribute-dset
  972. attr-site = "site" 1*("." name-component)
  973. attr-user = "user." name-component 1*("." name-component)
  974. byowner = "/byowner/" owner "/"
  975. [dataset-class "/" dataset-sub]
  976. dataset-class = dataset-std / vendor-name
  977. dataset-normal = "/" [dataset-class "/"
  978. (owner-prefix / dataset-tail)]
  979. dataset-name = byowner / dataset-normal
  980. Newman & Myers Standards Track [Page 22]
  981. RFC 2244 ACAP November 1997
  982. dataset-std = name-component
  983. ;; MUST be registered with IANA and the spec MUST
  984. ;; be published as a standards track or
  985. ;; IESG-approved experimental RFC
  986. dataset-sub = *(dname-component "/")
  987. ;; The rules for this portion of the namespace may
  988. ;; be further restricted by the dataset class
  989. ;; specification.
  990. dataset-tail = owner "/" dataset-sub
  991. dname-component = 1*UTF8-CHAR
  992. ;; MUST NOT begin with "." or contain "/"
  993. name-component = 1*UTF8-CHAR
  994. ;; MUST NOT contain ".", "/", "%", or "*"
  995. owner = "site" / owner-host / owner-group /
  996. owner-user / "~"
  997. owner-group = "group/" dname-component
  998. owner-host = "host/" dname-component
  999. owner-prefix = "group/" / "host/" / "user/"
  1000. owner-user = "user/" dname-component
  1001. vendor-name = vendor-token *("." name-component)
  1002. vendor-token = "vendor." name-component
  1003. ;; MUST be registered with IANA
  1004. 5. Dataset Management
  1005. The entry with an empty name ("") in the dataset is used to hold
  1006. management information for the dataset as a whole.
  1007. 5.1. Dataset Inheritance
  1008. It is possible for one dataset to inherit data from another. The
  1009. dataset from which the data is inherited is called the base dataset.
  1010. Data in the base dataset appears in the inheriting dataset, except
  1011. when overridden by a STORE to the inheriting dataset.
  1012. Newman & Myers Standards Track [Page 23]
  1013. RFC 2244 ACAP November 1997
  1014. The base dataset is usually a system-wide or group-wide set of
  1015. defaults. A system-wide dataset usually has one inheriting dataset
  1016. per user, allowing each user to add to or modify the defaults as
  1017. appropriate.
  1018. An entry which exists in both the inheriting and base dataset
  1019. inherits a modtime equal to the greater of the two modtimes. An
  1020. attribute in such an entry is inherited from the base dataset if it
  1021. was never modified by a STORE command in the inheriting dataset or if
  1022. DEFAULT was stored to that attribute. This permits default entries
  1023. to be amended rather than replaced in the inheriting dataset.
  1024. The "subdataset" attribute is not directly inherited. If the base
  1025. dataset includes a "subdataset" attribute and the inheriting dataset
  1026. does not, then the "subdataset" attribute will inherit a virtual
  1027. value of a list containing a ".". The subdataset at that node is
  1028. said to be a "virtual" dataset as it is simply a virtual copy of the
  1029. appropriate base dataset with all "subdataset" attributes changed to
  1030. a list containing a ".". A virtual dataset is not visible if
  1031. NOINHERIT is specified on the SEARCH command.
  1032. Servers MUST support at least two levels of inheritance. This
  1033. permits a user's dataset such as "/options/user/fred/common" to
  1034. inherit from a group dataset such as "/options/group/dinosaur
  1035. operators/common" which in turn inherits from a server-wide dataset
  1036. such as "/options/site/common".
  1037. 5.2. Dataset Attributes
  1038. The following attributes apply to management of the dataset when
  1039. stored in the "" entry of a dataset. These attributes are not
  1040. inherited.
  1041. dataset.acl
  1042. This holds the default access control list for the dataset.
  1043. This attribute is validated, so an invalid access control list
  1044. in a STORE command will result in a NO response with an INVALID
  1045. response code.
  1046. dataset.acl.<attribute>
  1047. This holds the default access control list for an attribute
  1048. within the dataset. This attribute is validated, so an invalid
  1049. access control list in a STORE command will result in a NO
  1050. response with an INVALID response code.
  1051. dataset.inherit
  1052. This holds the name of a dataset from which to inherit according
  1053. to the rules in the previous section. This attribute MAY refer
  1054. Newman & Myers Standards Track [Page 24]
  1055. RFC 2244 ACAP November 1997
  1056. to a non-existent dataset, in which case nothing is inherited.
  1057. This attribute is validated, so illegal dataset syntax or an
  1058. attempt to store a multi-value will result in a NO response with
  1059. an INVALID response code.
  1060. 5.3. Dataset Creation
  1061. When a dataset is first created (by storing a "." in the subdataset
  1062. attribute or storing an entry in a previously non-existent dataset),
  1063. the dataset attributes are initialized with the values from the
  1064. parent dataset in the "/byowner/" hierarchy. In the case of the
  1065. "dataset.inherit" attribute, the appropriate hierarchy component is
  1066. added. For example, given the following entry (note that \t refers
  1067. to the US-ASCII horizontal tab character):
  1068. entry path "/byowner/user/joe/"
  1069. dataset.acl ("joe\txrwia" "fred\txr")
  1070. dataset.inherit "/byowner/site"
  1071. If a new dataset class "/byowner/user/joe/new" is created, it will
  1072. have the following dataset attributes:
  1073. entry path "/byowner/user/joe/new/"
  1074. dataset.acl ("joe\txrwia" "fred\txr")
  1075. dataset.inherit "/byowner/site/new"
  1076. Note that the dataset "/byowner/user/joe/new/" is equivalent to
  1077. "/new/user/joe/".
  1078. 5.4. Dataset Class Capabilities
  1079. Certain dataset classes or dataset class features may only be useful
  1080. if there is an active updating client or integrated server support
  1081. for the feature. The dataset class "capability" is reserved to allow
  1082. clients or servers to advertise such features. The "entry" attribute
  1083. within this dataset class is the name of the dataset class whose
  1084. features are being described. The attributes are prefixed with
  1085. "capability.<dataset-class>." and are defined by the appropriate
  1086. dataset class specification.
  1087. Since it is possible for an unprivileged user to run an active client
  1088. for himself, a per-user capability dataset is useful. The dataset
  1089. "/capability/~/" holds information about all features available to
  1090. the user (via inheritance), and the dataset "/capability/site/" holds
  1091. information about all features supported by the site.
  1092. Newman & Myers Standards Track [Page 25]
  1093. RFC 2244 ACAP November 1997
  1094. 5.5. Dataset Quotas
  1095. Management and scope of quotas is implementation dependent. Clients
  1096. can check the applicable quota limit and usage (in bytes) with the
  1097. GETQUOTA command. Servers can notify the client of a low quota
  1098. situation with the QUOTA untagged response.
  1099. 6. Command and Response Specifications
  1100. ACAP commands and responses are described in this section. Commands
  1101. are organized first by the state in which the command is permitted,
  1102. then by a general category of command type.
  1103. Command arguments, identified by "Arguments:" in the command
  1104. descriptions below, are described by function, not by syntax. The
  1105. precise syntax of command arguments is described in the Formal Syntax
  1106. section.
  1107. Some commands cause specific server data to be returned; these are
  1108. identified by "Data:" in the command descriptions below. See the
  1109. response descriptions in the Responses section for information on
  1110. these responses, and the Formal Syntax section for the precise syntax
  1111. of these responses. It is possible for server data to be transmitted
  1112. as a result of any command; thus, commands that do not specifically
  1113. require server data specify "no specific data for this command"
  1114. instead of "none".
  1115. The "Result:" in the command description refers to the possible
  1116. tagged status responses to a command, and any special interpretation
  1117. of these status responses.
  1118. 6.1. Initial Connection
  1119. Upon session startup, the server sends one of two untagged responses:
  1120. ACAP or BYE. The untagged BYE response is described in section
  1121. 6.2.8.
  1122. 6.1.1. ACAP Untagged Response
  1123. Data: capability list
  1124. The untagged ACAP response indicates the session is ready to
  1125. accept commands and contains a space-separated listing of
  1126. capabilities that the server supports. Each capability is
  1127. represented by a list containing the capability name optionally
  1128. followed by capability specific string arguments.
  1129. Newman & Myers Standards Track [Page 26]
  1130. RFC 2244 ACAP November 1997
  1131. ACAP capability names MUST be registered with IANA according to
  1132. the rules in section 7.1.
  1133. Client implementations SHOULD NOT require any capability name
  1134. beyond those defined in this specification, and MUST tolerate any
  1135. unknown capability names. A client implementation MAY be
  1136. configurable to require SASL mechanisms other than CRAM-MD5
  1137. [CRAM-MD5] for site security policy reasons.
  1138. The following initial capabilities are defined:
  1139. CONTEXTLIMIT
  1140. The CONTEXTLIMIT capability has one argument which is a
  1141. number describing the maximum number of contexts the server
  1142. supports per connection. The number 0 indicates the server
  1143. has no limit, otherwise this number MUST be greater than
  1144. 100.
  1145. IMPLEMENTATION
  1146. The IMPLEMENTATION capability has one argument which is a
  1147. string describing the server implementation. ACAP clients
  1148. MUST NOT alter their behavior based on this value. It is
  1149. intended primarily for debugging purposes.
  1150. SASL The SASL capability includes a list of the authentication
  1151. mechanisms supported by the server. See section 6.3.1.
  1152. Example: S: * ACAP (IMPLEMENTATION "ACME v3.5")
  1153. (SASL "CRAM-MD5") (CONTEXTLIMIT "200")
  1154. 6.2. Any State
  1155. The following commands and responses are valid in any state.
  1156. 6.2.1. NOOP Command
  1157. Arguments: none
  1158. Data: no specific data for this command (but see below)
  1159. Result: OK - noop completed
  1160. BAD - command unknown or arguments invalid
  1161. The NOOP command always succeeds. It does nothing. It can be
  1162. used to reset any inactivity auto-logout timer on the server.
  1163. Example: C: a002 NOOP
  1164. Newman & Myers Standards Track [Page 27]
  1165. RFC 2244 ACAP November 1997
  1166. S: a002 OK "NOOP completed"
  1167. 6.2.2. LANG Command
  1168. Arguments: list of language preferences
  1169. Data: intermediate response: LANG
  1170. Result: OK - lang completed
  1171. NO - no matching language available
  1172. BAD - command unknown or arguments invalid
  1173. One or more arguments are supplied to indicate the client's
  1174. preferred languages [LANG-TAGS] for error messages. The server
  1175. will match each client preference in order against its internal
  1176. table of available error string languages. For a client
  1177. preference to match a server language, the client's language tag
  1178. MUST be a prefix of the server's tag and match up to a "-" or the
  1179. end of string. If a match is found, the server returns an
  1180. intermediate LANG response and an OK response. The LANG response
  1181. indicates the actual language selected and appropriate comparators
  1182. for use with the languages listed in the LANG command.
  1183. If no LANG command is issued, all error text strings MUST be in
  1184. the registered language "i-default" [CHARSET-LANG-POLICY],
  1185. intended for an international audience.
  1186. Example: C: A003 LANG "fr-ca" "fr" "en-ca" "en-uk"
  1187. S: A003 LANG "fr-ca" "i;octet" "i;ascii-numeric"
  1188. "i;ascii-casemap" "en;primary" "fr;primary"
  1189. S: A003 OK "Bonjour"
  1190. 6.2.3. LANG Intermediate Response
  1191. Data: language for error responses
  1192. appropriate comparators
  1193. The LANG response indicates the language which will be used for
  1194. error responses and the comparators which are appropriate for the
  1195. languages listed in the LANG command. The comparators SHOULD be
  1196. in approximate order from most efficient (usually "i;octet") to
  1197. most appropriate for human text in the preferred language.
  1198. Newman & Myers Standards Track [Page 28]
  1199. RFC 2244 ACAP November 1997
  1200. 6.2.4. LOGOUT Command
  1201. Arguments: none
  1202. Data: mandatory untagged response: BYE
  1203. Result: OK - logout completed
  1204. BAD - command unknown or arguments invalid
  1205. The LOGOUT command informs the server that the client is done with
  1206. the session. The server must send a BYE untagged response before
  1207. the (tagged) OK response, and then close the network connection.
  1208. Example: C: A023 LOGOUT
  1209. S: * BYE "ACAP Server logging out"
  1210. S: A023 OK "LOGOUT completed"
  1211. (Server and client then close the connection)
  1212. 6.2.5. OK Response
  1213. Data: optional response code
  1214. human-readable text
  1215. The OK response indicates an information message from the server.
  1216. When tagged, it indicates successful completion of the associated
  1217. command. The human-readable text may be presented to the user as
  1218. an information message. The untagged form indicates an
  1219. information-only message; the nature of the information MAY be
  1220. indicated by a response code.
  1221. Example: S: * OK "Master ACAP server is back up"
  1222. 6.2.6. NO Response
  1223. Data: optional response code
  1224. human-readable text
  1225. The NO response indicates an operational error message from the
  1226. server. When tagged, it indicates unsuccessful completion of the
  1227. associated command. The untagged form indicates a warning; the
  1228. command may still complete successfully. The human-readable text
  1229. describes the condition.
  1230. Example: C: A010 SEARCH "/addressbook/" DEPTH 3 RETURN ("*")
  1231. EQUAL "entry" "+i;octet" "bozo"
  1232. S: * NO "Master ACAP server is down, your data may
  1233. Newman & Myers Standards Track [Page 29]
  1234. RFC 2244 ACAP November 1997
  1235. be out of date."
  1236. S: A010 OK "search done"
  1237. ...
  1238. C: A222 STORE ("/folder/site/comp.mail.misc"
  1239. "folder.creation-time" "19951206103412")
  1240. S: A222 NO (PERMISSION ("/folder/site/")) "Permission
  1241. denied"
  1242. 6.2.7. BAD Response
  1243. Data: optional response code
  1244. human-readable text
  1245. The BAD response indicates an error message from the server. When
  1246. tagged, it reports a protocol-level error in the client's command;
  1247. the tag indicates the command that caused the error. The untagged
  1248. form indicates a protocol-level error for which the associated
  1249. command can not be determined; it may also indicate an internal
  1250. server failure. The human-readable text describes the condition.
  1251. Example: C: ...empty line...
  1252. S: * BAD "Empty command line"
  1253. C: A443 BLURDYBLOOP
  1254. S: A443 BAD "Unknown command"
  1255. C: A444 NOOP Hello
  1256. S: A444 BAD "invalid arguments"
  1257. 6.2.8. BYE Untagged Response
  1258. Data: optional response code
  1259. human-readable text
  1260. The untagged BYE response indicates that the server is about to
  1261. close the connection. The human-readable text may be displayed to
  1262. the user in a status report by the client. The BYE response may
  1263. be sent as part of a normal logout sequence, or as a panic
  1264. shutdown announcement by the server. It is also used by some
  1265. server implementations as an announcement of an inactivity auto-
  1266. logout.
  1267. This response is also used as one of two possible greetings at
  1268. session startup. It indicates that the server is not willing to
  1269. accept a session from this client.
  1270. Example: S: * BYE "Auto-logout; idle for too long"
  1271. Newman & Myers Standards Track [Page 30]
  1272. RFC 2244 ACAP November 1997
  1273. 6.2.9. ALERT Untagged Response
  1274. Data: optional response code
  1275. human-readable text
  1276. The human-readable text contains a special human generated alert
  1277. message that MUST be presented to the user in a fashion that calls
  1278. the user's attention to the message. This is intended to be used
  1279. for vital messages from the server administrator to the user, such
  1280. as a warning that the server will soon be shut down for
  1281. maintenance.
  1282. Example: S: * ALERT "This ACAP server will be shut down in
  1283. 10 minutes for system maintenance."
  1284. 6.3. Non-Authenticated State
  1285. In non-authenticated state, the AUTHENTICATE command establishes
  1286. authentication and enters authenticated state. The AUTHENTICATE
  1287. command provides a general mechanism for a variety of authentication
  1288. techniques.
  1289. Server implementations may allow non-authenticated access to certain
  1290. information by supporting the SASL ANONYMOUS [SASL-ANON] mechanism.
  1291. Once authenticated (including as anonymous), it is not possible to
  1292. re-enter non-authenticated state.
  1293. Only the any-state commands (NOOP, LANG and LOGOUT) and the
  1294. AUTHENTICATE command are valid in non-authenticated state.
  1295. 6.3.1. AUTHENTICATE Command
  1296. Arguments: SASL mechanism name
  1297. optional initial response
  1298. Data: continuation data may be requested
  1299. Result: OK - authenticate completed, now in authenticated state
  1300. NO - authenticate failure: unsupported authentication
  1301. mechanism, credentials rejected
  1302. BAD - command unknown or arguments invalid,
  1303. authentication exchange cancelled
  1304. Newman & Myers Standards Track [Page 31]
  1305. RFC 2244 ACAP November 1997
  1306. The AUTHENTICATE command indicates a SASL [SASL] authentication
  1307. mechanism to the server. If the server supports the requested
  1308. authentication mechanism, it performs an authentication protocol
  1309. exchange to authenticate and identify the user. Optionally, it
  1310. also negotiates a security layer for subsequent protocol
  1311. interactions. If the requested authentication mechanism is not
  1312. supported, the server rejects the AUTHENTICATE command by sending
  1313. a tagged NO response.
  1314. The authentication protocol exchange consists of a series of
  1315. server challenges and client answers that are specific to the
  1316. authentication mechanism. A server challenge consists of a
  1317. command continuation request with the "+" token followed by a
  1318. string. The client answer consists of a line consisting of a
  1319. string. If the client wishes to cancel an authentication
  1320. exchange, it should issue a line with a single unquoted "*". If
  1321. the server receives such an answer, it must reject the
  1322. AUTHENTICATE command by sending a tagged BAD response.
  1323. The optional initial-response argument to the AUTHENTICATE command
  1324. is used to save a round trip when using authentication mechanisms
  1325. that are defined to send no data in the initial challenge. When
  1326. the initial-response argument is used with such a mechanism, the
  1327. initial empty challenge is not sent to the client and the server
  1328. uses the data in the initial-response argument as if it were sent
  1329. in response to the empty challenge. If the initial-response
  1330. argument to the AUTHENTICATE command is used with a mechanism that
  1331. sends data in the initial challenge, the server rejects the
  1332. AUTHENTICATE command by sending a tagged NO response.
  1333. The service name specified by this protocol's profile of SASL is
  1334. "acap".
  1335. If a security layer is negotiated through the SASL authentication
  1336. exchange, it takes effect immediately following the CRLF that
  1337. concludes the authentication exchange for the client, and the CRLF
  1338. of the tagged OK response for the server.
  1339. All ACAP implementations MUST implement the CRAM-MD5 SASL
  1340. mechanism [CRAM-MD5], although they MAY offer a configuration
  1341. option to disable it if site security policy dictates. The
  1342. example below is the same example described in the CRAM-MD5
  1343. specification.
  1344. If an AUTHENTICATE command fails with a NO response, the client
  1345. may try another authentication mechanism by issuing another
  1346. AUTHENTICATE command. In other words, the client may request
  1347. authentication types in decreasing order of preference.
  1348. Newman & Myers Standards Track [Page 32]
  1349. RFC 2244 ACAP November 1997
  1350. Example: S: * ACAP (IMPLEMENTATION "Blorfysoft v3.5")
  1351. (SASL "CRAM-MD5" "KERBEROS_V4")
  1352. C: A001 AUTHENTICATE "CRAM-MD5"
  1353. S: + "<1896.697170952@postoffice.reston.mci.net>"
  1354. C: "tim b913a602c7eda7a495b4e6e7334d3890"
  1355. S: A001 OK "CRAM-MD5 authentication successful"
  1356. 6.4. Searching
  1357. This section describes the SEARCH command, for retrieving data from
  1358. datasets.
  1359. 6.4.1. SEARCH Command
  1360. Arguments: dataset or context name
  1361. optional list of modifiers
  1362. search criteria
  1363. Data: intermediate responses: ENTRY, MODTIME, REFER
  1364. untagged responses: ADDTO, REMOVEFROM, CHANGE, MODTIME
  1365. Result: OK - search completed
  1366. NO - search failure: can't perform search
  1367. BAD - command unknown or arguments invalid
  1368. The SEARCH command identifies a subset of entries in a dataset and
  1369. returns information on that subset to the client. Inherited
  1370. entries and attributes are included in the search unless the
  1371. NOINHERIT search modifier is included or the user does not have
  1372. permission to read the attributes in the base dataset.
  1373. The first argument to SEARCH identifies what is to be searched.
  1374. If the string begins with a slash ("/"), it is the name of a
  1375. dataset to be searched, otherwise it is a name of a context that
  1376. was created by a SEARCH command given previously in the session.
  1377. A successful SEARCH command MAY result in intermediate ENTRY
  1378. responses and MUST result in a MODTIME intermediate response.
  1379. Following that are zero or more modifiers to the search. Each
  1380. modifier may be specified at most once. The defined modifiers
  1381. are:
  1382. Newman & Myers Standards Track [Page 33]
  1383. RFC 2244 ACAP November 1997
  1384. DEPTH number
  1385. The SEARCH command will traverse the dataset tree up to the
  1386. specified depth. ENTRY responses will include the full path
  1387. to the entry. A value of "0" indicates that the search
  1388. should traverse the entire tree. A value of "1" is the
  1389. default and indicates only the specified dataset should be
  1390. searched. If a dataset is traversed which is not located on
  1391. the current server, then a REFER intermediate response is
  1392. returned for that subtree and the search continues.
  1393. HARDLIMIT number
  1394. If the SEARCH command would result in more than number
  1395. entries, the SEARCH fails with a NO completion result with a
  1396. WAYTOOMANY response code.
  1397. LIMIT number number
  1398. Limits the number of intermediate ENTRY responses that the
  1399. search may generate. The first numeric argument specifies
  1400. the limit, the second number specifies the number of entries
  1401. to return if the number of matches exceeds the limit. If the
  1402. limit is exceeded, the SEARCH command still succeeds,
  1403. returning the total number of matches in a TOOMANY response
  1404. code in the tagged OK response.
  1405. MAKECONTEXT [ENUMERATE] [NOTIFY] context
  1406. Causes the SEARCH command to create a context with the name
  1407. given in the argument to refer to the matching entries. If
  1408. the SEARCH is successful, the context name may then be given
  1409. as an argument to subsequent SEARCH commands to search the
  1410. set of matching entries. If a context with the specified
  1411. name already exists, it is first freed. If a new context may
  1412. not be created due to the server's limit on the number of
  1413. existing contexts, the command fails, returning a
  1414. TRYFREECONTEXT response code in the NO completion response.
  1415. The optional "ENUMERATE" and "NOTIFY" arguments may be
  1416. included to request enumeration of the context (for virtual
  1417. scroll bars) or change notifications for the context. If
  1418. "NOTIFY" is not requested, the context represents a snapshot
  1419. of the entries at the time the SEARCH was issued.
  1420. ENUMERATE requests that the contents of the context be
  1421. ordered according to the SORT modifier and that sequential
  1422. numbers, starting with one, be assigned to the entries in the
  1423. context. This permits the RANGE modifier to be used to fetch
  1424. portions of the ordered context.
  1425. Newman & Myers Standards Track [Page 34]
  1426. RFC 2244 ACAP November 1997
  1427. NOTIFY requests that the server send untagged ADDTO,
  1428. REMOVEFROM, CHANGE, and MODTIME responses while the context
  1429. created by this SEARCH command exists. The server MAY issue
  1430. untagged ADDTO, REMOVEFROM, CHANGE and MODTIME notifications
  1431. for a context at any time between the issuing of the SEARCH
  1432. command with MAKECONTEXT NOTIFY and the completion of a
  1433. FREECONTEXT command for the context. Notifications are only
  1434. issued for changes which occur after the server receives the
  1435. SEARCH command which created the context. After issuing a
  1436. sequence of ADDTO, REMOVEFROM or CHANGE notifications, the
  1437. server MUST issue an untagged MODTIME notification indicating
  1438. that the client has all updates to the entries in the context
  1439. up to and including the given modtime value. Servers are
  1440. permitted a reasonable delay to batch change notifications
  1441. before sending them to the client.
  1442. The position arguments of the ADDTO, REMOVEFROM and CHANGE
  1443. notifications are 0 if ENUMERATE is not requested.
  1444. NOINHERIT
  1445. This causes the SEARCH command to operate without
  1446. inheritance. It can be used to tell which values are
  1447. explicit overrides. If MAKECONTEXT is also specified, the
  1448. created context is also not affected by inheritance.
  1449. RETURN (metadata...)
  1450. Specifies what is to be returned in intermediate ENTRY
  1451. responses. If this modifier is not specified, no
  1452. intermediate ENTRY responses are returned.
  1453. Inside the parentheses is an optional list of attributes,
  1454. each optionally followed by a parenthesized list of metadata.
  1455. If the parenthesized list of metadata is not specified, it
  1456. defaults to "(value)".
  1457. An attribute name with a trailing "*" requests all attributes
  1458. with that prefix. A "*" by itself requests all attributes.
  1459. If the parenthesized list of metadata is not specified for an
  1460. attribute with a trailing "*", it defaults to "(attribute
  1461. value)". Results matching such an attribute pattern are
  1462. grouped in parentheses.
  1463. Following the last intermediate ENTRY response, the server
  1464. returns a single intermediate MODTIME response.
  1465. Newman & Myers Standards Track [Page 35]
  1466. RFC 2244 ACAP November 1997
  1467. SORT (attribute comparator ...)
  1468. Specifies the order in which any resulting ENTRY replies are
  1469. to be returned to the client. The SORT modifier takes as an
  1470. argument a parenthesized list of one or more
  1471. attribute/comparator pairs. Attribute lists the attribute to
  1472. sort on, comparator specifies the name of the collation rule
  1473. to apply to the values of the attribute. Successive
  1474. attribute/comparator pairs are used to order two entries only
  1475. when all preceding pairs indicate the two entries collate the
  1476. same.
  1477. If the SORT modifier is used in conjunction with the
  1478. MAKECONTEXT modifier, the SORT modifier specifies the
  1479. ordering of entries in the created context.
  1480. If no SORT modifier is specified, or none of the
  1481. attribute/comparator pairs indicates an order for the two
  1482. entries, the server uses the order of the entries that exists
  1483. in the context or dataset being searched.
  1484. Following the modifiers is the search criteria. Searching
  1485. criteria consist of one or more search keys. Search keys may be
  1486. combined using the AND, and OR search keys. For example, the
  1487. criteria (the newline is for readability and not part of the
  1488. criteria):
  1489. AND COMPARE "modtime" "+i;octet" "19951206103400"
  1490. COMPARE "modtime" "-i;octet" "19960112000000"
  1491. refers to all entries modified between 10:34 December 6 1995 and
  1492. midnight January 12, 1996 UTC.
  1493. The currently defined search keys are as follows.
  1494. ALL This matches all entries.
  1495. AND search-key1 search-key2
  1496. Entries that match both search keys.
  1497. COMPARE attribute comparator value
  1498. Entries for which the value of the specified attribute
  1499. collates using the specified comparator the same or later
  1500. than the specified value.
  1501. COMPARESTRICT attribute comparator value
  1502. Entries for which the specified attribute collates using the
  1503. specified comparator later than the specified value.
  1504. Newman & Myers Standards Track [Page 36]
  1505. RFC 2244 ACAP November 1997
  1506. EQUAL attribute comparator value
  1507. Entries for which the value of the attribute is equal to the
  1508. specified value using the specified comparator.
  1509. NOT search-key
  1510. Entries that do not match the specified search key.
  1511. OR search-key1 search-key2
  1512. Entries that match either search key.
  1513. PREFIX attribute comparator value
  1514. Entries which begin with the specified value using the
  1515. specified comparator. If the specified comparator doesn't
  1516. support substring matching, a BAD response is returned.
  1517. RANGE start end time
  1518. Entries which are within the specified range of the
  1519. enumerated context's ordering. The lowest-ordered entry in
  1520. the context is assigned number one, the next lowest entry is
  1521. assigned number two, and so on. The numeric arguments
  1522. specify the lowest and highest numbers to match. The time
  1523. specifies that the client has processed notifications for the
  1524. context up to the specified time. If the context has been
  1525. modified since then, the server MUST either return a NO with
  1526. a MODIFIED response code, or return the results that the
  1527. SEARCH would have returned if none of the changes since that
  1528. time had been made.
  1529. RANGE is only permitted on enumerated contexts. If RANGE is
  1530. used with a dataset or non-enumerated context, the server
  1531. MUST return a BAD response.
  1532. SUBSTRING attribute comparator value
  1533. Entries which contain the specified value, using the
  1534. specified comparator. If the specified comparator doesn't
  1535. support substring matching, a BAD response is returned.
  1536. 6.4.2. ENTRY Intermediate Response
  1537. Data: entry name
  1538. entry data
  1539. The ENTRY intermediate response occurs as a result of a SEARCH or
  1540. STORE command. This is the means by which dataset entries are
  1541. returned to the client.
  1542. Newman & Myers Standards Track [Page 37]
  1543. RFC 2244 ACAP November 1997
  1544. The ENTRY response begins with the entry name, if a SEARCH command
  1545. without the DEPTH modifier was issued, or the entry path in other
  1546. cases. This is followed by a set of zero or more items, one for
  1547. each metadata item in the RETURN search modifier. Results
  1548. matching an attribute pattern or returning multiple metadata items
  1549. are grouped in parentheses.
  1550. 6.4.3. MODTIME Intermediate Response
  1551. Data: modtime value
  1552. The MODTIME intermediate response occurs as a result of a SEARCH
  1553. command. It indicates that the just created context or the
  1554. previously returned ENTRY responses include all updates to the
  1555. returned entries up to and including the modtime value in the
  1556. argument.
  1557. 6.4.4. REFER Intermediate Response
  1558. Data: dataset path
  1559. relative ACAP URLs
  1560. The REFER intermediate response occurs as a result of a
  1561. multi-level SEARCH where one of the levels is located on a
  1562. different server. The response indicates the dataset which is not
  1563. located on the current server and one or more relative ACAP URLs
  1564. for where that dataset may be found.
  1565. 6.4.5. Search Examples
  1566. Here are some SEARCH command exchanges between the client and server:
  1567. C: A046 SEARCH "/addressbook/" DEPTH 3 RETURN ("addressbook.Alias"
  1568. "addressbook.Email" "addressbook.List") OR NOT EQUAL
  1569. "addressbook.Email" "i;octet" NIL NOT EQUAL
  1570. "addressbook.List" "i;octet" NIL
  1571. S: A046 ENTRY "/addressbook/user/joe/A0345" "fred"
  1572. "fred@stone.org" NIL
  1573. S: A046 ENTRY "/addressbook/user/fred/A0537" "joe" "joe@stone.org"
  1574. NIL
  1575. S: A046 ENTRY "/addressbook/group/Dinosaur Operators/A423"
  1576. "saurians" NIL "1"
  1577. S: A046 MODTIME "19970728105252"
  1578. S: A046 OK "SEARCH completed"
  1579. C: A047 SEARCH "/addressbook/user/fred/" RETURN ("*") EQUAL "entry"
  1580. "i;octet" "A0345"
  1581. S: A047 ENTRY "A0345" (("modtime" "19970728102226")
  1582. Newman & Myers Standards Track [Page 38]
  1583. RFC 2244 ACAP November 1997
  1584. ("addressbook.Alias" "fred") ("addressbook.Email"
  1585. "fred@stone.org") ("addressbook.CommonName"
  1586. "Fred Flintstone") ("addressbook.Surname" "Flintstone")
  1587. ("addressbook.GivenName" "Fred"))
  1588. S: A047 MODTIME "19970728105258"
  1589. S: A047 OK "SEARCH completed"
  1590. C: A048 SEARCH "/options/~/vendor.example/" RETURN
  1591. ("option.value"("size" "value" "myrights"))
  1592. SORT ("entry" "i;octet") COMPARE "modtime" "i;octet"
  1593. "19970727123225"
  1594. S: A048 ENTRY "blurdybloop" (5 "ghoti" "rwia")
  1595. S: A048 ENTRY "buckybits" (2 "10" "rwia")
  1596. S: A048 ENTRY "windowSize" (7 "100x100" "rwia")
  1597. S: A048 MODTIME "19970728105304"
  1598. S: A048 OK "SEARCH completed"
  1599. C: A049 SEARCH "/addressbook/~/public" RETURN ("addressbook.Alias"
  1600. "addressbook.Email") MAKECONTEXT ENUMERATE "blob" LIMIT 100 1
  1601. SORT ("addressbook.Alias" "i;octet") NOT EQUAL
  1602. "addressbook.Email" NIL
  1603. S: A049 ENTRY "A437" "aaguy" "aaguy@stone.org"
  1604. S: A049 MODTIME "19970728105308"
  1605. S: A049 OK (TOOMANY 347) "Context 'blob' created"
  1606. C: A050 SEARCH "blob" RANGE 2 2 "19970728105308" ALL
  1607. S: A050 ENTRY "A238" "abguy" "abguy@stone.org"
  1608. S: A050 MODTIME "19970728105310"
  1609. S: A050 OK "SEARCH Completed"
  1610. 6.5. Contexts
  1611. The following commands use contexts created by a SEARCH command with
  1612. a MAKECONTEXT modifier.
  1613. 6.5.1. FREECONTEXT Command
  1614. Arguments: context name
  1615. Data: no specific data for this command
  1616. Result: OK - freecontext completed
  1617. NO - freecontext failure: no such context
  1618. BAD - command unknown or arguments invalid
  1619. Newman & Myers Standards Track [Page 39]
  1620. RFC 2244 ACAP November 1997
  1621. The FREECONTEXT command causes the server to free all state
  1622. associated with the named context. The context may no longer be
  1623. searched and the server will no longer issue any untagged
  1624. responses for the context. The context is no longer counted
  1625. against the server's limit on the number of contexts.
  1626. Example: C: A683 FREECONTEXT "blurdybloop"
  1627. S: A683 OK "Freecontext completed"
  1628. 6.5.2. UPDATECONTEXT Command
  1629. Arguments: list of context names
  1630. Data: untagged responses: ADDTO REMOVEFROM CHANGE MODTIME
  1631. Result: OK - Updatecontext completed: all updates completed
  1632. NO - Updatecontext failed: no such context
  1633. not a notify context
  1634. BAD - command unknown or arguments invalid
  1635. The UPDATECONTEXT command causes the server to ensure that the
  1636. client is notified of all changes known to the server for the
  1637. contexts listed as arguments up to the current time. The contexts
  1638. listed in the arguments must have been previously given to a
  1639. successful SEARCH command with a MAKECONTEXT NOTIFY modifier. A
  1640. MODTIME untagged response MUST be returned if any read-write
  1641. metadata in the context changed since the last MODTIME for that
  1642. context. This includes metadata which is not listed in the RETURN
  1643. modifier for the context.
  1644. While a server may issue untagged ADDTO, REMOVEFROM, CHANGE, and
  1645. MODTIME at any time, the UPDATECONTEXT command is used to "prod"
  1646. the server to send any notifications it has not sent yet.
  1647. The UPDATECONTEXT command SHOULD NOT be used to poll for updates.
  1648. Example: C: Z4S9 UPDATECONTEXT "blurdybloop" "blarfl"
  1649. S: Z4S9 OK "client has been notified of all changes"
  1650. 6.5.3. ADDTO Untagged Response
  1651. Data: context name
  1652. entry name
  1653. position
  1654. metadata list
  1655. Newman & Myers Standards Track [Page 40]
  1656. RFC 2244 ACAP November 1997
  1657. The untagged ADDTO response informs the client that an entry has
  1658. been added to a context. The response includes the position
  1659. number of the added entry (the first entry in the context is
  1660. numbered 1) and those metadata contained in the entry which match
  1661. the RETURN statement when the context was created.
  1662. For enumerated contexts, the ADDTO response implicitly adds one to
  1663. the position of all members of the context which had position
  1664. numbers that were greater than or equal to the ADDTO position
  1665. number. For non-enumerated contexts, the position field is always
  1666. 0.
  1667. Example: S: * ADDTO "blurdybloop" "fred" 15
  1668. ("addressbook.Email" "fred@stone.org")
  1669. 6.5.4. REMOVEFROM Untagged Response
  1670. Data: context name
  1671. entry name
  1672. old position
  1673. The untagged REMOVEFROM response informs the client that an entry
  1674. has been removed from a context. The response includes the
  1675. position number that the removed entry used to have (the first
  1676. entry in the context is numbered 1).
  1677. For enumerated contexts, the REMOVEFROM response implicitly
  1678. subtracts one from the position numbers of all members of the
  1679. context which had position numbers greater than the REMOVEFROM
  1680. position number. For non-enumerated contexts, the position field
  1681. is always 0.
  1682. Example: S: * REMOVEFROM "blurdybloop" "fred" 15
  1683. 6.5.5. CHANGE Untagged Response
  1684. Data: context name
  1685. entry name
  1686. old position
  1687. new position
  1688. metadata list
  1689. The untagged CHANGE response informs the client that an entry in a
  1690. context has either changed position in the context or has changed
  1691. the values of one or more of the attributes specified in the
  1692. RETURN modifier when the context was created.
  1693. Newman & Myers Standards Track [Page 41]
  1694. RFC 2244 ACAP November 1997
  1695. The response includes the previous and current position numbers of
  1696. the entry (which are 0 if ENUMERATE was not specified on the
  1697. context) and the attribute metadata requested in the RETURN
  1698. modifier when the context was created.
  1699. For enumerated contexts, the CHANGE response implicitly changes
  1700. the position numbers of all entries which had position numbers
  1701. between the old and new position. If old position is less than
  1702. new position, than one is subtracted from all entries which had
  1703. position numbers in that range. Otherwise one is added to all
  1704. entries which had position numbers in that range. If the old
  1705. position and new position are the same, then no implicit position
  1706. renumbering occurs.
  1707. CHANGE responses are not issued for entries which have changed
  1708. position implicitly due to another ADDTO, REMOVEFROM or CHANGE
  1709. response.
  1710. Example: S: * CHANGE "blurdybloop" "fred" 15 10
  1711. ("addressbook.Email" "fred@stone.org")
  1712. 6.5.6. MODTIME Untagged Response
  1713. Data: context name
  1714. modtime value
  1715. The untagged MODTIME response informs the client that it has
  1716. received all updates to entries in the context which have modtime
  1717. values less than or equal to the modtime value in the argument.
  1718. Example: S: * MODTIME mycontext "19970320162338"
  1719. 6.6. Dataset modification
  1720. The following commands and responses handle modification of datasets.
  1721. Newman & Myers Standards Track [Page 42]
  1722. RFC 2244 ACAP November 1997
  1723. 6.6.1. STORE Command
  1724. Arguments: entry store list
  1725. Data: intermediate responses: ENTRY
  1726. Result: OK - store completed
  1727. NO - store failure: can't store that name
  1728. UNCHANGEDSINCE specified and entry changed
  1729. BAD - command unknown or arguments invalid
  1730. invalid UTF-8 syntax in attribute name
  1731. Creates, modifies, or deletes the named entries in the named
  1732. datasets. The values of metadata not specified in the command are
  1733. not changed. Setting the "value" metadata of an attribute to NIL
  1734. removes that attribute from the entry. Setting the "value" of the
  1735. "entry" attribute to NIL removes that entry from the dataset and
  1736. cancels inheritance for the entire entry. Setting the "value" of
  1737. the "entry" attribute to DEFAULT removes that entry from the
  1738. inheriting dataset and reverts the entry and its attributes to
  1739. inherited values, if any. Changing the value of the "entry"
  1740. attribute renames the entry.
  1741. Storing DEFAULT to the "value" metadata of an attribute is
  1742. equivalent to storing NIL, except that inheritance is enabled for
  1743. that attribute. If a non-NIL value is inherited then an ENTRY
  1744. intermediate response is generated to notify the client of the
  1745. this change. The ENTRY response includes the entry-path and the
  1746. attribute name and value metadata for each attribute which
  1747. reverted to a non-NIL inherited setting.
  1748. Storing NIL to the "value" metadata of an attribute MAY be treated
  1749. equivalent to storing DEFAULT to that "value" if there is a NIL
  1750. value in the base dataset.
  1751. The STORE command is followed by one or more entry store lists.
  1752. Each entry store list begins with an entry path followed by STORE
  1753. modifiers, followed by zero or more attribute store items. Each
  1754. attribute store item is made up of the attribute name followed by
  1755. NIL (to remove the attribute's value), DEFAULT (to revert the item
  1756. to any inherited value), a single value (to set the attribute's
  1757. single value), or a list of metadata items to modify. The
  1758. following STORE modifiers may be specified:
  1759. Newman & Myers Standards Track [Page 43]
  1760. RFC 2244 ACAP November 1997
  1761. NOCREATE
  1762. By default, the server MUST create any datasets necessary to
  1763. store the entry, including multiple hierarchy levels. If
  1764. NOCREATE is specified, the STORE command will fail with a
  1765. NOEXIST error unless the parent dataset already exists.
  1766. UNCHANGEDSINCE
  1767. If the "modtime" of the entry is later than the
  1768. unchangedsince time, then the store fails with a MODIFIED
  1769. response code. Use of UNCHANGEDSINCE with a time of
  1770. "00000101000000" will always fail if the entry exists.
  1771. Clients writing to a shared dataset are encouraged to use
  1772. UNCHANGEDSINCE when modifying an existing entry.
  1773. The server MUST either make all the changes specified in a single
  1774. STORE command or make none of them. If successful, the server
  1775. MUST update the "modtime" attribute for every entry which was
  1776. changed.
  1777. It is illegal to list any metadata item within an attribute twice,
  1778. any attribute within an entry twice or any entry path twice. The
  1779. server MUST return a BAD response if this happens.
  1780. The server MAY re-order the strings in a multi-value on STORE and
  1781. MAY remove duplicate strings. However, SEARCH MUST return multi-
  1782. values and the associated size list metadata in a consistant
  1783. order.
  1784. Example: C: A342 STORE ("/addressbook/user/fred/ABC547"
  1785. "addressbook.TelephoneNumber" "555-1234"
  1786. "addressbook.CommonName" "Barney Rubble"
  1787. "addressbook.AlternateNames" ("value"
  1788. ("Barnacus Rubble" "Coco Puffs Thief"))
  1789. "addressbook.Email" NIL)
  1790. S: A342 OK "Store completed"
  1791. C: A343 STORE ("/addressbook/user/joe/ABD42"
  1792. UNCHANGEDSINCE "19970320162338"
  1793. "user.joe.hair-length" "10 inches")
  1794. S: A343 NO (MODIFIED) "'ABD42' has been changed
  1795. by somebody else."
  1796. C: A344 STORE ("/addressbook/group/Developers/ACD54"
  1797. "entry" NIL)
  1798. S: A344 OK "Store completed"
  1799. C: A345 STORE ("/option/~/common/SMTPserver"
  1800. "option.value" DEFAULT)
  1801. S: A345 ENTRY "/option/~/common/SMTPserver"
  1802. Newman & Myers Standards Track [Page 44]
  1803. RFC 2244 ACAP November 1997
  1804. "option.value" "smtp.server.do.main"
  1805. S: A345 OK "Store completed"
  1806. C: A347 STORE ("/addressbook/~/" "dataset.inherit"
  1807. "/addressbook/group/Developers")
  1808. S: A347 OK "Store completed"
  1809. 6.6.2. DELETEDSINCE Command
  1810. Arguments: dataset name
  1811. time
  1812. Data: intermediate response: DELETED
  1813. Result: OK - DELETEDSINCE completed
  1814. NO - DELETEDSINCE failure: can't read dataset
  1815. date too far in the past
  1816. BAD - command unknown or arguments invalid
  1817. The DELETEDSINCE command returns in intermediate DELETED replies
  1818. the names of entries that have been deleted from the named dataset
  1819. since the given time.
  1820. Servers may impose a limit on the number or age of deleted entry
  1821. names they keep track of. If the server does not have information
  1822. going back to the specified time, the command fails, returning a
  1823. TOOOLD response code in the tagged NO response.
  1824. Example: C: Z4S9 DELETEDSINCE "/folder/site/" 19951205103412
  1825. S: Z4S9 DELETED "blurdybloop"
  1826. S: Z4S9 DELETED "anteaters"
  1827. S: Z4S9 OK "DELETEDSINCE completed"
  1828. C: Z4U3 DELETEDSINCE "/folder/site/" 19951009040854
  1829. S: Z4U3 NO (TOOOLD) "Don't have that information"
  1830. 6.6.3. DELETED Intermediate Response
  1831. Data: entry name
  1832. The intermediate DELETED response occurs as a result of a
  1833. DELETEDSINCE command. It returns an entry that has been deleted
  1834. from the dataset specified in the DELETEDSINCE command.
  1835. 6.7. Access Control List Commands
  1836. The commands in this section are used to manage access control lists.
  1837. Newman & Myers Standards Track [Page 45]
  1838. RFC 2244 ACAP November 1997
  1839. 6.7.1. SETACL Command
  1840. Arguments: acl object
  1841. authentication identifier
  1842. access rights
  1843. Data: no specific data for this command
  1844. Result: OK - setacl completed
  1845. NO - setacl failure: can't set acl
  1846. BAD - command unknown or arguments invalid
  1847. The SETACL command changes the access control list on the
  1848. specified object so that the specified identifier is granted the
  1849. permissions enumerated in rights. If the object did not
  1850. previously have an access control list, one is created.
  1851. Example: C: A123 SETACL ("/addressbook/~/public/") "anyone" "r"
  1852. S: A123 OK "Setacl complete"
  1853. C: A124 SETACL ("/folder/site/") "B1FF" "rwa"
  1854. S: A124 NO (PERMISSION ("/folder/site/")) "'B1FF' not
  1855. permitted to modify access rights
  1856. for '/folder/site/'"
  1857. 6.7.2. DELETEACL Command
  1858. Arguments: acl object
  1859. optional authentication identifier
  1860. Data: no specific data for this command
  1861. Result: OK - deleteacl completed
  1862. NO - deleteacl failure: can't delete acl
  1863. BAD - command unknown or arguments invalid
  1864. If given the optional identifier argument, the DELETEACL command
  1865. removes any portion of the access control list on the specified
  1866. object for the specified identifier.
  1867. If not given the optional identifier argument, the DELETEACL
  1868. command removes the ACL from the object entirely, causing access
  1869. to be controlled by a higher-level default ACL. This form of the
  1870. DELETEACL command is not permitted on the default ACL for a
  1871. dataset and servers MUST return a BAD.
  1872. Newman & Myers Standards Track [Page 46]
  1873. RFC 2244 ACAP November 1997
  1874. Example: C: A223 DELETEACL ("/addressbook/~/public") "anyone"
  1875. S: A223 OK "Deleteacl complete"
  1876. C: A224 DELETEACL ("/folder/site")
  1877. S: A224 BAD "Can't delete ACL from dataset"
  1878. C: A225 DELETEACL ("/addressbook/user/fred"
  1879. "addressbook.Email" "barney")
  1880. S: A225 OK "Deleteacl complete"
  1881. 6.7.3. MYRIGHTS Command
  1882. Arguments: acl object
  1883. Data: intermediate responses: MYRIGHTS
  1884. Result: OK - myrights completed
  1885. NO - myrights failure: can't get rights
  1886. BAD - command unknown or arguments invalid
  1887. The MYRIGHTS command returns the set of rights that the client has
  1888. to the given dataset or dataset attribute.
  1889. Example: C: A003 MYRIGHTS ("/folder/site")
  1890. S: A003 MYRIGHTS "r"
  1891. S: A003 OK "Myrights complete"
  1892. 6.7.4. MYRIGHTS Intermediate Response
  1893. Data: rights
  1894. The MYRIGHTS response occurs as a result of a MYRIGHTS command.
  1895. The argument is the set of rights that the client has for the
  1896. object referred to in the MYRIGHTS command.
  1897. 6.7.5. LISTRIGHTS Command
  1898. Arguments: acl object
  1899. authentication identifier
  1900. Data: untagged responses: LISTRIGHTS
  1901. Result: OK - listrights completed
  1902. NO - listrights failure: can't get rights list
  1903. BAD - command unknown or arguments invalid
  1904. Newman & Myers Standards Track [Page 47]
  1905. RFC 2244 ACAP November 1997
  1906. The LISTRIGHTS command takes an object and an identifier and
  1907. returns information about what rights the current user may revoke
  1908. or grant to that identifier in the ACL for that object.
  1909. Example: C: a001 LISTRIGHTS ("/folder/~/") "smith"
  1910. S: a001 LISTRIGHTS "xra" "w" "i"
  1911. S: a001 OK Listrights completed
  1912. C: a005 LISTRIGHTS ("/folder/site/archive/imap") "anyone"
  1913. S: a005 LISTRIGHTS "" "x" "r" "w" "i"
  1914. S: a005 OK Listrights completed
  1915. 6.7.6. LISTRIGHTS Intermediate Response
  1916. Data: required rights
  1917. list of optional rights
  1918. The LISTRIGHTS response occurs as a result of a LISTRIGHTS
  1919. command. The first argument is a string containing the (possibly
  1920. empty) set of rights the identifier will always be granted on the
  1921. dataset or attribute.
  1922. Following this are zero or more strings each containing a single
  1923. right which the current user may revoke or grant to the identifier
  1924. in the dataset or attribute.
  1925. The same right MUST NOT be listed more than once in the LISTRIGHTS
  1926. response.
  1927. 6.8. Quotas
  1928. The section defines the commands and responses relating to quotas.
  1929. 6.8.1. GETQUOTA Command
  1930. Arguments: dataset
  1931. Data: untagged responses: QUOTA
  1932. Result: OK - Quota information returned
  1933. NO - Quota failure: can't access resource limit
  1934. no resource limit
  1935. BAD - command unknown or arguments invalid
  1936. Newman & Myers Standards Track [Page 48]
  1937. RFC 2244 ACAP November 1997
  1938. The GETQUOTA command takes the name of a dataset, and returns in
  1939. an untagged QUOTA response the name of the dataset, quota limit in
  1940. bytes that applies to that dataset and the quota usage within that
  1941. limit. The scope of a quota limit is implementation dependent.
  1942. Example: C: A043 GETQUOTA "/option/user/fred/common"
  1943. S: * QUOTA "/option/user/fred/common" 1048576 2475
  1944. S: A043 OK "Getquota completed"
  1945. 6.8.3. QUOTA Untagged Response
  1946. Data: dataset
  1947. quota limit in bytes
  1948. amount of quota limit used
  1949. extension data
  1950. The QUOTA untagged response is generated as a result of a GETQUOTA
  1951. command or MAY be generated by the server in response to a SEARCH
  1952. or STORE command to warn about high usage of a quota. It includes
  1953. the name of the applicable dataset, the quota limit in bytes, the
  1954. quota usage and some optional extension data. Clients MUST
  1955. tolerate the extension data as its use is reserved for a future
  1956. extension.
  1957. 6.9. Extensions
  1958. In order to simplify the process of extending the protocol, clients
  1959. MUST tolerate unknown server responses which meet the syntax of
  1960. response-extend. In addition, clients MUST tolerate unknown server
  1961. response codes which meet the syntax of resp-code-ext. Availability
  1962. of new commands MUST be announced via a capability on the initial
  1963. greeting line and such commands SHOULD meet the syntax of
  1964. command-extend.
  1965. Servers MUST respond to unknown commands with a BAD command
  1966. completion result. Servers MUST skip over non-synchronizing literals
  1967. contained in an unknown command. This may be done by assuming the
  1968. unknown command matches the command-extend syntax, or by reading a
  1969. line at a time and checking for the non-synchronizing literal syntax
  1970. at the end of the line.
  1971. 7. Registration Procedures
  1972. ACAP's usefulness comes from providing a structured storage model for
  1973. all sorts of configuration data. However, for its potential to be
  1974. achieved, it is important that the Internet community strives for the
  1975. following goals:
  1976. Newman & Myers Standards Track [Page 49]
  1977. RFC 2244 ACAP November 1997
  1978. (1) Standardization. It is very important to standardize dataset
  1979. classes. The authors hope that ACAP achieves the success that SNMP
  1980. has seen with the definition of numerous standards track MIBs.
  1981. (2) Community Review. In the absence of standardization, it is
  1982. important to get community review on a proposal to improve its
  1983. engineering quality. Community review is strongly recommended prior
  1984. to registration. The ACAP implementors mailing list
  1985. <ietf-acap@andrew.cmu.edu> should be used for this purpose.
  1986. (3) Registration. Registration serves a two-fold purpose. First it
  1987. prevents use of the same name for different purposes, and second it
  1988. provides a one-stop list which can be used to locate existing
  1989. extensions or dataset classes to prevent duplicate work.
  1990. The following registration templates may be used to register ACAP
  1991. protocol elements with the Internet Assigned Numbers Authority
  1992. (IANA).
  1993. 7.1. ACAP Capabilities
  1994. New ACAP capabilities MUST be registered prior to use. Careful
  1995. consideration should be made before extending the protocol, as it can
  1996. lead to complexity or interoperability problems. Review of proposals
  1997. on the acap implementors mailing list is strongly encouraged prior to
  1998. registration.
  1999. To: iana@iana.org
  2000. Subject: Registration of ACAP capability
  2001. Capability name:
  2002. Capability keyword:
  2003. Capability arguments:
  2004. Published Specification(s):
  2005. (Optional, but strongly encouraged)
  2006. Person and email address to contact for further information:
  2007. 7.2. ACAP Response Codes
  2008. ACAP response codes are registered on a first come, first served
  2009. basis. Review of proposals on the acap implementors mailing list is
  2010. strongly encouraged prior to registration.
  2011. Newman & Myers Standards Track [Page 50]
  2012. RFC 2244 ACAP November 1997
  2013. To: iana@iana.org
  2014. Subject: Registration of ACAP response code
  2015. Response Code:
  2016. Arguments (use ABNF to specify syntax):
  2017. Purpose:
  2018. Published Specification(s):
  2019. (Optional, but strongly encouraged)
  2020. Person and email address to contact for further information:
  2021. 7.3. Dataset Classes
  2022. A dataset class provides a core set of attributes for use in a
  2023. specified hierarchy. It may also define rules for the dataset
  2024. hierarchy underneath that class. Dataset class specifications must
  2025. be standards track or IESG approved experimental RFCs.
  2026. To: iana@iana.org
  2027. Subject: Registration of ACAP dataset class
  2028. Dataset class name/attribute prefix:
  2029. Purpose:
  2030. Published Specification(s):
  2031. (Standards track or IESG approved experimental RFC)
  2032. Person and email address to contact for further information:
  2033. 7.4. Vendor Subtree
  2034. Vendors may reserve a portion of the ACAP namespace for private use.
  2035. Dataset class names beginning with "vendor.<company/product name>."
  2036. are reserved for use by that company or product. In addition, all
  2037. attribute names beginning with "vendor.<company/product name>." are
  2038. reserved for use by that company or product once registered.
  2039. Registration is on a first come, first served basis. Whenever
  2040. possible, private attributes and dataset classes should be avoided in
  2041. favor of improving interoperable dataset class definitions.
  2042. Newman & Myers Standards Track [Page 51]
  2043. RFC 2244 ACAP November 1997
  2044. To: iana@iana.org
  2045. Subject: Registration of ACAP vendor subtree
  2046. Private Prefix: vendor.<company/product name>.
  2047. Person and email address to contact for further information:
  2048. (company names and addresses should be included when appropriate)
  2049. 8. Formal Syntax
  2050. The following syntax specification uses the augmented Backus-Naur
  2051. Form (BNF) notation as specified in [ABNF]. This uses the ABNF core
  2052. rules as specified in Appendix A of the ABNF specification [ABNF].
  2053. Except as noted otherwise, all alphabetic characters are
  2054. case-insensitive. The use of upper or lower case characters to
  2055. define token strings is for editorial clarity only. Implementations
  2056. MUST accept these strings in a case-insensitive fashion.
  2057. The "initial-greeting" rule below defines the initial ACAP greeting
  2058. from the server. The "command" rule below defines the syntax for
  2059. commands sent by the client. The "response" rule below defines the
  2060. syntax for responses sent by the server.
  2061. ATOM-CHAR = "!" / %x23-27 / %x2A-5B / %x5D-7A / %x7C-7E
  2062. ;; Any CHAR except ATOM-SPECIALS
  2063. ATOM-SPECIALS = "(" / ")" / "{" / SP / CTL / QUOTED-SPECIALS
  2064. CHAR = %x01-7F
  2065. DIGIT-NZ = %x31-39
  2066. ; non-zero digits ("1" - "9")
  2067. QUOTED-CHAR = SAFE-UTF8-CHAR / "\" QUOTED-SPECIALS
  2068. QUOTED-SPECIALS = <"> / "\"
  2069. SAFE-CHAR = %x01-09 / %x0B-0C / %x0E-21 /
  2070. %x23-5B / %x5D-7F
  2071. ;; any TEXT-CHAR except QUOTED-SPECIALS
  2072. SAFE-UTF8-CHAR = SAFE-CHAR / UTF8-2 / UTF8-3 / UTF8-4 /
  2073. UTF8-5 / UTF8-6
  2074. TAG-CHAR = %x21 / %x23-27 / %x2C-5B / %x5D-7A / %x7C-7E
  2075. ;; Any ATOM-CHAR except "*" or "+"
  2076. Newman & Myers Standards Track [Page 52]
  2077. RFC 2244 ACAP November 1997
  2078. TEXT-CHAR = %x01-09 / %x0B-0C / %x0E-7F
  2079. ;; any CHAR except CR and LF
  2080. TEXT-UTF8-CHAR = SAFE-UTF8-CHAR / QUOTED-SPECIALS
  2081. UTF8-1 = %x80-BF
  2082. UTF8-2 = %xC0-DF UTF8-1
  2083. UTF8-3 = %xE0-EF 2UTF8-1
  2084. UTF8-4 = %xF0-F7 3UTF8-1
  2085. UTF8-5 = %xF8-FB 4UTF8-1
  2086. UTF8-6 = %xFC-FD 5UTF8-1
  2087. UTF8-CHAR = TEXT-UTF8-CHAR / CR / LF
  2088. acl = "(" [acl-identrights *(SP acl-identrights)] ")"
  2089. *(SPACE acl-identrights)] ")"
  2090. acl-identifier = string-utf8
  2091. ;; MUST NOT contain HTAB
  2092. acl-identrights = string-utf8
  2093. ;; The identifier followed by a HTAB,
  2094. ;; followed by the rights.
  2095. acl-delobject = "(" dataset SP attribute [SP entry-name] ")"
  2096. acl-object = "(" dataset [SP attribute [SP entry-name]] ")"
  2097. acl-rights = quoted
  2098. atom = ALPHA *1023ATOM-CHAR
  2099. attribute = string-utf8
  2100. ;; dot-separated attribute name
  2101. ;; MUST NOT contain "*" or "%"
  2102. attribute-store = attribute SP (value-nildef /
  2103. "(" 1*(metadata-write-q SP value-store) ")")
  2104. ;; MUST NOT include the same metadata twice
  2105. auth-type = <"> auth-type-name <">
  2106. Newman & Myers Standards Track [Page 53]
  2107. RFC 2244 ACAP November 1997
  2108. auth-type-name = iana-token
  2109. ;; as defined in SASL [SASL]
  2110. command = tag SP (command-any / command-auth /
  2111. command-nonauth) CRLF
  2112. ;; Modal based on state
  2113. command-authent = "AUTHENTICATE" SP auth-type
  2114. [SP string] *(CRLF string)
  2115. command-any = "NOOP" / command-lang / "LOGOUT" /
  2116. command-extend
  2117. command-auth = command-delacl / command-dsince /
  2118. command-freectx / command-getquota /
  2119. command-lrights / command-myrights /
  2120. command-search / command-setacl /
  2121. command-store
  2122. ;; only valid in authenticated state
  2123. command-delacl = "DELETEACL" SP acl-delobject [SP acl-identifier]
  2124. command-dsince = "DELETEDSINCE" SP dataset SP time
  2125. command-extend = extend-token [SP extension-data]
  2126. command-freectx = "FREECONTEXT" SP context
  2127. command-getquota = "GETQUOTA" SP dataset
  2128. command-lang = "LANG" *(SP lang-tag)
  2129. command-lrights = "LISTRIGHTS" SP acl-object
  2130. command-myrights = "MYRIGHTS" SP acl-object
  2131. command-nonauth = command-authent
  2132. ;; only valid in non-authenticated state
  2133. command-search = "SEARCH" SP (dataset / context)
  2134. *(SP search-modifier) SP search-criteria
  2135. ;; MUST NOT include same search-modifier twice
  2136. command-setacl = "SETACL" SP acl-object SP acl-identifier
  2137. SP acl-rights
  2138. command-store = "STORE" SP store-entry-list
  2139. Newman & Myers Standards Track [Page 54]
  2140. RFC 2244 ACAP November 1997
  2141. comparator = <"> comparator-name <">
  2142. comparator-name = ["+" / "-"] iana-token
  2143. context = string-utf8
  2144. ;; MUST NOT begin with slash ("/")
  2145. dataset = string-utf8
  2146. ;; slash-separated dataset name
  2147. ;; begins with slash
  2148. entry = entry-name / entry-path
  2149. entry-name = string-utf8
  2150. ;; entry name MUST NOT contain slash
  2151. ;; MUST NOT begin with "."
  2152. entry-path = string-utf8
  2153. ;; slash-separated path to entry
  2154. ;; begins with slash
  2155. entry-relative = string-utf8
  2156. ;; potentially relative path to entry
  2157. extend-token = atom
  2158. ;; MUST be defined by a standards track or
  2159. ;; IESG approved experimental protocol extension
  2160. extension-data = extension-item *(SP extension-item)
  2161. extension-item = extend-token / string / number /
  2162. "(" [extension-data] ")"
  2163. iana-token = atom
  2164. ;; MUST be registered with IANA
  2165. initial-greeting = "*" SP "ACAP" *(SP "(" init-capability ")") CRLF
  2166. init-capability = init-cap-context / init-cap-extend /
  2167. init-cap-implem / init-cap-sasl
  2168. init-cap-context = "CONTEXTLIMIT" SP string
  2169. init-cap-extend = iana-token [SP string-list]
  2170. init-cap-implem = "IMPLEMENTATION" SP string
  2171. init-cap-sasl = "SASL" SP string-list
  2172. Newman & Myers Standards Track [Page 55]
  2173. RFC 2244 ACAP November 1997
  2174. lang-tag = <"> Language-Tag <">
  2175. ;; Language-Tag rule is defined in [LANG-TAGS]
  2176. literal = "{" number [ "+" ] "}" CRLF *OCTET
  2177. ;; The number represents the number of octets
  2178. ;; MUST be literal-utf8 except for values
  2179. literal-utf8 = "{" number [ "+" ] "}" CRLF *UTF8-CHAR
  2180. ;; The number represents the number of octets
  2181. ;; not the number of characters
  2182. metadata = attribute [ "(" metadata-type-list ")" ]
  2183. ;; attribute MAY end in "*" as wildcard.
  2184. metadata-list = metadata *(SP metadata)
  2185. metadata-type = "attribute" / "myrights" / "size" /
  2186. "count" / metadata-write
  2187. metadata-type-q = <"> metadata-type <">
  2188. metadata-type-list = metadata-type-q *(SP metadata-type-q)
  2189. metadata-write = "value" / "acl"
  2190. metadata-write-q = <"> metadata-write <">
  2191. nil = "NIL"
  2192. number = *DIGIT
  2193. ;; A 32-bit unsigned number.
  2194. ;; (0 <= n < 4,294,967,296)
  2195. nz-number = DIGIT-NZ *DIGIT
  2196. ;; A 32-bit unsigned non-zero number.
  2197. ;; (0 < n < 4,294,967,296)
  2198. position = number
  2199. ;; "0" if context is not enumerated
  2200. ;; otherwise this is non-zero
  2201. quota-limit = number
  2202. quota-usage = number
  2203. quoted = <"> *QUOTED-CHAR <">
  2204. ;; limited to 1024 octets between the <">s
  2205. Newman & Myers Standards Track [Page 56]
  2206. RFC 2244 ACAP November 1997
  2207. response = response-addto / response-alert / response-bye /
  2208. response-change / response-cont /
  2209. response-deleted / response-done /
  2210. response-entry / response-extend /
  2211. response-listr / response-lang /
  2212. response-mtimei / response-mtimeu /
  2213. response-myright / response-quota /
  2214. response-refer / response-remove / response-stat
  2215. response-addto = "*" SP "ADDTO" SP context SP entry-name
  2216. SP position SP return-data-list
  2217. response-alert = "*" SP "ALERT" SP resp-body CRLF
  2218. ;; Client MUST display alert text to user
  2219. response-bye = "*" SP "BYE" SP resp-body CRLF
  2220. ;; Server will disconnect condition
  2221. response-change = "*" SP "CHANGE" SP context SP entry-name
  2222. SP position SP position SP return-data-list
  2223. response-cont = "+" SP string
  2224. response-deleted = tag SP "DELETED" SP entry-name
  2225. response-done = tag SP resp-cond-state CRLF
  2226. response-entry = tag SP "ENTRY" SP entry SP return-data-list
  2227. response-extend = (tag / "*") SP extend-token [SP extension-data]
  2228. response-lang = "*" SP "LANG" SP lang-tag 1*(SP comparator)
  2229. response-listr = tag SP "LISTRIGHTS" SP acl-rights
  2230. *(SP acl-rights)
  2231. response-mtimei = tag SP "MODTIME" SP time
  2232. response-mtimeu = "*" SP "MODTIME" SP context SP time
  2233. response-myright = tag SP "MYRIGHTS" SP acl-rights
  2234. response-quota = "*" SP "QUOTA" SP dataset SP quota-limit
  2235. SP quota-usage [SP extension-data]
  2236. response-refer = tag SP "REFER" SP dataset
  2237. 1*(SP <"> url-relative <">)
  2238. Newman & Myers Standards Track [Page 57]
  2239. RFC 2244 ACAP November 1997
  2240. response-remove = "*" SP "REMOVEFROM" SP context SP
  2241. entry-name SP position
  2242. response-stat = "*" SP resp-cond-state CRLF
  2243. resp-body = ["(" resp-code ")" SP] quoted
  2244. resp-code = "AUTH-TOO-WEAK" / "ENCRYPT-NEEDED" /
  2245. resp-code-inval / resp-code-mod /
  2246. resp-code-noexist / resp-code-perm / "QUOTA" /
  2247. resp-code-refer / resp-code-sasl /
  2248. resp-code-toomany / "TOOOLD" /
  2249. "TRANSITION-NEEDED" / "TRYFREECONTEXT" /
  2250. "TRYLATER" / "WAYTOOMANY" / resp-code-ext
  2251. resp-code-ext = iana-token [SP extension-data]
  2252. ;; unknown codes MUST be tolerated by the client
  2253. resp-code-inval = "INVALID" 1*(SP entry-path SP attribute)
  2254. resp-code-mod = "MODIFIED" SP entry-path
  2255. resp-code-noexist = "NOEXIST" SP dataset
  2256. resp-code-perm = "PERMISSION" SP acl-object
  2257. resp-code-refer = "REFER" 1*(SP <"> url-relative <">)
  2258. resp-code-sasl = "SASL" SP string
  2259. resp-code-toomany = "TOOMANY" SP nz-number
  2260. resp-cond-state = ("OK" / "NO" / "BAD") SP resp-body
  2261. ;; Status condition
  2262. return-attr-list = "(" return-metalist *(SP return-metalist) ")"
  2263. ;; occurs when "*" in RETURN pattern on SEARCH
  2264. return-data = return-metadata / return-metalist /
  2265. return-attr-list
  2266. return-data-list = return-data *(SP return-data)
  2267. return-metalist = "(" return-metadata *(SP return-metadata) ")"
  2268. ;; occurs when multiple metadata items requested
  2269. return-metadata = nil / string / value-list / acl
  2270. Newman & Myers Standards Track [Page 58]
  2271. RFC 2244 ACAP November 1997
  2272. searchkey-equal = "EQUAL" SP attribute SP comparator SP value-nil
  2273. searchkey-comp = "COMPARE" SP attribute SP comparator SP value
  2274. searchkey-prefix = "PREFIX" SP attribute SP comparator SP value
  2275. searchkey-range = "RANGE" SP nz-number SP nz-number SP time
  2276. searchkey-strict = "COMPARESTRICT" SP attribute SP comparator
  2277. SP value
  2278. searchkey-substr = "SUBSTRING" SP attribute SP comparator SP value
  2279. searchmod-depth = "DEPTH" SP number
  2280. searchmod-hard = "HARDLIMIT" SP nz-number
  2281. searchmod-limit = "LIMIT" SP number SP number
  2282. searchmod-make = "MAKECONTEXT" [SP "ENUMERATE"]
  2283. [SP "NOTIFY"] SP context
  2284. searchmod-ninh = "NOINHERIT"
  2285. searchmod-return = "RETURN" SP "(" [metadata-list] ")"
  2286. searchmod-sort = "SORT" SP "(" sort-list ")"
  2287. search-criteria = "ALL" / searchkey-equal / searchkey-comp /
  2288. searchkey-strict / searchkey-range /
  2289. searchkey-prefix / searchkey-substr /
  2290. "NOT" SP search-criteria /
  2291. "OR" SP search-criteria SP search-criteria /
  2292. "AND" SP search-criteria SP search-criteria
  2293. search-modifier = searchmod-depth / searchmod-hard /
  2294. searchmod-limit / searchmod-make /
  2295. searchmod-ninh / searchmod-return /
  2296. searchmod-sort
  2297. sort-list = sort-item *(SP sort-item)
  2298. sort-item = attribute SP comparator
  2299. store-entry = "(" entry-path *(SP store-modifier)
  2300. *(SP attribute-store) ")"
  2301. ;; MUST NOT include same store-modifier twice
  2302. ;; MUST NOT include same attribute twice
  2303. Newman & Myers Standards Track [Page 59]
  2304. RFC 2244 ACAP November 1997
  2305. store-entry-list = store-entry *(SP store-entry)
  2306. ;; MUST NOT include same entry twice
  2307. store-modifier = store-mod-unchang / store-mod-nocreate
  2308. store-mod-nocreate = "NOCREATE"
  2309. store-mod-unchang = "UNCHANGEDSINCE" SP time
  2310. string = quoted / literal
  2311. string-list = string *(SP string)
  2312. string-utf8 = quoted / literal-utf8
  2313. tag = 1*32TAG-CHAR
  2314. time = <"> time-year time-month time-day time-hour
  2315. time-minute time-second time-subsecond <">
  2316. ;; Timestamp in UTC
  2317. time-day = 2DIGIT ;; 01-31
  2318. time-hour = 2DIGIT ;; 00-23
  2319. time-minute = 2DIGIT ;; 00-59
  2320. time-month = 2DIGIT ;; 01-12
  2321. time-second = 2DIGIT ;; 00-60
  2322. time-subsecond = *DIGIT
  2323. time-year = 4DIGIT
  2324. value = string
  2325. value-list = "(" [value *(SP value)] ")"
  2326. value-nil = value / nil
  2327. value-nildef = value-nil / "DEFAULT"
  2328. value-store = value-nildef / value-list / acl
  2329. url-acap = "acap://" url-server "/" url-enc-entry
  2330. [url-filter] [url-extension]
  2331. ;; url-enc-entry interpreted relative to "/"
  2332. Newman & Myers Standards Track [Page 60]
  2333. RFC 2244 ACAP November 1997
  2334. url-attr-list = url-enc-attr *("&" url-enc-attr)
  2335. url-auth = ";AUTH=" ("*" / url-enc-auth)
  2336. url-achar = uchar / "&" / "=" / "~"
  2337. ;; See RFC 1738 for definition of "uchar"
  2338. url-char = uchar / "=" / "~" / ":" / "@" / "/"
  2339. ;; See RFC 1738 for definition of "uchar"
  2340. url-enc-attr = 1*url-char
  2341. ;; encoded version of attribute name
  2342. url-enc-auth = 1*url-achar
  2343. ;; encoded version of auth-type-name above
  2344. url-enc-entry = 1*url-char
  2345. ;; encoded version of entry-relative above
  2346. url-enc-user = *url-achar
  2347. ;; encoded version of login userid
  2348. url-extension = *("?" 1*url-char)
  2349. url-filter = "?" url-attr-list
  2350. url-relative = url-acap / [url-enc-entry] [url-filter]
  2351. ;; url-enc-entry is relative to base URL
  2352. url-server = [url-enc-user [url-auth] "@"] hostport
  2353. ;; See RFC 1738 for definition of "hostport"
  2354. 9. Multi-lingual Considerations
  2355. The IAB charset workshop [IAB-CHARSET] came to a number of
  2356. conclusions which influenced the design of ACAP. The decision to use
  2357. UTF-8 as the character encoding scheme was based on that work. The
  2358. LANG command to negotiate a language for error messages is also
  2359. included.
  2360. Section 3.4.5 of the IAB charset workshop report states that there
  2361. should be a way to identify the natural language for human readable
  2362. strings. Several promising proposals have been made for use within
  2363. ACAP, but no clear consensus on a single method is apparent at this
  2364. stage. The following rules are likely to permit the addition of
  2365. multi-lingual support in the future:
  2366. Newman & Myers Standards Track [Page 61]
  2367. RFC 2244 ACAP November 1997
  2368. (1) A work in progress called Multi-Lingual String Format (MLSF)
  2369. proposes a layer on top of UTF-8 which uses otherwise illegal UTF-8
  2370. sequences to store language tags. In order to permit its addition to
  2371. a future version of this standard, client-side UTF-8 interpreters
  2372. MUST be able to silently ignore illegal multi-byte UTF-8 characters,
  2373. and treat illegal single-byte UTF-8 characters as end of string
  2374. markers. Servers, for the time being, MUST be able to silently
  2375. accept illegal UTF-8 characters, except in attribute names and entry
  2376. names. Clients MUST NOT send illegal UTF-8 characters to the server
  2377. unless a future standard changes this rule.
  2378. (2) There is a proposal to add language tags to Unicode. To support
  2379. this, servers MUST be able to store UTF-8 characters of up to 20 bits
  2380. of data.
  2381. (3) The metadata item "language" is reserved for future use.
  2382. 10. Security Considerations
  2383. The AUTHENTICATE command uses SASL [SASL] to provide basic
  2384. authentication, authorization, integrity and privacy services. This
  2385. is described in section 6.3.1.
  2386. When the CRAM-MD5 mechanism is used, the security considerations for
  2387. the CRAM-MD5 SASL mechanism [CRAM-MD5] apply. The CRAM-MD5 mechanism
  2388. is also susceptible to passive dictionary attacks. This means that
  2389. if an authentication session is recorded by a passive observer, that
  2390. observer can try common passwords through the CRAM-MD5 mechanism and
  2391. see if the results match. This attack is reduced by using hard to
  2392. guess passwords. Sites are encouraged to educate users and have the
  2393. password change service test candidate passwords against a
  2394. dictionary. ACAP implementations of CRAM-MD5 SHOULD permit passwords
  2395. of at least 64 characters in length.
  2396. ACAP protocol transactions are susceptible to passive observers or
  2397. man in the middle attacks which alter the data, unless the optional
  2398. encryption and integrity services of the AUTHENTICATE command are
  2399. enabled, or an external security mechanism is used for protection.
  2400. It may be useful to allow configuration of both clients and servers
  2401. to refuse to transfer sensitive information in the absence of strong
  2402. encryption.
  2403. ACAP access control lists provide fine grained authorization for
  2404. access to attributes. A number of related security issues are
  2405. described in section 3.5.
  2406. ACAP URLs have the same security considerations as IMAP URLs
  2407. [IMAP-URL].
  2408. Newman & Myers Standards Track [Page 62]
  2409. RFC 2244 ACAP November 1997
  2410. ACAP clients are encouraged to consider the security problems
  2411. involved with a lab computer situation. Specifically, a client cache
  2412. of ACAP configuration information MUST NOT allow access by an
  2413. unauthorized user. One way to assure this is for an ACAP client to
  2414. be able to completely flush any non-public cached configuration data
  2415. when a user leaves.
  2416. As laptop computers can be easily stolen and a cache of configuration
  2417. data may contain sensitive information, a disconnected mode ACAP
  2418. client may wish to encrypt and password protect cached configuration
  2419. information.
  2420. 11. Acknowledgments
  2421. Many thanks to the follow people who have contributed to ACAP over
  2422. the past four years: Wallace Colyer, Mark Crispin, Jack DeWinter, Rob
  2423. Earhart, Ned Freed, Randy Gellens, Terry Gray, J. S. Greenfield,
  2424. Steve Dorner, Steve Hole, Steve Hubert, Dave Roberts, Bart Schaefer,
  2425. Matt Wall and other participants of the IETF ACAP working group.
  2426. 12. Authors' Addresses
  2427. Chris Newman
  2428. Innosoft International, Inc.
  2429. 1050 Lakes Drive
  2430. West Covina, CA 91790 USA
  2431. Email: chris.newman@innosoft.com
  2432. John Gardiner Myers
  2433. Netscape Communications
  2434. 501 East Middlefield Road
  2435. Mail Stop MV-029
  2436. Mountain View, CA 94043
  2437. Email: jgmyers@netscape.com
  2438. Newman & Myers Standards Track [Page 63]
  2439. RFC 2244 ACAP November 1997
  2440. Appendices
  2441. A. References
  2442. [ABNF] Crocker, Overell, "Augmented BNF for Syntax Specifications:
  2443. ABNF", RFC 2234, Internet Mail Consortium, Demon Internet Ltd,
  2444. November 1997.
  2445. <ftp://ds.internic.net/rfc/rfc2234.txt>
  2446. [BASIC-URL] Berners-Lee, Masinter, McCahill, "Uniform Resource
  2447. Locators (URL)", RFC 1738, CERN, Xerox Coproration, University of
  2448. Minnesota, December 1994.
  2449. <ftp://ds.internic.net/rfc/rfc1738.txt>
  2450. [CHARSET-LANG-POLICY] Alvestrand, "IETF Policy on Character Sets and
  2451. Languages", work in progress.
  2452. [CRAM-MD5] Klensin, Catoe, Krumviede, "IMAP/POP AUTHorize Extension
  2453. for Simple Challenge/Response", RFC 2195, MCI, September 1997.
  2454. <ftp://ds.internic.net/rfc/rfc2195.txt>
  2455. [IAB-CHARSET] Weider, Preston, Simonsen, Alvestrand, Atkinson,
  2456. Crispin, Svanberg, "The Report of the IAB Character Set Workshop held
  2457. 29 February - 1 March, 1996", RFC 2130, April 1997.
  2458. <ftp://ds.internic.net/rfc/rfc2130.txt>
  2459. [IMAP4] Crispin, M., "Internet Message Access Protocol - Version
  2460. 4rev1", RFC 2060, University of Washington, December 1996.
  2461. <ftp://ds.internic.net/rfc/rfc2060.txt>
  2462. [IMAP-ACL] Myers, J., "IMAP4 ACL extension", RFC 2086, Carnegie
  2463. Mellon, January 1997.
  2464. <ftp://ds.internic.net/rfc/rfc2086.txt>
  2465. [IMAP-URL] Newman, "IMAP URL Scheme", RFC 2192, Innosoft, July 1997.
  2466. <ftp://ds.internic.net/rfc/rfc2192.txt>
  2467. [ISO-10646] ISO/IEC 10646-1:1993(E) "Information Technology--
  2468. Universal Multiple-octet Coded Character Set (UCS)." See also
  2469. amendments 1 through 7, plus editorial corrections.
  2470. Newman & Myers Standards Track [Page 64]
  2471. RFC 2244 ACAP November 1997
  2472. [ISO-C] "Programming languages -- C", ISO/IEC 9899:1990,
  2473. International Organization for Standardization. This is effectively
  2474. the same as ANSI C standard X3.159-1989.
  2475. [KEYWORDS] Bradner, "Key words for use in RFCs to Indicate
  2476. Requirement Levels", RFC 2119, Harvard University, March 1997.
  2477. <ftp://ds.internic.net/rfc/rfc2119.txt>
  2478. [LANG-TAGS] Alvestrand, H., "Tags for the Identification of
  2479. Languages", RFC 1766.
  2480. <ftp://ds.internic.net/rfc/rfc1766.txt>
  2481. [REL-URL] Fielding, "Relative Uniform Resource Locators", RFC 1808,
  2482. UC Irvine, June 1995.
  2483. <ftp://ds.internic.net/rfc/rfc1808.txt>
  2484. [SASL] Myers, J., "Simple Authentication and Security Layer (SASL)",
  2485. RFC 2222, Netscape Communications, October 1997.
  2486. <ftp://ds.internic.net/rfc/rfc2222.txt>
  2487. [SASL-ANON] Newman, C., "Anonymous SASL Mechanism", RFC 2245,
  2488. November 1997.
  2489. [UNICODE-2] The Unicode Consortium, "The Unicode Standard, Version
  2490. 2.0", Addison-Wesley, 1996. ISBN 0-201-48345-9.
  2491. [US-ASCII] "USA Standard Code for Information Interchange," X3.4.
  2492. American National Standards Institute: New York (1968).
  2493. [UTF8] Yergeau, F. "UTF-8, a transformation format of Unicode and ISO
  2494. 10646", RFC 2044, Alis Technologies, October 1996.
  2495. <ftp://ds.internic.net/rfc/rfc2044.txt>
  2496. Newman & Myers Standards Track [Page 65]
  2497. RFC 2244 ACAP November 1997
  2498. B. ACAP Keyword Index
  2499. ACAP (untagged response) ................................... 26
  2500. ADDTO (untagged response) .................................. 40
  2501. ALERT (untagged response) .................................. 31
  2502. ALL (search keyword) ....................................... 36
  2503. AND (search keyword) ....................................... 36
  2504. AUTH-TOO-WEAK (response code) .............................. 19
  2505. AUTHENTICATE (command) ..................................... 31
  2506. BAD (response) ............................................. 30
  2507. BYE (untagged response) .................................... 30
  2508. CHANGE (untagged response) ................................. 41
  2509. COMPARE (search keyword) ................................... 36
  2510. COMPARESTRICT (search keyword) ............................. 36
  2511. CONTEXTLIMIT (ACAP capability) ............................. 27
  2512. DELETEACL (command) ........................................ 46
  2513. DELETED (intermediate response) ............................ 45
  2514. DELETEDSINCE (command) ..................................... 45
  2515. DEPTH (search modifier) .................................... 34
  2516. ENCRYPT-NEEDED (response code) ............................. 19
  2517. ENTRY (intermediate response) .............................. 37
  2518. EQUAL (search keyword) ..................................... 37
  2519. FREECONTEXT (command) ...................................... 39
  2520. GETQUOTA (command) ......................................... 48
  2521. HARDLIMIT (search modifier) ................................ 34
  2522. IMPLEMENTATION (ACAP capability) ........................... 27
  2523. INVALID (response code) .................................... 19
  2524. LANG (command) ............................................. 28
  2525. LANG (intermediate response) ............................... 28
  2526. LIMIT (search modifier) .................................... 34
  2527. LISTRIGHTS (command) ....................................... 47
  2528. LISTRIGHTS (intermediate response) ......................... 48
  2529. LOGOUT (command) ........................................... 29
  2530. MAKECONTEXT (search modifier) .............................. 34
  2531. MODIFIED (response code) ................................... 19
  2532. MODTIME (intermediate response) ............................ 38
  2533. MODTIME (untagged response) ................................ 42
  2534. MYRIGHTS (command) ......................................... 47
  2535. MYRIGHTS (intermediate response) ........................... 47
  2536. NO (response) .............................................. 29
  2537. NOCREATE (store modifier) .................................. 44
  2538. NOEXIST (response code) .................................... 19
  2539. NOINHERIT (search modifier) ................................ 35
  2540. NOOP (command) ............................................. 27
  2541. NOT (search keyword) ....................................... 37
  2542. OK (response) .............................................. 29
  2543. OR (search keyword) ........................................ 37
  2544. PERMISSION (response code) ................................. 19
  2545. Newman & Myers Standards Track [Page 66]
  2546. RFC 2244 ACAP November 1997
  2547. PREFIX (search keyword) .................................... 37
  2548. QUOTA (response code) ...................................... 19
  2549. QUOTA (untagged response) .................................. 49
  2550. RANGE (search keyword) ..................................... 37
  2551. REFER (intermediate response) .............................. 38
  2552. REFER (response code) ...................................... 19
  2553. REMOVEFROM (untagged response) ............................. 41
  2554. RETURN (search modifier) ................................... 35
  2555. SASL (ACAP capability) ..................................... 27
  2556. SASL (response code) ....................................... 20
  2557. SEARCH (command) ........................................... 33
  2558. SETACL (command) ........................................... 46
  2559. SORT (search modifier) ..................................... 36
  2560. STORE (command) ............................................ 42
  2561. SUBSTRING (search keyword) ................................. 37
  2562. TOOMANY (response code) .................................... 20
  2563. TOOOLD (response code) ..................................... 20
  2564. TRANSITION-NEEDED (response code) .......................... 20
  2565. TRYFREECONTEXT (response code) ............................. 20
  2566. TRYLATER (response code) ................................... 20
  2567. UNCHANGEDSINCE (store modifier) ............................ 44
  2568. UPDATECONTEXT (command) .................................... 40
  2569. WAYTOOMANY (response code) ................................. 20
  2570. acl (attribute metadata) ................................... 12
  2571. anyone (ACL identifier) .................................... 17
  2572. attribute (attribute metadata) ............................. 12
  2573. dataset.acl (dataset attribute) ............................ 24
  2574. dataset.acl.<attribute> (dataset attribute) ................ 24
  2575. dataset.inherit (dataset attribute) ........................ 24
  2576. entry (predefined attribute) ............................... 11
  2577. i;ascii-casemap (comparator) ............................... 16
  2578. i;ascii-numeric (comparator) ............................... 16
  2579. i;octet (comparator) ....................................... 16
  2580. modtime (predefined attribute) ............................. 11
  2581. myrights (attribute metadata) .............................. 12
  2582. size (attribute metadata) .................................. 13
  2583. subdataset (predefined attribute) .......................... 11
  2584. value (attribute metadata) ................................. 13
  2585. Newman & Myers Standards Track [Page 67]
  2586. RFC 2244 ACAP November 1997
  2587. C. Full Copyright Statement
  2588. Copyright (C) The Internet Society 1997. All Rights Reserved.
  2589. This document and translations of it may be copied and furnished to
  2590. others, and derivative works that comment on or otherwise explain it
  2591. or assist in its implmentation may be prepared, copied, published and
  2592. distributed, in whole or in part, without restriction of any kind,
  2593. provided that the above copyright notice and this paragraph are
  2594. included on all such copies and derivative works. However, this
  2595. document itself may not be modified in any way, such as by removing
  2596. the copyright notice or references to the Internet Society or other
  2597. Internet organizations, except as needed for the purpose of developing
  2598. Internet standards in which case the procedures for copyrights defined
  2599. in the Internet Standards process must be followed, or as required to
  2600. translate it into languages other than English.
  2601. The limited permissions granted above are perpetual and will not be
  2602. revoked by the Internet Society or its successors or assigns.
  2603. This document and the information contained herein is provided on an
  2604. "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
  2605. TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
  2606. NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN
  2607. WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
  2608. MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
  2609. Newman & Myers Standards Track [Page 68]