Sisyphus
: 1 2023 | : 18631 | : 37748575
en ru br
ALT

:: //
: alterator-users-ldap

                   Gear   Bugs and FR  Repocop 

alterator-users-ldap-8.0/000075500000000000000000000000001101303777400154345ustar00rootroot00000000000000alterator-users-ldap-8.0/Makefile000064400000000000000000000006501101303777400170750ustar00rootroot00000000000000NAME=users-ldap
DESCRIPTION="LDAP users"

INSTALL=/usr/bin/install

all:
clean: clean-po
install: install-backend install-ui install-po install-html

include /usr/share/alterator/build/po.mak
include /usr/share/alterator/build/ui2.mak
include /usr/share/alterator/build/backend.mak
include /usr/share/alterator/build/fbi.mak
include /usr/share/alterator/build/html-messages.mak

HTML_PO_TEMPLATE=ui/users/html-messages.scm

alterator-users-ldap-8.0/applications/000075500000000000000000000000001101303777400201225ustar00rootroot00000000000000alterator-users-ldap-8.0/applications/users-ldap.desktop000064400000000000000000000003531101303777400235750ustar00rootroot00000000000000[Desktop Entry]
Type=Application
Categories=X-Alterator-Users
Icon=users
Terminal=false
Name=LDAP user accounts
Name[ru]=Учётные записи в LDAP
X-Alterator-URI=/users-ldap
X-Alterator-Weight=29
X-Alterator-Help=users-ldap
alterator-users-ldap-8.0/backend3/000075500000000000000000000000001101303777400171065ustar00rootroot00000000000000alterator-users-ldap-8.0/backend3/template-users-ldap000075500000000000000000000007761101303777400227360ustar00rootroot00000000000000#!/bin/sh

#turn off auto expansion
set -f

. /usr/share/alterator/build/backend3.sh

on_message()
{
case "$in_action" in
#information for renderer
template)
echo '('
echo ' help "users-ldap.html"'
echo ' translate "alterator-users-ldap"'
if [ "$in__objects" = "/" ];then
echo ' template "form" '
echo ' url "users-ldap-list.html"'
else
echo ' template "card-index" '
echo ' url "users-ldap.html"'
fi
echo ')'
;;
*)
echo '#f'
;;
esac
}

message_loop
alterator-users-ldap-8.0/backend3/users-ldap000075500000000000000000000120201101303777400211060ustar00rootroot00000000000000#!/bin/sh

_()
{
LANG=${in_language%%;*}.utf8 gettext "alterator-users-ldap" "$1"
}


#turn off auto expansion
set -f

. /usr/share/alterator/build/backend3.sh

. shell-config

UID_MIN=$(grep '^UID_MIN' /etc/login.defs 2>/dev/null|sed -r 's,UID_MIN[[:space:]]+,,')
[ -z "$UID_MIN" ] && UID_MIN=500

FSTAB="/etc/fstab"
SPOOL_QUOTA="/usr/share/alterator-users-ldap/spool_quota.awk"
REPQUOTA="/usr/sbin/repquota"
SETQUOTA="/usr/sbin/setquota"

SLAPD_CONF="/etc/openldap/slapd.conf"
SLAPD_HDB_PREFIX="/etc/openldap/slapd-hdb"

list_users()
{
local db="$1"
local IFS=:

ldap-getent-passwd "${SLAPD_HDB_PREFIX}-$db.conf" |
while read name password uid gid gecos home shell; do
[ "$uid" -ge "$UID_MIN" ] || continue
[ "$shell" == "/sbin/nologin" ] || grep -qs "^$shell$" /etc/shells || continue
printf '("%s" gecos "%s" home "%s" shell "%s")' "$name" "$gecos" "$home" "$shell"
done
}


read_user()
{
local db="$1"
local user="$2"
local SPOOL=$("$SPOOL_QUOTA" -r "$FSTAB")
local mboxsize=$("$REPQUOTA" -u "$SPOOL" | grep "^$1[[:space:]]" | awk '{print $4}')
local IFS=:

ldap-getent-passwd "${SLAPD_HDB_PREFIX}-$db.conf" "$user"|
(read name password uid gid gecos home shell;
printf ' gecos "%s" home "%s" shell "%s" mboxsize "%s"' "$gecos" "$home" "$shell" "$((mboxsize/1024))")
}

set_spool_quota()
{
local SPOOL=$("$SPOOL_QUOTA" -r "$FSTAB")
# hard limit = soft limit * 1.1
"$SETQUOTA" "$1" "$(($2*1024))" "$(($2*1126))" 0 0 "$SPOOL"
}

error_message()
{
echo "(error \"$1\")"
}

user_error_message()
{
case "$1" in
1) error_message "`_ "can't update password file"`" ;; #'
2) error_message "`_ "invalid command syntax"`" ;;
3) error_message "`_ "invalid argument to option"`" ;;
4) error_message "`_ "uid already in use"`" ;;
6) error_message "`_ "specified user doesn't exist"`" ;; #'
8) error_message "`_ "user currently logged in"`" ;;
9) error_message "`_ "username already in use"`" ;;
10) error_message "`_ "can't update group file"`" ;; #'
12) error_message "`_ "can't create or remove home directory"`" ;;#'
13) error_message "`_ "can't create mail spool"`" ;; #'
*) error_message "retcode=$1" ;;
esac
}


on_message()
{
case "$in_action" in
#object manipulations
constraints)
echo '('
if [ "$in__objects" = "/" ]; then
printf 'name (label "%s")' "`_ "Domain"`"
else
printf 'name (label "%s")' "`_ "Name"`"
fi
printf 'shell (label "%s")' "`_ "Shell"`"
printf 'home (label "%s")' "`_ "Home directory"`"
printf 'passwd1 (equal passwd2 label "%s")' "`_ "Password"`"
printf 'gecos (label "%s")' "`_ "Gecos"`"
echo ')'
;;
list)
echo '('
case "${in__objects##*/}" in
domains)
shell_config_get "$SLAPD_CONF" include ' ' |
grep "${SLAPD_HDB_PREFIX}" |
sed -e "s,^${SLAPD_HDB_PREFIX}-\(.*\)\.conf$,(\"\1\"),g"
;;
shells)
sed 's,.*,("&"),' /etc/shells
printf '("/sbin/nologin")'
;;
*)
list_users "${in__objects##*/}"
;;
esac
echo ')'
;;
read)
echo '('
user="${in__objects##*/}"
domain="${in__objects%/$user}"
read_user "${domain##*/}" "$user"
echo ')'
;;
write)
domain="${in__objects%/$in_name}"
local retcode=0
( [ -n "$in_gecos" ] && echo "cn: $in_gecos"
[ -n "$in_home" ] && echo "homeDirectory: $in_home"
[ -n "$in_shell" ] && echo "loginShell: $in_shell" ) |
cl-usermod "${SLAPD_HDB_PREFIX}-${domain##*/}.conf" "$in_name" &> /dev/null
retcode=$?
if [ "$retcode" -eq 0 -a -n "$in_passwd1" ];then
echo "userPassword: $in_passwd1" |
cl-usermod "${SLAPD_HDB_PREFIX}-${domain##*/}.conf" "$in_name" &> /dev/null
retcode=$?
fi

# test -n "$in_mboxsize" && set_spool_quota "$in_name" "$in_mboxsize" &> /dev/null

if [ "$retcode" -ne 0 ]; then
user_error_message "$retcode"
else
echo '()'
fi
;;
new)
domain="${in__objects%/$in_name}"
local retcode=0
cl-useradd "${SLAPD_HDB_PREFIX}-${domain##*/}.conf" "$in_name" &> /dev/null
retcode=$?
if [ "$retcode" -eq 0 ]; then
( [ -n "$in_gecos" ] && echo "cn: $in_gecos"
[ -n "$in_home" ] && echo "homeDirectory: $in_home"
[ -n "$in_shell" ] && echo "loginShell: $in_shell" ) |
cl-usermod "${SLAPD_HDB_PREFIX}-${domain##*/}.conf" "$in_name" &> /dev/null
retcode=$?
fi

if [ "$retcode" -eq 0 -a -n "$in_passwd1" ];then
echo "userPassword: $in_passwd1" |
cl-usermod "${SLAPD_HDB_PREFIX}-${domain##*/}.conf" "$in_name" &> /dev/null
retcode=$?
fi
# test -n "$in_mboxsize" && set_spool_quota "$in__objects" "$in_mboxsize" &> /dev/null

