Table 29-1. Encryption Constants
Name | Value | Description |
---|---|---|
FILE_PASSWD_DES | "des" | DES encryption |
FILE_PASSWD_MD5 | "md5" | MD5 encryption |
FILE_PASSWD_SHA | "sha" | SHA encryption |
FILE_PASSWD_NT | "nt" | NT hash |
FILE_PASSWD_LM | "lm" | LM hash |
FILE_PASSWD_PLAIN | "plain" | no encryption |
Table 29-2. Error Constants
Name | Value | Description |
---|---|---|
FILE_PASSWD_E_UNDEFINED | 0 | undefined - some seldom occuring errors |
FILE_PASSWD_E_INVALID_FORMAT | 1 | passwd file has invalid format |
FILE_PASSWD_E_INVALID_PROPERTY | 2 | an invalid (additional) property was supplied |
FILE_PASSWD_E_INVALID_CHARS | 3 | parameter contains illegal chracters (usually only alphanumerics, the dash and underline are allowed) |
FILE_PASSWD_E_INVALID_ENC_MODE | 4 | an invalid encryption mode was supplied (depending on the class actually used) |
FILE_PASSWD_E_EXISTS_ALREADY | 5 | an entry (user, group, etc) to add exists already |
FILE_PASSWD_E_EXISTS_NOT | 6 | an entry (user, group, etc) to delete/change doesn't exist |
FILE_PASSWD_E_USER_NOT_IN_GROUP | 7 | the specified user is not in this certain group |
FILE_PASSWD_E_USER_NOT_IN_REALM | 8 | the specified user is not in this certain realm |
FILE_PASSWD_E_PARAM_MUST_BE_ARRAY | 9 | the supplied param must be of type array |
FILE_PASSWD_E_METHOD_NOT_IMPLEMENTED | 10 | requested method was not implemented yet |
FILE_PASSWD_E_DIR_NOT_CREATED | 11 | a certain directory couldn't be created |
FILE_PASSWD_E_FILE_NOT_OPENED | 12 | passwd file couldn't be opened |
FILE_PASSWD_E_FILE_NOT_LOCKED | 13 | passwd file couldn't be locked |
FILE_PASSWD_E_FILE_NOT_UNLOCKED | 14 | passwd file couldn't be unlocked |
FILE_PASSWD_E_FILE_NOT_CLOSED | 15 | passwd file couldn't be closed |