7.1.1. User-Password, Password Previous topic Parent topic Child topic Next topic

A (usually) plaintext password. Passes only if the given password matches that sent in the Access-Request. If CHAP-Password attribute appears in the request then CHAP authentication will be attempted. If MS-CHAP-Challenge and MS-CHAP-Response attributes appears in the request then MSCHAP authentication will be attempted. CHAP and MSCHAP authentication is only supported with plaintext or Rcrypt encrypted passwords. You may user either Password or User-Password as the attribute name, the effect is the same.
Radiator also supports HTTP Digest password authentication with plaintext passwords. Digest authentication is supported by some web servers (e.g. Apache) and some web proxies (e.g. squid). You can add RADIUS Digest authentication to Apache with the Apache-AuthenRadius-0.3 module, and a patch available from Open System Consultants.
User-Password can be in a number of formats, not necessarily in plaintext. Radiator looks for some special format passwords and interprets them as special encryptions. The following formats are supported, along with example versions of the password "fred".
  • Standard Unix crypt.This format is also compatible with Unix password encryption as used in Netscape LDAP server. Passwords starting with a leading {crypt} or {CRYPT} are interpreted as a standard Unix crypt password, using the native version of crypt() on your platform.
    User-Password = {crypt}1xMKc0GIVUNbE
  • Linux MD5 password hashing. Passwords starting with "$1$" are interpreted as hashed with Linux MD5 password hashing.
    User-Password = $1$cTpht$Obu9PLSMst1TDou.mN5bk0
  • Linux SHA256 and SHA512 crypt. Passwords starting with “$5$” or “$6$” are interpreted as hashed with Linux SHA256 or SHA512 password hashing, respectively.
    User-Password =
    User-Password = $6$cTpht$Z2pSYxleRWK8IrsynFzHcrnPlpUhA7N9AM/
  • Linux Blowfish crypt. Passwords starting with $2a$, $2x$ or $2y$ are interpreted as hashed with Linux Blowfish password hashing. Support for these algorithms depends on the system crypt() implementation support. See the system documentation on crypt() about caveats with these hashes.
  • Netscape SHA password hashing as used in Netscape LDAP server. Passwords starting with {SHA}, {SSHA}, {sha}, or {ssha} are interpreted as being hashed with Netscape SHA hashing. (Requires Digest-SHA version 5.0 or later, and also Mime::Base64 from MIME-Base64-2.11.tar.gz).
    User-Password = {SHA}MQF6ciZl5K/OWGlQ9ClEptMx2r8=
    User-Password = {SSHA}k1qAjger6rE9fhCrig+QPZ/HTrJhYWE=
  • SHA-2 hashes SHA 256, 384 and 512. These are similar to {SHA} and {SSHA} above. See goodies/sha.pl and goodies/ssha.pl for a utility to generate hashes.
    User-Password =
    User-Password =
    User-Password ={SHA384}QoAkviNtBCtNyjN+yAkEEL6ChjtUVFKDTKHrIlx/
    User-Password =
    User-Password = {SHA512}NWbDPDXFm6JYe6wqgVJs8z6gkoER7Z4WFqpD/
    User-Password =
  • MD5 Hex digest. Passwords starting with {MD5} or {md5}. Note that all hex digits are required to be lower case.
    User-Password = "{MD5}570a90bfbf8c7eab5dc5d4e26832d5b1"
  • MD5 with Mime, as used in some other LDAP servers.
    User-Password = "{MD5}qP0OV/oViFka8YbFMWEWeg=="
  • Rcrypt reversibly encrypted passwords. This reversible encryption format depends on a secret key. Radiator includes a reusable code module (Radius::Rcrypt) with encrypt and decrypt routines that you can call from third party programs. Rcrypt passwords require that you define the RcryptKey attribute in the AuthBy clause. The leading string can be {rcrypt} or {RCRYPT}.
    User-Password = "{rcrypt}nYXkJKLrxm/e3RfU0aT7w4al"
  • A predigested hex MD5 signature of the concatenation of the user name, a realm and the correct password. This is only valid for Digest and SIP authentication. In this example, the user name is "mikem", the realm is "open.com.au" and the correct password is "fred".
    User-Password = \
  • MySQL hashed password, as produced by the MySQL password() function.
    User-Password = "{mysql}0569ef75321b8fed"
  • MD5 hashed password in the format used by old Netscape Mail Servers.
  • A Django style password. For more information, see User authentication in Django Opens in new window
    User-Password =\
    User-Password = "md5$a1976$e67d1ca20e9c28321b86e34076cc48ab"
  • DEC Hashed Password as used by DEC VMS and maybe others. Contains the algorithm type number, a salt and the hashed password, separated by vertical bars. The valid algorithm numbers are 1 (PURDY), 2 (PURDY_V) or 3 (PURDY_S) The hashed password depends on the user name as well as the algorithm and salt, so the hashed passwords are not portable between users. In VMS, user names are by convention all uppercase, and passwords are case sensitive. In this example for user name MIKEM, the algorithm type number is 3 (PURDY_S), the salt is 1234, and the hashed password (fred) is 85ad61e72a41dec4.
    User-Password = {dechpwd}3|1234|85ad61e72a41dec4
  • An NT Hashed Password, as used by Microsoft, Samba and others. This format is compatible with Samba SMB passwords (either in a flat file or in LDAP). Such password hashes can be generated with the Samba mkntpwd program.
    User-Password = {nthash}DCB8E94AC7D0AADC8A81D9C895ACE5F4
  • A password encrypted with the Microsoft SQL pwdencrypt() function. Passwords encrypted with pwdencrypt() are case insensitive. Requires Digest::SHA module. Note that the encrypted password produced by pwdencrypt() is a 46 octet binary string. Radiator recognises the encrypted password as either 46 octets of binary or 92 octets of ASCII Hex characters. You can use the MS SQL ‘+’ string concatenation operator to prepend the ‘{mssql}’ to the encrypted password, e.g.
    select '{mssql}' + password, ..... from .....
    User-Password =
  • A flagged plaintext password.
    User-Password = {clear}fred
  • A PBKDF2 (Password-Based Key Derivation Function 2) derived password. Radiator currently supports password derivation with Pseudo Random Function (PRF) HMAC-SHA1 and the following password format (PRF:rounds:salt:hash). See goodies/pbkdf2.pl for the format details. Requires Digest::HMAC_SHA1 and MIME::Base64.
    User-Password = {PBKDF2}HMACSHA1:
  • Custom format for CheckPasswordHook. For more information, see Section 3.26.26. CheckPasswordHook.
    User-Password = {OSC-pw-hook}.......
  • Plaintext. Any other format is interpreted as a plain text password.
    User-Password = fred
    User-Password = "password with spaces"