Estou à mais de três dias, tentando colocar um servidor LDAP para funcionar, estou usando RH9 e a versão 2.0.27 do openldap. :@:

Os pacotes instalados:
[[email protected] migration]# rpm -qa | grep ldap
php-ldap-4.2.2-17
openldap-2.0.27-8
openldap-devel-2.0.27-8
openldap-servers-2.0.27-8
nss_ldap-202-5

O kernel utilizado:

uname -a
Linux tahiti.hlhaas.com.br 2.4.20-8 #1 Thu Mar 13 17:18:24 EST 2003 i686 athlon i386 GNU/Linux


No meu arquivo /etc/openldap/slapd.conf está da seguinte forma:


include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/redhat/rfc822-MailMember.schema
include /etc/openldap/schema/redhat/autofs.schema
include /etc/openldap/schema/redhat/kerberosobject.schema

database ldbm
suffix "dc=hlhaas,dc=com,dc=br"
rootdn "cn=Manager,dc=hlhaas,dc=com,dc=br"
rootpw secret
directory /var/lib/ldap
index objectClass,uid,uidNumber,gidNumber,memberUid eq
index cn,mail,surname,givenname



Executo service ldap start

Até aí legal! Mas agora preciso migrar meu usuários para uma base de dados no openLdap, tentei usar o pacote MigrationTools, que já vem junto com o pacote do servidor Ldap.

Bom, nesse ponto tentei fazer a migração "ON-LINE" e a "OFF-LINE", procedi da seguinte maneira:

em /usr/share/openldap/migration, configurei o arquivo "migrate_common.ph", as linhas que alterie ficaram da seguinte maneira:
# Default DNS domain
$DEFAULT_MAIL_DOMAIN = "hlhaas.com.br";

# Default base
$DEFAULT_BASE = "dc=hlhaas,dc=com,dc=br";

$DEFAULT_MAIL_HOST = "mail.hlhaas.com.br";

# turn this on to support more general object clases
# such as person.
$EXTENDED_SCHEMA = 1;


Primeiro tentei fazer a migração offline executando: migrate_all_offline.sh
O resultado da execução foi:
[[email protected] migration]# ./migrate_all_offline.sh
Creating naming context entries...
Migrating aliases...
Migrating groups...
Migrating hosts...
Migrating networks...
Migrating users...
Migrating protocols...
Migrating rpcs...
Migrating services...
Migrating netgroups...
Importing into LDAP...
Migrating netgroups (by user)...
Migrating netgroups (by host)...
Preparing LDAP database...
slapadd: database (dc=hlhaas,dc=com,dc=br) not configured to hold dn="dc=com,dc=br" (line=7)


Então tentei fazer a migração ON-LINE:

service ldap start
[[email protected] migration]# ./migrate_all_online.sh
Enter the X.500 naming context you wish to import into: [dc=hlhaas,dc=com,dc=br]
Enter the name of your LDAP server [ldap]: localhost
Enter the manager DN: [cn=manager,dc=hlhaas,dc=com,dc=br]:
Enter the credentials to bind with:
Do you wish to generate a DUAConfigProfile [yes|no]? yes

Importing into dc=hlhaas,dc=com,dc=br...

Creating naming context entries...
Creating DUAConfigProfile entry...
Migrating aliases...
Migrating groups...
Migrating hosts...
Migrating networks...
Migrating users...
Migrating protocols...
Migrating rpcs...
Migrating services...
Migrating netgroups...
Migrating netgroups (by user)...
Migrating netgroups (by host)...
adding new entry "dc=hlhaas,dc=com,dc=br"

Importing into LDAP...
adding new entry "ou=Hosts,dc=hlhaas,dc=com,dc=br"

adding new entry "ou=Rpc,dc=hlhaas,dc=com,dc=br"

adding new entry "ou=Services,dc=hlhaas,dc=com,dc=br"

adding new entry "nisMapName=netgroup.byuser,dc=hlhaas,dc=com,dc=br"

adding new entry "ou=Mounts,dc=hlhaas,dc=com,dc=br"

adding new entry "ou=Networks,dc=hlhaas,dc=com,dc=br"

adding new entry "ou=People,dc=hlhaas,dc=com,dc=br"

adding new entry "ou=Group,dc=hlhaas,dc=com,dc=br"

adding new entry "ou=Netgroup,dc=hlhaas,dc=com,dc=br"

adding new entry "ou=Protocols,dc=hlhaas,dc=com,dc=br"

adding new entry "ou=Aliases,dc=hlhaas,dc=com,dc=br"

adding new entry "nisMapName=netgroup.byhost,dc=hlhaas,dc=com,dc=br"

adding new entry "cn=config,dc=hlhaas,dc=com,dc=br"
ldap_add: Undefined attribute type
additional info: defaultServerList: attribute type undefined

ldif_record() = 17
/usr/local/bin/ldapadd: returned non-zero exit status


Alguém sabe o que pode estar acontecendo? Não sei mais o que fazer.