if [ "$retcode" -ne 0 ]; then
user_error_message "$retcode"
else
echo '()'
fi
;;
delete)
domain="${in__objects%/$in_name}"
local retcode=0
cl-userdel "${SLAPD_HDB_PREFIX}-${domain##*/}.conf" "$in_name" &> /dev/null
retcode=$?
if [ "$retcode" -ne 0 ]; then
user_error_message "$retcode"
else
echo '()'
fi
;;
*)
echo '#f'
;;
esac
}


message_loop
alterator-users-ldap-8.0/help/000075500000000000000000000000001101303777400163645ustar00rootroot00000000000000alterator-users-ldap-8.0/help/ru_RU/000075500000000000000000000000001101303777400174205ustar00rootroot00000000000000alterator-users-ldap-8.0/help/ru_RU/users-ldap.html000064400000000000000000000025431101303777400223710ustar00rootroot00000000000000<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
<h2>Учётные записи пользователей</h2>
<p>Linux — многопользовательская система. Зарегистрировавшись — введя имя (login) и пароль — каждый пользователь, во-первых, приобретает возможность работать в удобном ему окружении, во-вторых, получает доступ к своим файлам, закрытым для других пользователей и просто посторонних.</p>
<p>В процессе установки предлагается создать только одну учётную запись обычного пользователя, чтобы от его имени администратор мог выполнять задачи, которые не требуют привилегий суперпользователя. Учётные записи для всех прочих пользователей можно будет создать в любой момент после установки системы.</p>
</body>
</html>
alterator-users-ldap-8.0/html/000075500000000000000000000000001101303777400164005ustar00rootroot00000000000000alterator-users-ldap-8.0/html/fbi/000075500000000000000000000000001101303777400171405ustar00rootroot00000000000000alterator-users-ldap-8.0/html/fbi/users-ldap-list.html000064400000000000000000000015501101303777400230570ustar00rootroot00000000000000<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<!-- dhcp administration module -->
<html>
<head>
<title>LDAP server settings - ALT Linux Console</title>
<link type="text/css" rel="stylesheet" href="/fbi/styles/openldap.css"/>
</head>
<body>
<h1><span translate="_">LDAP user accounts</span></h1>
<h2><span translate="_">Authentication domains</span></h2>
<table class="server-list">
<thead>
<tr>
<th><label for="name">Domain</label></th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody optionlist="/domains" class="alterator-list">
<tr>
<td nowrap="yes"><span class="alterator-label" name="name"></span></td>
<td nowrap="yes">
<a href="" class="alterator-ref">
<span translate="_">edit</span></a>
</td>
</tr>
</tbody>
</table>
</body>
</html>
alterator-users-ldap-8.0/html/fbi/users-ldap.html000064400000000000000000000051631101303777400221120ustar00rootroot00000000000000<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<!-- user administration module -->
<html>
<head>
<title>User accounts - ALT Linux Console</title>
<link type="text/css" rel="stylesheet" href="/fbi/styles/card-index.css"/>

<!-- ajax password gui element -->
<script src="/fbi/password.js"/>
<!-- ajax selector -->
<script src="/fbi/scripts/submit.js"/>
<script src="/fbi/scripts/card-index.js"/>
</head>
<body>
<h1><span translate="_">LDAP user accounts</span></h1>
<!-- selector part -->
<form method="POST" class="selector-chooser" id="ajax-selector">
<local:a href="/users-ldap"><span translate="_">Back to the list</span></local:a><br/><br/>
<label for="name">name</label>
<span class="selector">
<select name="name" />
<input type="submit" name="card-index-select" value="Select" class="btn"/>
</span>
<span class="selector-actions">
<input type="submit" name="card-index-new" value="New user" class="btn"/>
<input type="submit" name="card-index-delete" value="Delete user" class="btn"/>
</span>
</form>
<!-- object part -->
<hr/>
<form method="POST" class="selector-data">
<div class="selector-name">
<label for="name">name</label>
<input type="text" class="text" name="name"/>
</div>
<table>
<tbody>
<tr>
<td><label for="gecos">gecos</label></td>
<td><input type="text" class="text" name="gecos"/></td>
</tr>
<tr>
<td><label for="home">home</label></td>
<td><input type="text" class="text" name="home"/></td>
</tr>
<!-- tr>
<td><label for="mboxsize">mboxsize</label></td>
<td><input type="text" class="text" name="mboxsize"/><span translate="_">Mb</span></td>
</tr -->
<!-- tr>
<td><label for="allow_su">allow_su</label></td>
<td><input type="checkbox" name="allow_su"/></td>
</tr -->
<tr>
<td><label for="shell">shell</label></td>
<td><select name="shell" optionlist="shells"/></td>
</tr>
<tr>
<td><label for="passwd1">passwd1</label></td>
<td>
<div id="ajax-password">
<input type="password" name="passwd1" class="text" /><small><span translate="_">(enter passphrase)</span></small><br/>
<input type="password" name="passwd2" class="text" /><small><span translate="_">(repeat passphrase)</span></small><br/>
</div>
</td>
</tr>
</tbody>
</table>
<span class="form-actions">
<input type="submit" name="card-index-apply" value="Apply" class="btn"/>
<input type="reset" name="card-index-reset" value="Reset" class="btn"/>
</span>
</form>
</body>
</html>
alterator-users-ldap-8.0/po/000075500000000000000000000000001101303777400160525ustar00rootroot00000000000000alterator-users-ldap-8.0/po/alterator-users-ldap.pot000064400000000000000000000045601101303777400226550ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2008-04-17 23:56+0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"

#: ui/users/html-messages.scm:1 ui/users/html-messages.scm:10
msgid "LDAP user accounts"
msgstr ""

#: ui/users/html-messages.scm:2
msgid "Back to the list"
msgstr ""

#: ui/users/html-messages.scm:3
msgid "Select"
msgstr ""

#: ui/users/html-messages.scm:4
msgid "New user"
msgstr ""

#: ui/users/html-messages.scm:5
msgid "Delete user"
msgstr ""

#: ui/users/html-messages.scm:6
msgid "(enter passphrase)"
msgstr ""

#: ui/users/html-messages.scm:7
msgid "(repeat passphrase)"
msgstr ""

#: ui/users/html-messages.scm:8
msgid "Apply"
msgstr ""

#: ui/users/html-messages.scm:9
msgid "Reset"
msgstr ""

#: ui/users/html-messages.scm:11
msgid "Authentication domains"
msgstr ""

#: ui/users/html-messages.scm:12
msgid "edit"
msgstr ""

#: backend3/users-ldap:5
msgid "alterator-users-ldap"
msgstr ""

#: backend3/users-ldap:69
msgid "can't update password file"
msgstr ""

#. '
#: backend3/users-ldap:70
msgid "invalid command syntax"
msgstr ""

#: backend3/users-ldap:71
msgid "invalid argument to option"
msgstr ""

#: backend3/users-ldap:72
msgid "uid already in use"
msgstr ""

#: backend3/users-ldap:73
msgid "specified user doesn't exist"
msgstr ""

#. '
#: backend3/users-ldap:74
msgid "user currently logged in"
msgstr ""

#: backend3/users-ldap:75
msgid "username already in use"
msgstr ""

#: backend3/users-ldap:76
msgid "can't update group file"
msgstr ""

#. '
#: backend3/users-ldap:77
msgid "can't create or remove home directory"
msgstr ""

#. '
#: backend3/users-ldap:78
msgid "can't create mail spool"
msgstr ""

#: backend3/users-ldap:91
msgid "Domain"
msgstr ""

#: backend3/users-ldap:93
msgid "Name"
msgstr ""

#: backend3/users-ldap:95
msgid "Shell"
msgstr ""

#: backend3/users-ldap:96
msgid "Home directory"
msgstr ""

#: backend3/users-ldap:97
msgid "Password"
msgstr ""

#: backend3/users-ldap:98
msgid "Gecos"
msgstr ""
alterator-users-ldap-8.0/po/ru.po000064400000000000000000000124731101303777400170470ustar00rootroot00000000000000# Alterator users-ldap module Russian translation.
# Copyright (C) 2008 Grigory Batalov <bga@altlinux.org>
# This file is distributed under the same license as
# the alterator-users-ldap package.
#
msgid ""
msgstr ""
"Project-Id-Version: 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2008-04-17 23:56+0400\n"
"PO-Revision-Date: 2007-03-26 18:13+0400\n"
"Last-Translator: Grigory Batalov <bga@altlinux.org>\n"
"Language-Team: Russian <ru@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: ui/users/html-messages.scm:1 ui/users/html-messages.scm:10
msgid "LDAP user accounts"
msgstr "Учётные записи в LDAP"

#: ui/users/html-messages.scm:2
msgid "Back to the list"
msgstr "Назад к списку"

#: ui/users/html-messages.scm:3
msgid "Select"
msgstr "Выбрать"

#: ui/users/html-messages.scm:4
msgid "New user"
msgstr "Создать пользователя"

#: ui/users/html-messages.scm:5
msgid "Delete user"
msgstr "Удалить пользователя"

#: ui/users/html-messages.scm:6
msgid "(enter passphrase)"
msgstr "(введите фразу)"

#: ui/users/html-messages.scm:7
msgid "(repeat passphrase)"
msgstr "(повторите фразу)"

#: ui/users/html-messages.scm:8
msgid "Apply"
msgstr "Применить"

#: ui/users/html-messages.scm:9
msgid "Reset"
msgstr "Сброс"

#: ui/users/html-messages.scm:11
msgid "Authentication domains"
msgstr "Домены аутентификации"

#: ui/users/html-messages.scm:12
msgid "edit"
msgstr "редактировать"

#: backend3/users-ldap:5
msgid "alterator-users-ldap"
msgstr ""

#: backend3/users-ldap:69
msgid "can't update password file"
msgstr "невозможно обновить базу паролей"

#. '
#: backend3/users-ldap:70
msgid "invalid command syntax"
msgstr "неверный синтаксис команды"

#: backend3/users-ldap:71
msgid "invalid argument to option"
msgstr "неверный параметр к аргументу"

#: backend3/users-ldap:72
msgid "uid already in use"
msgstr "uid уже используется"

#: backend3/users-ldap:73
msgid "specified user doesn't exist"
msgstr "пользователь не существует"

#. '
#: backend3/users-ldap:74
msgid "user currently logged in"
msgstr "пользователь сейчас в системе"

#: backend3/users-ldap:75
msgid "username already in use"
msgstr "имя пользователя уже занято"

#: backend3/users-ldap:76
msgid "can't update group file"
msgstr "невозможно обновить базу групп"

#. '
#: backend3/users-ldap:77
msgid "can't create or remove home directory"
msgstr "невозможно создать или удалить домашний каталог"

#. '
#: backend3/users-ldap:78
msgid "can't create mail spool"
msgstr "невозможно создать mail spool"

#: backend3/users-ldap:91
msgid "Domain"
msgstr "Домен"

#: backend3/users-ldap:93
msgid "Name"
msgstr "Системное имя"

#: backend3/users-ldap:95
msgid "Shell"
msgstr "Интерпретатор команд"

#: backend3/users-ldap:96
msgid "Home directory"
msgstr "Домашний каталог"

#: backend3/users-ldap:97
msgid "Password"
msgstr "Пароль"

#: backend3/users-ldap:98
msgid "Gecos"
msgstr "Комментарий"

#~ msgid "You should define a system user"
#~ msgstr "Вы должны указать системного пользователя"

#~ msgid "Create system user"
#~ msgstr "Создать пользователя"

#~ msgid "Account name:"
#~ msgstr "Имя пользователя:"

#~ msgid "Do you really want to delete user "
#~ msgstr "Вы действительно хотите удалить пользователя "

#~ msgid "NEW USER"
#~ msgstr "НОВЫЙ"

#~ msgid "Name:"
#~ msgstr "Системное имя:"

#~ msgid "Gecos:"
#~ msgstr "Комментарий:"

#~ msgid "Allow switching to superuser"
#~ msgstr "Возможность переключения на администратора"

#~ msgid "Password:"
#~ msgstr "Пароль:"

#~ msgid "New"
#~ msgstr "Новый"

#~ msgid "Delete"
#~ msgstr "Удалить"

#~ msgid "Discard"
#~ msgstr "Отклонить"

#~ msgid "Quit"
#~ msgstr "Выход"

#~ msgid "Local user accounts"
#~ msgstr "Локальные учётные записи"

#~ msgid "Switch to LDAP accounts"
#~ msgstr "Перейти к учётным записям в LDAP"

#~ msgid "Mb"
#~ msgstr "Мб"

#~ msgid "Switch to local accounts"
#~ msgstr "Перейти к локальным учётным записям"

