Обсуждение SQUID+SAMS with NTLM

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

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

Правила форума
Убедительная просьба юзать теги [code] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
Аватара пользователя
Cancer
Гл. Кастратор
Сообщения: 1269
Зарегистрирован: 2008-03-25 12:21:36
Откуда: г. Ростов-на-Дону
Контактная информация:

Re: Обсуждение SQUID+SAMS with NTLM

Непрочитанное сообщение Cancer » 2011-02-15 13:18:42

anachrom писал(а):В самом начале, при установке самбы выдает:

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

# make install clean
===>  samba-3.0.37,1 Bad autotool stanza: autoconf:262 autoheader:262.
*** Error code 1
ставлю как и написано в статье из /usr/ports/net/samba3 сначала сконфигурировав.
попробуйте переустановить autoconf

Хостинговая компания 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/

anachrom
рядовой
Сообщения: 30
Зарегистрирован: 2009-11-25 12:32:21

Re: Обсуждение SQUID+SAMS with NTLM

Непрочитанное сообщение anachrom » 2011-02-15 14:23:20

Cancer писал(а):
anachrom писал(а):В самом начале, при установке самбы выдает:

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

# make install clean
===>  samba-3.0.37,1 Bad autotool stanza: autoconf:262 autoheader:262.
*** Error code 1
ставлю как и написано в статье из /usr/ports/net/samba3 сначала сконфигурировав.
попробуйте переустановить autoconf
не помогло.

Аватара пользователя
Cancer
Гл. Кастратор
Сообщения: 1269
Зарегистрирован: 2008-03-25 12:21:36
Откуда: г. Ростов-на-Дону
Контактная информация:

Re: Обсуждение SQUID+SAMS with NTLM

Непрочитанное сообщение Cancer » 2011-02-15 17:30:54

Покажите

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

//> pkg_info | grep auto

anachrom
рядовой
Сообщения: 30
Зарегистрирован: 2009-11-25 12:32:21

Re: Обсуждение SQUID+SAMS with NTLM

Непрочитанное сообщение anachrom » 2011-02-16 8:24:49

вроде как бы и нашел проблему:
в Makefile строчку

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

USE_AUTOTOOLS=	autoconf:262 autoheader:262
меняем на

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

USE_AUTOTOOLS=	autoconf autoheader
установилось. Почему вроде, потому, что ticket еще не получил
P.S. Cancer, заранее извините, я Вам в icq написал с надеждой в помощи

Аватара пользователя
idShura
проходил мимо
Сообщения: 2
Зарегистрирован: 2011-02-01 18:24:25

Re: Обсуждение SQUID+SAMS with NTLM

Непрочитанное сообщение idShura » 2011-02-16 19:30:03

idShura писал(а):Настраивал по статье http://www.lissyara.su/articles/freebsd ... ejik-ntlm/.
Уже неделю не могу добиться блокировки пользователей по превышению трафика, т.е. при превышении трафика у пользователя снимается галочка "Активный" но он все равно продолжает лазать в инет и генерить трафик. Помогите пожалуйста разобраться, а то уже мозги плавятся просто...
Наконец я разобрался :crazy:

У кого подобная проблема, прорвете конфиг сквида squid.conf

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

# TAG: acl
# TAG: hhtp_access
Насколько я понял Sams ориентируется по этим меткам когда реконфигурирует конфиг сквида. А еще лучше возмини конфиг по умолчанию и уже его правте.

Аватара пользователя
Cancer
Гл. Кастратор
Сообщения: 1269
Зарегистрирован: 2008-03-25 12:21:36
Откуда: г. Ростов-на-Дону
Контактная информация:

Re: Обсуждение SQUID+SAMS with NTLM

Непрочитанное сообщение Cancer » 2011-02-16 22:05:17

idShura писал(а):
idShura писал(а):Настраивал по статье http://www.lissyara.su/articles/freebsd ... ejik-ntlm/.
Уже неделю не могу добиться блокировки пользователей по превышению трафика, т.е. при превышении трафика у пользователя снимается галочка "Активный" но он все равно продолжает лазать в инет и генерить трафик. Помогите пожалуйста разобраться, а то уже мозги плавятся просто...
Наконец я разобрался :crazy:

У кого подобная проблема, прорвете конфиг сквида squid.conf

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

# TAG: acl
# TAG: hhtp_access
Насколько я понял Sams ориентируется по этим меткам когда реконфигурирует конфиг сквида. А еще лучше возмини конфиг по умолчанию и уже его правте.
Не раз об этом говорил, правьте дефолтный конфиг

Аватара пользователя
dimish
мл. сержант
Сообщения: 73
Зарегистрирован: 2011-02-22 9:33:07

Re: Обсуждение SQUID+SAMS with NTLM

Непрочитанное сообщение dimish » 2011-02-26 20:10:24

Почему-то перестал авторизовываться после перезагрузки в IE и FF. В Опере нормально всё. В логах winbindd пишет следующие строки:

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

[2011/02/26 16:17:28,  0] utils/ntlm_auth.c:558(winbind_pw_check)
  Login for user [INTRANET]\[dimish]@[WS-885I] failed due to [winbind client not authorized to use winbindd_pam_auth_crap. Ensure permissions on /var/db/samba34/winbindd_privileged are set correctly.]
2011/02/26 16:17:28| authenticateNTLMHandleReply: Error validating user via NTLM. Error returned 'BH NT_STATUS_ACCESS_DENIED'
[2011/02/26 16:17:28,  0] utils/ntlm_auth.c:833(manage_squid_ntlmssp_request)
  NTLMSSP BH: NT_STATUS_ACCESS_DENIED

Видел в гугле у людей такую же проблему, но решения так и не нашёл. Не пойму что делать. Дал тестовые 777 на winbindd_privileged - всё равно не авторизует, уходит в вечный запрос пароля.

Аватара пользователя
dimish
мл. сержант
Сообщения: 73
Зарегистрирован: 2011-02-22 9:33:07

Re: Обсуждение SQUID+SAMS with NTLM

Непрочитанное сообщение dimish » 2011-02-26 20:16:47

в сквидовском cache.log, конечно, а не в winbindd

Аватара пользователя
dimish
мл. сержант
Сообщения: 73
Зарегистрирован: 2011-02-22 9:33:07

Re: Обсуждение SQUID+SAMS with NTLM

Непрочитанное сообщение dimish » 2011-03-01 18:09:06

Спасибо за ответы, всё получилось.. =)

Kano
проходил мимо
Сообщения: 5
Зарегистрирован: 2011-05-26 13:19:12

