174. NovellValidatorsLUM

Novell validation routines

174.1. Authors

  • Stephen T. Bunch <sbunch@novell.com>

174.2. Summary of Module Globals

List of Global Functions

  • ValidateContext - Validate Context

  • ValidateCredentials - Validate credentials

  • ValidateDNSorIP - Validate DNS or IP address

  • ValidateFDN - Validate FDN. If the name is optional pass in 'true' as the second param, otherwise pass in 'false'. In some cases we allow an optional name, in others the name is manditory. Returns true if the fully distiguished name is valid, else false

  • ValidateIP - Validate IP address

  • ValidateIPMsg - Validate IP address

  • ValidatePassword - Validate password Returns true if the password is valid, else false

  • ValidatePasswords - Validate passwords Returns true if the passwords are valid and match, else false

  • ValidatePort - Validate port, is it a valid number and is it already in use. Displays an warning to the user if the port is in use. Returns true if the port is valid, else false

List of Global Variables

    174.3. Global Functions

    174.3.1. ValidateContext

    Validate Context

    Function parameters

    • string name

    Return value

    • boolean

    174.3.2. ValidateCredentials

    Validate credentials

    Function parameters

    • string userName

    • string password

    • string ip

    • integer port

    • boolean doFeedback

    Return value

    • integer

    174.3.3. ValidateDNSorIP

    Validate DNS or IP address

    Function parameters

    • string ip

    Return value

    • boolean

    174.3.4. ValidateFDN

    Validate FDN. If the name is optional pass in 'true' as the second param, otherwise pass in 'false'. In some cases we allow an optional name, in others the name is manditory. Returns true if the fully distiguished name is valid, else false

    Function parameters

    • string name

    • boolean optional

    Return value

    • boolean

    174.3.5. ValidateIP

    Validate IP address

    Function parameters

    • string ip

    Return value

    • boolean

    174.3.6. ValidateIPMsg

    Validate IP address

    Function parameters

    • string ip

    • string msg

    Return value

    • boolean

    174.3.7. ValidatePassword

    Validate password Returns true if the password is valid, else false

    Function parameters

    • string pw1

    Return value

    • boolean

    174.3.8. ValidatePasswords

    Validate passwords Returns true if the passwords are valid and match, else false

    Function parameters

    • string pw1

    • string pw2

    Return value

    • boolean

    174.3.9. ValidatePort

    Validate port, is it a valid number and is it already in use. Displays an warning to the user if the port is in use. Returns true if the port is valid, else false

    Function parameters

    • integer port

    Return value

    • boolean

    174.4. Global Variables

    174.5. Module Requirements

    174.5.1. Module Imports

    • Address
    • IP
    • NovellUtilsLUM
    • Popup
    • Report
    • String

    174.5.2. Module Includes