+ Responder ao Tópico



  1. #1
    gentoo_unisis
    Visitante

    Padrão problemas ao startar o ldap

    depois de instalar o ldap e tentar startar o serviço com o comando ./slapd start

    aparece a seguinte mensagem:

    * Starting ldap-server ... [ !! ]

    sendo que no log messages aparece o seguinte erro:

    Aug 23 19:19:57 zeus slapd[11109]: No passwd entry for user ldap

    o meu arquivo slapd.conf esta da seguinte forma:

    #
    # See slapd.conf(5) for details on configuration options.
    # This file should NOT be world readable.
    #
    include /etc/openldap/schema/core.schema

    # Define SSL and TLS properties (optional)
    #TLSCertificateFile /etc/ssl/ldap.pem
    #TLSCertificateKeyFile /etc/openldap/ssl/ldap.pem
    #TLSCACertificateFile /etc/ssl/ldap.pem

    # Define global ACLs to disable default read access.

    # Do not enable referrals until AFTER you have a working directory
    # service AND an understanding of referrals.
    #referral ldap://root.openldap.org

    pidfile /var/run/openldap/slapd.pid
    argsfile /var/run/openldap/slapd.args

    # Load dynamic backend modules:
    # modulepath /usr/lib/openldap/openldap
    # moduleload back_bdb.la
    # moduleload back_ldap.la
    # moduleload back_ldbm.la
    # moduleload back_passwd.la
    # moduleload back_shell.la

    # Sample security restrictions
    # Require integrity protection (prevent hijacking)
    # Require 112-bit (3DES or better) encryption for updates
    # Require 63-bit encryption for simple bind
    # security ssf=1 update_ssf=112 simple_bind=64

    # Sample access control policy:
    i# Root DSE: allow anyone to read it
    # Subschema (sub)entry DSE: allow anyone to read it
    # Other DSEs:
    # Allow self write access
    # Allow authenticated users read access
    # Allow anonymous users to authenticate
    # Directives needed to implement policy:
    # access to dn.base="" by * read
    # access to dn.base="cn=Subschema" by * read

    access to attrs=userPassword
    by dn="cn=manager,o=unisis,c=br" write
    by self write
    by anonymous auth
    by * none

    # Full rights to the admin
    access to *
    by dn="cn=manager,o=unisis,c=br" write
    by * read

    # if no access controls are present, the default policy
    # allows anyone and everyone to read anything but restricts
    # updates to rootdn. (e.g., "access to * by * read")
    #
    # rootdn can always read and write EVERYTHING!

    #######################################################################
    # BDB database definitions
    #######################################################################

    database bdb

    suffix "dc=unisis,dc=br"
    rootdn "cn=Manager,dc=unisis,dc=br"

    # Cleartext passwords, especially for the rootdn, should
    # be avoid. See slappasswd(8) and slapd.conf(5) for details.
    # Use of strong authentication encouraged.

    #rootpw secret
    rootpw {MD5}vIkT22XHZaojkRfrr2t5Fw==

    # The database directory MUST exist prior to running slapd AND
    # should only be accessible by the slapd and slap tools.
    # Mode 700 recommended.
    directory /var/lib/openldap-data
    # Indices to maintain
    index objectClass eq



    e o arquivo ldap.conf esta assim:

    #
    # LDAP Defaults
    #

    # See ldap.conf(5) for details
    # This file should be world readable but not world writable.

    BASE dc=unisis, dc=br
    URI ldap://zeus.ldap.unisis.br:636/
    TLS_REQCERT allow





    Ja estou alguns dias tentando configurar o ldap e não saiu do lugar, uso o gentoo no servidor.

    se alguem puder me ajudar, agradeço muito...

    Falow



  2. #2

    Padrão Re: problemas ao startar o ldap

    Olá amigo,

    Tente comentar estas linhas e veja se consegue startar.

    access to attrs=userPassword
    by dn="cn=manager,o=unisis,c=br" write
    by self write
    by anonymous auth
    by * none

    # Full rights to the admin
    access to *
    by dn="cn=manager,o=unisis,c=br" write
    by * read

    BASE dc=unisis, dc=br
    URI ldap://zeus.ldap.unisis.br:636/
    TLS_REQCERT allow

    index objectClass eq

    Se funcionar, vá descomentando as poucos e veja se esta relacionado a algumas destas configurações.

    Valeu.

  3. #3
    gentoo_unisis
    Visitante

    Padrão Re: problemas ao startar o ldap

    então mesmo assim não subiu... o serviço...
    continua dando a mesma mensagem...

    !!!!!!! :mrgreen:

  4. #4

    Padrão Re: problemas ao startar o ldap

    Olá,

    Ele esta reclamando que não definida a senha do usuario do ldap, verifique isso.

    Abraços...


    Citação Postado originalmente por gentoo_unisis
    então mesmo assim não subiu... o serviço...
    continua dando a mesma mensagem...

    !!!!!!! :mrgreen:

  5. #5
    gentoo_unisis
    Visitante

    Padrão Re: problemas ao startar o ldap

    onde defino a senha?
    pois ja coloquei ela criptografada no arquio slap.conf.
    Tenho que definir um usuario ou deixar manager?

  6. #6

    Padrão Re: problemas ao startar o ldap

    Olá,

    Voce pode colocar o usuario que voce quiser e logo após use novamente o comando:

    #slappasswd
    New password:
    Re-enter new password:
    {SSHA}IMzCFI4FW4O6gpe0JVm3/+V/rDMmrjj1

    Copie a senha e coloque no lugar da que esta agora..

    Qualquer coisa posta ai..

    Abraços..

    Citação Postado originalmente por gentoo_unisis
    onde defino a senha?
    pois ja coloquei ela criptografada no arquio slap.conf.
    Tenho que definir um usuario ou deixar manager?

  7. #7
    gentoo_unisis
    Visitante

    Padrão Re: problemas ao startar o ldap

    coloquei o usuario como vc falou e ele startou, sendo que adora tentei executar o comando abaixo e ele me deu a seguinte mensagem....
    digitei a senha que eu tinha cadastrado.

    ldapadd -D "cn=root,dc=unisis,dc=br" -W -f /tmp/base.ldif
    Enter LDAP Password:
    ldap_bind: Can't contact LDAP server (-1)