winbindd не стартует

Проблемы с установкой, настройкой и работой системных и сетевых программ.

Модераторы: GRooVE, alexco

Правила форума
Убедительная просьба юзать теги [code] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
Аватара пользователя
xM
ст. лейтенант
Сообщения: 1316
Зарегистрирован: 2009-01-15 23:57:41
Откуда: Königsberg
Контактная информация:

winbindd не стартует

Непрочитанное сообщение xM » 2010-11-22 14:25:36

Только что установил Samba на свежую систему
beta# uname -a
FreeBSD beta.peek.local 8.1-STABLE FreeBSD 8.1-STABLE #1: Thu Nov 18 09:45:28 EET 2010 mxm@beta.peek.local:/usr/obj/usr/src/sys/D510 i386
и вот тебе на - winbindd ну асболютно не имеет никакого желания стартовать.
В логах вот такая ругань:
beta# tail -n 20 /var/log/samba/log.winbindd
[2010/11/22 09:58:28, 0] winbindd/winbindd.c:1105(main)
winbindd version 3.5.6 started.
Copyright Andrew Tridgell and the Samba Team 1992-2010
[2010/11/22 09:58:28.939693, 0] winbindd/winbindd_cache.c:3076(initialize_winbindd_cache)
initialize_winbindd_cache: clearing cache and re-creating with version number 1
[2010/11/22 09:58:35.924291, 1] ../librpc/ndr/ndr.c:395(ndr_pull_error)
ndr_pull_error(1): String terminator not present or outside string boundaries
[2010/11/22 09:58:51.385478, 1] ../librpc/ndr/ndr.c:395(ndr_pull_error)
ndr_pull_error(1): String terminator not present or outside string boundaries
[2010/11/22 09:59:21.482982, 1] ../librpc/ndr/ndr.c:395(ndr_pull_error)
ndr_pull_error(1): String terminator not present or outside string boundaries
[2010/11/22 09:59:21.508226, 1] ../librpc/ndr/ndr.c:395(ndr_pull_error)
ndr_pull_error(1): String terminator not present or outside string boundaries
[2010/11/22 10:00:14.902187, 0] winbindd/winbindd.c:195(winbindd_sig_term_handler)
Got sig[15] terminate (is_parent=1)
Гугление к решению проблемы не привело, хотя ссылки на этот баг на буржуйских форумах имееют место.
Решал кто-нибудь эту поблему уже?
IT voodoo blog https://kostikov.co

Хостинговая компания Host-Food.ru
Хостинг HostFood.ru
 

Услуги хостинговой компании Host-Food.ru

Хостинг HostFood.ru

Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/

Аватара пользователя
xM
ст. лейтенант
Сообщения: 1316
Зарегистрирован: 2009-01-15 23:57:41
Откуда: Königsberg
Контактная информация:

Re: winbindd не стартует

Непрочитанное сообщение xM » 2010-11-23 9:27:53

Рапортую о ходе разбирательства.
winbindd таки запустился. стоило лишь добавить в smb.conf
winbind separator = @
Теперь, однако же, проблема другая - wbinfo -u и -g не видят ничего. При этом net ads всё показывает.
В логах все та же ругань
tail -n 3 /var/log/samba/log.winbindd
[2010/11/23 08:26:10, 0] winbindd/winbindd.c:1105(main)
winbindd version 3.5.6 started.
Copyright Andrew Tridgell and the Samba Team 1992-2010
[2010/11/23 08:26:10.423444, 0] winbindd/winbindd_cache.c:3076(initialize_winbindd_cache)
initialize_winbindd_cache: clearing cache and re-creating with version number 1
[2010/11/23 08:26:10.559378, 1] ../librpc/ndr/ndr.c:395(ndr_pull_error)
ndr_pull_error(1): String terminator not present or outside string boundaries
Причем последняя строка пишется каждый раз при попытке запроса wbinfo списка групп или юзеров.
:unknown:
IT voodoo blog https://kostikov.co

snorlov
подполковник
Сообщения: 3927
Зарегистрирован: 2008-09-04 11:51:25
Откуда: Санкт-Петербург

Re: winbindd не стартует

Непрочитанное сообщение snorlov » 2010-11-23 9:44:23

winbind в nsswitch.conf есть?
Что говорят

Код: Выделить всё

getent passwd
getent group
id <имя доменного пользователя>

Аватара пользователя
xM
ст. лейтенант
Сообщения: 1316
Зарегистрирован: 2009-01-15 23:57:41
Откуда: Königsberg
Контактная информация:

Re: winbindd не стартует

Непрочитанное сообщение xM » 2010-11-23 10:24:21