#~ msgid "only small latin letters, digits and '_' allowed"
#~ msgstr "допустимы только маленькие латинские символы, цифры и '_'"

#~ msgid "Mailbox size"
#~ msgstr "Размер почтового ящика"

#~ msgid "Password (repeat)"
#~ msgstr "Пароль (повтор)"

#~ msgid "gid not unique"
#~ msgstr "gid не уникален"

#~ msgid "specified group doesn't exist"
#~ msgstr "указанная группа не существует"

#~ msgid "can't remove user's primary group"
#~ msgstr "невозможно удалить первичную группу пользователя"

#~ msgid "group name not unique"
#~ msgstr "имя группы уже занято"
alterator-users-ldap-8.0/po/uk.po000064400000000000000000000107361101303777400170400ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2008-04-17 23:56+0400\n"
"PO-Revision-Date: 2007-04-20 11:44+0300\n"
"Last-Translator: Michael Shigorin <mike@altlinux.org>\n"
"Language-Team: Ukrainian <uk@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: ui/users/html-messages.scm:1 ui/users/html-messages.scm:10
msgid "LDAP user accounts"
msgstr ""

#: ui/users/html-messages.scm:2
msgid "Back to the list"
msgstr ""

#: ui/users/html-messages.scm:3
msgid "Select"
msgstr "Вибрати"

#: ui/users/html-messages.scm:4
msgid "New user"
msgstr "Створити користувача"

#: ui/users/html-messages.scm:5
msgid "Delete user"
msgstr "Видалити користувача"

#: ui/users/html-messages.scm:6
msgid "(enter passphrase)"
msgstr "(введіть фразу)"

#: ui/users/html-messages.scm:7
msgid "(repeat passphrase)"
msgstr "(повторіть фразу)"

#: ui/users/html-messages.scm:8
msgid "Apply"
msgstr "Застосувати"

#: ui/users/html-messages.scm:9
msgid "Reset"
msgstr "Скинути"

#: ui/users/html-messages.scm:11
msgid "Authentication domains"
msgstr ""

#: ui/users/html-messages.scm:12
msgid "edit"
msgstr "редагувати"

#: backend3/users-ldap:5
msgid "alterator-users-ldap"
msgstr ""

#: backend3/users-ldap:69
msgid "can't update password file"
msgstr "неможливо поновити базу паролів"

#. '
#: backend3/users-ldap:70
msgid "invalid command syntax"
msgstr "невірний синтаксис команди"

#: backend3/users-ldap:71
msgid "invalid argument to option"
msgstr "невірний параметр до аргумента"

#: backend3/users-ldap:72
msgid "uid already in use"
msgstr "uid вже зайнятий"

#: backend3/users-ldap:73
msgid "specified user doesn't exist"
msgstr "користувач не існує"

#. '
#: backend3/users-ldap:74
msgid "user currently logged in"
msgstr "користувач зараз у системі"

#: backend3/users-ldap:75
msgid "username already in use"
msgstr "ім'я користувача вже зайняте"

#: backend3/users-ldap:76
msgid "can't update group file"
msgstr "неможливо поновити базу груп"

#. '
#: backend3/users-ldap:77
msgid "can't create or remove home directory"
msgstr "неможливо створити чи видалити домашню теку"

#. '
#: backend3/users-ldap:78
msgid "can't create mail spool"
msgstr "неможливо створити mail spool"

#: backend3/users-ldap:91
msgid "Domain"
msgstr ""

#: backend3/users-ldap:93
msgid "Name"
msgstr "Системне ім'я"

#: backend3/users-ldap:95
msgid "Shell"
msgstr "Оболонка"

#: backend3/users-ldap:96
msgid "Home directory"
msgstr "Домашня тека"

#: backend3/users-ldap:97
msgid "Password"
msgstr "Пароль"

#: backend3/users-ldap:98
msgid "Gecos"
msgstr "Коментар"

#, fuzzy
#~ msgid "Create system user"
#~ msgstr "Системні користувачі"

#~ msgid "Do you really want to delete user "
#~ msgstr "Ви дійсно бажаєте видалити користувача "

#~ msgid "NEW USER"
#~ msgstr "НОВИЙ"

#~ msgid "Name:"
#~ msgstr "Системне ім'я:"

#~ msgid "Gecos:"
#~ msgstr "Коментар:"

#~ msgid "Allow switching to superuser"
#~ msgstr "Можливість підвищення привілеїв"

#~ msgid "Password:"
#~ msgstr "Пароль:"

#~ msgid "New"
#~ msgstr "Новий"

#~ msgid "Delete"
#~ msgstr "Видалити"

#~ msgid "Discard"
#~ msgstr "Відхилити"

#~ msgid "Quit"
#~ msgstr "Вихід"

#~ msgid "only small latin letters, digits and '_' allowed"
#~ msgstr "повинні бути лише маленькі латинські літери, цифри та '_'"

#~ msgid "Password (repeat)"
#~ msgstr "Пароль (ще раз)"

#~ msgid "gid not unique"
#~ msgstr "gid не унікальний"

#~ msgid "specified group doesn't exist"
#~ msgstr "дана група не існує"

#~ msgid "can't remove user's primary group"
#~ msgstr "неможливо видалити первинну групу користувача"

#~ msgid "group name not unique"
#~ msgstr "ім'я групи вже зайняте"
alterator-users-ldap-8.0/quota/000075500000000000000000000000001101303777400165655ustar00rootroot00000000000000alterator-users-ldap-8.0/quota/spool_quota.awk000075500000000000000000000033141101303777400216420ustar00rootroot00000000000000#!/bin/awk -f

BEGIN {
point = "/"
max = 1

# get spool directiry
cmd = "/usr/sbin/postconf -h mail_spool_directory"
cmd | getline SPOOL
close(cmd)

# check if it is a link
cmd = "/bin/readlink -f " SPOOL
cmd | getline SPOOL
close(cmd)

# -r <file> means read spool mount point
# -w <file> means write new fstab with usrquota enabled
# otherwise read <file> or <stdin> and show new fstab
if (ARGC > 2) {
if (ARGV[1] == "-r")
mode = "read"
if (ARGV[1] == "-w")
mode = "write"
ARGV[1] = ARGV[2]
delete ARGV[2]
ARGC--
}
}

# skip empy lines and comments
/^(#|[[:space:]]*$)/ {
if (orig_fstab)
orig_fstab = orig_fstab "\n" $0
else
orig_fstab = $0
if (new_fstab)
new_fstab = new_fstab "\n" $0
else
new_fstab = $0
next
}

{
# check if mountpoint is quoted
if (match($0, /^([^[:space:]]+[[:space:]]+)'([^']+)'([[:space:]]+[^[:space:]]+)([[:space:]]+[^[:space:]]+)([[:space:]]+[^[:space:]]+)?([[:space:]]+[^[:space:]]+)?$/, list) > 0) {
fs_file = list[2]
fs_mntops = list[4]
}
else {
fs_file = $2
fs_mntops = $4
}

# is new mountpoint more appropriate?
regex = "^" fs_file
if (SPOOL ~ regex && max <= length(fs_file)) {
max = length(fs_file)
point = fs_file

# add usrquota if it hasn't one
if (fs_mntops !~ /usrquota/)
line = gensub(fs_mntops, "usrquota", "g")
else line = $0
# remove "defaults" keyword
sub("defaults,", "", line)
new_fstab = orig_fstab "\n" line
}
else
new_fstab = new_fstab "\n" $0
orig_fstab = orig_fstab "\n" $0
}

END {
switch(mode) {
case "read":
# print mountpoint
print point
break
case "write":
# write new fstab
print new_fstab > ARGV[1]
close(ARGV[1])
break
default:
# show new fstab
print new_fstab
}
}
alterator-users-ldap-8.0/ui/000075500000000000000000000000001101303777400160515ustar00rootroot00000000000000alterator-users-ldap-8.0/ui/users/000075500000000000000000000000001101303777400172125ustar00rootroot00000000000000alterator-users-ldap-8.0/ui/users/html-messages.scm000064400000000000000000000003521101303777400224670ustar00rootroot00000000000000(_ "LDAP user accounts")
(_ "Back to the list")
(_ "Select")
(_ "New user")
(_ "Delete user")
(_ "(enter passphrase)")
(_ "(repeat passphrase)")
(_ "Apply")
(_ "Reset")
(_ "LDAP user accounts")
(_ "Authentication domains")
(_ "edit")
 
: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
: Michael Shigorin