You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
calculate-utils-2.1-server/pym/cl_vars_server.py

96 lines
4.5 KiB

#-*- coding: utf-8 -*-
#Copyright 2008 Calculate Pack, http://www.calculate-linux.ru
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#Допустимые ключи значений
# mode - режим переменной r-не переназначается из командной строки,
# w-переназначается из командной строки
# type - тип переменной состоит из двух элементов(что это и для чего
# это)
# value - дефоултное значение переменной
# select - список допустимых значений переменной
# official - флаг того, что данная переменная служебная и не отображается
# при печати списка значений переменных
# printval - печатное значение переменной(значение выводимое при печати
# списка значений переменных)
class Data:
#базовый суффикс LDAP
soft_ldap_base= {'mode':"r",
'type':('param','soft')
}
#bind суффикс LDAP
soft_ldap_bind= {'mode':"r",
'type':('param','soft'),
}
#пользователь только для чтения
soft_ldap_bindname= {'mode':"r",
'type':('param','soft'),
}
#hash пароля для пользователя для чтения
soft_ldap_bindpw_hash= {'mode':"r",
'type':('param','soft'),
}
#пароль для пользователя для чтения
soft_ldap_bindpw= {'mode':"r",
'type':('param','soft'),
}
#алгоритм шифрования паролей
soft_ldap_hash_encrypt={'mode':"r",
'type':('param','soft'),
}
#временный пользователь root для инициализации базы данных
soft_ldap_root_tmp= {'mode':"r",
'type':('param','soft'),
}
#запись для пользователя root
soft_ldap_root= {'mode':"r",
'type':('param','soft'),
}
#имя пользователя root для LDAP
soft_ldap_rootname= {'mode':"r",
'type':('param','soft'),
}
#hash пароля root
soft_ldap_rootpw_hash= {'mode':"r",
'type':('param','soft'),
}
#hash пароля временного root
soft_ldap_rootpw_tmp_hash={'mode':"r",
'type':('param','soft'),
}
#пароль временный пользователя root
soft_ldap_rootpw_tmp= {'mode':"r",
'type':('param','soft'),
}
#пароль root
soft_ldap_rootpw= {'mode':"r",
'type':('param','soft'),
}
#имя samba домена
soft_samba_domain= {'mode':"r",
'type':('param','soft'),
}
#netbios имя samba домена
soft_samba_netbios= {'mode':"r",
'type':('param','soft'),
}
#-----------------------------------------------------
#Служебные переменные
#-----------------------------------------------------
#запущенные сервисы CDS
soft_service_allive= {'mode':"r",
'type':('param','soft'),
}