snorlov писал(а):winbind в nsswitch.conf есть?
да
#
# nsswitch.conf(5) - name service switch configuration file
# $FreeBSD: src/etc/nsswitch.conf,v 1.1.10.1.4.1 2010/06/14 02:09:06 kensmith Exp $
#
group: files winbind
group_compat: nis
hosts: files dns
networks: files
passwd: files winbind
passwd_compat: nis
shells: files
services: compat
services_compat: nis
protocols: files
rpc: files
snorlov писал(а):Что говорят

Код: Выделить всё

getent passwd
getent group
id <имя доменного пользователя>
Первые две говорят стандартные фришные списки пользователей и групп, не более.
Доменных юзеров там нет.
Третья говорит, к примеру, про меня:
beta# id xM
uid=10000(xm) gid=10023(domain users) groups=10023(domain users)
Почему-то не видит, что я также и domain admin
IT voodoo blog https://kostikov.co

snorlov
подполковник
Сообщения: 3927
Зарегистрирован: 2008-09-04 11:51:25
Откуда: Санкт-Петербург

Re: winbindd не стартует

Непрочитанное сообщение snorlov » 2010-11-23 10:36:20

Самба с поддержкой Ldap скомпилирована?

Аватара пользователя
xM
ст. лейтенант
Сообщения: 1316
Зарегистрирован: 2009-01-15 23:57:41
Откуда: Königsberg
Контактная информация:

Re: winbindd не стартует

Непрочитанное сообщение xM » 2010-11-23 10:38:31

От это хороший вопрос... Если б помнить.
С большой вероятностью что да.
Как проверить, подскажете?
IT voodoo blog https://kostikov.co

snorlov
подполковник
Сообщения: 3927
Зарегистрирован: 2008-09-04 11:51:25
Откуда: Санкт-Петербург

Re: winbindd не стартует

Непрочитанное сообщение snorlov » 2010-11-23 10:50:23

/var/db/ports/sambaXX/options

Аватара пользователя
xM
ст. лейтенант
Сообщения: 1316
Зарегистрирован: 2009-01-15 23:57:41
Откуда: Königsberg
Контактная информация:

Re: winbindd не стартует

Непрочитанное сообщение xM » 2010-11-23 10:56:10

snorlov писал(а):/var/db/ports/sambaXX/options
Джинкуе бардзо.
Вот что имеем
%cat /var/db/ports/samba35/options
# This file is auto-generated by 'make config'.
# No user-servicable parts inside!
# Options for samba35-3.5.6_1
_OPTIONS_READ=samba35-3.5.6_1
WITH_LDAP=true
WITH_ADS=true
WITHOUT_CUPS=true
WITH_WINBIND=true
WITHOUT_SWAT=true
WITH_ACL_SUPPORT=true
WITHOUT_AIO_SUPPORT=true
WITHOUT_FAM_SUPPORT=true
WITH_SYSLOG=true
WITH_QUOTAS=true
WITH_UTMP=true
WITHOUT_PAM_SMBPASS=true
WITHOUT_DNSUPDATE=true
WITHOUT_AVAHI=true
WITHOUT_EXP_MODULES=true
WITH_POPT=true
WITH_IPV6=true
WITHOUT_MAX_DEBUG=true
WITHOUT_SMBTORTURE=true
IT voodoo blog https://kostikov.co

Гость
проходил мимо

Re: winbindd не стартует

Непрочитанное сообщение Гость » 2010-11-23 11:16:18

xM писал(а):Рапортую о ходе разбирательства.
winbindd таки запустился. стоило лишь добавить в smb.conf
winbind separator = @
кинь весь конфиг

snorlov
подполковник
Сообщения: 3927
Зарегистрирован: 2008-09-04 11:51:25
Откуда: Санкт-Петербург

Re: winbindd не стартует

Непрочитанное сообщение snorlov » 2010-11-23 11:27:23

xM писал(а): Вот что имеем
%cat /var/db/ports/samba35/options
# This file is auto-generated by 'make config'.
# No user-servicable parts inside!
# Options for samba35-3.5.6_1
_OPTIONS_READ=samba35-3.5.6_1
WITH_LDAP=true
WITH_ADS=true
WITH_WINBIND=true
Ну с поддержкой ldap, Ad winbind вы самбу скомпилировали...
Честно говоря не совсем понятно почему добавление

Код: Выделить всё

winbind separator = @
вызвало нормальный старт winbind....
Приведите строчки касательно idmap и winbind из вашего smb.conf

Аватара пользователя
xM
ст. лейтенант
Сообщения: 1316
Зарегистрирован: 2009-01-15 23:57:41
Откуда: Königsberg
Контактная информация:

Re: winbindd не стартует

Непрочитанное сообщение xM » 2010-11-23 11:34:40

Гость писал(а):
xM писал(а):Рапортую о ходе разбирательства.
winbindd таки запустился. стоило лишь добавить в smb.conf
winbind separator = @
кинь весь конфиг
Сорри, что не вычищен. Но как есть.

