Решено: Ошибка в конфигурировании домена (По мануалу "Достойный контроллер домена на Linux")

Обсуждение настройки и работы сервисов, резервирования, сетевых настроек и вопросов безопасности ОС.

Модераторы: SLEDopit, Модераторы разделов

Аватара пользователя
yamah
Сообщения: 1116
ОС: Rosa Fresh, Debian, RELS

Решено: Ошибка в конфигурировании домена

Сообщение yamah »

Имеется Debian Squeeze.
Настраивается контроллер домена.
Но в процессе вылазят ошибки:

При получении SID-а вылазила ошибка:

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

net getlocalsid MYDOMEN
[2012/03/13 13:59:15.491347,  0] lib/smbldap.c:731(smb_ldap_start_tls)
  Failed to issue the StartTLS instruction: Protocol error

Но SID я получил.

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

slapcat | grep sambaDomainName
UNKNOWN attributeDescription "SAMBALOGONTIME" inserted.
UNKNOWN attributeDescription "SAMBALOGOFFTIME" inserted.
UNKNOWN attributeDescription "SAMBAKICKOFFTIME" inserted.
UNKNOWN attributeDescription "SAMBAPWDCANCHANGE" inserted.
UNKNOWN attributeDescription "SAMBAHOMEPATH" inserted.
UNKNOWN attributeDescription "SAMBAHOMEDRIVE" inserted.
UNKNOWN attributeDescription "SAMBAPROFILEPATH" inserted.
UNKNOWN attributeDescription "SAMBAPRIMARYGROUPSID" inserted.
UNKNOWN attributeDescription "SAMBASID" inserted.
UNKNOWN attributeDescription "SAMBALMPASSWORD" inserted.
UNKNOWN attributeDescription "SAMBAACCTFLAGS" inserted.
UNKNOWN attributeDescription "SAMBANTPASSWORD" inserted.
UNKNOWN attributeDescription "SAMBAPWDLASTSET" inserted.
UNKNOWN attributeDescription "SAMBAPWDMUSTCHANGE" inserted.
UNKNOWN attributeDescription "SAMBAGROUPTYPE" inserted.
UNKNOWN attributeDescription "SAMBADOMAINNAME" inserted.
UNKNOWN attributeDescription "SAMBANEXTRID" inserted.
description: Netbios Domain Supports file replication in a sambaDomainName
dn: sambaDomainName=MYDOMEN,dc=mydomen,dc=ru


А вслед за ней в процессе настройки:

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

net -U Administrator rpc rights grant 'MYDOMEN\Domain Admins' SeMachineAccountPrivilege
Enter Administrator's password:
Receiving SMB: Server stopped responding
Could not connect to server 127.0.0.1
Connection failed: NT_STATUS_IO_TIMEOUT

А после переделывания всех шагов:

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

net -U Administrator rpc rights grant 'MYDOMEN\Domain Admins' SeMachineAccountPrivilege
Enter Administrator's password:
Could not connect to server 127.0.0.1
Connection failed: NT_STATUS_CONNECTION_REFUSED


Лог запроса:

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

Mar 13 14:39:01 common-server slapd[4029]: conn=1009 fd=18 ACCEPT from IP=127.0.0.1:49953 (IP=0.0.0.0:389)
Mar 13 14:39:01 common-server slapd[4029]: conn=1009 op=0 BIND dn="cn=admin,dc=mydomen,dc=ru" method=128
Mar 13 14:39:01 common-server slapd[4029]: conn=1009 op=0 BIND dn="cn=admin,dc=mydomen,dc=ru" mech=SIMPLE ssf=0
Mar 13 14:39:01 common-server slapd[4029]: conn=1009 op=0 RESULT tag=97 err=0 text=
Mar 13 14:39:01 common-server slapd[4029]: conn=1009 op=1 SRCH base="dc=mydomen,dc=ru" scope=2 deref=0 filter="(uid=root)"
Mar 13 14:39:01 common-server slapd[4029]: conn=1009 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
Mar 13 14:39:01 common-server slapd[4029]: conn=1009 op=2 UNBIND
Mar 13 14:39:01 common-server slapd[4029]: conn=1009 fd=18 closed


