Modifies entries in the local database of RADIUS user-authentication information.
raddbm [ -a Command ] [ -d Database_filename ] [ -e EAP_type ] [ -i Config_filename ] [ -l Load_filename] [ -n ] [ -p ] [ -t pwd_expire_wks ] [ -u User_ID ] [ -w ]
The raddbm command is used to create and modify a local database of user-authentication information. The RADIUS server can be configured to use this database as the source of information it uses to authenticate users.
The local database is stored in a file. Data in the file is in a binary tree format to make searches faster. The database file name is specified in the RADIUS /etc/radius/radiusd.conf configuration file and has the default value of dbdata.bin. You can modify the file name by editing radiusd.conf through SMIT.
Item | Description |
---|---|
USERID | Specifies the user's ID. |
PASSWORD | Specifies the user's password. |
PASSWORD_EXPIRATION | Specifies the password expiration time in number of weeks. |
EAP_TYPE | Specifies the EAP type allowed for authentication. |
Passwords in the database file are not stored in clear text in order to prevent simple password compromise, but the algorithm used to hide the passwords is not considered to be cryptographically secure. The file, dbdata.bin, is protected by root: security as the owner and group.
raddbm -a ADD -u User_ID -e EAP_type -t pwd_expire_wks
The -e and -t flags are optional. If no value for the -e flag is entered, the default value of none is used for EAP_TYPE, meaning EAP packets are ignored for this user. If no value for the -t flag is entered, the default value of 0 is used for PASSWORD_EXPIRATION, meaning that password expiration is never checked. The -p flag is optional since the raddbm command always prompts for a new password when adding a new user.
raddbm -a CHANGE -u User_ID -p -e EAP_type -t pwd_expire_wks
raddbm -a DELETE -u User_ID
raddbm -a LIST
raddbm -a LIST -u User_ID
raddbm -a LIST -u User_ID -w
The -w and -u flags are optional. If the -w flag is specified, all fields in the user's entry are displayed (except the password, which for security reasons is never displayed).
If the -u flag is specified, the user's information is displayed in colon-separated format. If the -u flag is not specified, all entries in the database are displayed in column format.
raddbm -a ADD -u User_ID -e EAP_type -t pwd_expire_wks -n
The user's password is prompted from standard input.
The -e and -t flags are optional. They default to EAP_type=NONE and no password expiration checking.
"userid" "password"
The
double quotes must be present.raddbm -l filename
Placing
user passwords in plain text format in a file is strongly discouraged.
This option is provided mainly for testing purposes.Item | Description |
---|---|
? | Displays the help screen. |
-a Command | Specifies the action to perform. Values are ADD, LIST, DELETE, or CHANGE. |
-d Database_filename | Specifies the database file name. Used to override the default database file specified in the radiusd.conf RADIUS configuration file. |
-e EAP_type | Specifies the EAP type the user is allowed to use for authentication. Currently, only EAP-TLS, MD5-challenge, or none is supported. The default is none. |
-i Config_filename | Specifies the RADIUS configuration file name. Used to override the default /etc/radius/radiusd.conf configuration file . |
-l Load_filename | Specifies the file name of the user name and password file to load. |
-n | Creates a new database file. Valid only with the ADD command option. If this option is used, all previous information in the database is lost. |
-p | Indicates that the user's password is to be changed. For security reasons, the password is prompted from standard input instead of read from the command line. |
-t pwd_expire_wks | Specifies the number of weeks the user's password is valid. This flag is valid with the ADD and CHANGE commands. The default is 0, indicating no password expiration. Valid values are from 0 to 52. |
-u User_ID | Specifies the user's ID. A valid user ID must be less than 253 characters in length, and can contain letters, numbers, and some special characters. It cannot contain blanks. Duplicate user IDs are not allowed. |
-w | Generates a long listing of user information. |
This command has the following exit values:
Item | Description |
---|---|
0 | The command completed successfully. |
>0 | An error occurred. |
Only the root user or a member of the security group can execute this command.
raddbm -a ADD -u user01 -n
raddbm -a ADD -u user01
The
default values of EAP_TYPE = "none" and PASSWORD_EXPIRATION = "0"
are used.raddbm -a DELETE -u user01
raddbm -a CHANGE -u user01 -p
The
command prompts for the new password.raddbm -a LIST -w
Passwords
are not displayed.raddbm -a LIST -u user01 -w
"userid" "password"
Then
type the following: raddbm -l Load_filename
The RADIUS daemon must be stopped before the raddbm command is run. Use the radiusctl stop command to stop the daemon. After you have modified the database, restart the daemon with the radiusctl start command.
This command is part of the radius.base fileset.
/usr/radius/bin/raddbm
For security reasons, when a user is added to the database, the user's password is read from standard input instead of from the command line.
If the call to the raddbm command fails, an information message is written to standard error.
Item | Description |
---|---|
/usr/radius/bin/raddbm | Location of the raddbm command. |
/etc/radius/raddbm.bin | The default database file as specified in the radiusd.conf file. |
/etc/radius/radiusd.conf | Specifies the RADIUS configuration values, including the default database file name. |