Página 1 de 2 12 ÚltimoÚltimo
+ Responder ao Tópico



  1. #1
    webluc
    Uso o FreeBsd 5.4 , com o OpenLdap ( Ultima versão stable ).

    Configurei os arquivos SLADP.CONF e o LDAP.CONF.
    Criei o arquivo top.ldif

    Iniciei o serviço SLDAP -4

    Executei o comando

    ldapadd -x -D ´cn=Manager,dc=xxx,dc=com,dc=br´ -W -f top.ldif

    e apareceu o seguinte erro.

    ldap_bind: Can´t contact LDAP server (-1)

    Preciso urgente resolver esse probleminha, pois tenho que construir minha listagem de diretorios para a diretoria .
    Pode me ajudar.

  2. seria bom especificar o host no ldapadd, acho que é o -h pára isso, faz o teste, verifique se o ldap ta rodando mesmo, poste o seu netstat



  3. #3
    webluc
    Citação Postado originalmente por mistymst
    seria bom especificar o host no ldapadd, acho que é o -h pára isso, faz o teste, verifique se o ldap ta rodando mesmo, poste o seu netstat
    netstat
    Active Internet connections
    Proto Recv-Q Send-Q Local Address Foreign Address (state)
    tcp4 0 0 srv-net.ssh interno-2-90.1105 ESTABLISHED
    udp4 0 0 srv-net.netbios-dgm *.*
    udp4 0 0 srv-net.netbios-ns *.*
    udp4 0 0 localhost.domain *.*
    Active UNIX domain sockets
    Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr
    c1a56c94 stream 0 0 0 c1a56a64 0 0
    c1a56a64 stream 0 0 0 c1a56c94 0 0
    c1a5a000 stream 0 0 0 c1a5a08c 0 0
    c1a5a08c stream 0 0 0 c1a5a000 0 0
    c1a5a118 stream 0 0 c1a50000 0 0 0 private/bsmtp
    c1a5a1a4 stream 0 0 0 c1a5a230 0 0
    c1a5a230 stream 0 0 0 c1a5a1a4 0 0
    c1a5a2bc stream 0 0 c1a50108 0 0 0 private/ifmail
    c18ce08c stream 0 0 0 c18ce118 0 0
    c18ce118 stream 0 0 0 c18ce08c 0 0
    c18ce1a4 stream 0 0 c1a50210 0 0 0 private/uucp
    c18ce230 stream 0 0 0 c18ce2bc 0 0
    c18ce2bc stream 0 0 0 c18ce230 0 0
    c18ce348 stream 0 0 c1a50318 0 0 0 private/cyrus
    c18ce3d4 stream 0 0 0 c18ce460 0 0
    c18ce460 stream 0 0 0 c18ce3d4 0 0
    c18ce4ec stream 0 0 c1a50420 0 0 0 private/lmtp
    c18ce578 stream 0 0 0 c18ce604 0 0
    c18ce604 stream 0 0 0 c18ce578 0 0
    c18ce690 stream 0 0 c1a50528 0 0 0 private/virtual
    c18ce71c stream 0 0 0 c18ce7a8 0 0
    c18ce7a8 stream 0 0 0 c18ce71c 0 0
    c18ce834 stream 0 0 c1a50630 0 0 0 private/local
    c18ce8c0 stream 0 0 0 c18ce94c 0 0
    c18ce94c stream 0 0 0 c18ce8c0 0 0
    c18ce9d8 stream 0 0 c1a50738 0 0 0 private/error
    c18cea64 stream 0 0 0 c18ceaf0 0 0
    c18ceaf0 stream 0 0 0 c18cea64 0 0
    c18ceb7c stream 0 0 c1a50840 0 0 0 public/showq
    c18cec08 stream 0 0 0 c18cec94 0 0
    c18cec94 stream 0 0 0 c18cec08 0 0
    c18ced20 stream 0 0 c1a50948 0 0 0 private/smtp
    c18cedac stream 0 0 0 c18cee38 0 0
    c18cee38 stream 0 0 0 c18cedac 0 0
    c18ceec4 stream 0 0 c1a50a50 0 0 0 public/flush
    c1a56000 stream 0 0 0 c1a5608c 0 0
    c1a5608c stream 0 0 0 c1a56000 0 0
    c1a56118 stream 0 0 c1a50b58 0 0 0 private/defer
    c18cdb7c stream 0 0 0 c18cdaf0 0 0
    c18cdaf0 stream 0 0 0 c18cdb7c 0 0
    c18cd94c stream 0 0 c1a50c60 0 0 0 private/bounce
    c18cd000 stream 0 0 0 c18cd08c 0 0
    c18cd08c stream 0 0 0 c18cd000 0 0
    c18cd118 stream 0 0 c1a50d68 0 0 0 private/rewrite
    c18cd1a4 stream 0 0 0 c18cd230 0 0
    c18cd230 stream 0 0 0 c18cd1a4 0 0
    c18cd2bc stream 0 0 0 c18cd348 0 0
    c18cd348 stream 0 0 0 c18cd2bc 0 0
    c18cd3d4 stream 0 0 0 c18cd460 0 0
    c18cd460 stream 0 0 0 c18cd3d4 0 0
    c18cd4ec stream 0 0 c1a4be70 0 0 0 public/cleanup
    c18cd578 stream 0 0 0 c18cd604 0 0
    c18cd604 stream 0 0 0 c18cd578 0 0
    c18cd690 stream 0 0 0 c18cd71c 0 0
    c18cd71c stream 0 0 0 c18cd690 0 0
    c18cd7a8 stream 0 0 0 c18cd834 0 0
    c18cd834 stream 0 0 0 c18cd7a8 0 0
    c18cdc08 stream 0 0 c18d9840 0 0 0 /var/run/rpcbind.sock
    c18ce000 stream 0 0 c18cc108 0 0 0 /var/run/devd.pipe
    c1a56230 dgram 0 0 0 c18cde38 0 c1a569d8
    c1a569d8 dgram 0 0 0 c18cde38 0 c1a56ec4
    c1a568c0 dgram 0 0 0 c18cddac 0 c18cd9d8
    c1a56ec4 dgram 0 0 0 c18cde38 0 c18cd8c0
    c18cd8c0 dgram 0 0 0 c18cde38 0 c18cdc94
    c18cd9d8 dgram 0 0 0 c18cddac 0 0
    c18cdc94 dgram 0 0 0 c18cde38 0 0
    c18cdd20 dgram 0 0 c18ac210 0 0 0 /var/named/var/run/log
    c18cddac dgram 0 0 c18ac318 0 c1a568c0 0 /var/run/log
    c18cde38 dgram 0 0 c18ac420 0 c1a56230 0 /var/run/logpriv
    c18cdec4 dgram 0 0 c18ac528 0 0 0 /var/run/log

  4. #4
    webluc
    Citação Postado originalmente por webluc
    Citação Postado originalmente por mistymst
    seria bom especificar o host no ldapadd, acho que é o -h pára isso, faz o teste, verifique se o ldap ta rodando mesmo, poste o seu netstat
    netstat
    Active Internet connections
    Proto Recv-Q Send-Q Local Address Foreign Address (state)
    tcp4 0 0 srv-net.ssh interno-2-90.1105 ESTABLISHED
    udp4 0 0 srv-net.netbios-dgm *.*
    udp4 0 0 srv-net.netbios-ns *.*
    udp4 0 0 localhost.domain *.*
    Active UNIX domain sockets
    Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr
    c1a56c94 stream 0 0 0 c1a56a64 0 0
    c1a56a64 stream 0 0 0 c1a56c94 0 0
    c1a5a000 stream 0 0 0 c1a5a08c 0 0
    c1a5a08c stream 0 0 0 c1a5a000 0 0
    c1a5a118 stream 0 0 c1a50000 0 0 0 private/bsmtp
    c1a5a1a4 stream 0 0 0 c1a5a230 0 0
    c1a5a230 stream 0 0 0 c1a5a1a4 0 0
    c1a5a2bc stream 0 0 c1a50108 0 0 0 private/ifmail
    c18ce08c stream 0 0 0 c18ce118 0 0
    c18ce118 stream 0 0 0 c18ce08c 0 0
    c18ce1a4 stream 0 0 c1a50210 0 0 0 private/uucp
    c18ce230 stream 0 0 0 c18ce2bc 0 0
    c18ce2bc stream 0 0 0 c18ce230 0 0
    c18ce348 stream 0 0 c1a50318 0 0 0 private/cyrus
    c18ce3d4 stream 0 0 0 c18ce460 0 0
    c18ce460 stream 0 0 0 c18ce3d4 0 0
    c18ce4ec stream 0 0 c1a50420 0 0 0 private/lmtp
    c18ce578 stream 0 0 0 c18ce604 0 0
    c18ce604 stream 0 0 0 c18ce578 0 0
    c18ce690 stream 0 0 c1a50528 0 0 0 private/virtual
    c18ce71c stream 0 0 0 c18ce7a8 0 0
    c18ce7a8 stream 0 0 0 c18ce71c 0 0
    c18ce834 stream 0 0 c1a50630 0 0 0 private/local
    c18ce8c0 stream 0 0 0 c18ce94c 0 0
    c18ce94c stream 0 0 0 c18ce8c0 0 0
    c18ce9d8 stream 0 0 c1a50738 0 0 0 private/error
    c18cea64 stream 0 0 0 c18ceaf0 0 0
    c18ceaf0 stream 0 0 0 c18cea64 0 0
    c18ceb7c stream 0 0 c1a50840 0 0 0 public/showq
    c18cec08 stream 0 0 0 c18cec94 0 0
    c18cec94 stream 0 0 0 c18cec08 0 0
    c18ced20 stream 0 0 c1a50948 0 0 0 private/smtp
    c18cedac stream 0 0 0 c18cee38 0 0
    c18cee38 stream 0 0 0 c18cedac 0 0
    c18ceec4 stream 0 0 c1a50a50 0 0 0 public/flush
    c1a56000 stream 0 0 0 c1a5608c 0 0
    c1a5608c stream 0 0 0 c1a56000 0 0
    c1a56118 stream 0 0 c1a50b58 0 0 0 private/defer
    c18cdb7c stream 0 0 0 c18cdaf0 0 0
    c18cdaf0 stream 0 0 0 c18cdb7c 0 0
    c18cd94c stream 0 0 c1a50c60 0 0 0 private/bounce
    c18cd000 stream 0 0 0 c18cd08c 0 0
    c18cd08c stream 0 0 0 c18cd000 0 0
    c18cd118 stream 0 0 c1a50d68 0 0 0 private/rewrite
    c18cd1a4 stream 0 0 0 c18cd230 0 0
    c18cd230 stream 0 0 0 c18cd1a4 0 0
    c18cd2bc stream 0 0 0 c18cd348 0 0
    c18cd348 stream 0 0 0 c18cd2bc 0 0
    c18cd3d4 stream 0 0 0 c18cd460 0 0
    c18cd460 stream 0 0 0 c18cd3d4 0 0
    c18cd4ec stream 0 0 c1a4be70 0 0 0 public/cleanup
    c18cd578 stream 0 0 0 c18cd604 0 0
    c18cd604 stream 0 0 0 c18cd578 0 0
    c18cd690 stream 0 0 0 c18cd71c 0 0
    c18cd71c stream 0 0 0 c18cd690 0 0
    c18cd7a8 stream 0 0 0 c18cd834 0 0
    c18cd834 stream 0 0 0 c18cd7a8 0 0
    c18cdc08 stream 0 0 c18d9840 0 0 0 /var/run/rpcbind.sock
    c18ce000 stream 0 0 c18cc108 0 0 0 /var/run/devd.pipe
    c1a56230 dgram 0 0 0 c18cde38 0 c1a569d8
    c1a569d8 dgram 0 0 0 c18cde38 0 c1a56ec4
    c1a568c0 dgram 0 0 0 c18cddac 0 c18cd9d8
    c1a56ec4 dgram 0 0 0 c18cde38 0 c18cd8c0
    c18cd8c0 dgram 0 0 0 c18cde38 0 c18cdc94
    c18cd9d8 dgram 0 0 0 c18cddac 0 0
    c18cdc94 dgram 0 0 0 c18cde38 0 0
    c18cdd20 dgram 0 0 c18ac210 0 0 0 /var/named/var/run/log
    c18cddac dgram 0 0 c18ac318 0 c1a568c0 0 /var/run/log
    c18cde38 dgram 0 0 c18ac420 0 c1a56230 0 /var/run/logpriv
    c18cdec4 dgram 0 0 c18ac528 0 0 0 /var/run/log
    Esse foi um problema que percebi, como ele para rodar mas ele não mostra nada , mais não ta rodando.



  5. Cara tenta executar o seguinte comando para adicionar as entradas no diretório:

    ldapadd -x -h 192.168.0.10 -D ´cn=Manager,dc=xxx,dc=com,dc=br´ -W -f top.ldif

    onde 192.168.0.10 é o ip do servidor onde está instalado o ldap. Pode ser também o nome dele tipo: ldap.xxx.com.br.


    Outra coisa qual sua distro? O processo slapd está rodando (ps -ax)?






Tópicos Similares

  1. Alguem que preste serviço de revenda com rota CLI
    Por joezaum no fórum Servidores de Rede
    Respostas: 6
    Último Post: 10-02-2014, 21:01
  2. criação de diretorio com -p
    Por no fórum Servidores de Rede
    Respostas: 1
    Último Post: 05-07-2005, 11:04
  3. Erro ao criar disco de Boot com o Gerenciador GRUB
    Por ricardodru no fórum Servidores de Rede
    Respostas: 0
    Último Post: 15-12-2003, 19:45
  4. Criação de diretório com PHP
    Por Cassus no fórum Linguagens de Programação
    Respostas: 3
    Último Post: 09-09-2003, 14:27
  5. Erro de path com arqruivos do vb e access
    Por no fórum Servidores de Rede
    Respostas: 0
    Último Post: 03-02-2003, 07:04

Visite: BR-Linux ·  VivaOLinux ·  Dicas-L