Конфиги:
Spoiler
slapd.conf

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

cat slapd.conf | grep -v "#"

include /etc/ldap/schema/core.schema
include /etc/ldap/schema/cosine.schema
include /etc/ldap/schema/nis.schema
include /etc/ldap/schema/inetorgperson.schema
include /etc/ldap/schema/samba.schema
include /etc/ldap/schema/mmc.schema
include /etc/ldap/schema/mail.schema
include /etc/ldap/schema/printer.schema
include /etc/ldap/schema/dnszone.schema
include /etc/ldap/schema/dhcp.schema

pidfile         /var/run/slapd/slapd.pid
argsfile        /var/run/slapd/slapd.args
loglevel        256

modulepath      /usr/lib/ldap
moduleload      back_bdb

sizelimit 500
tool-threads 1

backend         bdb
database        bdb

suffix          "dc=mydomen,dc=ru"
rootdn "cn=admin,dc=mydomen,dc=ru"
rootpw {SSHA}<PASSWORD>

directory       "/var/lib/ldap"

dbconfig set_cachesize 0 2097152 0
dbconfig set_lk_max_objects 1500
dbconfig set_lk_max_locks 1500
dbconfig set_lk_max_lockers 1500

index           objectClass,uidNumber,gidNumber         eq
index           cn,sn,uid,displayName           pres,sub,eq
index           memberUid,mail,givenname                eq,subinitial
index           sambaSID,sambaPrimaryGroupSID,sambaDomainName           eq
index           zoneName,relativeDomainName             eq
index           dhcpHWAddress,dhcpClassData             eq

lastmod         on

access to attrs=userPassword,sambaLMPassword,sambaNTPassword
        by dn="cn=admin,dc=mydomen,dc=ru" write
        by anonymous auth
        by self write
        by * none

access to dn.base="" by * read

access to *
        by dn="cn=admin,dc=mydomen,dc=ru" write
        by * read


ldap.conf

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

cat ldap.conf | grep -v "#"
host 127.0.0.1
base dc=mydomen,dc=ru


smb.conf

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

cat smb.conf
[global]
        workgroup = MYDOMEN
        netbiosname = PDC-SRV-MYDOMEN
        preferred master = yes
        os level = 65
        wins support = yes
        enable privileges = yes
        timeserver = yes
        socket options = SO_KEEPALIVE IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192
        log level = 3
        null passwords = yes
        security = user
# unix charset = ISO8859-1
        name resolve order = bcast host
        domain logons = yes
        domain master = yes
        printing = cups
        printcap name = cups
        logon path = \\%N\profiles\%U
        logon script = logon.bat
        logon drive = H:
        map acl inherit = yes
        nt acl support = yes
        passdb backend = ldapsam:ldap://127.0.0.1/
        obey pam restrictions = no
        ldap admin dn = cn=admin,dc=mydomen,dc=ru
        ldap suffix = dc=mydomen,dc=ru
        ldap group suffix = ou=Groups
        ldap user suffix = ou=Users
        ldap machine suffix = ou=Computers
        ldap idmap suffix = ou=Users
        ldap passwd sync = yes
        passwd program = /usr/sbin/smbldap-passwd -u %u
        passwd chat = "Changing password for*\nNew password*" %n\n "*Retype new password*" %n\n
        add user script = /usr/sbin/smbldap-useradd -m "%u"
        add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g"
        set primary group script = /usr/sbin/smbldap-usermod -g "%g" "%u"
        add group script = /usr/sbin/smbldap-groupadd -p "%g"
        add machine script = /usr/lib/mmc/add_machine_script '%u'
        delete user script = /usr/sbin/smbldap-userdel "%u"
        delete user from group script = /usr/sbin/smbldap-groupmod -x "%u" "%g"
        delete group script = /usr/sbin/smbldap-groupdel "%g"

[homes]
      comment = Home directories
      browseable = no
      writeable = yes
      create mask = 0700
      directory mask = 0700
      hide files = /Maildir/
...