Re: Обсуждение SQUID+SAMS with NTLM

Непрочитанное сообщение Kano » 2011-05-26 13:27:25

Подскажите пож-та!
На почтовом серваке произошел сбой, сразу полез в логи, вот часть их:
May 26 13:01:26 mailserver winbindd[87611]: [2011/05/26 13:01:26, 0] winbindd/idmap.c:idmap_alloc_init(587)
May 26 13:01:26 mailserver winbindd[87611]: ERROR: Initialization failed for alloc backend, deferred!
May 26 13:03:42 mailserver winbindd[87611]: [2011/05/26 13:03:42, 0] winbindd/idmap.c:idmap_alloc_init(587)
May 26 13:03:42 mailserver winbindd[87611]: ERROR: Initialization failed for alloc backend, deferred!
May 26 13:13:26 mailserver winbindd[87611]: [2011/05/26 13:13:26, 0] winbindd/idmap.c:idmap_alloc_init(587)
May 26 13:13:26 mailserver winbindd[87611]: ERROR: Initialization failed for alloc backend, deferred!
May 26 13:25:26 mailserver winbindd[87611]: [2011/05/26 13:25:26, 0] winbindd/idmap.c:idmap_alloc_init(587)
May 26 13:25:26 mailserver winbindd[87611]: ERROR: Initialization failed for alloc backend, deferred!
May 26 13:35:42 mailserver winbindd[87611]: [2011/05/26 13:35:42, 0] winbindd/idmap.c:idmap_alloc_init(587)
May 26 13:35:42 mailserver winbindd[87611]: ERROR: Initialization failed for alloc backend, deferred!
May 26 13:49:26 mailserver winbindd[87611]: [2011/05/26 13:49:26, 0] winbindd/idmap.c:idmap_alloc_init(587)
May 26 13:49:26 mailserver winbindd[87611]: ERROR: Initialization failed for alloc backend, deferred!
May 26 14:01:26 mailserver winbindd[87611]: [2011/05/26 14:01:26, 0] winbindd/idmap.c:idmap_alloc_init(587)
May 26 14:01:26 mailserver winbindd[87611]: ERROR: Initialization failed for alloc backend, deferred!
May 26 14:07:42 mailserver winbindd[87611]: [2011/05/26 14:07:42, 0] winbindd/idmap.c:idmap_alloc_init(587)
May 26 14:07:42 mailserver winbindd[87611]: ERROR: Initialization failed for alloc backend, deferred!
May 26 14:13:26 mailserver winbindd[87611]: [2011/05/26 14:13:26, 0] winbindd/idmap.c:idmap_alloc_init(587)
May 26 14:13:26 mailserver winbindd[87611]: ERROR: Initialization failed for alloc backend, deferred!

скажите куда копать?

Аватара пользователя
vadim64
майор
Сообщения: 2101
Зарегистрирован: 2009-09-17 15:15:26
Откуда: Засратовец

Re: Обсуждение SQUID+SAMS with NTLM

Непрочитанное сообщение vadim64 » 2011-05-26 19:49:16

вы с ума сошли? как созрела мысль написать в тему про прокси-сервер о том что у вас на почтовике самба в логи срёт?
Люди не делятся на национальности, партии, фракции и религии. Люди делятся на умных и дураков, а вот дураки делятся на национальности, партии, фракции и религии.

Аватара пользователя
Time
сержант
Сообщения: 195
Зарегистрирован: 2008-09-04 4:31:16
Откуда: Абакан
Контактная информация:

Re: Обсуждение SQUID+SAMS with NTLM

Непрочитанное сообщение Time » 2011-05-30 12:39:46

здраствуйте установил samba35
билет получил
klist

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

Credentials cache: FILE:/tmp/krb5cc_0
        Principal: krb@ххх.RU

  Issued           Expires          Principal
May 30 20:30:03  May 31 06:30:03  krbtgt/ххх.RU@ХХХ.RU
net ads join -U krb

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

realm must be set in in /usr/local/etc/smb.conf for ADS join to succeed.
Invalid configuration.  Exiting....
Failed to join domain: Invalid parameter
ee /usr/local/etc/smb.conf
опция стоит

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

# 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
что за борода?

Аватара пользователя
Cancer
Гл. Кастратор
Сообщения: 1269
Зарегистрирован: 2008-03-25 12:21:36
Откуда: г. Ростов-на-Дону
Контактная информация:

Re: Обсуждение SQUID+SAMS with NTLM

Непрочитанное сообщение Cancer » 2011-06-01 22:22:49

Time писал(а):здраствуйте установил samba35
билет получил
klist

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

Credentials cache: FILE:/tmp/krb5cc_0
        Principal: krb@ххх.RU

  Issued           Expires          Principal
May 30 20:30:03  May 31 06:30:03  krbtgt/ххх.RU@ХХХ.RU
net ads join -U krb

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

realm must be set in in /usr/local/etc/smb.conf for ADS join to succeed.
Invalid configuration.  Exiting....
Failed to join domain: Invalid parameter
ee /usr/local/etc/smb.conf
опция стоит

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

# 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
что за борода?
Показывай

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

//> testparm

Да и логи посмотри!

Аватара пользователя
Time
сержант
Сообщения: 195
Зарегистрирован: 2008-09-04 4:31:16
Откуда: Абакан
Контактная информация:

Re: Обсуждение SQUID+SAMS with NTLM

Непрочитанное сообщение Time » 2011-06-02 3:38:35

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

testparm
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)
Processing section "[homes]"
Processing section "[printers]"
Global parameter winbind use default domain found in service section!
Global parameter winbind uid found in service section!
Global parameter winbind gid found in service section!
Global parameter winbind enum users found in service section!
Global parameter winbind enum groups found in service section!
Loaded services file OK.
Server role: ROLE_DOMAIN_MEMBER
Press enter to see a dump of your service definitions

[global]
        workgroup = xxx.RU
        server string = SambaSAMS Server
        security = ADS
        log file = /var/log/samba/log.%m
        max log size = 50
        load printers = No
        dns proxy = No

[homes]
        comment = Home Directories
        read only = No
        browseable = No

[printers]
        comment = All Printers
        path = /var/spool/samba
        printable = Yes
        browseable = No

Аватара пользователя
Time
сержант
Сообщения: 195
Зарегистрирован: 2008-09-04 4:31:16
Откуда: Абакан
Контактная информация:

Re: Обсуждение SQUID+SAMS with NTLM

Непрочитанное сообщение Time » 2011-06-02 10:27:58

проблема решилась , вот теперь почему то выдает ошибку:
# wbinfo -g
Error looking up domain groups
# wbinfo -u
Error looking up domain users

Аватара пользователя
Cancer
Гл. Кастратор
Сообщения: 1269
Зарегистрирован: 2008-03-25 12:21:36
Откуда: г. Ростов-на-Дону
Контактная информация:

Re: Обсуждение SQUID+SAMS with NTLM

Непрочитанное сообщение Cancer » 2011-06-02 20:37:58

самба какой версии стоит ?
у меня такое было с 3.5

Аватара пользователя
Time
сержант
Сообщения: 195
Зарегистрирован: 2008-09-04 4:31:16
Откуда: Абакан
Контактная информация:

Re: Обсуждение SQUID+SAMS with NTLM

Непрочитанное сообщение Time » 2011-06-03 3:25:07

сначало 3.5 стояла, потом думал глюк в ней поставил 3.4

mymymy
сержант
Сообщения: 224
Зарегистрирован: 2008-05-16 21:23:38
Откуда: Москва

Re: Обсуждение SQUID+SAMS with NTLM

Непрочитанное сообщение mymymy » 2011-06-16 8:56:31

Столкнулся с проблемой непонятной. Работала себе прозрачная авторизация ntlm в домене.

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

..
auth_param ntlm program /usr/local/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp
auth_param ntlm children 30
auth_param ntlm keep_alive on
auth_param basic program /usr/local/bin/ntlm_auth --helper-protocol=squid-2.5-basic
auth_param basic children 10
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
..
И вдруг сквид стал писать "доступ запрещен". Даже окно авторизации не выскакивает. В итоге стало понятно что перестала работать связка сквида и winbindd. Сам винбинд все видит,все проверки проходит, пользователей распознает.

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

# /usr/local/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp
YR
TT TlRMTVNTUAACAAAAAAAAADAAAAACAgAATL9ZRwF9AYQAAAAAAAAAAAAAAAAwAAAA
И так хавает:

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

# /usr/local/bin/ntlm_auth --helper-protocol=squid-2.5-basic
gate 12345
OK
Пока пришлось отключить squidguard и разрешить всем ходить через прокси
Как проверить саму связку сквид и самба авторизатор?

mymymy
сержант
Сообщения: 224
Зарегистрирован: 2008-05-16 21:23:38
Откуда: Москва

Re: Обсуждение SQUID+SAMS with NTLM

Непрочитанное сообщение mymymy » 2011-06-16 14:48:51

мистика..вопрос снят

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

Re: Обсуждение SQUID+SAMS with NTLM

Непрочитанное сообщение Гость » 2011-06-23 10:35:44

Настраивал по этой инструкции.
Возникли проблемы.
В принципе всё работает, но очень плохо и медленно. На клиентах переодически просит ввести пароль, очень долгий вход в домен.

Вот что в логе /va/log/samba34/log.winbind

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

[2011/06/23 10:53:10,  0] winbindd/winbindd.c:1254(main)
  winbindd version 3.4.9 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2009
[2011/06/23 10:53:10,  0] winbindd/winbindd_cache.c:2578(initialize_winbindd_cache)
  initialize_winbindd_cache: clearing cache and re-creating with version number 1
[2011/06/23 10:54:30,  1] libads/cldap.c:156(recv_cldap_netlogon)
  no reply received to cldap netlogon (select timeout 7 sec)
[2011/06/23 10:55:16,  1] libads/cldap.c:156(recv_cldap_netlogon)
  no reply received to cldap netlogon (select timeout 7 sec)
[2011/06/23 10:55:23,  1] libads/cldap.c:156(recv_cldap_netlogon)
  no reply received to cldap netlogon (select timeout 7 sec)
[2011/06/23 10:56:08,  1] libsmb/clikrb5.c:696(ads_krb5_mk_req)
  ads_krb5_mk_req: krb5_get_credentials failed for DC1rc$@RKC.EFORM.LOCAL (Cannot contact any KDC for requested realm
[2011/06/23 10:56:08,  1] libsmb/cliconnect.c:746(cli_session_setup_kerberos)
  cli_session_setup_kerberos: spnego_gen_negTokenTarg failed: Cannot contact any KDC for requested realm
[2011/06/23 10:56:18,  0] libsmb/clientgen.c:174(cli_receive_smb)
  Receiving SMB: Server stopped responding
[2011/06/23 10:56:18,  1] libsmb/async_smb.c:607(cli_request_send)
  cli_chain_cork failed
[2011/06/23 10:56:49,  1] libsmb/clikrb5.c:696(ads_krb5_mk_req)
  ads_krb5_mk_req: krb5_get_credentials failed for DC1rc$@RKC.EFORM.LOCAL (Cannot contact any KDC for requested realm
[2011/06/23 10:56:49,  1] libsmb/cliconnect.c:746(cli_session_setup_kerberos)
  cli_session_setup_kerberos: spnego_gen_negTokenTarg failed: Cannot contact any KDC for requested realm
[2011/06/23 10:56:56,  1] winbindd/winbindd_ads.c:127(ads_cached_connection)
  ads_connect for domain RKC failed: No logon servers
[2011/06/23 10:57:18,  1] libads/cldap.c:156(recv_cldap_netlogon)
  no reply received to cldap netlogon (select timeout 7 sec)
[2011/06/23 10:58:22,  1] winbindd/winbindd_util.c:303(trustdom_recv)
  Could not receive trustdoms
[2011/06/23 11:00:12,  1] winbindd/winbindd_ads.c:127(ads_cached_connection)
  ads_connect for domain RKC failed: No logon servers
[2011/06/23 11:00:27,  1] winbindd/winbindd_ads.c:127(ads_cached_connection)
  ads_connect for domain RKC failed: No logon servers
[2011/06/23 11:00:34,  1] winbindd/winbindd_ads.c:127(ads_cached_connection)
  ads_connect for domain RKC failed: No logon servers
[2011/06/23 11:00:41,  1] winbindd/winbindd_ads.c:127(ads_cached_connection)
  ads_connect for domain RKC failed: No logon servers
file "log.winbindd", 53 lines
В файле /var/log/samba34/log.nmbd

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

[2011/06/23 10:53:09,  0] nmbd/nmbd.c:855(main)
  nmbd version 3.4.9 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2009
[2011/06/23 10:53:31,  0] nmbd/nmbd_become_lmb.c:395(become_local_master_stage2)
  *****

  Samba name server HLUZ is now a local master browser for workgroup ZHIGULEVSK on subnet 192.168.20.9

  *****
В файле /var/log/samba34/log.smbd

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

[2011/06/23 10:53:09,  0] smbd/server.c:1065(main)
  smbd version 3.4.9 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2009
[2011/06/23 10:53:09,  1] smbd/files.c:177(file_init)
  file_init: Information only: requested 16384 open files, 8972 are available.
[2011/06/23 10:53:11,  0] lib/util_sock.c:902(open_socket_in)
  open_socket_in(): socket() call failed: Protocol not supported
[2011/06/23 10:53:11,  0] smbd/server.c:457(smbd_open_one_socket)
  smbd_open_once_socket: open_socket_in: Protocol not supported
[2011/06/23 10:53:11,  0] lib/util_sock.c:902(open_socket_in)
  open_socket_in(): socket() call failed: Protocol not supported
[2011/06/23 10:53:11,  0] smbd/server.c:457(smbd_open_one_socket)
  smbd_open_once_socket: open_socket_in: Protocol not supported
В файле /var/log/samba34/log.winbindd-idmap

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

[2011/06/23 10:51:35,  1] libads/cldap.c:156(recv_cldap_netlogon)
  no reply received to cldap netlogon (select timeout 7 sec)
[2011/06/23 10:52:05,  1] libads/cldap.c:156(recv_cldap_netlogon)
  no reply received to cldap netlogon (select timeout 7 sec)
[2011/06/23 10:52:06,  1] libads/cldap.c:156(recv_cldap_netlogon)
  no reply received to cldap netlogon (select timeout 7 sec)
[2011/06/23 10:52:13,  1] libads/cldap.c:156(recv_cldap_netlogon)
  no reply received to cldap netlogon (select timeout 7 sec)
[2011/06/23 10:57:53,  1] libads/cldap.c:156(recv_cldap_netlogon)
  no reply received to cldap netlogon (select timeout 7 sec)
[2011/06/23 10:57:54,  1] libads/cldap.c:156(recv_cldap_netlogon)
  no reply received to cldap netlogon (select timeout 7 sec)
[2011/06/23 10:57:58,  1] libads/cldap.c:156(recv_cldap_netlogon)
  no reply received to cldap netlogon (select timeout 7 sec)
[2011/06/23 10:58:01,  1] libads/cldap.c:156(recv_cldap_netlogon)
  no reply received to cldap netlogon (select timeout 7 sec)
[2011/06/23 10:58:34,  1] libads/cldap.c:156(recv_cldap_netlogon)
  no reply received to cldap netlogon (select timeout 7 sec)
[2011/06/23 10:58:54,  1] libads/cldap.c:156(recv_cldap_netlogon)
  no reply received to cldap netlogon (select timeout 7 sec)
[2011/06/23 10:58:56,  1] libads/cldap.c:156(recv_cldap_netlogon)
В файле /var/log/samba34/log/winbind-idmap

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

[2011/06/23 10:58:49,  0] winbindd/idmap.c:201(smb_register_idmap_alloc)
  idmap_alloc module ldap already registered!
[2011/06/23 10:58:49,  0] winbindd/idmap.c:201(smb_register_idmap_alloc)
  idmap_alloc module tdb already registered!
[2011/06/23 10:58:49,  0] winbindd/idmap.c:149(smb_register_idmap)
  Idmap module passdb already registered!
[2011/06/23 10:58:49,  0] winbindd/idmap.c:149(smb_register_idmap)
  Idmap module nss already registered!
[2011/06/23 10:58:49,  0] winbindd/idmap.c:201(smb_register_idmap_alloc)
  idmap_alloc module ldap already registered!
[2011/06/23 10:58:49,  0] winbindd/idmap.c:201(smb_register_idmap_alloc)
  idmap_alloc module tdb already registered!
[2011/06/23 10:58:49,  0] winbindd/idmap.c:149(smb_register_idmap)
  Idmap module passdb already registered!
[2011/06/23 10:58:49,  0] winbindd/idmap.c:149(smb_register_idmap)
  Idmap module nss already registered!
[2011/06/23 10:58:49,  0] winbindd/idmap.c:201(smb_register_idmap_alloc)
  idmap_alloc module ldap already registered!
[2011/06/23 10:58:49,  0] winbindd/idmap.c:201(smb_register_idmap_alloc)
  idmap_alloc module tdb already registered!
[2011/06/23 10:58:49,  0] winbindd/idmap.c:149(smb_register_idmap)
  Idmap module passdb already registered!
[2011/06/23 10:58:49,  0] winbindd/idmap.c:149(smb_register_idmap)
  Idmap module nss already registered!
[2011/06/23 10:58:49,  0] winbindd/idmap.c:201(smb_register_idmap_alloc)
  idmap_alloc module ldap already registered!
[2011/06/23 10:58:49,  0] winbindd/idmap.c:201(smb_register_idmap_alloc)
  idmap_alloc module tdb already registered!
[2011/06/23 10:58:49,  0] winbindd/idmap.c:149(smb_register_idmap)
  Idmap module passdb already registered!
[2011/06/23 10:58:49,  0] winbindd/idmap.c:149(smb_register_idmap)
  Idmap module nss already registered!

Longmen
проходил мимо
Сообщения: 4
Зарегистрирован: 2011-06-23 10:14:45

Re: Обсуждение SQUID+SAMS with NTLM

Непрочитанное сообщение Longmen » 2011-06-23 10:42:44

Предыдущее сообщение от меня - забыл авторизироваться.
Вот что в /var/log/mesages/

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

Jun 23 11:31:29 hluz newsyslog[876]: logfile first created
Jun 23 11:31:30 hluz syslogd: kernel boot file is /boot/kernel/kernel
Jun 23 11:31:30 hluz kernel: Copyright (c) 1992-2011 The FreeBSD Project.
Jun 23 11:31:30 hluz kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
Jun 23 11:31:30 hluz kernel: The Regents of the University of California. All rights reserved.
Jun 23 11:31:30 hluz kernel: FreeBSD is a registered trademark of The FreeBSD Foundation.
Jun 23 11:31:30 hluz kernel: FreeBSD 8.2-RELEASE #1: Tue Jun 21 11:04:01 SAMST 2011
Jun 23 11:31:30 hluz kernel: root@hluz.zhigulevsk.eform.local:/usr/obj/usr/src/sys/HLUZ i386
Jun 23 11:31:30 hluz kernel: Timecounter "i8254" frequency 1193182 Hz quality 0
Jun 23 11:31:30 hluz kernel: CPU: Intel(R) Celeron(R) CPU 2.40GHz (2423.88-MHz 686-class CPU)
Jun 23 11:31:30 hluz kernel: Origin = "GenuineIntel"  Id = 0xf29  Family = f  Model = 2  Stepping = 9
Jun 23 11:31:30 hluz kernel: Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,P
Jun 23 11:31:30 hluz kernel: Features2=0x4400<CNXT-ID,xTPR>
Jun 23 11:31:30 hluz kernel: real memory  = 671088640 (640 MB)
Jun 23 11:31:30 hluz kernel: avail memory = 639004672 (609 MB)
Jun 23 11:31:30 hluz kernel: kbd1 at kbdmux0
Jun 23 11:31:30 hluz kernel: cryptosoft0: <software crypto> on motherboard
Jun 23 11:31:30 hluz kernel: acpi0: <GBT AWRDACPI> on motherboard
Jun 23 11:31:30 hluz kernel: acpi0: [ITHREAD]
Jun 23 11:31:30 hluz kernel: acpi0: Power Button (fixed)
Jun 23 11:31:30 hluz kernel: acpi0: reservation of 0, a0000 (3) failed
Jun 23 11:31:30 hluz kernel: acpi0: reservation of 100000, 276f0000 (3) failed
Jun 23 11:31:30 hluz kernel: cpu0: <ACPI CPU> on acpi0
Jun 23 11:31:30 hluz kernel: acpi_button0: <Power Button> on acpi0
Jun 23 11:31:30 hluz kernel: acpi_button1: <Sleep Button> on acpi0
Jun 23 11:31:30 hluz kernel: pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff,0x4000-0x40bf on acpi0
Jun 23 11:31:30 hluz kernel: pci0: <ACPI PCI bus> on pcib0
Jun 23 11:31:30 hluz kernel: vgapci0: <VGA-compatible display> mem 0xe0000000-0xe7ffffff,0xea000000-0xea07ffff irq 5
Jun 23 11:31:30 hluz kernel: agp0: <Intel 82845M (845M GMCH) SVGA controller> on vgapci0
Jun 23 11:31:30 hluz kernel: agp0: detected 8060k stolen memory
Jun 23 11:31:30 hluz kernel: agp0: aperture size is 128M
Jun 23 11:31:30 hluz kernel: pci0: <serial bus, USB> at device 29.0 (no driver attached)
Jun 23 11:31:30 hluz kernel: pci0: <serial bus, USB> at device 29.1 (no driver attached)
Jun 23 11:31:30 hluz kernel: pci0: <serial bus, USB> at device 29.2 (no driver attached)
Jun 23 11:31:30 hluz kernel: pci0: <serial bus, USB> at device 29.7 (no driver attached)
Jun 23 11:31:30 hluz kernel: pcib1: <ACPI PCI-PCI bridge> at device 30.0 on pci0
Jun 23 11:31:30 hluz kernel: pci1: <ACPI PCI bus> on pcib1
Jun 23 11:31:30 hluz kernel: rl0: <RealTek 8139 10/100BaseTX> port 0xc000-0xc0ff mem 0xe9000000-0xe90000ff irq 11 at
Jun 23 11:31:30 hluz kernel: miibus0: <MII bus> on rl0
Jun 23 11:31:30 hluz kernel: rlphy0: <RealTek internal media interface> PHY 0 on miibus0
Jun 23 11:31:30 hluz kernel: rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
Jun 23 11:31:30 hluz kernel: rl0: Ethernet address: 00:e0:52:af:ed:50
Jun 23 11:31:30 hluz kernel: rl0: [ITHREAD]
Jun 23 11:31:30 hluz kernel: rl1: <RealTek 8139 10/100BaseTX> port 0xc400-0xc4ff mem 0xe9001000-0xe90010ff irq 10 at
Jun 23 11:31:30 hluz kernel: miibus1: <MII bus> on rl1
Jun 23 11:31:30 hluz kernel: rlphy1: <RealTek internal media interface> PHY 0 on miibus1
Jun 23 11:31:30 hluz kernel: rlphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
Jun 23 11:31:30 hluz kernel: rl1: Ethernet address: 00:0d:61:6d:7f:9e
Jun 23 11:31:30 hluz kernel: rl1: [ITHREAD]
Jun 23 11:31:30 hluz kernel: isab0: <PCI-ISA bridge> at device 31.0 on pci0
Jun 23 11:31:30 hluz kernel: isa0: <ISA bus> on isab0
Jun 23 11:31:30 hluz kernel: atapci0: <Intel ICH4 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf00
Jun 23 11:31:30 hluz kernel: ata0: <ATA channel 0> on atapci0
Jun 23 11:31:30 hluz kernel: ata0: [ITHREAD]
Jun 23 11:31:30 hluz kernel: ata1: <ATA channel 1> on atapci0
Jun 23 11:31:30 hluz kernel: ata1: [ITHREAD]
Jun 23 11:31:30 hluz kernel: pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
Jun 23 11:31:30 hluz kernel: pci0: <multimedia, audio> at device 31.5 (no driver attached)
Jun 23 11:31:30 hluz kernel: atrtc0: <AT realtime clock> port 0x70-0x73 irq 8 on acpi0
Jun 23 11:31:30 hluz kernel: fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
Jun 23 11:31:30 hluz kernel: fdc0: [FILTER]
Jun 23 11:31:30 hluz kernel: fd0: <1440-KB 3.5" drive> on fdc0 drive 0
Jun 23 11:31:30 hluz kernel: uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
Jun 23 11:31:30 hluz kernel: uart0: [FILTER]
Jun 23 11:31:30 hluz kernel: uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0
Jun 23 11:31:30 hluz kernel: uart1: [FILTER]
Jun 23 11:31:30 hluz kernel: ppc0: <Parallel port> port 0x378-0x37f irq 7 on acpi0
Jun 23 11:31:30 hluz kernel: ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
Jun 23 11:31:30 hluz kernel: ppc0: [ITHREAD]
Jun 23 11:31:30 hluz kernel: ppbus0: <Parallel port bus> on ppc0
Jun 23 11:31:30 hluz kernel: plip0: <PLIP network interface> on ppbus0
Jun 23 11:31:30 hluz kernel: plip0: [ITHREAD]
Jun 23 11:31:30 hluz kernel: lpt0: <Printer> on ppbus0
Jun 23 11:31:30 hluz kernel: lpt0: [ITHREAD]
Jun 23 11:31:30 hluz kernel: lpt0: Interrupt-driven port
Jun 23 11:31:30 hluz kernel: ppi0: <Parallel I/O> on ppbus0
Jun 23 11:31:30 hluz kernel: atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
Jun 23 11:31:30 hluz kernel: atkbd0: <AT Keyboard> irq 1 on atkbdc0
Jun 23 11:31:30 hluz kernel: kbd0 at atkbd0
Jun 23 11:31:30 hluz kernel: atkbd0: [GIANT-LOCKED]
Jun 23 11:31:30 hluz kernel: atkbd0: [ITHREAD]
Jun 23 11:31:30 hluz kernel: pmtimer0 on isa0
Jun 23 11:31:30 hluz kernel: orm0: <ISA Option ROM> at iomem 0xcc000-0xd3fff pnpid ORM0000 on isa0
Jun 23 11:31:30 hluz kernel: sc0: <System console> at flags 0x100 on isa0
Jun 23 11:31:30 hluz kernel: sc0: VGA <16 virtual consoles, flags=0x300>
Jun 23 11:31:30 hluz kernel: vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Jun 23 11:31:30 hluz kernel: p4tcc0: <CPU Frequency Thermal Control> on cpu0
Jun 23 11:31:30 hluz kernel: Timecounter "TSC" frequency 2423875884 Hz quality 800
Jun 23 11:31:30 hluz kernel: Timecounters tick every 1.000 msec
Jun 23 11:31:30 hluz kernel: IPsec: Initialized Security Association Processing.
Jun 23 11:31:30 hluz kernel: ipfw2 initialized, divert enabled, nat loadable, rule-based forwarding enabled, default
Jun 23 11:31:30 hluz kernel: load_dn_sched dn_sched PRIO loaded
Jun 23 11:31:30 hluz kernel: load_dn_sched dn_sched QFQ loaded
Jun 23 11:31:30 hluz kernel: load_dn_sched dn_sched RR loaded
Jun 23 11:31:30 hluz kernel: load_dn_sched dn_sched WF2Q+ loaded
Jun 23 11:31:30 hluz kernel: load_dn_sched dn_sched FIFO loaded
Jun 23 11:31:30 hluz kernel: ad0: 38165MB <Seagate ST340014A 3.06> at ata0-master UDMA100
Jun 23 11:31:30 hluz kernel: acd0: CDROM <ASUS CD-S520/A4/1.2> at ata1-slave UDMA33
Jun 23 11:31:30 hluz kernel: Trying to mount root from ufs:/dev/ad0s1a
Jun 23 11:31:33 hluz winbindd[1167]: [2011/06/23 11:31:33,  0] winbindd/winbindd_cache.c:2578(initialize_winbindd_ca
Jun 23 11:31:33 hluz winbindd[1167]:   initialize_winbindd_cache: clearing cache and re-creating with version number
Jun 23 11:31:34 hluz smbd[1163]: [2011/06/23 11:31:34,  0] lib/util_sock.c:902(open_socket_in)
Jun 23 11:31:34 hluz smbd[1163]:   open_socket_in(): socket() call failed: Protocol not supported
Jun 23 11:31:34 hluz smbd[1163]: [2011/06/23 11:31:34,  0] smbd/server.c:457(smbd_open_one_socket)
Jun 23 11:31:34 hluz smbd[1163]:   smbd_open_once_socket: open_socket_in: Protocol not supported
Jun 23 11:31:34 hluz smbd[1163]: [2011/06/23 11:31:34,  0] lib/util_sock.c:902(open_socket_in)
Jun 23 11:31:34 hluz smbd[1163]:   open_socket_in(): socket() call failed: Protocol not supported
Jun 23 11:31:34 hluz smbd[1163]: [2011/06/23 11:31:34,  0] smbd/server.c:457(smbd_open_one_socket)
Jun 23 11:31:34 hluz smbd[1163]:   smbd_open_once_socket: open_socket_in: Protocol not supported
Jun 23 11:31:34 hluz smbd[1163]: [2011/06/23 11:31:34,  0] lib/util_sock.c:902(open_socket_in)
Jun 23 11:31:34 hluz smbd[1163]:   open_socket_in(): socket() call failed: Protocol not supported
Jun 23 11:31:34 hluz smbd[1163]: [2011/06/23 11:31:34,  0] smbd/server.c:457(smbd_open_one_socket)
Jun 23 11:31:34 hluz smbd[1163]:   smbd_open_once_socket: open_socket_in: Protocol not supported
Jun 23 11:31:37 hluz squid[1182]: Squid Parent: child process 1184 started
Jun 23 11:31:38 hluz (ntlm_auth): [2011/06/23 11:31:38,  0] utils/ntlm_auth.c:174(get_winbind_domain)
Jun 23 11:31:38 hluz (ntlm_auth):   could not obtain winbind domain name!
Jun 23 11:31:38 hluz (ntlm_auth): [2011/06/23 11:31:38,  0] utils/ntlm_auth.c:174(get_winbind_domain)
Jun 23 11:31:38 hluz (ntlm_auth):   could not obtain winbind domain name!
Jun 23 11:31:57 hluz nmbd[1159]: [2011/06/23 11:31:57,  0] nmbd/nmbd_become_lmb.c:395(become_local_master_stage2)
Jun 23 11:31:57 hluz nmbd[1159]:   *****
Jun 23 11:31:57 hluz nmbd[1159]:
Jun 23 11:31:57 hluz nmbd[1159]:   Samba name server HLUZ is now a local master browser for workgroup ZHIGULEVSK on
Jun 23 11:31:57 hluz nmbd[1159]:
Jun 23 11:31:57 hluz nmbd[1159]:   *****
Jun 23 11:32:37 hluz root: /etc/rc: WARNING: failed to start sams
Jun 23 11:34:04 hluz (ntlm_auth): [2011/06/23 11:34:04,  0] utils/ntlm_auth.c:200(get_winbind_netbios_name)
Jun 23 11:34:04 hluz (ntlm_auth):   could not obtain winbind netbios name!
Jun 23 11:34:04 hluz (ntlm_auth): [2011/06/23 11:34:04,  0] utils/ntlm_auth.c:200(get_winbind_netbios_name)
Jun 23 11:34:04 hluz (ntlm_auth):   could not obtain winbind netbios name!
Jun 23 11:34:20 hluz winbindd[1167]: [2011/06/23 11:34:20,  0] libsmb/clientgen.c:174(cli_receive_smb)
Jun 23 11:34:20 hluz winbindd[1167]:   Receiving SMB: Server stopped responding
Jun 23 11:38:00 hluz login: ROOT LOGIN (root) ON ttyv1

Longmen
проходил мимо
Сообщения: 4
Зарегистрирован: 2011-06-23 10:14:45

Re: Обсуждение SQUID+SAMS with NTLM

Непрочитанное сообщение Longmen » 2011-06-23 10:53:20

rc.conf

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

hostname="hluz.zhigulevsk.eform.local"
ifconfig_rl0="inet 192.168.20.9  netmask 255.255.255.0"
ifconfig_rl1="inet 192.168.21.1 netmask 255.255.255.0"
gateway_enable="YES"
defaultrouter="192.168.20.2"
keymap="ru.koi8-r"
natd_enable="YES"
natd_interface="rl0"
firewall_enable="YES"
firewall_type="OPEN"
sshd_enable="YES"
samba_enable="YES"
apache22_enable="YES"
squid_enable="YES"
mysql_enable="YES"
sams_enable="YES"
hosts

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

::1                     localhost localhost.zhigulevsk.eform.local
127.0.0.1               localhost localhost.zhigulevsk.eform.local
192.168.20.9            hluz.zhigulevsk.eform.local hluz
192.168.20.9            hluz.zhigulevsk.eform.local.
192.168.21.1            hluz.zhigulevsk.eform.local
192.168.20.3            dc1z.zhigulevsk.eform.local dc1z
resolv.conf

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

domain  zhigulevsk.eform.local
nameserver      192.168.20.3
smb.conf

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

[global]
   workgroup = ZHIGULEVSK
   server string = Шлюз
   security = ADS
   hosts allow = 192.168.21. 192.168.20. 127.
   log file = /var/log/samba34/log.%m
   max log size = 50
   password server = dc1z.zhigulevsk.eform.local
   realm = ZHIGULEVSK.EFORM.LOCAL
   dns proxy = no
   display charset = koi8-r
   unix charset = koi8-r
   dos charset = cp866
winbind separator = +
winbind use default domain = yes
winbind uid = 10000-15000
winbind gid = 10000-15000
winbind enum users = yes
winbind enum groups = yes
sams.conf

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

[client]
SQUID_DB=squidlog
SAMS_DB=squidctrl
MYSQLHOSTNAME=localhost
MYSQLUSER=sams
MYSQLPASSWORD=пароль sql
MYSQLVERSION=5.1
SQUIDCACHEFILE=access.log
SQUIDROOTDIR=/usr/local/etc/squid
SQUIDLOGDIR=/var/log/squid
SQUIDCACHEDIR=/var/spool/squid
SAMSPATH=/usr/local
SQUIDPATH=/usr/local/sbin
#SQUIDGUARDLOGPATH=/var/log
#SQUIDGUARDDBPATH=/var/db/squidGuard
RECODECOMMAND=iconv -f KOI8-R -t 866 %finp > %fout
LDAPSERVER=192.168.20.3
LDAPBASEDN=ZHIGULEVSK.EFORM.LOCAL
LDAPUSER=Evgeniy_Stegalin
LDAPUSERPASSWD=пароль админа домена
LDAPUSERSGROUP=Users
REJIKPATH=/usr/local/rejik
SHUTDOWNCOMMAND=/sbin/shutdown -h now
CACHENUM=0
nsswitch.conf

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

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
krb5.conf

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

[libdefaults]
        default_realm = ZHIGULEVSK.EFORM.LOCAL
        clockskew = 300
        v4_instance_resolve = false
        v4_name_convert = {
                host = {
                        rcmd = host
                        ftp = ftp
                }
                plain = {
                        something = something-else
                }
        }

[realms]
        ZHIGULEVSK.EFORM.LOCAL = {
                kdc = 192.168.20.3
                admin_server = 192.168.20.3
                kpasswd_server = 192.168.20.3
        }
[domain_realm]
        .zhigulevsk.eform.local = ZHIGULEVSK.EFORM.LOCAL

Longmen
проходил мимо
Сообщения: 4
Зарегистрирован: 2011-06-23 10:14:45

Re: Обсуждение SQUID+SAMS with NTLM

Непрочитанное сообщение Longmen » 2011-06-28 8:04:02

Парни, подскажите, пожалуйста, вторую неделю уже бьюсь.
uname -a

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

FreeBSD hluz.zhigulevsk.eform.local 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Mon Jun 27 09:49:02 SAMST 2011     root@hluz.zhigulevsk.eform.local:/usr/obj/usr/src/sys/HLUZFULLNOIP6  i386
samba34-3.4.9_2
Windows server 2008R2
Остались вот такие ошибки, суть ошибок понятна почти , непонятно как от них избавиться. В гугле по ним иформацию не нашел.
К домену цепляется, группы видит, пользователей тоже, по id информацию показывает.
Как отчистить кеш winbind или пересоздать его?
Как включить поддержку шифрования на виндовом сервере, или как отключить её на freebsd?
в log.winbindd

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

[2011/06/28 08:16:49,  0] winbindd/winbindd.c:1254(main)
  winbindd version 3.4.9 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2009
[2011/06/28 08:16:49,  0] winbindd/winbindd_cache.c:2578(initialize_winbindd_cache)
  initialize_winbindd_cache: clearing cache and re-creating with version number 1
[2011/06/28 08:17:03,  0] libsmb/cliconnect.c:997(cli_session_setup_spnego)
  Kinit failed: KDC has no support for encryption type
[2011/06/28 08:17:39,  1] libads/cldap.c:156(recv_cldap_netlogon)
  no reply received to cldap netlogon (select timeout 7 sec)
[2011/06/28 08:17:45,  0] libads/kerberos.c:333(ads_kinit_password)
  kerberos_kinit_password HLUZ$@ZHIGULEVSK.EFORM.LOCAL failed: KDC has no support for encryption type
[2011/06/28 08:17:45,  1] winbindd/winbindd_ads.c:127(ads_cached_connection)
  ads_connect for domain TOSNO failed: KDC has no support for encryption type
[2011/06/28 08:18:40,  1] libads/cldap.c:156(recv_cldap_netlogon)
  no reply received to cldap netlogon (select timeout 7 sec)


И вот такие повторяющиеся в log.winbindd-dc-connect

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

[2011/06/28 08:15:34,  1] libads/cldap.c:156(recv_cldap_netlogon)
  no reply received to cldap netlogon (select timeout 7 sec)
Все конфиги настроил в соответствии с интсрукцией, уже не знаю что делать дальше.
ee /etc/hosts

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

::1                     localhost localhost.zhigulevsk.eform.local
127.0.0.1               localhost localhost.zhigulevsk.eform.local
192.168.20.9            hluz.zhigulevsk.eform.local hluz
192.168.20.9            hluz.zhigulevsk.eform.local.
192.168.20.3            dc1z.zhigulevsk.eform.local dc1z
ee /etc/resolv.conf

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

domain  zhigulevsk.eform.local
nameserver      192.168.20.3
ee /usr/local/etc/smb.conf

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

[global]
workgroup = ZHIGULEVSK
server string = Hluz
security = ads
hosts allow = 192.168.20. 192.168.21. 127. #192.168.1.
#   load printers = yes
#;   printcap name = /etc/printcap
#;   printcap name = lpstat
#;   printing = cups
#;  guest account = pcguest
log file = /var/log/samba34/log.%m
max log size = 50
password server = dc1z.zhigulevsk.eform.local #dc3z.zhigulevsk.eform.local
realm = ZHIGULEVSK.EFORM.LOCAL
#   passdb backend = tdbsam
#;   include = /usr/local/etc/smb.conf.%m
#;   socket options = SO_RCVBUF=8192 SO_SNDBUF=8192
#;   interfaces = 192.168.12.2/24 192.168.13.2/24
#   local master = no
#   os level = 33
#   domain master = no
#   preferred master = no
#   domain logons = no
#;   logon script = %U.bat
#;   logon path = \\%L\Profiles\%U
#   wins support = no
#;   wins server = w.x.y.z
#   wins proxy = no
dns proxy = no
display charset = koi8-r
unix charset = koi8-r
dos charset = cp866
#;    store dos attributes = yes
#;    map hidden = no
#;    map system = no
#;    map archive = no
#;    nt acl support = yes
#;    inherit acls = yes
#;    map acl inherit = yes
#;  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
#;  delete user script = /usr/sbin/userdel %u
#;  delete user from group script = /usr/sbin/deluser %u %g
#;  delete group script = /usr/sbin/groupdel %g
winbind separator = +
winbind use default domain = yes
winbind enum groups = yes
winbind enum users = yes
winbind uid = 10000-15000
winbind gid = 10000-15000
ee /etc/krb5.conf

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

[libdefaults]
        default_realm = ZHIGULEVSK.EFORM.LOCAL
        clockskew = 300
        v4_instance_resolve = false
        v4_name_convert = {
                host = {
                        rcmd = host
                        ftp = ftp
                }
                plain = {
                        something = something-else
                }
        }

[realm]
        ZHIGULEVSK.EFORM.LOCAL = {
                kdc = 192.168.20.3
                admin_server = 192.168.20.3
                kpasswd_server = 192.168.20.3
        }
[domain_realm]
        .zhigulevsk.eform.local = ZHIGULEVSK.EFORM.LOCAL
ee /etc/nsswitch.conf

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

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

decrups
рядовой
Сообщения: 43
Зарегистрирован: 2011-07-20 13:17:07

Re: Обсуждение SQUID+SAMS with NTLM

Непрочитанное сообщение decrups » 2011-07-20 14:01:57

Здраствуйте.Первый раз с freebsd.
запускаем SAMBA (samba35 3.5.6_1)
/usr/local/etc/rc.d/samba start

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

Removing stale Samba tdb files: . done
Starting nmbd.
Starting smbd.
Почему не стартанул winbindd?
И как его запустить?
cd /usr/ports/net/samba35
/usr/ports/net/samba35/> make config

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

Options for samba35 3.5.6_1                      |
                    | +----------------------------------------------------------------+ |
                    | |  [X] LDAP         With LDAP support                            | |
                    | |  [X] ADS          With Active Directory support                | |
                    | |  [ ] CUPS         With CUPS printing support                   | |
                    | |  [X] WINBIND      With WinBIND support                         | |
                    | |  [ ] SWAT         With SWAT WebGUI                             | |
                    | |  [ ] ACL_SUPPORT  With ACL support                             | |
                    | |  [ ] AIO_SUPPORT  With Asyncronous IO support                  | |
                    | |  [ ] FAM_SUPPORT  With File Alteration Monitor                 | |
                    | |  [X] SYSLOG       With Syslog support                          | |
                    | |  [ ] QUOTAS       With Disk quota support                      | |
                    | |  [X] UTMP         With UTMP accounting support                 | |
                    | |  [ ] PAM_SMBPASS  With PAM authentication vs passdb backends   | |
                    | |  [ ] DNSUPDATE    With dynamic DNS update(require ADS)         | |
                    | |  [ ] AVAHI        With Bonjour service discovery support       | |
                    | |  [ ] EXP_MODULES  With experimental modules                    | |
                    +-+------v(+)------------------------------------------------------+-+
                    |                          OK         [Cancel]                       |
                    +--------------------------------------------------------------------+
ee /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 = AUTOCENTER

# server string is the equivalent of the NT Description field
   server string = sams.autocenter.local

# 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 = 10.18.224.0/24 10.1.8.248/29  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 = pcguest

# 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 = fls.autocenter.local

# Use the realm option only with security = ads
# Specifies the Active Directory realm the host is part of
realm = AUTOCENTER.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


#============================ Share Definitions ==============================
[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 = no
   writable = no
   printable = yes

# 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
^[ (escape) menu  ^y search prompt  ^k delete line   ^p prev li   ^g prev page
^o ascii code     ^x search         ^l undelete line ^n next li   ^v next page
^u end of file    ^a begin of line  ^w delete word   ^b back 1 char
^t top of text    ^e end of line    ^r restore word  ^f forward 1 char
^c command        ^d delete char    ^j undelete char ^z next word
=====line 312 col 0 lines from top 312 ========================================
# 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
winbind separator = +
winbind use default domain = yes
winbind uid = 10000-15000
winbind gid = 10000-15000
winbind enum users = yes
winbind enum groupss = yes

Аватара пользователя
bagas
лейтенант
Сообщения: 922
Зарегистрирован: 2010-08-18 19:49:01
Откуда: Воронеж
Контактная информация:

Re: Обсуждение SQUID+SAMS with NTLM

Непрочитанное сообщение bagas » 2011-07-20 20:43:14

decrups с чего вы взяли что он у вас winbind не стартует?
wbinfo -t
Уберите коменты в файле smb.conf, даже неохота смотреть его.
Если вы хотите просто сделать авторизацию спомощью ntlm аутиентификации, то самбу можно собирать без поддержки ldap
Что бы ты не делал , жизнь слишком коротка!
Блог о BSD системах.