__construct()
check_Passwd()
getAccessLevel()
getHttpAuthentication()
getLamProMailFrom()
getLamProMailIsHTML()
getLamProMailReplyTo()
getLamProMailSubject()
getLamProMailText()
getLoginMethod()
getLoginSearchDN()
getLoginSearchFilter()
getLoginSearchPassword()
getLoginSearchSuffix()
getName()
getPath()
getToolSettings()
getUseTLS()
get_AccountModules()
get_ActiveTypes()
get_Admins()
get_Adminstring()
get_ServerURL()
get_Suffix()
get_cacheTimeout()
get_cacheTimeoutSec()
get_defaultLanguage()
get_listAttributes()
get_moduleSettings()
get_scriptPath()
get_scriptRights()
get_scriptServers()
get_searchLimit()
get_typeSettings()
isWritable()
save()
setAccessLevel()
setHttpAuthentication()
setLamProMailFrom()
setLamProMailIsHTML()
setLamProMailReplyTo()
setLamProMailSubject()
setLamProMailText()
setLoginMethod()
setLoginSearchDN()
setLoginSearchFilter()
setLoginSearchPassword()
setLoginSearchSuffix()
setToolSettings()
setUseTLS()
set_AccountModules()
set_ActiveTypes()
set_Adminstring()
set_Passwd()
set_ServerURL()
set_Suffix()
set_cacheTimeout()
set_defaultLanguage()
set_listAttributes()
set_moduleSettings()
set_scriptPath()
set_scriptRights()
set_scriptServers()
set_searchLimit()
set_typeSettings()
hashPassword()
reload()
$Admins
$Passwd
$ServerURL
$accessLevel
$activeTypes
$cachetimeout
$defaultLanguage
$file
$httpAuthentication
$lamProMailFrom
$lamProMailIsHTML
$lamProMailReplyTo
$lamProMailSubject
$lamProMailText
$loginMethod
$loginSearchDN
$loginSearchFilter
$loginSearchPassword
$loginSearchSuffix
$moduleSettings
$scriptPath
$scriptRights
$scriptServer
$searchLimit
$settings
$toolSettings
$treesuffix
$typeSettings
$useTLS
ACCESS_ALL
ACCESS_PASSWORD_CHANGE
ACCESS_READ_ONLY
LINE_SEPARATOR
LOGIN_LIST
LOGIN_SEARCH
SAVE_FAIL
SAVE_OK
This class manages .conf files.
package | configuration |
---|
__construct(String $file)
String
file name without ".conf" (e.g. lam)
check_Passwd(String $password) : boolean
String
boolean
true, if matchesgetAccessLevel() : int
int
levelgetHttpAuthentication() : String
String
$httpAuthentication use HTTP authentication ('true' or 'false')getLamProMailFrom() : String
String
mail addressgetLamProMailIsHTML() : boolean
boolean
HTML or textgetLamProMailReplyTo() : String
String
mail addressgetLamProMailSubject() : String
String
subjectgetLamProMailText() : String
String
bodygetLoginMethod() : String
see | \global\LAMconfig::LOGIN_LIST |
---|---|
see | \global\LAMconfig::LOGIN_SEARCH |
String
login methodgetLoginSearchDN() : String
String
DNgetLoginSearchFilter() : String
String
search filtergetLoginSearchPassword() : String
String
passwordgetLoginSearchSuffix() : String
String
suffixgetName() : String
String
namegetPath() : string
string
path on filesystemgetToolSettings() : array
array
$toolSettings tool settingsgetUseTLS() : String
String
yes or noget_AccountModules(string $scope) : array
string
account type
array
user modulesget_ActiveTypes() : array
array
list of typesget_Admins() : array
array
the admin namesget_Adminstring() : string
string
the admin stringget_ServerURL() : string
string
server addressget_Suffix(string $scope) : string
string
account type
string
the LDAP suffixget_cacheTimeout() : integer
integer
cache timeget_cacheTimeoutSec() : integer
integer
cache timeget_defaultLanguage() : string
string
default languageget_listAttributes(string $scope) : string
string
account type
string
the attribute listget_moduleSettings() : array
array
list of settings: array(name => value)get_scriptPath() : string
string
script pathget_scriptRights() : string
string
rightsget_scriptServers() : string
string
script serversget_searchLimit() : integer
integer
search limitget_typeSettings() : array
array
list of settings: array(name => value)isWritable() : boolean
boolean
true if file is writablesave()
setAccessLevel(int $level)
int
level
setHttpAuthentication(String $httpAuthentication)
String
use HTTP authentication ('true' or 'false')
setLamProMailFrom(String $lamProMailFrom) : boolean
String
mail address
boolean
true if address is validsetLamProMailIsHTML(boolean $lamProMailIsHTML)
boolean
setLamProMailReplyTo(String $lamProMailReplyTo) : boolean
String
mail address
boolean
true if address is validsetLamProMailSubject(String $lamProMailSubject)
String
subject
setLamProMailText(String $lamProMailText)
String
body
setLoginMethod(String $loginMethod)
String
setLoginSearchDN(String $loginSearchDN) : boolean
String
DN
boolean
true if DN is validsetLoginSearchFilter(String $loginSearchFilter)
String
search filter
setLoginSearchPassword(String $loginSearchPassword)
String
password
setLoginSearchSuffix(String $loginSearchSuffix)
String
suffix
setToolSettings(array $toolSettings) : boolean
array
tool settings
boolean
true if oksetUseTLS(String $useTLS) : boolean
String
yes or no
boolean
true if $useTLS has correct formatset_AccountModules(array $modules, string $scope) : boolean
array
array with module names (not aliases!)
string
account type
boolean
true if $modules has correct formatset_ActiveTypes(array $types)
array
list of types
set_Adminstring(string $value) : boolean
string
new admin string that contains all admin users seperated by semicolons
boolean
true if $value has correct formatset_Passwd(string $value) : boolean
string
new password
boolean
true if $value has correct formatset_ServerURL(string $value) : boolean
string
new server address
boolean
true if $value has correct formatset_Suffix(string $scope, string $value) : boolean
string
account type
string
new LDAP suffix
boolean
true if $value has correct formatset_cacheTimeout(integer $value) : boolean
integer
new cache timeout
boolean
true if $value has correct formatset_defaultLanguage(string $value) : boolean
string
new default language
boolean
true if $value has correct formatset_listAttributes(string $value, string $scope) : boolean
string
new attribute string
string
account type
boolean
true if $value has correct formatset_moduleSettings(array $settings) : boolean
array
list of module setting array(name => value)
boolean
true if $settings has correct formatset_scriptPath(string $value) : boolean
string
new script path
boolean
true if $value has correct formatset_scriptRights(string $chmod) : boolean
string
the rights
boolean
true if values has correct formatset_scriptServers(string $value) : boolean
string
new script servers
boolean
true if $value has correct formatset_searchLimit(integer $value) : boolean
integer
new search limit
boolean
true if $value has correct formatset_typeSettings(array $settings) : boolean
array
list of type setting array(name => value)
boolean
true if $settings has correct formathashPassword(String $password, String $salt) : String
String
password
String
salt
String
hash valuereload() : boolean
boolean
true if file was readable$Admins
$Passwd
$ServerURL
ldap://127.0.0.1:389)
$accessLevel
$activeTypes
$cachetimeout
$defaultLanguage
$file
$httpAuthentication
$lamProMailFrom
$lamProMailIsHTML
$lamProMailReplyTo
$lamProMailSubject
$lamProMailText
$loginMethod
$loginSearchDN
$loginSearchFilter
$loginSearchPassword
$loginSearchSuffix
$moduleSettings
$scriptPath
This is used for managing quota and home directories. optional setting, may not be defined
$scriptRights
$scriptServer
This is used for managing quota and home directories. optional setting, may not be defined
$searchLimit
$settings
$toolSettings
$treesuffix
$typeSettings
$useTLS
ACCESS_ALL
ACCESS_PASSWORD_CHANGE
ACCESS_READ_ONLY
LINE_SEPARATOR
LOGIN_LIST
LOGIN_SEARCH
SAVE_FAIL
SAVE_OK