Код: Выделить всё

beta# cat /usr/local/etc/smb.conf
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# For a step to step guide on installing, configuring and using samba,
# read the Samba-HOWTO-Collection. This may be obtained from:
#  http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf
#
# Many working examples of smb.conf files can be found in the
# Samba-Guide which is generated daily and can be downloaded from:
#  http://www.samba.org/samba/docs/Samba-Guide.pdf
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not made any basic syntactic errors.
#
#======================= Global Settings =====================================
[global]

# workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
   workgroup = PEEK

# server string is the equivalent of the NT Description field
   server string = Samba server %h

# Security mode. Defines in which mode Samba will operate. Possible
# values are share, user, server, domain and ads. Most people will want
# user level security. See the Samba-HOWTO-Collection for details.
   security = ADS

# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
    hosts allow = 192.168.1. 127.

# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
#   load printers = yes

# you may wish to override the location of the printcap file
#   printcap name = /etc/printcap

# on SystemV system setting printcap name to lpstat should allow
# you to automatically obtain a printer list from the SystemV spool
# system
#   printcap name = lpstat

# It should not be necessary to specify the print system type unless
# it is non-standard. Currently supported print systems include:
# bsd, cups, sysv, plp, lprng, aix, hpux, qnx
#   printing = cups

# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user "nobody" is used
   guest account = nobody

# this tells Samba to use a separate log file for each machine
# that connects
   log file = /var/log/samba/log.%m

# Put a capping on the size of the log files (in Kb).
   max log size = 50

# Use password server option only with security = server
# The argument list may include:
#   password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name]
# or to auto-locate the domain controller/s
#   password server = *
   password server = alfa.peek.local

# Use the realm option only with security = ads
# Specifies the Active Directory realm the host is part of
   realm = PEEK.LOCAL

# Backend to store user information in. New installations should
# use either tdbsam or ldapsam. smbpasswd is available for backwards
# compatibility. tdbsam requires no further configuration.
;   passdb backend = tdbsam

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting.
# Note: Consider carefully the location in the configuration file of
#       this line.  The included file is read at that point.
;   include = /usr/local/etc/smb.conf.%m

# Most people will find that this option gives better performance.
# See the chapter 'Samba performance issues' in the Samba HOWTO Collection
# and the manual pages for details.
# You may want to add the following on a Linux system:
;   socket options = SO_RCVBUF=8192 SO_SNDBUF=8192

# Configure Samba to use multiple interfaces
# If you have multiple network interfaces then you must list them
# here. See the man page for details.
;   interfaces = 192.168.12.2/24 192.168.13.2/24

# Browser Control Options:
# set local master to no if you don't want Samba to become a master
# browser on your network. Otherwise the normal election rules apply
;   local master = no

# OS Level determines the precedence of this server in master browser
# elections. The default value should be reasonable
;   os level = 33

# Domain Master specifies Samba to be the Domain Master Browser. This
# allows Samba to collate browse lists between subnets. Don't use this
# if you already have a Windows NT domain controller doing this job
;   domain master = yes

# Preferred Master causes Samba to force a local browser election on startup
# and gives it a slightly higher chance of winning the election
;   preferred master = yes

# Enable this if you want Samba to be a domain logon server for
# Windows95 workstations.
;   domain logons = yes

# if you enable domain logons then you may want a per-machine or
# per user logon script
# run a specific logon batch file per workstation (machine)
;   logon script = %m.bat
# run a specific logon batch file per username
;   logon script = %U.bat

# Where to store roving profiles (only for Win95 and WinNT)
#        %L substitutes for this servers netbios name, %U is username
#        You must uncomment the [Profiles] share below
;   logon path = \\%L\Profiles\%U

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
;   wins support = yes

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
#       Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
;   wins server = w.x.y.z

# WINS Proxy - Tells Samba to answer name resolution queries on
# behalf of a non WINS capable client, for this to work there must be
# at least one  WINS Server on the network. The default is NO.
;   wins proxy = yes

# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The default is NO.
   dns proxy = no

# Charset settings
   display charset = koi8-r
   unix charset = koi8-r
   dos charset = cp866

# Use extended attributes to store file modes
;    store dos attributes = yes
;    map hidden = no
;    map system = no
;    map archive = no

# Use inherited ACLs for directories
# --- наследование прав
    nt acl support = yes
    inherit acls = yes
    map acl inherit = yes

# These scripts are used on a domain controller or stand-alone
# machine to add or delete corresponding unix accounts
;  add user script = /usr/sbin/useradd %u
;  add group script = /usr/sbin/groupadd %g
;  add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
;  delete user script = /usr/sbin/userdel %u
;  delete user from group script = /usr/sbin/deluser %u %g
;  delete group script = /usr/sbin/groupdel %g

# --- настройки winbindd

winbind separator = @
idmap uid = 10000-20000
idmap gid = 10000-20000
winbind use default domain = yes
winbind enum users = yes
winbind enum groups = yes

# ---
template homedir = /usr/home/%D/%U
template shell = /bin/csh


#============================ Share Definitions ==============================
# ---
[all]
comment                 = Common file direcotry
path                    = /usr/winroot/all
read list               = "@PEEK.LOCAL\Domain Users"
write list              = "@PEEK.LOCAL\Domain Users"
admin users             = "@PEEK.LOCAL\Domain Admins"
read only               = no
map acl inherit         = yes
map archive             = no
map read only           = no
create mask             = 0660
directory mask          = 0770
force unknown acl user  = yes
delete readonly         = yes
vfs object              = recycle full_audit
recycle:repository      = /shares/trash/%S
recycle:keeptree        = Yes
recycle:touch           = Yes
recycle:touch_mtime     = Yes
recycle:version         = Yes
recycle:maxsize         = 0
recycle:exclude         = *.TMP *.tmp
recycle:directory_mode  = 0770
recycle:versions        = Yes
recycle:minsize         = 1
full_audit:prefix       = share=%S; id=%U; ip=%I -->
full_audit:success = unlink rmdir mkdir write rename write aio_write pwrite
full_audit:failure = unlink rmdir mkdir write rename write aio_write pwrite
full_audit:priority     = INFO

[trash]
comment                 = Recycle bin
path                    = /usr/winroot/trash
read list               = "@PEEK.LOCAL\Domain Admins"
write list              = "@PEEK.LOCAL\Domain Admins"
admin users             = "@PEEK.LOCAL\Domain Admins"
browseable              = yes

#[homes]
#   comment = Home Directories
#   browseable = no
#   writable = yes

# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon]
;   comment = Network Logon Service
;   path = /usr/local/samba/lib/netlogon
;   guest ok = yes
;   writable = no
;   share modes = no


# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
;[Profiles]
;    path = /usr/local/samba/profiles
;    browseable = no
;    guest ok = yes


# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
#[printers]
#   comment = All Printers
#   path = /var/spool/samba
#   browseable = no
# Set public = yes to allow user 'guest account' to print
#   guest ok = yes
#   writable = no
#   printable = no

# This one is useful for people to share files
;[tmp]
;   comment = Temporary file space
;   path = /tmp
;   read only = no
;   public = yes

# A publicly accessible directory, but read only, except for people in
# the "staff" group
;[public]
;   comment = Public Stuff
;   path = /home/samba
;   public = yes
;   writable = yes
;   printable = no
;   write list = @staff

# Other examples.
#
# A private printer, usable only by fred. Spool data will be placed in fred's
# home directory. Note that fred must have write access to the spool directory,
# wherever it is.
;[fredsprn]
;   comment = Fred's Printer
;   valid users = fred
;   path = /homes/fred
;   printer = freds_printer
;   public = no
;   writable = no
;   printable = yes

# A private directory, usable only by fred. Note that fred requires write
# access to the directory.
;[fredsdir]
;   comment = Fred's Service
;   path = /usr/somewhere/private
;   valid users = fred
;   public = no
;   writable = yes
;   printable = no

# a service which has a different directory for each machine that connects
# this allows you to tailor configurations to incoming machines. You could
# also use the %U option to tailor it by user name.
# The %m gets replaced with the machine name that is connecting.
;[pchome]
;  comment = PC Directories
;  path = /usr/pc/%m
;  public = no
;  writable = yes

# A publicly accessible directory, read/write to all users. Note that all files
# created in the directory by users will be owned by the default user, so
# any user with access can delete any other user's files. Obviously this
# directory must be writable by the default user. Another user could of course
# be specified, in which case all files would be owned by that user instead.
;[public]
;   path = /usr/somewhere/else/public
;   public = yes
;   only guest = yes
;   writable = yes
;   printable = no

# The following two entries demonstrate how to share a directory so that two
# users can place files there that will be owned by the specific users. In this
# setup, the directory should be writable by both users and should have the
# sticky bit set on it to prevent abuse. Obviously this could be extended to
# as many users as required.
;[myshare]
;   comment = Mary's and Fred's stuff
;   path = /usr/somewhere/shared
;   valid users = mary fred
;   public = no
;   writable = yes
;   printable = no
;   create mask = 0765
;

# This is a DRAFT sample configuration for the ACLs on the ZFS partition.
#
;    nt acl support = yes
;    inherit acls = no
;    map acl inherit = yes
;
;[zpool]
;    path = /tank/zpool
;    unix extensions = no
;    vfs objects = zfsacl
;    nfs4:mode = special
;    nfs4:acedup = merge
;    nfs4:chown = yes
IT voodoo blog https://kostikov.co

Гость
проходил мимо

Re: winbindd не стартует

Непрочитанное сообщение Гость » 2010-11-23 11:44:25

xM писал(а):
Гость писал(а):
xM писал(а):Рапортую о ходе разбирательства.
winbindd таки запустился. стоило лишь добавить в smb.conf
winbind separator = @
кинь весь конфиг
Сорри, что не вычищен. Но как есть.
Больших отличий не заметил...разве что не использую сепаратор
ВОт мой:

Код: Выделить всё

[global]
        dos charset = cp866
        unix charset = koi8-r
        display charset = cp1251
        workgroup = ZRT
        realm = ZRT.ZR.LOCAL
        server string = Samba Server %v
        security = ADS
        password server = ZRT.ZR.local
        log file = /var/log/samba/log.%m
        max log size = 50
        load printers = No
        os level = 0
        idmap uid = 10000-20000
        idmap gid = 10000-20000
        template homedir = /fs/pud/%U
        template shell = /bin/csh
        winbind enum users = Yes
        winbind enum groups = Yes
        winbind use default domain = Yes
        admin users = "@ZRT\Domain Admins"
        hosts allow = 192.168.114.0/255.255.255.0
        case sensitive = No
        wins proxy = Yes
        wins support = Yes
а самбу ввел в домен?

Аватара пользователя
xM
ст. лейтенант
Сообщения: 1316
Зарегистрирован: 2009-01-15 23:57:41
Откуда: Königsberg
Контактная информация:

Re: winbindd не стартует

Непрочитанное сообщение xM » 2010-11-23 11:45:56

Гость писал(а): Больших отличий не заметил...разве что не использую сепаратор
ВОт мой:

Код: Выделить всё

[global]
        dos charset = cp866
        unix charset = koi8-r
        display charset = cp1251
        workgroup = ZRT
        realm = ZRT.ZR.LOCAL
        server string = Samba Server %v
        security = ADS
        password server = ZRT.ZR.local
        log file = /var/log/samba/log.%m
        max log size = 50
        load printers = No
        os level = 0
        idmap uid = 10000-20000
        idmap gid = 10000-20000
        template homedir = /fs/pud/%U
        template shell = /bin/csh
        winbind enum users = Yes
        winbind enum groups = Yes
        winbind use default domain = Yes
        admin users = "@ZRT\Domain Admins"
        hosts allow = 192.168.114.0/255.255.255.0
        case sensitive = No
        wins proxy = Yes
        wins support = Yes
а самбу ввел в домен?
Да, конечно. Там она, светится в AD.
Ну, разве что, WINS у меня не включен...
IT voodoo blog https://kostikov.co

Гость
проходил мимо

Re: winbindd не стартует

Непрочитанное сообщение Гость » 2010-11-23 11:51:26

xM писал(а):
Гость писал(а): Больших отличий не заметил...разве что не использую сепаратор
ВОт мой:

Код: Выделить всё

[global]
        dos charset = cp866
        unix charset = koi8-r
        display charset = cp1251
        workgroup = ZRT
        realm = ZRT.ZR.LOCAL
        server string = Samba Server %v
        security = ADS
        password server = ZRT.ZR.local
        log file = /var/log/samba/log.%m
        max log size = 50
        load printers = No
        os level = 0
        idmap uid = 10000-20000
        idmap gid = 10000-20000
        template homedir = /fs/pud/%U
        template shell = /bin/csh
        winbind enum users = Yes
        winbind enum groups = Yes
        winbind use default domain = Yes
        admin users = "@ZRT\Domain Admins"
        hosts allow = 192.168.114.0/255.255.255.0
        case sensitive = No
        wins proxy = Yes
        wins support = Yes
а самбу ввел в домен?
Да, конечно. Там она, светится в AD.
Ну, разве что, WINS у меня не включен...
можно еще krb5.conf?

Аватара пользователя
xM
ст. лейтенант
Сообщения: 1316
Зарегистрирован: 2009-01-15 23:57:41
Откуда: Königsberg
Контактная информация:

Re: winbindd не стартует

Непрочитанное сообщение xM » 2010-11-23 11:54:45

Код: Выделить всё

beta# cat /etc/krb5.conf
[libdefaults]
        default_realm = PEEK.LOCAL
        ticket_lifetime = 360000
        clockskew = 24000
#       v4_instance_resolve = false
#       v4_name_convert = {
#               host = {
#                       rcmd = host
#                       ftp = ftp
#               }
#               plain = {
#                       something = something-else
#               }
#       }

[realms]
        PEEK.LOCAL = {
                kdc = ALFA.PEEK.LOCAL
                admin_server = PEEK.LOCAL
        }
#       OTHER.REALM = {
#               v4_instance_convert = {
#                       kerberos = kerberos
#                       computer = computer.some.other.domain
#               }
#       }
[domain_realm]
        .peek.local = PEEK.LOCAL

[logging]
        kdc = FILE:/var/log/krb5kdc.log
        admin_server = FILE:/var/log/kadmin.log
        default = FILE:/var/log/krb5lib.log
IT voodoo blog https://kostikov.co

Гость
проходил мимо

Re: winbindd не стартует

Непрочитанное сообщение Гость » 2010-11-23 12:03:00

xM писал(а):

Код: Выделить всё

beta# cat /etc/krb5.conf
Я в свое время тоже на занимался "любовью" с этим делом...вот вам мой конфиг. Может вы эти 2 конфига преминете к своей системе (если не критично)..потому как и без сепаратора winbind должен робить

Код: Выделить всё

[libdefaults]
        ticket_lifetime = 24000
        default_realm = ZRT.ZR.LOCAL
        dns_lookup_realm = false
        dns_lookup_kdc = false
        kdc_req_checksum_type = 2
        checksum_type = 2
        ccache_type = 1
        forwardable = true
        proxiable = true


[realms]
        ZRT.ZR.LOCAL = {
                kdc = ZRT.ZR.local

                admin_server = 192.168.114.230:749
                default_domain = ZRT.ZR.LOCAL
        }

[domain_realm]
        .ZRT.ZR.LOCAL = ZRT.ZR.LOCAL

[pam]
debug = false
ticket_lifetime = 36000
renew_lifetime = 36000
forwardable = true
krb4_convert = false

[login]
krb4_convert = false
krb4_get_tickets = false

[logging]
        default = FILE:/var/log/kerberos/krb5libs.log
        kdc = FILE:/var/log/kerberos/krb5kdc.log
        admin_server = FILE:/var/log/kerberos/kadmind.log

snorlov
подполковник
Сообщения: 3927
Зарегистрирован: 2008-09-04 11:51:25
Откуда: Санкт-Петербург

Re: winbindd не стартует

Непрочитанное сообщение snorlov » 2010-11-23 12:11:30

A wbinfo -u и wbinfo -g что паказывают? Полные имена с именем домена или нет, а если с именем домена, то через какой разделитель? Билетик от кербероса нормально получил...

Аватара пользователя
xM
ст. лейтенант
Сообщения: 1316
Зарегистрирован: 2009-01-15 23:57:41
Откуда: Königsberg
Контактная информация:

Re: winbindd не стартует

Непрочитанное сообщение xM » 2010-11-23 12:15:19

snorlov писал(а):A wbinfo -u и wbinfo -g что паказывают? Полные имена с именем домена или нет, а если с именем домена, то через какой разделитель? Билетик от кербероса нормально получил...
В том-то и дело что ничего. Т.е. абсолютно.
IT voodoo blog https://kostikov.co

Гость
проходил мимо

Re: winbindd не стартует

Непрочитанное сообщение Гость » 2010-11-23 12:24:32

snorlov писал(а):A wbinfo -u и wbinfo -g что паказывают? Полные имена с именем домена или нет, а если с именем домена, то через какой разделитель? Билетик от кербероса нормально получил...
скорее всего с билетиком проблемка..попробуйте примените конфиги, по результату видно будет

snorlov
подполковник
Сообщения: 3927
Зарегистрирован: 2008-09-04 11:51:25
Откуда: Санкт-Петербург

Re: winbindd не стартует

Непрочитанное сообщение snorlov » 2010-11-23 12:55:25

xM писал(а):
snorlov писал(а):A wbinfo -u и wbinfo -g что паказывают? Полные имена с именем домена или нет, а если с именем домена, то через какой разделитель? Билетик от кербероса нормально получил...
В том-то и дело что ничего. Т.е. абсолютно.
т.е. билетик не получил, время проверь на фре...Синхронизируй его с временем AD

Аватара пользователя
xM
ст. лейтенант
Сообщения: 1316
Зарегистрирован: 2009-01-15 23:57:41
Откуда: Königsberg
Контактная информация:

Re: winbindd не стартует

Непрочитанное сообщение xM » 2010-11-23 13:05:02

snorlov писал(а):
xM писал(а):
snorlov писал(а):A wbinfo -u и wbinfo -g что паказывают? Полные имена с именем домена или нет, а если с именем домена, то через какой разделитель? Билетик от кербероса нормально получил...
В том-то и дело что ничего. Т.е. абсолютно.
т.е. билетик не получил, время проверь на фре...Синхронизируй его с временем AD
Извините, но это то я в первую голову проверял.
Вот-с, специально новый получил:
beta# klist -v
Credentials cache: FILE:/tmp/krb5cc_0
Principal: xM@PEEK.LOCAL
Cache version: 4

Server: krbtgt/PEEK.LOCAL@PEEK.LOCAL
Client: xM@PEEK.LOCAL
Ticket etype: arcfour-hmac-md5, kvno 2
Ticket length: 880
Auth time: Nov 23 12:00:10 2010
End time: Nov 23 22:00:10 2010
Ticket flags: initial, pre-authenticated
Addresses: addressless
Со временем все отлично - всё синхронизировано, разумеется.
IT voodoo blog https://kostikov.co

Аватара пользователя
xM
ст. лейтенант
Сообщения: 1316
Зарегистрирован: 2009-01-15 23:57:41
Откуда: Königsberg
Контактная информация:

Re: winbindd не стартует

Непрочитанное сообщение xM » 2010-11-23 13:21:23

Гость писал(а):
snorlov писал(а):A wbinfo -u и wbinfo -g что паказывают? Полные имена с именем домена или нет, а если с именем домена, то через какой разделитель? Билетик от кербероса нормально получил...
скорее всего с билетиком проблемка..попробуйте примените конфиги, по результату видно будет
Изменил.
Вот что имеем:
beta# cat /etc/krb5.conf
[libdefaults]
ticket_lifetime = 24000
default_realm = PEEK.LOCAL
dns_lookup_realm = false
dns_lookup_kdc = false
kdc_req_checksum_type = 2
checksum_type = 2
ccache_type = 1
forwardable = true
proxiable = true


[realms]
PEEK.LOCAL = {
kdc = ALFA.PEEK.LOCAL
admin_server = 192.168.1.1:749
default_domain = PEEK.LOCAL
}

[domain_realm]
.PEEK.LOCAL = PEEK.LOCAL

[pam]
debug = false
ticket_lifetime = 36000
renew_lifetime = 36000
forwardable = true
krb4_convert = false

[login]
krb4_convert = false
krb4_get_tickets = false

[logging]
default = FILE:/var/log/kerberos/krb5libs.log
kdc = FILE:/var/log/kerberos/krb5kdc.log
admin_server = FILE:/var/log/kerberos/kadmind.log
beta# cat /usr/local/etc/smb.conf
[global]
dos charset = cp866
unix charset = koi8-r
display charset = cp1251
workgroup = PEEK
realm = PEEK.LOCAL
server string = Samba Server %v
security = ADS
password server = PEEK.LOCAL
log file = /var/log/samba/log.%m
max log size = 50
load printers = No
os level = 0
idmap uid = 10000-20000
idmap gid = 10000-20000
template homedir = /usr/home/%D/%U
template shell = /bin/csh
winbind enum users = Yes
winbind enum groups = Yes
winbind use default domain = Yes
admin users = "@PEEK.LOCAL\Domain Admins"
hosts allow = 192.168.1. 127.
case sensitive = No
wins proxy = Yes
wins support = Yes
winbindd старутет.
В его логе, правда, та же ругань
beta# tail -n 7 /var/log/samba/log.winbindd
[2010/11/23 12:18:02, 0] winbindd/winbindd.c:1105(main)
winbindd version 3.5.6 started.
Copyright Andrew Tridgell and the Samba Team 1992-2010
[2010/11/23 12:18:02.157425, 0] winbindd/winbindd_cache.c:3076(initialize_winbindd_cache)
initialize_winbindd_cache: clearing cache and re-creating with version number 1
[2010/11/23 12:18:02.278311, 1] ../librpc/ndr/ndr.c:395(ndr_pull_error)
ndr_pull_error(1): String terminator not present or outside string boundaries
wbinfo -u и -g не работают.
IT voodoo blog https://kostikov.co

snorlov
подполковник
Сообщения: 3927
Зарегистрирован: 2008-09-04 11:51:25
Откуда: Санкт-Петербург

Re: winbindd не стартует

Непрочитанное сообщение snorlov » 2010-11-23 14:07:57

Ну тогда не знаю, остается все списать на "опять что-то поломали в winbind".
Попробуй
1. password sever оставь как было,
2. admins users закоментируй,
3. добавь auth methods = winbind
И вооще testparm, что говорит, на всякий случай testparm -su покажет все твои параметры по умолчанию...
Также имеет смысл посмотреть формируюся ли файлы в /var/db/samba35...

Аватара пользователя
xM
ст. лейтенант
Сообщения: 1316
Зарегистрирован: 2009-01-15 23:57:41
Откуда: Königsberg
Контактная информация:

Re: winbindd не стартует

Непрочитанное сообщение xM » 2010-11-23 14:17:58

snorlov писал(а):Ну тогда не знаю, остается все списать на "опять что-то поломали в winbind".
Попробуй
1. password sever оставь как было,
2. admins users закоментируй,
3. добавь auth methods = winbind
Это я пробовал на старом конфиге. Ещё раз проверил - не помогло.
snorlov писал(а):И вооще testparm, что говорит, на всякий случай testparm -su покажет все твои параметры по умолчанию...

Код: Выделить всё

beta# testparm -su
Load smb config files from /usr/local/etc/smb.conf
max_open_files: sysctl_max (11095) below minimum Windows limit (16384)
rlimit_max: rlimit_max (11095) below minimum Windows limit (16384)
Loaded services file OK.
Server role: ROLE_DOMAIN_MEMBER
[global]
        dos charset = cp866
        unix charset = koi8-r
        display charset = koi8-r
        workgroup = PEEK
        realm = PEEK.LOCAL
        server string = Samba Server %v
        security = ADS
        auth methods = winbind
        password server = PEEK.LOCAL
        log file = /var/log/samba/log.%m
        max log size = 50
        load printers = No
        os level = 0
        wins proxy = Yes
        wins support = Yes
        idmap uid = 10000-20000
        idmap gid = 10000-20000
        template homedir = /usr/home/%D/%U
        template shell = /bin/csh
        winbind enum users = Yes
        winbind enum groups = Yes
        winbind use default domain = Yes
        hosts allow = 192.168.1., 127.
        case sensitive = No
snorlov писал(а):Также имеет смысл посмотреть формируюся ли файлы в /var/db/samba35...
Все ок.

Код: Выделить всё

beta# cd /var/db/samba
beta# ll
total 948
-rw-------  1 root  wheel   36864 Nov 22 09:48 account_policy.tdb
-rw-r--r--  1 root  wheel   40200 Nov 23 13:12 brlock.tdb
-rw-r--r--  1 root  wheel     144 Nov 23 13:12 browse.dat
-rw-r--r--  1 root  wheel  110592 Nov 23 13:12 connections.tdb
-rw-r--r--  1 root  wheel   40960 Nov 23 13:13 gencache.tdb
-rw-r--r--  1 root  wheel   36864 Nov 23 13:14 gencache_notrans.tdb
-rw-------  1 root  wheel   77824 Nov 22 09:47 group_mapping.ldb
-rw-r--r--  1 root  wheel   40200 Nov 23 13:12 locking.tdb
-rw-------  1 root  wheel   12288 Nov 23 13:12 messages.tdb
-rw-------  1 root  wheel     696 Nov 22 09:48 mutex.tdb
-rw-------  1 root  wheel   57344 Nov 23 08:56 netsamlogon_cache.tdb
-rw-r--r--  1 root  wheel     696 Nov 23 08:52 notify.tdb
-rw-r--r--  1 root  wheel   16384 Nov 23 08:57 notify_onelevel.tdb
-rw-------  1 root  wheel    8192 Nov 22 09:48 ntdrivers.tdb
-rw-------  1 root  wheel     696 Nov 22 09:48 ntforms.tdb
-rw-------  1 root  wheel    8192 Nov 22 09:48 ntprinters.tdb
drwxr-xr-x  2 root  wheel     512 Nov 22 09:48 perfmon
drwxr-xr-x  2 root  wheel     512 Nov 22 09:48 printing
-rw-------  1 root  wheel   36864 Nov 22 09:48 registry.tdb
-rw-r--r--  1 root  wheel     696 Nov 23 13:12 sessionid.tdb
-rw-------  1 root  wheel   36864 Nov 22 09:48 share_info.tdb
drwxr-xr-x  2 root  wheel     512 Nov 23 13:13 smb_krb5
-rw-r--r--  1 root  wheel   32768 Nov 23 13:16 unexpected.tdb
-rw-------  1 root  wheel  286720 Nov 23 13:14 winbindd_cache.tdb
-rw-r--r--  1 root  wheel   36864 Nov 23 13:12 winbindd_idmap.tdb
drwxr-x---  2 root  wheel     512 Nov 23 13:12 winbindd_privileged
-rw-r--r--  1 root  wheel     189 Nov 23 13:16 wins.dat
-rw-------  1 root  wheel    8192 Nov 23 13:14 wins.tdb
Прямо таки теряюсь в догадках что ещё ему надо.
IT voodoo blog https://kostikov.co

Аватара пользователя
xM
ст. лейтенант
Сообщения: 1316
Зарегистрирован: 2009-01-15 23:57:41
Откуда: Königsberg
Контактная информация:

Re: winbindd не стартует

Непрочитанное сообщение xM » 2010-11-23 19:13:22

Да, собственно SAMBA то работает (и winbindd заводится с полпинка).
Однако,

Код: Выделить всё

 wbinfo -u и wbinfo -g
по-прежнему ничего не показывают, а в логе winbindd ругань а-ля
../librpc/ndr/ndr.c:395(ndr_pull_error)
ndr_pull_error(1): String terminator not present or outside string boundaries
Некрасиво, всё же, как-то.
IT voodoo blog https://kostikov.co