YaST2 Developers Documentation: novell-common

novell-common

modules/NovellValidatorsLUM.ycp
Novell validation routines

This module has an unstable interface.

Imports

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

Global Functions

global ValidatePasswords (string pw1, string pw2) -> boolean

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

Parameters:
pw1
pw2
global ValidatePassword (string pw1) -> boolean

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

Parameters:
pw1
global ValidatePort (integer port) -> boolean

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

Parameters:
port
global ValidateFDN (string name, boolean optional) -> boolean

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

Parameters:
name
optional
global ValidateContext (string name) -> boolean

Validate Context

Parameters:
name
global ValidateCredentials (string userName, string password, string ip, integer port, boolean doFeedback) -> integer

Validate credentials

Parameters:
userName
password
ip
port
doFeedback
global ValidateIPMsg (string ip, string msg) -> boolean

Validate IP address

Parameters:
ip
msg
global ValidateIP (string ip) -> boolean

Validate IP address

Parameters:
ip
global ValidateDNSorIP (string ip) -> boolean

Validate DNS or IP address

Parameters:
ip