Bienvenido(a) a Alcance Libre 11/09/2025, 03:38
|
![]() |
Índice del foro > Todo acerca de Linux > Redes y Servidores |
![]() ![]() |
![]() |
Mantis |
|
||||||
![]() ![]() ![]() ![]() ![]() Nuevo Estado: desconectado ![]() Identificado: 15/02/12 Mensajes: 2 |
Buenas tardes ante todo saludarlos y felicitarlos por el portal que es de gran ayuda para los que nos estamos iniciando en la instalacion de una infraestrucutara basado en software libre.
A continuacion describire mi problema haber si me pueden dar una ayuda. Escenario: Quiero implementar un servidor muy parecido al active directory de microsoft y viendo sus manuales me tope con el de como crear un servidor de autenticación http://www.alcancelibre.org/staticpages/index.php/como-ldap-auth Estoy haciendo unas pruebas en una maquina virtual (VMWare Workstation 8) antes de implementarlo en un servidor fisico, lo ejecute con un .ISO (CentOS-6.2-x86_64-bin-DVD1). Bueno al grano: Me logueo con el usuario root y sigo todos los pasos hasta que me sale este error. PHP Formatted Code [root@localhost Desktop]# ldapadd -x -W -D 'cn=Administrador, dc=contoso, dc=com' -h 192.168.1.6 -f base.ldif Enter LDAP Password: ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1) [root@localhost Desktop]# No se en que parte este problema: Pero tal vez fuese cuando ejecuté estos comandos y me salieron estos errores: PHP Formatted Code [root@localhost Desktop]# slaptest -f /etc/openldap/slapd.conf -F /etc/openldap/slapd.d bdb_db_open: database "dc=contoso,dc=com": db_open(/var/lib/ldap/autenticar/id2entry.bdb) failed: No such file or directory (2). backend_startup_one (type=bdb, suffix="dc=contoso,dc=com"): bi_db_open failed! (2) slap_startup failed (test would succeed using the -u switch) [root@localhost Desktop]# Aca otro: PHP Formatted Code [root@localhost Desktop]# service slapd start /var/lib/ldap/autenticar/__db.005 is not owned by "ldap" [WARNING] /var/lib/ldap/autenticar/__db.002 is not owned by "ldap" [WARNING] /var/lib/ldap/autenticar/__db.004 is not owned by "ldap" [WARNING] /var/lib/ldap/autenticar/__db.003 is not owned by "ldap" [WARNING] /var/lib/ldap/autenticar/__db.001 is not owned by "ldap" [WARNING] /var/lib/ldap/autenticar/alock is not owned by "ldap" [WARNING] /var/lib/ldap/autenticar/__db.006 is not owned by "ldap" [WARNING] Starting slapd: [ OK ] Ademas cuanto ejecuté el comando: /usr/share/migrationtools/migrate_base.pl > base.ldif no veo que se crea el archivo base.ldif creo que por default deberia estar en /etc/openldap/ PHP Formatted Code [root@localhost Desktop]# /usr/share/migrationtools/migrate_base.pl > base.ldif [root@localhost Desktop]# Agradeceria culquier tipo de ayuda. Muchas Gracias. |
||||||
|
|||||||
HernanMauricio |
|
||||||
![]() ![]() ![]() ![]() ![]() Nuevo Estado: desconectado ![]() Identificado: 23/02/12 Mensajes: 1 |
lo que te indica
PHP Formatted Code /var/lib/ldap/autenticar/__db.005 is not owned by "ldap" [WARNING]/var/lib/ldap/autenticar/__db.002 is not owned by "ldap" [WARNING] /var/lib/ldap/autenticar/__db.004 is not owned by "ldap" [WARNING] /var/lib/ldap/autenticar/__db.003 is not owned by "ldap" [WARNING] /var/lib/ldap/autenticar/__db.001 is not owned by "ldap" [WARNING] /var/lib/ldap/autenticar/alock is not owned by "ldap" [WARNING] /var/lib/ldap/autenticar/__db.006 is not owned by "ldap" [WARNING] Starting slapd: [ OK ] se refiere a permisos yo lo solucione asi: PHP Formatted Code [root@ns2 migrationtools]# service slapd restartParando slapd: [FALLÓ] /var/lib/ldap/autenticar/__db.005 is not owned by "ldap" [ADVERTENCIA] /var/lib/ldap/autenticar/__db.006 is not owned by "ldap" [ADVERTENCIA] /var/lib/ldap/autenticar/alock is not owned by "ldap" [ADVERTENCIA] /var/lib/ldap/autenticar/__db.004 is not owned by "ldap" [ADVERTENCIA] /var/lib/ldap/autenticar/__db.003 is not owned by "ldap" [ADVERTENCIA] /var/lib/ldap/autenticar/__db.002 is not owned by "ldap" [ADVERTENCIA] /var/lib/ldap/autenticar/__db.001 is not owned by "ldap" [ADVERTENCIA] ln: accediendo a «/var/run/openldap/slapd.pid»: No existe el fichero o el directorio [root@ns2 migrationtools]# chmod 700 /var/lib/ldap/autenticar [root@ns2 migrationtools]# cp /usr/share/openldap-servers/DB_CONFIG.example /var/lib/ldap/autenticar/DB_CONFIG cp: ¿sobreescribir «/var/lib/ldap/autenticar/DB_CONFIG»? (s/n) s [root@ns2 migrationtools]# chown -R ldap:ldap /var/lib/ldap/autenticar [root@ns2 migrationtools]# service slapd restart Parando slapd: [FALLÓ] Iniciando slapd: [ OK ] [root@ns2 migrationtools]# service slapd restart Parando slapd: [ OK ] Iniciando slapd: [ OK ] |
||||||
|
|||||||
Contenido generado en: 0.28 segundos |
![]() ![]() |
Todas las horas son CST. Hora actual 03:38 . |
|
|