smbldap.conf

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

SID="<SID>"
sambaDomain="MYDOMEN"
ldapTLS="0"
suffix="dc=mydomen,dc=ru"
usersdn="ou=User,${suffix}"
computersdn="ou=Computers,${suffix}"
groupsdn="ou=Groups,${suffix}"
idmapdn="ou=Idmap,${suffix}"
sambaUnixIdPooldn="sambaDomainName=MYDOMEN,${suffix}"
scope="sub"
hash_encrypt="SSHA"
userLoginShell="/bin/bash"
userHome="/home/%U"
userHomeDirectoryMode="700"
userGecos="System User"
defaultUserGid="513"
defaultComputerGid="515"
skeletonDir="/etc/skel"
defaultMaxPasswordAge="45"
userSmbHome="\\PDC-SRV-MYDOMEN\%U"
userProfile="\\PDC-SRV-MYDOMEN\profiles\%U"
userHomeDrive="H:"
userScript="logon.bat"
mailDomain="mydomen.ru"
smbpasswd="/usr/bin/smbpasswd"


/etc/pam.d/common-account

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

account required        pam_unix.so
account sufficient      pam_ldap.so

/etc/pam.d/common-auth

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

auth    sufficient      pam_unix.so nullok_secure
auth    sufficient      pam_ldap.so use_first_pass
auth    required                        pam_deny.so

/etc/pam.d/common-password

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

password        sufficient      pam_unix.so nullok obscure min=4 max=8 md5
password        sufficient      pam_ldap.so use_first_pass use_authtok
password        required                        pam_deny.so

/etc/pam.d/common-session

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

session required                        pam_unix.so
session required                        pam_unix.so
session optional                        pam_ldap.so



Где искать проблему?
Понимание - это меч с тремя кромками: ваша правда, наша правда и Истина.
Жизнь - игра: сюжет задуман фигова, но графика хорошая...
Лучший игровой сервер - Земля: карта всего одна, но на 7 миллиардов игроков; читеров нет, админ терпеливый, но если уж забанит...
Спасибо сказали:
Аватара пользователя
yamah
Сообщения: 1116
ОС: Rosa Fresh, Debian, RELS

Re: Решено: Ошибка в конфигурировании домена

Сообщение yamah »

Добавил сог samba

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

 cat log.smbd
[2012/03/14 09:59:21,  0] smbd/server.c:1123(main)
  smbd version 3.5.6 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2010
[2012/03/14 09:59:21.685624,  2] lib/tallocmsg.c:106(register_msg_pool_usage)
  Registered MSG_REQ_POOL_USAGE
[2012/03/14 09:59:21.685656,  2] lib/dmallocmsg.c:77(register_dmalloc_msgs)
  Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
[2012/03/14 09:59:21.685682,  3] param/loadparm.c:9158(lp_load_ex)
  lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
[2012/03/14 09:59:21.685774,  3] ../lib/util/params.c:550(pm_process)
  params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
[2012/03/14 09:59:21.685795,  3] param/loadparm.c:7842(do_section)
  Processing section "[global]"
[2012/03/14 09:59:21.686030,  2] param/loadparm.c:7859(do_section)
  Processing section "[homes]"
[2012/03/14 09:59:21.686102,  2] param/loadparm.c:7859(do_section)
  Processing section "[Users_Archive]"
[2012/03/14 09:59:21.686151,  2] param/loadparm.c:7859(do_section)
  Processing section "[Projects_Archive]"
[2012/03/14 09:59:21.686202,  2] param/loadparm.c:7859(do_section)
  Processing section "[Information]"
[2012/03/14 09:59:21.686249,  2] param/loadparm.c:7859(do_section)
  Processing section "[Projects]"
[2012/03/14 09:59:21.686294,  2] param/loadparm.c:7859(do_section)
  Processing section "[BackUps]"
[2012/03/14 09:59:21.686343,  2] param/loadparm.c:7859(do_section)
  Processing section "[printers]"
[2012/03/14 09:59:21.686429,  2] param/loadparm.c:7859(do_section)
  Processing section "[print$]"
[2012/03/14 09:59:21.686701,  2] param/loadparm.c:7859(do_section)
  Processing section "[netlogon]"
[2012/03/14 09:59:21.686756,  2] param/loadparm.c:7859(do_section)
  Processing section "[profiles]"
[2012/03/14 09:59:21.686812,  2] param/loadparm.c:7859(do_section)
  Processing section "[partage]"
[2012/03/14 09:59:21.686858,  2] param/loadparm.c:7859(do_section)
  Processing section "[www]"
[2012/03/14 09:59:21.686958,  3] param/loadparm.c:6313(lp_add_ipc)
  adding IPC service
[2012/03/14 09:59:21.687058,  3] printing/pcap.c:136(pcap_cache_reload)
  reloading printcap cache
[2012/03/14 09:59:21.692665,  3] printing/pcap.c:243(pcap_cache_reload)
  reload status: ok
[2012/03/14 09:59:21.692739,  3] param/loadparm.c:6352(lp_add_printer)
  adding printer service WorkCentre-3119-Series
[2012/03/14 09:59:21.692785,  3] param/loadparm.c:6352(lp_add_printer)
  adding printer service wc5230A
[2012/03/14 09:59:21.692911,  2] lib/interface.c:340(add_interface)
  added interface eth0 ip=fe80::20c:29ff:fe8a:3b77%eth0 bcast=fe80::ffff:ffff:ffff:ffff%eth0 netmask=ffff:ffff:ffff:ffff::
[2012/03/14 09:59:21.692994,  2] lib/interface.c:340(add_interface)
  added interface eth0 ip=192.168.0.103 bcast=192.168.0.255 netmask=255.255.255.0
[2012/03/14 09:59:21.693072,  3] smbd/server.c:1165(main)
  loaded services
[2012/03/14 09:59:21.693089,  3] smbd/server.c:1180(main)
  Becoming a daemon.
[2012/03/14 09:59:21.693778,  2] lib/smbldap_util.c:277(smbldap_search_domain_info)
  smbldap_search_domain_info: Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=MYDOMEN)]
[2012/03/14 09:59:21.695926,  0] lib/smbldap.c:731(smb_ldap_start_tls)
  Failed to issue the StartTLS instruction: Protocol error
[2012/03/14 09:59:21.696005,  1] lib/smbldap.c:1330(another_ldap_try)
  Connection to LDAP server failed for the 1 try!
[2012/03/14 09:59:22.699380,  3] smbd/sec_ctx.c:210(push_sec_ctx)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2012/03/14 09:59:22.699429,  3] smbd/uid.c:429(push_conn_ctx)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2012/03/14 09:59:22.699456,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2012/03/14 09:59:22.699508,  3] smbd/sec_ctx.c:210(push_sec_ctx)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2
[2012/03/14 09:59:22.699534,  3] smbd/uid.c:429(push_conn_ctx)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 1
[2012/03/14 09:59:22.699554,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2
[2012/03/14 09:59:22.700619,  0] lib/smbldap.c:731(smb_ldap_start_tls)
  Failed to issue the StartTLS instruction: Protocol error
[2012/03/14 09:59:22.700755,  1] lib/smbldap.c:1330(another_ldap_try)
  Connection to LDAP server failed for the 1 try!
[2012/03/14 09:59:23.701854,  3] smbd/sec_ctx.c:418(pop_sec_ctx)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1
[2012/03/14 09:59:23.701914,  3] smbd/sec_ctx.c:418(pop_sec_ctx)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2012/03/14 09:59:23.701980,  3] smbd/sec_ctx.c:210(push_sec_ctx)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2012/03/14 09:59:23.702010,  3] smbd/uid.c:429(push_conn_ctx)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2012/03/14 09:59:23.702032,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2012/03/14 09:59:23.702897,  0] lib/smbldap.c:731(smb_ldap_start_tls)
  Failed to issue the StartTLS instruction: Protocol error
[2012/03/14 09:59:23.703006,  1] lib/smbldap.c:1330(another_ldap_try)
  Connection to LDAP server failed for the 1 try!
[2012/03/14 09:59:24.703788,  3] smbd/sec_ctx.c:418(pop_sec_ctx)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2012/03/14 09:59:24.703904,  3] smbd/sec_ctx.c:210(push_sec_ctx)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2012/03/14 09:59:24.703934,  3] smbd/uid.c:429(push_conn_ctx)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2012/03/14 09:59:24.703955,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2012/03/14 09:59:24.704773,  0] lib/smbldap.c:731(smb_ldap_start_tls)
  Failed to issue the StartTLS instruction: Protocol error
[2012/03/14 09:59:24.704976,  1] lib/smbldap.c:1330(another_ldap_try)
  Connection to LDAP server failed for the 1 try!
[2012/03/14 09:59:25.705887,  2] passdb/pdb_ldap.c:2446(init_group_from_ldap)
  init_group_from_ldap: Entry found for group: 544
[2012/03/14 09:59:25.705971,  3] smbd/sec_ctx.c:418(pop_sec_ctx)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2012/03/14 09:59:25.706087,  3] smbd/sec_ctx.c:210(push_sec_ctx)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2012/03/14 09:59:25.706123,  3] smbd/uid.c:429(push_conn_ctx)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2012/03/14 09:59:25.706145,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2012/03/14 09:59:25.707194,  0] lib/smbldap.c:731(smb_ldap_start_tls)
  Failed to issue the StartTLS instruction: Protocol error
[2012/03/14 09:59:25.707416,  1] lib/smbldap.c:1330(another_ldap_try)
  Connection to LDAP server failed for the 1 try!
[2012/03/14 09:59:26.708176,  3] smbd/sec_ctx.c:418(pop_sec_ctx)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2012/03/14 09:59:26.708233,  3] smbd/sec_ctx.c:210(push_sec_ctx)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2012/03/14 09:59:26.708258,  3] smbd/uid.c:429(push_conn_ctx)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2012/03/14 09:59:26.708281,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2012/03/14 09:59:26.708354,  3] smbd/sec_ctx.c:210(push_sec_ctx)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2
[2012/03/14 09:59:26.708380,  3] smbd/uid.c:429(push_conn_ctx)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 1
[2012/03/14 09:59:26.708400,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2
[2012/03/14 09:59:26.709254,  0] lib/smbldap.c:731(smb_ldap_start_tls)
  Failed to issue the StartTLS instruction: Protocol error
[2012/03/14 09:59:26.709337,  1] lib/smbldap.c:1330(another_ldap_try)
  Connection to LDAP server failed for the 1 try!
[2012/03/14 09:59:27.709970,  3] smbd/sec_ctx.c:418(pop_sec_ctx)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1
[2012/03/14 09:59:27.710101,  3] smbd/sec_ctx.c:418(pop_sec_ctx)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2012/03/14 09:59:27.710136,  3] smbd/sec_ctx.c:210(push_sec_ctx)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2012/03/14 09:59:27.710160,  3] smbd/uid.c:429(push_conn_ctx)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2012/03/14 09:59:27.710180,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2012/03/14 09:59:27.711056,  0] lib/smbldap.c:731(smb_ldap_start_tls)
  Failed to issue the StartTLS instruction: Protocol error
[2012/03/14 09:59:27.711133,  1] lib/smbldap.c:1330(another_ldap_try)
  Connection to LDAP server failed for the 1 try!
[2012/03/14 09:59:28.712635,  3] smbd/sec_ctx.c:418(pop_sec_ctx)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2012/03/14 09:59:28.712770,  3] lib/privileges.c:63(get_privileges)
  get_privileges: No privileges assigned to SID [S-1-22-1-0]
[2012/03/14 09:59:28.712824,  3] lib/privileges.c:63(get_privileges)
  get_privileges: No privileges assigned to SID [S-1-5-2]
[2012/03/14 09:59:28.712856,  3] lib/privileges.c:63(get_privileges)
  get_privileges: No privileges assigned to SID [S-1-5-11]
[2012/03/14 09:59:28.716111,  3] smbd/sec_ctx.c:210(push_sec_ctx)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2012/03/14 09:59:28.716152,  3] smbd/uid.c:429(push_conn_ctx)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2012/03/14 09:59:28.716174,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2012/03/14 09:59:28.716247,  3] smbd/sec_ctx.c:418(pop_sec_ctx)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2012/03/14 09:59:28.716502,  3] smbd/sec_ctx.c:210(push_sec_ctx)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2012/03/14 09:59:28.716538,  3] smbd/uid.c:429(push_conn_ctx)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2012/03/14 09:59:28.716560,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2012/03/14 09:59:28.717548,  0] lib/smbldap.c:731(smb_ldap_start_tls)
  Failed to issue the StartTLS instruction: Protocol error
[2012/03/14 09:59:28.717783,  1] lib/smbldap.c:1330(another_ldap_try)
  Connection to LDAP server failed for the 1 try!
[2012/03/14 09:59:29.718682,  3] smbd/sec_ctx.c:418(pop_sec_ctx)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2012/03/14 09:59:29.718833,  3] smbd/sec_ctx.c:210(push_sec_ctx)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2012/03/14 09:59:29.718863,  3] smbd/uid.c:429(push_conn_ctx)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2012/03/14 09:59:29.718885,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2012/03/14 09:59:29.719919,  0] lib/smbldap.c:731(smb_ldap_start_tls)
  Failed to issue the StartTLS instruction: Protocol error
[2012/03/14 09:59:29.720123,  1] lib/smbldap.c:1330(another_ldap_try)
  Connection to LDAP server failed for the 1 try!
[2012/03/14 09:59:30.721115,  3] smbd/sec_ctx.c:418(pop_sec_ctx)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2012/03/14 09:59:30.721168,  3] smbd/sec_ctx.c:210(push_sec_ctx)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2012/03/14 09:59:30.721193,  3] smbd/uid.c:429(push_conn_ctx)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2012/03/14 09:59:30.721214,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2012/03/14 09:59:30.721306,  3] smbd/sec_ctx.c:210(push_sec_ctx)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2
[2012/03/14 09:59:30.721332,  3] smbd/uid.c:429(push_conn_ctx)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 1
[2012/03/14 09:59:30.721352,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2
[2012/03/14 09:59:30.722319,  0] lib/smbldap.c:731(smb_ldap_start_tls)
  Failed to issue the StartTLS instruction: Protocol error
[2012/03/14 09:59:30.722528,  1] lib/smbldap.c:1330(another_ldap_try)
  Connection to LDAP server failed for the 1 try!
[2012/03/14 09:59:31.723289,  3] smbd/sec_ctx.c:418(pop_sec_ctx)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1
[2012/03/14 09:59:31.723612,  3] smbd/sec_ctx.c:418(pop_sec_ctx)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2012/03/14 09:59:31.723644,  3] smbd/sec_ctx.c:210(push_sec_ctx)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2012/03/14 09:59:31.723667,  3] smbd/uid.c:429(push_conn_ctx)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2012/03/14 09:59:31.723688,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2012/03/14 09:59:31.724956,  0] lib/smbldap.c:731(smb_ldap_start_tls)
  Failed to issue the StartTLS instruction: Protocol error
[2012/03/14 09:59:31.725215,  1] lib/smbldap.c:1330(another_ldap_try)
  Connection to LDAP server failed for the 1 try!
[2012/03/14 09:59:32.726469,  3] smbd/sec_ctx.c:418(pop_sec_ctx)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2012/03/14 09:59:32.726565,  3] lib/privileges.c:63(get_privileges)
  get_privileges: No privileges assigned to SID [SID-501]
[2012/03/14 09:59:32.726601,  3] lib/privileges.c:63(get_privileges)
  get_privileges: No privileges assigned to SID [S-1-22-2-65534]
[2012/03/14 09:59:32.726637,  3] lib/privileges.c:63(get_privileges)
  get_privileges: No privileges assigned to SID [S-1-5-2]
[2012/03/14 09:59:32.726667,  3] lib/privileges.c:63(get_privileges)
  get_privileges: No privileges assigned to SID [S-1-5-32-546]
[2012/03/14 09:59:32.726726,  3] smbd/sec_ctx.c:210(push_sec_ctx)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2012/03/14 09:59:32.726752,  3] smbd/uid.c:429(push_conn_ctx)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2012/03/14 09:59:32.726773,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2012/03/14 09:59:32.727785,  0] lib/smbldap.c:731(smb_ldap_start_tls)
  Failed to issue the StartTLS instruction: Protocol error
[2012/03/14 09:59:32.727987,  1] lib/smbldap.c:1330(another_ldap_try)
  Connection to LDAP server failed for the 1 try!
[2012/03/14 09:59:33.729140,  3] smbd/sec_ctx.c:418(pop_sec_ctx)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2012/03/14 09:59:33.729248,  3] smbd/sec_ctx.c:210(push_sec_ctx)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2012/03/14 09:59:33.729275,  3] smbd/uid.c:429(push_conn_ctx)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2012/03/14 09:59:33.729296,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2012/03/14 09:59:33.730359,  0] lib/smbldap.c:731(smb_ldap_start_tls)
  Failed to issue the StartTLS instruction: Protocol error
[2012/03/14 09:59:33.730610,  1] lib/smbldap.c:1330(another_ldap_try)
  Connection to LDAP server failed for the 1 try!
[2012/03/14 09:59:34.731488,  3] smbd/sec_ctx.c:418(pop_sec_ctx)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2012/03/14 09:59:34.731597,  3] smbd/sec_ctx.c:210(push_sec_ctx)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2012/03/14 09:59:34.731624,  3] smbd/uid.c:429(push_conn_ctx)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2012/03/14 09:59:34.731646,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2012/03/14 09:59:34.732525,  0] lib/smbldap.c:731(smb_ldap_start_tls)
  Failed to issue the StartTLS instruction: Protocol error
[2012/03/14 09:59:34.732733,  1] lib/smbldap.c:1330(another_ldap_try)
  Connection to LDAP server failed for the 1 try!
[2012/03/14 09:59:35.733360,  3] smbd/sec_ctx.c:418(pop_sec_ctx)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2012/03/14 09:59:35.733532,  3] printing/printing.c:1412(start_background_queue)
  start_background_queue: Starting background LPQ thread
[2012/03/14 09:59:35.734225,  2] lib/util_sock.c:880(open_socket_in)
  bind failed on port 445 socket_addr = 0.0.0.0.
  Error = Адрес уже используется
[2012/03/14 09:59:35.734614,  0] smbd/server.c:500(smbd_open_one_socket)
  smbd_open_once_socket: open_socket_in: Адрес уже используется
[2012/03/14 09:59:35.734884,  2] lib/util_sock.c:880(open_socket_in)
  bind failed on port 139 socket_addr = 0.0.0.0.
  Error = Адрес уже используется
[2012/03/14 09:59:35.734936,  0] smbd/server.c:500(smbd_open_one_socket)
  smbd_open_once_socket: open_socket_in: Адрес уже используется
[2012/03/14 09:59:35.735314,  2] smbd/server.c:721(smbd_parent_loop)
  waiting for connections
Понимание - это меч с тремя кромками: ваша правда, наша правда и Истина.
Жизнь - игра: сюжет задуман фигова, но графика хорошая...
Лучший игровой сервер - Земля: карта всего одна, но на 7 миллиардов игроков; читеров нет, админ терпеливый, но если уж забанит...
Спасибо сказали:
Аватара пользователя
yamah
Сообщения: 1116
ОС: Rosa Fresh, Debian, RELS

Re: Решено: Ошибка в конфигурировании домена

Сообщение yamah »

Проблему решил самым идиотским способом - выключил ldap ssl в конфиге самбы.
Добавил в smb.conf строку.

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

ldap ssl = off
Понимание - это меч с тремя кромками: ваша правда, наша правда и Истина.
Жизнь - игра: сюжет задуман фигова, но графика хорошая...
Лучший игровой сервер - Земля: карта всего одна, но на 7 миллиардов игроков; читеров нет, админ терпеливый, но если уж забанит...
Спасибо сказали: