Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Msg de erro na instalação do LDAP #1

Open
hnpjunior opened this issue Jun 26, 2014 · 4 comments
Open

Msg de erro na instalação do LDAP #1

hnpjunior opened this issue Jun 26, 2014 · 4 comments
Assignees
Labels

Comments

@hnpjunior
Copy link

A instalação do LDAP retornou as seguintes mensagens de erro:

  1. LDAP

7.0. Install LDAP

/etc/openldap/slapd.conf: line 151: rootdn is always granted unlimited privileges.
/etc/openldap/slapd.conf: line 158: rootdn is always granted unlimited privileges.
The first database does not allow slapadd; using the first available one (2)
Checking configuration files for slapd: [WARNING]
/etc/openldap/slapd.conf: line 151: rootdn is always granted unlimited privileges.
/etc/openldap/slapd.conf: line 158: rootdn is always granted unlimited privileges.

7.1. Copy scripts

Nothing to do
ln: creating symbolic link ./fazbkp.sh': File exists ln: creating symbolic link./restauraLDAP.sh': File exists
ln: creating symbolic link `./ldap.sh': File exists

/etc/openldap/slapd.conf: line 151: rootdn is always granted unlimited privileges.
/etc/openldap/slapd.conf: line 158: rootdn is always granted unlimited privileges.
The first database does not allow slapadd; using the first available one (2)
Checking configuration files for slapd: [WARNING]
/etc/openldap/slapd.conf: line 151: rootdn is always granted unlimited privileges.
/etc/openldap/slapd.conf: line 158: rootdn is always granted unlimited privileges.

7.2. Create BKP structure

ln: creating symbolic link ./fazbkp.sh': File exists ln: creating symbolic link./restauraLDAP.sh': File exists
ln: creating symbolic link `./ldap.sh': File exists

mv: cannot stat `/etc/openldap/slapd.d': No such file or directory

/etc/openldap/slapd.conf: line 151: rootdn is always granted unlimited privileges.
/etc/openldap/slapd.conf: line 158: rootdn is always granted unlimited privileges.
The first database does not allow slapadd; using the first available one (2)
Checking configuration files for slapd: [WARNING]
/etc/openldap/slapd.conf: line 151: rootdn is always granted unlimited privileges.
/etc/openldap/slapd.conf: line 158: rootdn is always granted unlimited privileges.

/etc/openldap/slapd.conf: line 151: rootdn is always granted unlimited privileges.
/etc/openldap/slapd.conf: line 158: rootdn is always granted unlimited privileges.

7.3. Insert BKP in cron

mv: cannot stat `/etc/openldap/slapd.d': No such file or directory
Stopping slapd: [ OK ]
/etc/openldap/slapd.conf: line 151: rootdn is always granted unlimited privileges.
/etc/openldap/slapd.conf: line 158: rootdn is always granted unlimited privileges.
The first database does not allow slapadd; using the first available one (2)
Checking configuration files for slapd: [WARNING]
/etc/openldap/slapd.conf: line 151: rootdn is always granted unlimited privileges.
/etc/openldap/slapd.conf: line 158: rootdn is always granted unlimited privileges.

Checking configuration files for slapd: [WARNING]
/etc/openldap/slapd.conf: line 151: rootdn is always granted unlimited privileges.
/etc/openldap/slapd.conf: line 158: rootdn is always granted unlimited privileges.

7.4. Copy Schemas

Nothing to do
ln: creating symbolic link ./fazbkp.sh': File exists ln: creating symbolic link./restauraLDAP.sh': File exists
ln: creating symbolic link `./ldap.sh': File exists

mv: cannot stat `/etc/openldap/slapd.d': No such file or directory

/etc/openldap/slapd.conf: line 151: rootdn is always granted unlimited privileges.
/etc/openldap/slapd.conf: line 158: rootdn is always granted unlimited privileges.
The first database does not allow slapadd; using the first available one (2)
Checking configuration files for slapd: [WARNING]
/etc/openldap/slapd.conf: line 151: rootdn is always granted unlimited privileges.
/etc/openldap/slapd.conf: line 158: rootdn is always granted unlimited privileges.

  1. Setup slapd.conf

ln: creating symbolic link ./fazbkp.sh': File exists ln: creating symbolic link./restauraLDAP.sh': File exists
ln: creating symbolic link `./ldap.sh': File exists

mv: cannot stat `/etc/openldap/slapd.d': No such file or directory

/etc/openldap/slapd.conf: line 151: rootdn is always granted unlimited privileges.
/etc/openldap/slapd.conf: line 158: rootdn is always granted unlimited privileges.
The first database does not allow slapadd; using the first available one (2)
Checking configuration files for slapd: [WARNING]
/etc/openldap/slapd.conf: line 151: rootdn is always granted unlimited privileges.
/etc/openldap/slapd.conf: line 158: rootdn is always granted unlimited privileges.

Checking configuration files for slapd: [WARNING]
/etc/openldap/slapd.conf: line 151: rootdn is always granted unlimited privileges.
/etc/openldap/slapd.conf: line 158: rootdn is always granted unlimited privileges.
config file testing succeeded

7.6. Populate LDAP

Nothing to do
ln: creating symbolic link ./fazbkp.sh': File exists ln: creating symbolic link./restauraLDAP.sh': File exists
ln: creating symbolic link `./ldap.sh': File exists

mv: cannot stat `/etc/openldap/slapd.d': No such file or directory

/etc/openldap/slapd.conf: line 151: rootdn is always granted unlimited privileges.
/etc/openldap/slapd.conf: line 158: rootdn is always granted unlimited privileges.
The first database does not allow slapadd; using the first available one (2)
Checking configuration files for slapd: [WARNING]
/etc/openldap/slapd.conf: line 151: rootdn is always granted unlimited privileges.
/etc/openldap/slapd.conf: line 158: rootdn is always granted unlimited privileges.

/etc/openldap/slapd.conf: line 151: rootdn is always granted unlimited privileges.
/etc/openldap/slapd.conf: line 158: rootdn is always granted unlimited privileges.

7.7. Setup Auth

Nothing to do
ln: creating symbolic link ./fazbkp.sh': File exists ln: creating symbolic link./restauraLDAP.sh': File exists
ln: creating symbolic link `./ldap.sh': File exists

mv: cannot stat `/etc/openldap/slapd.d': No such file or directory

/etc/openldap/slapd.conf: line 151: rootdn is always granted unlimited privileges.
/etc/openldap/slapd.conf: line 158: rootdn is always granted unlimited privileges.
The first database does not allow slapadd; using the first available one (2)
Checking configuration files for slapd: [WARNING]
/etc/openldap/slapd.conf: line 151: rootdn is always granted unlimited privileges.
/etc/openldap/slapd.conf: line 158: rootdn is always granted unlimited privileges.

/etc/openldap/slapd.conf: line 151: rootdn is always granted unlimited privileges.
/etc/openldap/slapd.conf: line 158: rootdn is always granted unlimited privileges.

7.8. Setup Log

Nothing to do
ln: creating symbolic link ./fazbkp.sh': File exists ln: creating symbolic link./restauraLDAP.sh': File exists
ln: creating symbolic link `./ldap.sh': File exists

mv: cannot stat `/etc/openldap/slapd.d': No such file or directory

/etc/openldap/slapd.conf: line 151: rootdn is always granted unlimited privileges.
/etc/openldap/slapd.conf: line 158: rootdn is always granted unlimited privileges.
The first database does not allow slapadd; using the first available one (2)
Checking configuration files for slapd: [WARNING]
/etc/openldap/slapd.conf: line 151: rootdn is always granted unlimited privileges.
/etc/openldap/slapd.conf: line 158: rootdn is always granted unlimited privileges.

Checking configuration files for slapd: [WARNING]
/etc/openldap/slapd.conf: line 151: rootdn is always granted unlimited privileges.
/etc/openldap/slapd.conf: line 158: rootdn is always granted unlimited privileges.

7.9. Start

Nothing to do
ln: creating symbolic link ./fazbkp.sh': File exists ln: creating symbolic link./restauraLDAP.sh': File exists
ln: creating symbolic link `./ldap.sh': File exists

mv: cannot stat `/etc/openldap/slapd.d': No such file or directory

/etc/openldap/slapd.conf: line 151: rootdn is always granted unlimited privileges.
/etc/openldap/slapd.conf: line 158: rootdn is always granted unlimited privileges.
The first database does not allow slapadd; using the first available one (2)
Checking configuration files for slapd: [WARNING]
/etc/openldap/slapd.conf: line 151: rootdn is always granted unlimited privileges.
/etc/openldap/slapd.conf: line 158: rootdn is always granted unlimited privileges.

/etc/openldap/slapd.conf: line 151: rootdn is always granted unlimited privileges.
/etc/openldap/slapd.conf: line 158: rootdn is always granted unlimited privileges.

@CosmeFC
Copy link
Contributor

CosmeFC commented Jun 26, 2014

Caro amigo,

vamos por partes:

1- "rootdn is always granted unlimited privileges" - estamos "explicitamente" definido os poderes da conta adminstrativa. O siste está dizendo que não é preciso fazer isto. É um aviso, não um erro.
Possível solução:
Podemos testar remover as ACLs do Manager e, funcionando o resto, ficaremos sem as mensagens.

2- "The first database does not allow slapadd; using the first available one (2)" - temos 3 DB definidos e este comendo não especifica qual usar. Ele escolhe o certo e avisa isto.
Possível solução:
Te os que estudar a sintaxe deste comendo e buscar por exemplo de uso onde o DB seja definido

3- "ln: creating symbolic link `./*********.sh': File exists" - você está rodando, mais de uma vez, este script na mesma máquina
Possível solução:
Podemos testar antes de cada criação se o arquivo já existe.

4- "mv: cannot stat `/etc/openldap/slapd.d': No such file or directory" - você está rodando, mais de uma vez, este script na mesma máquina
Possível solução:
Existem duas estrturas de configuração no OpenLDAP.
Na nova usamos um diretório, não um arquivo.
Estamos adotando a velha e, para isto, removemos o diretório. Mesma proposta do item 3.

Voltando e avaliando teu log, que eu esperava ser mais detalhado, com o script, tive algumas dúvidas:
Por exemplo:

7.2 apenas cria um diretório e reduz o permissionamento dele. Tem o seguinte código:

mkdir -p /home/LDAP
chmod 700 /home/LDAP

Isto não parece compatível com o LOG. :-(
Como você me ajudaria aqui?

@CosmeFC CosmeFC added the bug label Jun 26, 2014
@CosmeFC CosmeFC self-assigned this Jun 26, 2014
@anishachenkunju
Copy link

Hello Cosme,

I also ran into couple of errors with installing few of these services. Can you provide some pointers on the OS this project was tested successfully on?

If the services such as LDAP , postgreSQL does not get installed with the the ./install.sh script, i presume this can be installed separately? I

Is there a reference on the minimal system requirements etc? And what features /functionality are available?

Thank you in advance,
anish

@CosmeFC
Copy link
Contributor

CosmeFC commented Jul 7, 2014

Hi Anish,

by points:

Requirements
we are using Centos 6, and exactly 6.4 live cd version.

Code__organization
Everything was tested, but we are still developing. Therefore we still
have something often changing.
Schara have some ideas about a new code organization for the project.
We will have news about it this week and I'll send you.

How to use/contribute to debug
Inside every script you can see a couple lines like these:

# uncomment for debug
# set -xv

Do this, run the program and send output to us

Starting with SCIFI
My suggestions for a good start:

  1. Create a VM
    1. Use CENTOS 6.4 Livecd
      • It is enough
    2. KVM or Virtualbox. I usually choose the first
  2. update all
    • yum update -y
  3. preserve this image
  4. Test fase
    1. install as is
    2. There is a lot of things to study, to observe.
    3. Install everything, several times. After working, change
      somethings. Remember step 3 above.
  5. Pilot fase
    1. use a real machine
    2. change variables.sh to simulate your future environment
    3. Test everything
  6. Production fase
    1. We can help at start
    2. we can help with organization here
    3. We have a lot of knowledge about problems in a production
      environment. :-)

Working together
It is our pleasure to help you.
Feel free to ask about everything.
Your ideas and suggestions are precious for us. Send them as much as you
can :-)

Thanks

On 7/7/2014 3:26 AM, anishachenkunju wrote:

Hello Cosme,

I also ran into couple of errors with installing few of these
services. Can you provide some pointers on the OS this project was
tested successfully on?

If the services such as LDAP , postgreSQL does not get installed with
the the ./install.sh script, i presume this can be installed separately? I

Is there a reference on the minimal system requirements etc? And what
features /functionality are available?

Thank you in advance,
anish


Reply to this email directly or view it on GitHub
#1 (comment).

Cosme Corrêa
Universidade Federal Fluminense - UFF
Superintendência de Tecnologia da Informação - STI
+55 21 4042-6606

@anishachenkunju
Copy link

Hi Cosme & Schara,

Greetings! Thank you for the valuable pointers, I was able to get this installed and running with CentOS 6.5 Desktop edition. 

The LiveCD did not work, as it was sticking to the default partition sizes in spite  of going with the custom partitioning and thus causing out of space (kernel entering Read Only  mode) errors.

Now I have the Scifi Web interface up and running, but unfortunately the web interface is in Portuguese I guess. I will be looking for a web -inbuilt translate wizard to help me with this if it is possible? Is there some kind of settings that can change the language?

Also, can you help me on what should be done going forward with deploying the waps? Is there any API that would get installed on the OpenWRT? Btw, the SCIFIAPI install wizard (24) returned an error, is that normal?

Thanks again,
Anish 


From: Cosme Faria Corrêa [email protected]
To: Sci-Fi/scifi [email protected]
Cc: anishachenkunju [email protected]
Sent: Monday, July 7, 2014 7:21 PM
Subject: Re: [scifi] Msg de erro na instalação do LDAP (#1)

Hi Anish,

by points:

Requirements
we are using Centos 6, and exactly 6.4 live cd version.

Code__organization
Everything was tested, but we are still developing. Therefore we still
have something often changing.
Schara have some ideas about a new code organization for the project.
We will have news about it this week and I'll send you.

How to use/contribute to debug
Inside every script you can see a couple lines like these:

uncomment for debug

set -xv

Do this, run the program and send output to us

Starting with SCIFI
My suggestions for a good start:

  1. Create a VM
  2. Use CENTOS 6.4 Livecd
  3. It is enough
  4. KVM or Virtualbox. I usually choose the first
  5. update all
  6. yum update -y
  7. preserve this image
  8. Test fase
  9. install as is
  10. There is a lot of things to study, to observe.
  11. Install everything, several times. After working, change
    somethings. Remember step 3 above.
  12. Pilot fase
  13. use a real machine
  14. change variables.sh to simulate your future environment
  15. Test everything
  16. Production fase
  17. We can help at start
  18. we can help with organization here
  19. We have a lot of knowledge about problems in a production
    environment. :-)

Working together
It is our pleasure to help you.
Feel free to ask about everything.
Your ideas and suggestions are precious for us. Send them as much as you
can :-)

Thanks

On 7/7/2014 3:26 AM, anishachenkunju wrote:

Hello Cosme,

I also ran into couple of errors with installing few of these
services. Can you provide some pointers on the OS this project was
tested successfully on?

If the services such as LDAP , postgreSQL does not get installed with
the the ./install.sh script, i presume this can be installed separately? I

Is there a reference on the minimal system requirements etc? And what
features /functionality are available?

Thank you in advance,
anish


Reply to this email directly or view it on GitHub
#1 (comment).

Cosme Corrêa
Universidade Federal Fluminense - UFF
Superintendência de Tecnologia da Informação - STI
+55 21 4042-6606

Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants