Репозитории ALT
S: | 0.1-alt8 |
5.1: | 0.1-alt8 |
4.1: | 0.2-alt7.M41.1 |
4.0: | 0.2-alt4.M40.2 |
Группа :: Разработка/Прочее
Пакет: cl-user-tools
Главная Изменения Спек Патчи Исходники Загрузить Gear Bugs and FR Repocop
cl-user-tools-0.2/ 0000755 0000000 0000000 00000000000 11136337406 0014065 5 ustar 00root root 0000000 0000000 cl-user-tools-0.2/scripts/ 0000755 0000000 0000000 00000000000 11136337406 0015554 5 ustar 00root root 0000000 0000000 cl-user-tools-0.2/scripts/cl-config 0000755 0000000 0000000 00000001503 11136337406 0017342 0 ustar 00root root 0000000 0000000 #!/bin/sh -efu
if [ -z "${__included_cl_config-}" ]; then
__included_cl_config=1
. shell-config
cl_slapd_config() {
local SLAPD_CONF="/etc/openldap/sldap-generated.conf"
[ "$#" -ge 1 ] && SLAPD_CONF="$1"
base=$(shell_config_get "$SLAPD_CONF" suffix ' '|sed -e 's/"//g')
binddn=$(shell_config_get "$SLAPD_CONF" rootdn ' '|sed -e 's/"//g')
bindpw=$(shell_config_get "$SLAPD_CONF" rootpw ' '|sed -e 's/"//g')
[ -n "$bindpw" ] && bindpw="-w $bindpw" || bindpw="-W"
export base binddn bindpw
}
local_getent_group()
{
local group="$1"
if [ -n "$group" ]; then
grep -v "^#" /etc/group | grep "^$group:"
else
grep -v "^#" /etc/group
fi
}
local_getent_passwd()
{
local user="$1"
if [ -n "$user" ]; then
grep -v "^#" /etc/passwd | grep "^$user:"
else
grep -v "^#" /etc/passwd
fi
}
fi #__included_cl_config