⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 standard.draft

📁 radius server在linux下的源码
💻 DRAFT
字号:
						Vladimir Dubrovin						vlad@sandy.ruSANDY RADIUS Attributes for Mail Authorization and Authentication.Status of this document:This document is a draft for corporate standard for SANDYhttp://www.sandy.ruPermissions to use:You can use this document as is. Any attributes are subject to change infuture untill document status is draft.If you have any comments or suggestions feel free to contactvlad@sandy.ruVendor Code (PEN): 11406 (SANDY)Attributes            Sandy-Mail-Service,           Sandy-Mail-Authtype,Sandy-Mail-Challenge,  Sandy-Mail-Response MAY present in Access-RequestRADIUS packet. The rest of packets MAY present in SUCCESS response.Note: Microsoft implemented NTLM authentication for many mail protocols.SANDY   doesn't   any   special   attributes   for   NTLM  because  NTLMauthentication  can  be  done by implementing MS-CHAP authentication viaRADIUS.  MS-CHAP authentication in RADIUS is covered by RFC 2433 and RFC2458.1. Attribute: Sandy-Mail-ServiceVendor-Type: 100Vendor-Length: 4Type: integer.This  attributes  enumerates possible mail services. This attribute MUSTpresent  in  all  requests to RADIUS server from RADIUS client regardingmail authentication. Possible values:   Transfer        1   Delivery        2   POP             3   IMAP            4   WEBMAIL         5   Control         6Transfer   -   for   mail  transfer  (SMTP  for  example).  MAY  requireauthentication (either clear text/PAP or CRAM-MD5 or NTLM).Delivery - for mail delivery, for example mail.local. SHOULD NOT requireauthentication, only authorization required for user.POP  -  POP2/POP3  access.  MUST  require authentication (cleartext/PAP,APOP, CRAM-MD5 or NTLM).IMAP  -  IMAP2/IMAP4 access. MUST require authentication (cleartext/PAP,CRAM-MD5 or NTLM).WEBMAIL  - access via webmail. MUST require authentication (cleartext orNTLM).Control - account control access (for example Eudora-compatible passwordchange or setting of user-defined filters).2. Attribute: Sandy-Mail-AuthtypeVendor-Type: 101Vendor-Length: 4Type: IntegerThis  attribute  shows  a  type  of  authentication requested by client.It SHOULD be used in all Authentication Request packets from NAS.Possible values:   NONE            0   PLAIN           1   CRAM-MD5        2   APOP            3   KRB4            4   KRB5            5   NTLM            6   NTLM2           7   CRAM-MD4        8   CRAM-SHA1       9NONE  -  client  doesn't do authentication. This is valid in conjunctionwith Transfer and Delivery Sandy-Mail-Service attributes.PLAIN - authentication via cleartext (PAP).CRAM-MD5 - RFC2104/RFC2195/RFC2554 CRAM-MD5 authenticationAPOP - RFC 1939 APOP authenticationKRB4 - (reserved) Kerberos V4 authenticationKRB5 - (reserved) Kerberos V5 authenticationNTLM  -  Microsoft  NTLM  v1  authentication.  SHOULD  be implemented as         MS-CHAP v1 (RFC2433/RFC2458)NTLM2   -   (reserved)  Microsoft  NTLM  v2  authentication.  SHOULD  be        implemented as MS-CHAP v2 (RFC2759/RFC2458)CRAM-MD4 - MD4 digest authenticationCRAM-SHA1 - SHA1 digest authentication3. Attribute: Sandy-Mail-ChallengeVendor-Type: 102Vendor-Length: >2Type: StringChallenge for challenge-response (APOP, CRAM-MD5) authentication4. Attribute: Sandy-Mail-ResponseVendor-Type: 103Vendor-Length: >2Type: OctetsResponse to challenge-response (APOP, CRAM-MD5) authentication5. Sandy-Mail-AddressVendor-Type: 104Vendor-Length: >2Type: OctetsE-mail  address.  It  MAY  be used to show destination e-mail address onTransfer  and  source e-mail address on Delivery request and in reply toWEBMAIL request.6. Sandy-Mail-SpamcontrolVendor-Type: 105Vendor-Length: 4Type: Integerbit-masked value to show which spam-control mechanism SHOULD be used foruser account. It MAY be used in reply to Transfer or Delivery request.Special values: NONE          0 ALL           0xFFFFFFFFAll other values are are obtained by XORing this values: Relaying         1 IPResolve        2 Helo             4 BlackList        6 WhiteList        16 RBL              32 MailFrom         64 SrcDomain        128 DstDomain        256 Content          512First  16  bits  (values  > 0x0000FFFF) can be used for implementation -specific mechanisms. NONE - no check. Any kind of relaying allowed Ralaying - (for Transfer) - check unauthorized relaying attempts IPResolv - (for Transfer) - check source IP address to resolve in DNS Helo - (for Transfer) check resolution of name in SMTP HELO command BlackList - check in the BlackList WhiteList - check in WhiteList RBL - (for Transfer) turn on RBL-like checks MailFrom - (for Transfer) check existence of Mail From: address SrcDomain - check existence of source domain DstDinain - check existence of destination domain Content - turn on content filtering ALL - do all possible checks7. Attribute: Sandy-Mail-NotificationVendor-Type: 106Vendor-Length: >2Type: OctetsThis  attribute  can  be  used  to notify user on new mail received (forexample   via   SMS).   It   MAY   be   used  in  response  to  DeliverySandy-Mail-Service.  Value  of  this  attribute  is fully implementationspecific and may be divided into subfields.8. Attribute: Sandy-Mail-BoxVendor-Type: 107Vendor-Length: >2Type: StringThis attribute shows location of user's mailbox. It can also be used forredirection  of  all messages to another address, program, etc. Value ofthis  attribute  is  implementation  specific,  but  sendmail  syntax isrecommended though (that is first symbol defines a type of destination -'|'  -  program, '>' - file, etc). This attribute MAY be used in repliesFirst  16  bits  (values  > 0x0000FFFF) can be used for implementation -specific mechanisms. to Delivery request.9. Attribute: Sandy-Mail-QuotaVendor-Type: 108Vendor-Length: 4Type: IntegerContains  a  quota  for user's mailbox size in octets. It MAY be used inreply to Delivery request.10. Attribute: Sandy-Mail-FilterVendor-Type: 109Vendor-Length: >5Type: OctetsThis complex attribute contains of 3 parts - Filter-Name, Parameter-Nameand  Parameter-Value. Each part consists of 1 octet which shows a lengthof  the  part  followed  by  content of the part. It's used to configureuser-defined    filters    (for   automatic   forwarding,   replies   oruser-controlled  content  filtering). A single RADIUS packet MAY containmultiple Sandy-Mail-Filter attributes.Example:This Sandy-Mail-Filter sets DESTINATION parameter for 'forward' filter.106* 33* 7* forward 11* DESTINATION 13* vlad@sandy.ru106* - Vendor-Type 33* - Vendor-Length ( 1 + 7 + 1 + 11 + 1 + 13)  7* - strlen("forward") 11* - strlen("DESTINATION") 13* - strlen("vlad@sandy.ru")11. Attribute: Sandy-Mail-Box-ControlVendor-Type: 110Vendor-Length: 4Type: Integerbit-masked value to show which control mechanism SHOULD be used for useraccount.  It  MAY  be  used  in  reply  to POP, IMAP, WEBMAIL or Controlrequest.   First   16  bits  (values  >  0x0000FFFF)  can  be  used  forimplementation - specific mechanisms. Values: Delete-Messages   1 Keep-Sent         2 Read-Only         4Delete-Messages  -  delete messages immediately after user retrieval (donot allow user to store his mail on server).Keep-Sent - save all sent messages in Sent folder (for Webmail)Read-Only  -  allow  read  only access to user's account (for example tochare account among multiple users).

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -