+ Responder ao Tópico



  1. #1
    celsobtu
    Amigos ...!
    Estou com problemas no bendito LDAP+Samba ...rs ...funciona aparentemente tudo certinho, incluir/alterar usuários na base ldap, mas não consigo ingressar maquinas no dominio samba+Ldap. Ao reiniciar o servidor é apresentada a mensagem
    "NSS-LDAP: Could not connect to any LDAP server as cn=root ...."
    Alguém tem alguma idéia do que pode estar errado Agradeço a atenção dispensada !
    CelsoBtu

  2. #2
    dougfunny
    Ola, poderia postar seu smb.conf e o log do ldap para uma anlise melhor.



  3. #3
    mirror
    Ok, abaixo vai o meu smb.conf

    --------------------------
    [global]
    workgroup = LABS
    server string = Servidor de Arquivos c/ LDAP - TESTE
    #printcap name = cups
    #load printers = yes
    #printing = cups
    log file = /var/log/samba/%m.%U.log
    max log size = 50
    debug level = 3
    security = user
    encrypt passwords = yes
    username map = /etc/samba/smbusers
    socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
    remote announce = 192.168.0.255/labs

    ldap passwd sync = Yes
    ; SAMBA-LDAP declarations
    passdb backend = ldapsam:ldap://127.0.0.1/
    # ldap filter = (&(objectclass=sambaSamAccount)(uid=%u))
    ldap admin dn = cn=Manager,dc=labs,dc=com
    ldap suffix = dc=labs,dc=com
    ldap group suffix = ou=Groups
    ldap user suffix = ou=Users
    ldap machine suffix = ou=Computers
    #ldap ssl = start_tls

    add user script = /usr/sbin/smbldap-useradd -m -a "%u"
    ldap delete dn = Yes
    #delete user script = /usr/sbin/smbldap-userdel "%u"
    add machine script = /usr/sbin/smbldap-useradd -w "%u"
    add group script = /usr/sbin/smbldap-groupadd -p "%g"
    #delete group script = /usr/sbin/smbldap-groupdel "%g"
    add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g"
    delete user from group script = /usr/sbin/smbldap-groupmod -x "%u" "%g"
    set primary group script = /usr/sbin/smbldap-usermod -g "%g" "%u"

    domain logons = Yes
    os level = 254
    preferred master = True
    domain master = True
    wins support = Yes
    create mask = 0775


    #============================ Share Definitions===================
    idmap uid = 16777216-33554431
    idmap gid = 16777216-33554431
    template shell = /bin/false
    winbind use default domain = no

    -----------------------------------

    e o log do messages:
    -----------------------------------
    Sep 20 09:42:07 server smbd[3746]: ===============================================================
    Sep 20 09:42:07 server smbd[3746]: [2006/09/20 09:42:07, 0] lib/fault.c:fault_report(37)
    Sep 20 09:42:07 server smbd[3746]: INTERNAL ERROR: Signal 11 in pid 3746 (3.0.21b)
    Sep 20 09:42:07 server smbd[3746]: Please read the Trouble-Shooting section of the Samba3-HOWTO
    Sep 20 09:42:07 server smbd[3746]: [2006/09/20 09:42:07, 0] lib/fault.c:fault_report(39)
    Sep 20 09:42:07 server smbd[3746]:
    Sep 20 09:42:07 server smbd[3746]: From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
    Sep 20 09:42:07 server smbd[3746]: [2006/09/20 09:42:07, 0] lib/fault.c:fault_report(40)
    Sep 20 09:42:07 server smbd[3746]: ===============================================================
    Sep 20 09:42:07 server smbd[3746]: [2006/09/20 09:42:07, 0] lib/util.c:smb_panic2(1554)
    Sep 20 09:42:07 server smbd[3746]: PANIC: internal error
    Sep 20 09:42:07 server smbd[3746]: [2006/09/20 09:42:07, 0] lib/util.c:smb_panic2(1562)
    Sep 20 09:42:07 server smbd[3746]: BACKTRACE: 35 stack frames:
    Sep 20 09:42:07 server smbd[3746]: #0 smbd(smb_panic2+0x111) [0x8211b21]
    Sep 20 09:42:07 server smbd[3746]: #1 smbd(smb_panic+0x1a) [0x8211a0a]
    Sep 20 09:42:07 server smbd[3746]: #2 smbd [0x81fe6f4]
    Sep 20 09:42:07 server smbd[3746]: #3 [0xffffe420]
    Sep 20 09:42:07 server smbd[3746]: #4 /usr/lib/libnss_ldap.so.2 [0xb7b86050]
    Sep 20 09:42:07 server smbd[3746]: #5 /usr/lib/libnss_ldap.so.2 [0xb7b861e6]
    Sep 20 09:42:07 server smbd[3746]: #6 /usr/lib/libnss_ldap.so.2 [0xb7b86159]
    Sep 20 09:42:08 server smbd[3746]: #7 /usr/lib/libnss_ldap.so.2(_nss_ldap_initgroups_dyn+0x78) [0xb7b8aec8]
    Sep 20 09:42:08 server smbd[3746]: #8 /lib/libc.so.6(initgroups+0xce) [0xb7ce6cd6]
    Sep 20 09:42:08 server smbd[3746]: #9 smbd [0x81f0884]
    Sep 20 09:42:08 server smbd[3746]: #10 smbd [0x81f0a54]
    Sep 20 09:42:08 server smbd[3746]: #11 smbd [0x81f0ba6]
    Sep 20 09:42:08 server smbd[3746]: #12 smbd(pdb_default_enum_group_memberships+0x29) [0x81f0d09]
    Sep 20 09:42:08 server smbd[3746]: #13 smbd [0x81e1955]
    Sep 20 09:42:08 server smbd[3746]: #14 smbd [0x81d3d74]
    Sep 20 09:42:08 server smbd[3746]: #15 smbd(pdb_enum_group_memberships+0x4e) [0x81d5abe]
    Sep 20 09:42:08 server smbd[3746]: #16 smbd [0x824e7f2]
    Sep 20 09:42:08 server smbd[3746]: #17 smbd [0x824e94e]
    Sep 20 09:42:08 server smbd[3746]: #18 smbd(make_server_info_sam+0x140) [0x824ec40]
    Sep 20 09:42:08 server smbd[3746]: #19 smbd [0x8249bd4]
    Sep 20 09:42:08 server smbd[3746]: #20 smbd [0x8249ed1]
    Sep 20 09:42:08 server smbd[3746]: #21 smbd [0x824737f]
    Sep 20 09:42:08 server smbd[3746]: #22 smbd [0x8251010]
    Sep 20 09:42:08 server smbd[3746]: #23 smbd [0x8119b11]
    Sep 20 09:42:08 server smbd[3746]: #24 smbd(ntlmssp_update+0x19b) [0x811908b]
    Sep 20 09:42:08 server smbd[3746]: #25 smbd(auth_ntlmssp_update+0x3d) [0x825133d]
    Sep 20 09:42:08 server smbd[3746]: #26 smbd [0x80b7266]
    Sep 20 09:42:08 server smbd[3746]: #27 smbd(reply_sesssetup_and_X+0xdde) [0x80b855e]
    Sep 20 09:42:08 server smbd[3746]: #28 smbd [0x80e0b48]
    Sep 20 09:42:08 server smbd[3746]: #29 smbd [0x80e0d90]
    Sep 20 09:42:08 server smbd[3746]: #30 smbd(process_smb+0x8c) [0x80e0f9c]
    Sep 20 09:42:08 server smbd[3746]: #31 smbd(smbd_process+0x155) [0x80e1e85]
    Sep 20 09:42:08 server smbd[3746]: #32 smbd(main+0x563) [0x829f993]
    Sep 20 09:42:08 server smbd[3746]: #33 /lib/libc.so.6(__libc_start_main+0x9f) [0xb7c83447]
    Sep 20 09:42:08 server smbd[3746]: #34 smbd [0x807e9f1]
    Sep 20 09:42:08 server smbd[3746]:
    Sep 20 09:42:13 server smbd[3747]: [2006/09/20 09:42:13, 0] lib/fault.c:fault_report(36)
    Sep 20 09:42:13 server smbd[3747]: ===============================================================
    Sep 20 09:42:13 server smbd[3747]: [2006/09/20 09:42:13, 0] lib/fault.c:fault_report(37)
    Sep 20 09:42:13 server smbd[3747]: INTERNAL ERROR: Signal 11 in pid 3747 (3.0.21b)
    Sep 20 09:42:13 server smbd[3747]: Please read the Trouble-Shooting section of the Samba3-HOWTO
    Sep 20 09:42:13 server smbd[3747]: [2006/09/20 09:42:13, 0] lib/fault.c:fault_report(39)
    Sep 20 09:42:13 server smbd[3747]:
    Sep 20 09:42:13 server smbd[3747]: From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
    Sep 20 09:42:13 server smbd[3747]: [2006/09/20 09:42:13, 0] lib/fault.c:fault_report(40)
    Sep 20 09:42:13 server smbd[3747]: ===============================================================
    Sep 20 09:42:13 server smbd[3747]: [2006/09/20 09:42:13, 0] lib/util.c:smb_panic2(1554)
    Sep 20 09:42:13 server smbd[3747]: PANIC: internal error
    Sep 20 09:42:13 server smbd[3747]: [2006/09/20 09:42:13, 0] lib/util.c:smb_panic2(1562)
    Sep 20 09:42:13 server smbd[3747]: BACKTRACE: 35 stack frames:
    Sep 20 09:42:13 server smbd[3747]: #0 smbd(smb_panic2+0x111) [0x8211b21]
    Sep 20 09:42:13 server smbd[3747]: #1 smbd(smb_panic+0x1a) [0x8211a0a]
    Sep 20 09:42:13 server smbd[3747]: #2 smbd [0x81fe6f4]
    Sep 20 09:42:13 server smbd[3747]: #3 [0xffffe420]
    Sep 20 09:42:13 server smbd[3747]: #4 /usr/lib/libnss_ldap.so.2 [0xb7b86050]
    Sep 20 09:42:13 server smbd[3747]: #5 /usr/lib/libnss_ldap.so.2 [0xb7b861e6]
    Sep 20 09:42:13 server smbd[3747]: #6 /usr/lib/libnss_ldap.so.2 [0xb7b86159]
    Sep 20 09:42:13 server smbd[3747]: #7 /usr/lib/libnss_ldap.so.2(_nss_ldap_initgroups_dyn+0x78) [0xb7b8aec8]
    Sep 20 09:42:13 server smbd[3747]: #8 /lib/libc.so.6(initgroups+0xce) [0xb7ce6cd6]
    Sep 20 09:42:13 server smbd[3747]: #9 smbd [0x81f0884]
    Sep 20 09:42:13 server smbd[3747]: #10 smbd [0x81f0a54]
    Sep 20 09:42:13 server smbd[3747]: #11 smbd [0x81f0ba6]
    Sep 20 09:42:13 server smbd[3747]: #12 smbd(pdb_default_enum_group_memberships+0x29) [0x81f0d09]
    Sep 20 09:42:13 server smbd[3747]: #13 smbd [0x81e1955]
    Sep 20 09:42:13 server smbd[3747]: #14 smbd [0x81d3d74]
    Sep 20 09:42:13 server smbd[3747]: #15 smbd(pdb_enum_group_memberships+0x4e) [0x81d5abe]
    Sep 20 09:42:13 server smbd[3747]: #16 smbd [0x824e7f2]
    Sep 20 09:42:13 server smbd[3747]: #17 smbd [0x824e94e]
    Sep 20 09:42:13 server smbd[3747]: #18 smbd(make_server_info_sam+0x140) [0x824ec40]
    Sep 20 09:42:13 server smbd[3747]: #19 smbd [0x8249bd4]
    Sep 20 09:42:13 server smbd[3747]: #20 smbd [0x8249ed1]
    Sep 20 09:42:13 server smbd[3747]: #21 smbd [0x824737f]
    Sep 20 09:42:13 server smbd[3747]: #22 smbd [0x8251010]
    Sep 20 09:42:13 server smbd[3747]: #23 smbd [0x8119b11]
    Sep 20 09:42:13 server smbd[3747]: #24 smbd(ntlmssp_update+0x19b) [0x811908b]
    Sep 20 09:42:13 server smbd[3747]: #25 smbd(auth_ntlmssp_update+0x3d) [0x825133d]
    Sep 20 09:42:13 server smbd[3747]: #26 smbd [0x80b7266]
    Sep 20 09:42:13 server smbd[3747]: #27 smbd(reply_sesssetup_and_X+0xdde) [0x80b855e]
    Sep 20 09:42:13 server smbd[3747]: #28 smbd [0x80e0b48]
    Sep 20 09:42:13 server smbd[3747]: #29 smbd [0x80e0d90]
    Sep 20 09:42:13 server smbd[3747]: #30 smbd(process_smb+0x8c) [0x80e0f9c]
    Sep 20 09:42:13 server smbd[3747]: #31 smbd(smbd_process+0x155) [0x80e1e85]
    Sep 20 09:42:13 server smbd[3747]: #32 smbd(main+0x563) [0x829f993]
    Sep 20 09:42:13 server smbd[3747]: #33 /lib/libc.so.6(__libc_start_main+0x9f) [0xb7c83447]
    Sep 20 09:42:13 server smbd[3747]: #34 smbd [0x807e9f1]
    Sep 20 09:42:13 server smbd[3747]:
    ----------------------------------

    Se puderem me ajudar fico muito grato.
    Lucas

  4. #4
    dougfunny
    BLz, seu log esta com erro do samba, vc verificou isso? vc compilou o samba ou usou .rpm ??? a informacao passada ao log diz q vc esta com erro em lib/fault.c e lib/util.c, favor, verificar isso.

    dougfunny



  5. fala!

    quem é o ldap admin?? cn=root ou cn=Manager?? verifique as configurações do ldap.conf e slapd.conf também..

    "NSS-LDAP: Could not connect to any LDAP server as cn=root ...."
    ldap admin dn = cn=Manager,dc=labs,dc=com






Tópicos Similares

  1. duvida outlook+ldap+agendas
    Por SnifferSp no fórum Servidores de Rede
    Respostas: 0
    Último Post: 13-03-2003, 15:41
  2. nis, nis+ ou ldap?
    Por no fórum Servidores de Rede
    Respostas: 4
    Último Post: 07-03-2003, 16:38
  3. LDAP+POSTFIX
    Por no fórum Servidores de Rede
    Respostas: 0
    Último Post: 11-02-2003, 16:16
  4. LDAP
    Por Mr_Mind no fórum Servidores de Rede
    Respostas: 0
    Último Post: 22-10-2002, 12:07
  5. Ldap + AD
    Por no fórum Servidores de Rede
    Respostas: 1
    Último Post: 30-09-2002, 13:58

Visite: BR-Linux ·  VivaOLinux ·  Dicas-L