Não achei o inicio da discussão portanto não sei exatamente o que você
já fez.
Mas vamos lá:
Suponhamos que você tenha criado uma configuração inicial de forma
correta no ldap.
No samba as unicas configurações necessárias são:
/etc/samba/smb.conf:
passdb backend = ldapsam:ldap://localhost
ldap suffix = dc=localhost
ldap machine suffix = ou=machines
ldap user suffix = ou=users
ldap group suffix = ou=groups
ldap admin dn = cn=admin,dc=localhost
ldap passwd sync = yes
dc=localhost?
Parece meio estranho, normalmente se coloca um dominio, mesmo que seja o
da sua rede interna, dc=minharede,dc=lan por exemplo. Mas se a base foi
criada assim, não seria por isso que não iria funcionar, mesmo que voce
colocasse dc=meudominiomuitoloco funcionaria tambem. Este valor deve ser
o que voce preencheu como dominio quando instalou o ldap.
Fora isso, o samba precisa da senha para acessar o ldap e conseguir
fazer alterações (a mesma senha que voce configurou quando instalou o ldap).
Para fazer isso (como root):
# smbpasswd -w SENHADOLDAP
Aí é só reiniciar o samba.
Edmundo.
Gustavo de Carvalho escreveu:
Caio,
Segui seu tutorial, que por sianl esta uma beleza, porem a menssagem de erro
continua.
Quando eu dou um net getlocalid retorna esta menssagem.
===================================
[2006/03/23 11:05:39, 0] lib/smbldap.c:smbldap_connect_system(852)
failed to bind to server ldap://localhost/ with dn="cn=admin,dc=localhost"
Err or: Invalid credentials
[2006/03/23 11:05:54, 0] lib/smbldap.c:smbldap_search_suffix(1176)
smbldap_search_suffix: Problem during the LDAP search: (unknown) (Timed
out)
SID for domain MATRIX is: S-1-5-21-2287047555-2856862526-3025109217
===================================
E quando eu dou um start no samba retorna a mesma menssagem.
2006/03/22 14:45:30, 1] lib/smbldap.c:another_ldap_try(1011)
Connection to LDAP server failed for the 1 try!
2006/03/22 14:45:31, 1] lib/smbldap.c:another_ldap_try(1011)
Connection to LDAP server failed for the 2 try!
[2006/03/22 14:45:32, 1] lib/smbldap.c:another_ldap_try(1011)
Connection to LDAP server failed for the 3 try!
Ja aconteceu isso com vc alguma vez.
Se alguém no grupo tiver um dica, será bem vindo.
Att
Gustavo
-----Mensagem original-----
De: Caio Ferreira [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 22 de março de 2006 19:01
Para: gustavo.grupos
Assunto: Re:LDAP- PAM - SAMBA --- Ultimo erro Ajedem -me
Galera,
estou integrando LDAP - SAMBA aqui na empresa.
Porem resolvi todos os problemas que estava dando.
Porem este que aparece agora não consigo de jeito nenhum encontrar algo na
web.
[2006/03/22 14:45:29, 1] lib/smbldap.c:another_ldap_try(1011)
Connection to LDAP server failed for the 15 try!
[2006/03/22 14:45:30, 0] lib/smbldap.c:smbldap_search_suffix(1176)
smbldap_search_suffix: Problem during the LDAP search: (unknown) (Timed
out)
[2006/03/22 14:45:30, 1] lib/smbldap.c:another_ldap_try(1011)
Connection to LDAP server failed for the 1 try!
[2006/03/22 14:45:31, 1] lib/smbldap.c:another_ldap_try(1011)
Connection to LDAP server failed for the 2 try!
[2006/03/22 14:45:32, 1] lib/smbldap.c:another_ldap_try(1011)
Connection to LDAP server failed for the 3 try!
[2006/03/22 14:45:33, 1] lib/smbldap.c:another_ldap_try(1011)
Connection to LDAP server failed for the 4 try!
[2006/03/22 14:45:34, 1] lib/smbldap.c:another_ldap_try(1011)
Connection to LDAP server failed for the 5 try!
[2006/03/22 14:45:35, 1] lib/smbldap.c:another_ldap_try(1011)
Connection to LDAP server failed for the 6 try!
[2006/03/22 14:45:36, 1] lib/smbldap.c:another_ldap_try(1011)
Connection to LDAP server failed for the 7 try!
[2006/03/22 14:45:37, 1] lib/smbldap.c:another_ldap_try(1011)
Connection to LDAP server failed for the 8 try!
[2006/03/22 14:45:38, 1] lib/smbldap.c:another_ldap_try(1011)
Connection to LDAP server failed for the 9 try!
[2006/03/22 14:45:39, 1] lib/smbldap.c:another_ldap_try(1011)
Connection to LDAP server failed for the 10 try!
[2006/03/22 14:45:40, 1] lib/smbldap.c:another_ldap_try(1011)
Connection to LDAP server failed for the 11 try!
[2006/03/22 14:45:41, 1] lib/smbldap.c:another_ldap_try(1011)
Connection to LDAP server failed for the 12 try!
[2006/03/22 14:45:42, 1] lib/smbldap.c:another_ldap_try(1011)
Connection to LDAP server failed for the 13 try!
[2006/03/22 14:45:43, 1] lib/smbldap.c:another_ldap_try(1011)
Connection to LDAP server failed for the 14 try!
[2006/03/22 14:45:44, 1] lib/smbldap.c:another_ldap_try(1011)
Connection to LDAP server failed for the 15 try!
[2006/03/22 14:45:45, 0] passdb/pdb_ldap.c:ldapsam_search_one_group(1971)
ldapsam_search_one_group: Problem during the LDAP search: LDAP error:
(unknown) (Timed out)
Simplificnado lib/smbldap.c:another_ldap_try esta biblioteca nã responde.
Alguem ja se deparou com este erro?
Abraços Gustavo
.''`. Caio Abreu Ferreira
: :' : GNU/Linux Debian
`. `'` Gnupg ID 0x01186BE1
`- Linux Couter 327834
Esta mensagem foi verificada pelo E-mail Protegido Terra.
Scan engine: McAfee VirusScan / Atualizado em 22/03/2006 / Versão: 4.4.00/4724
Proteja o seu e-mail Terra: http://mail.terra.com.br/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]