Ir al contenido
Odoo Menú
  • Iniciar sesión
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • PdV para tiendas
    • PdV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en vivo
    • eLearning
    Cadena de suministro
    • Inventario
    • Manufactura
    • PLM
    • Compras
    • Mantenimiento
    • Calidad
    Recursos humanos
    • Empleados
    • Reclutamiento
    • Vacaciones
    • Evaluaciones
    • Referencias
    • Flotilla
    Marketing
    • Redes sociales
    • Marketing por correo
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyectos
    • Registro de horas
    • Servicio externo
    • Soporte al cliente
    • Planeación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Artículos
    • WhatsApp
    Aplicaciones externas Studio de Odoo Plataforma de Odoo en la nube
  • Industrias
    Venta minorista
    • Librería
    • Tienda de ropa
    • Mueblería
    • Tienda de abarrotes
    • Ferretería
    • Juguetería
    Alimentos y hospitalidad
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidora de bebidas
    • Hotel
    Bienes inmuebles
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión de bienes inmuebles
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Firma contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Manufactura
    • Textil
    • Metal
    • Muebles
    • Comida
    • Cervecería
    • Regalos corporativos
    Salud y ejercicio
    • Club deportivo
    • Óptica
    • Gimnasio
    • Especialistas en bienestar
    • Farmacia
    • Peluquería
    Trades
    • Personal de mantenimiento
    • Hardware y soporte de TI
    • Sistemas de energía solar
    • Zapateros y fabricantes de calzado
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin fines de lucro
    • Agencia para la protección del medio ambiente
    • Alquiler de anuncios publicitarios
    • Fotografía
    • Alquiler de bicicletas
    • Distribuidor de software
    Descubre todas las industrias
  • Odoo Community
    Aprende
    • Tutoriales
    • Documentación
    • Certificaciones
    • Capacitación
    • Blog
    • Podcast
    Fortalece la educación
    • Programa educativo
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtén el software
    • Descargar
    • Compara ediciones
    • Versiones
    Colabora
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Conviértete en partner
    • Servicios para partners
    • Registra tu firma contable
    Obtén servicios
    • Encuentra un partner
    • Encuentra un contador
    • Contacta a un consultor
    • Servicios de implementación
    • Referencias de clientes
    • Soporte
    • Actualizaciones
    GitHub YouTube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicita una demostración
  • Precios
  • Ayuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyectos
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

LDAP Authentication - How to configure?

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
setuperrorldap
2 Respuestas
50736 Vistas
Avatar
Muhammad Anees

Hii,

I am trying to configure Odoo 12 to Authenticate with our Windows Server 2008 R2 Active Directory Users.

Here what I have done,

1. Installed LDAP module
2. LDAP Server address = 192.168.19.33
3. LDAP Server port = 389 
4. Use TLS = True
5. LDAP base = CN=Users,DC=abc,DC=com
6. LDAP filter (&(objectclass=user) (sAMAccountName=%s))
7. Sequence 10
8. LDAP binddn = admin user id
9. LDAP password = admin user pwd
10. Create User ​ = True
Template User = Created a template Odoo User (So that user password should be blank and odoo should authenticate with AD user)

Now, I have an active directory user created in Odoo with password blank. According to the LADP module if the password is blank then Odoo with authenticate with Active Directory users. 

To test, I logged in with this user but getting following error..

"

2019-06-24 14:54:16,969 4588 ERROR hrdemo odoo.addons.auth_ldap.models.res_company_ldap: An LDAP exception occurred: {'desc': 'Connect error', 'errno': 2, 'info': '(unknown error code)'}

"

Please help what is missing or wrong.

Thanks

3
Avatar
Descartar
Avatar
Muhammad Anees
Autor Mejor respuesta

After a long struggle I have done it successfully.....
Here are the LDAP Server settings that worked with me.

Odoo Version I am testing on: 12 Community
Machine: Odoo is installed on a VM running on my Laptop and connected in the same Windows AD Network.
AD Server: Windows 2008 R2

1. Installed LDAP module
2. LDAP Server address = 192.168.19.33 (This is the IP address of your AD Server. Ping must be successful from your VM)
3. LDAP Server port = 389 (This is a default LDAP port)
4. Use TLS = False
5. LDAP base: OU=Accounts,DC=domain,DC=com (Here Accounts is the parent folder. In my AD structure all OU and Users are under Accounts folder. See your AD structure and take the root DN)
6. LDAP filter:
a) If you want to authenticate odoo user with AD user Login ID then use filter:  sAMAccountName=%s 
b) If you want to authenticate odoo user with AD user email then use filter: mail=%s
7. Sequence 10
8. LDAP binddn = adminuser@domain.com same as AD admin user id. You can create a new AD user with admin rights.
9. LDAP password = admin user pwd same as AD
10. Create User ​ = Checked.
a) If Create User is checked and try to login into odoo login window, in this case if you have not created your odoo user with the same AD Id or Email, odoo will create a user in odoo database if authentication is successful.
b) If Create User = Un-Checked. In this case You first have to create user in your odoo database with blank/empty password. For a trick you can create it on Odoo LDAP settings page Create and Select User Template every time and later on update with user info and rights.
11. Now your users in your odoo database have no passwords. When you login to odoo with AD ID/Email, odoo first attempts to authenticate with local password in odoo database which is empty, if password is empty then odoo attempts to authenticate with AD account.
12. Run the odoo in ubuntu terminal and keep checking login after each login attempt. It will show why LDAP authentication faild.
13. During this LDAP configutation I received many errors like LDAP bind failed, that is logical that you are on right direction. 

3
Avatar
Descartar
Samah Gaber Kandil

Hi
i try to connect LDAP with odoo V13 and i do ur all steps but when i
try to login with any users expect admin odoo in terminal give LDAP authentication faild
if you can help me ?

Yoganandam Gopal

Hi
I tried the same setup it is working fine in local (LAN). I tried port forwarding for VAN proxy error comes. how will I give the port address
LDAP Server address 122.185.206.210:8081
here I have given port address: 8081.

Avatar
Christoph Jud
Mejor respuesta

I have an additional question, looking for help. The LDAP Authentication with "Create Users" works in my case, but the newly authenticated user's contact (Contact Menu, not User Menu) has no E-mail. This causes errors later down the road when trying to approve anything. The error can be resolved by adding the same E-mail to the Contact as to the User. Yet it would be preferrable if this wouldn't happen and I ask myself if I configured the  "User Template" wrongly or if there is another reason for that? Should the E-Mail field of the "User template" be something specific? emtpy is not allowed, odoo@xyz.com caused the error. ​

0
Avatar
Descartar
¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Registrarse
Publicaciones relacionadas Respuestas Vistas Actividad
LDAP Odoo 16 error 'result': -11
error ldap odoo16features
Avatar
0
oct 23
1981
'Could not execute command lessc' while running odoo (any version) in eclipse mac
setup error lessc
Avatar
Avatar
1
dic 16
8730
ERROR: <<AttributeError: 'FutureResponse' object has no attribute '_charset'>> Resuelto
setup error packaging odoo16features
Avatar
Avatar
1
ago 23
4700
?"Your country might be blocked by our hosting provider" error when I create new website
error
Avatar
0
oct 25
432
How to RTL panels and change fonts for Persian and Arabic in Odoo Community
setup
Avatar
0
oct 25
819
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento en Odoo.sh
  • Soporte
  • Actualizaciones del software
  • Desarrollos personalizados
  • Educación
  • Encuentra un contador
  • Encuentra un partner
  • Conviértete en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contáctanos
  • Empleos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Legal • Privacidad
  • Seguridad
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y estar totalmente integrado.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now