SlideShare une entreprise Scribd logo
1  sur  1
Télécharger pour lire hors ligne
Configuring LDAP authentication
The Open ERP with Active Directory
First install the python-ldap library:

[sudo] apt-get install python-ldap

Then install OpenERP's user_ldap module.
Go to Administration » Companies, select your company, find the "Configuration" tab, and on the "LDAP
Configuration" box click "New" to add a LDAP configuration.

Complete the requested information:

       LDAP Server address: your.adserver.address
       LDAP Server port: 3268
       LDAP binddn: your-domaina-username
       LDAP password: your-password
       LDAP base: DC=your-domain,DC=local
       LDAP filter: sAMAccountName=%s
       Create User: Yes
       Model User: Your template user




The parameters bindn and password can be ignored if the AD server is configured to allow anonymous
connections. In this case, we preferred to create a generic user to connect to the AD.

When someone tries to login to OpenERP for the first time, it's full name is retrieved from the AD and a
new Openerp user is created copying from the template user. So, this template user should have
assigned default access groups for everyone in the domain.

You might need to adjust some of these setting to your specific AD structure. I foundSofterra's free LDAP
browser to be useful to explore the AD structure, or just to test the LDAP configuration parameters.

Contenu connexe

Plus de Tũi Wichets

บล๊อกเวปไซท์ บน Open WRT หรือ บน Ubiquiti NanoStation M5 หรือ บน airOS
บล๊อกเวปไซท์ บน Open WRT หรือ บน  Ubiquiti NanoStation M5 หรือ บน airOSบล๊อกเวปไซท์ บน Open WRT หรือ บน  Ubiquiti NanoStation M5 หรือ บน airOS
บล๊อกเวปไซท์ บน Open WRT หรือ บน Ubiquiti NanoStation M5 หรือ บน airOSTũi Wichets
 
Introduction to Data Centre 3.0
Introduction to Data Centre 3.0Introduction to Data Centre 3.0
Introduction to Data Centre 3.0Tũi Wichets
 
Windows Server 2012 R2 products & editions comparison
Windows Server 2012 R2 products & editions comparisonWindows Server 2012 R2 products & editions comparison
Windows Server 2012 R2 products & editions comparisonTũi Wichets
 
Settings MikroTik Router and Access Point to schedule AP radio on off via script
Settings MikroTik Router and Access Point to schedule AP radio on off via scriptSettings MikroTik Router and Access Point to schedule AP radio on off via script
Settings MikroTik Router and Access Point to schedule AP radio on off via scriptTũi Wichets
 
แนะนำแนวทางการออกแบบ การปรับแต่ง การรับส่งสัญญาณ airFiber 24 - airFiber Desig...
แนะนำแนวทางการออกแบบ การปรับแต่ง การรับส่งสัญญาณ airFiber 24 - airFiber Desig...แนะนำแนวทางการออกแบบ การปรับแต่ง การรับส่งสัญญาณ airFiber 24 - airFiber Desig...
แนะนำแนวทางการออกแบบ การปรับแต่ง การรับส่งสัญญาณ airFiber 24 - airFiber Desig...Tũi Wichets
 
How to link public addresses (real ip) to private ip or lan ip
How to link public addresses (real ip) to private ip or lan ipHow to link public addresses (real ip) to private ip or lan ip
How to link public addresses (real ip) to private ip or lan ipTũi Wichets
 
FAQ - Rogue AP - What is Rogue Access Point?
FAQ - Rogue AP - What is Rogue Access Point?FAQ - Rogue AP - What is Rogue Access Point?
FAQ - Rogue AP - What is Rogue Access Point?Tũi Wichets
 
เอกสาร แนวทาง การอินติเกรท Mac OS X เข้ากับ ระบบ Active Directory อย่างไร Bes...
เอกสาร แนวทาง การอินติเกรท Mac OS X เข้ากับ ระบบ Active Directory อย่างไร Bes...เอกสาร แนวทาง การอินติเกรท Mac OS X เข้ากับ ระบบ Active Directory อย่างไร Bes...
เอกสาร แนวทาง การอินติเกรท Mac OS X เข้ากับ ระบบ Active Directory อย่างไร Bes...Tũi Wichets
 
Windows server 2012 r2 Hyper-v Component architecture
Windows server 2012 r2 Hyper-v Component architecture Windows server 2012 r2 Hyper-v Component architecture
Windows server 2012 r2 Hyper-v Component architecture Tũi Wichets
 
Gigabit Wi-Fi 802.11AC In Depth
Gigabit Wi-Fi 802.11AC In DepthGigabit Wi-Fi 802.11AC In Depth
Gigabit Wi-Fi 802.11AC In DepthTũi Wichets
 
ค่า Tx Power Mode ใน Ubiquiti และ Mikrotik (RF Tx Power Mode Settings)
ค่า Tx Power Mode ใน Ubiquiti และ Mikrotik (RF Tx Power Mode Settings)ค่า Tx Power Mode ใน Ubiquiti และ Mikrotik (RF Tx Power Mode Settings)
ค่า Tx Power Mode ใน Ubiquiti และ Mikrotik (RF Tx Power Mode Settings)Tũi Wichets
 
SwOS (MikroTik Switch OS) Administration Guide
SwOS (MikroTik Switch OS) Administration GuideSwOS (MikroTik Switch OS) Administration Guide
SwOS (MikroTik Switch OS) Administration GuideTũi Wichets
 
คู่มือเริ่มต้นใช้งานด่วน สำหรับ Excel 2013
คู่มือเริ่มต้นใช้งานด่วน สำหรับ Excel 2013คู่มือเริ่มต้นใช้งานด่วน สำหรับ Excel 2013
คู่มือเริ่มต้นใช้งานด่วน สำหรับ Excel 2013Tũi Wichets
 
คู่มือเริ่มต้นใช้งานด่วน สำหรับ PowerPoint 2013
คู่มือเริ่มต้นใช้งานด่วน สำหรับ PowerPoint 2013คู่มือเริ่มต้นใช้งานด่วน สำหรับ PowerPoint 2013
คู่มือเริ่มต้นใช้งานด่วน สำหรับ PowerPoint 2013Tũi Wichets
 
คู่มือเริ่มต้นใช้งานด่วน สำหรับ Word 2013
คู่มือเริ่มต้นใช้งานด่วน สำหรับ Word 2013คู่มือเริ่มต้นใช้งานด่วน สำหรับ Word 2013
คู่มือเริ่มต้นใช้งานด่วน สำหรับ Word 2013Tũi Wichets
 
ความรู้เกี่ยวกับ MikroTik Nstreme Version 2 (Nv2)
ความรู้เกี่ยวกับ MikroTik Nstreme Version 2 (Nv2)ความรู้เกี่ยวกับ MikroTik Nstreme Version 2 (Nv2)
ความรู้เกี่ยวกับ MikroTik Nstreme Version 2 (Nv2)Tũi Wichets
 
Building a hyper v cluster for under $2,000 - ข้อมูลสำหรับ สร้าง Hyper-V 2012...
Building a hyper v cluster for under $2,000 - ข้อมูลสำหรับ สร้าง Hyper-V 2012...Building a hyper v cluster for under $2,000 - ข้อมูลสำหรับ สร้าง Hyper-V 2012...
Building a hyper v cluster for under $2,000 - ข้อมูลสำหรับ สร้าง Hyper-V 2012...Tũi Wichets
 
Solution Wireless Link 10 – 20 KM Speed 200 Mbps MikroTik RB SXT 5nDr2 Lite 5...
Solution Wireless Link 10 – 20 KM Speed 200 Mbps MikroTik RB SXT 5nDr2 Lite 5...Solution Wireless Link 10 – 20 KM Speed 200 Mbps MikroTik RB SXT 5nDr2 Lite 5...
Solution Wireless Link 10 – 20 KM Speed 200 Mbps MikroTik RB SXT 5nDr2 Lite 5...Tũi Wichets
 
ระบบ Authentication (SCIPA Solution) For Education
ระบบ Authentication (SCIPA Solution) For Educationระบบ Authentication (SCIPA Solution) For Education
ระบบ Authentication (SCIPA Solution) For EducationTũi Wichets
 

Plus de Tũi Wichets (20)

บล๊อกเวปไซท์ บน Open WRT หรือ บน Ubiquiti NanoStation M5 หรือ บน airOS
บล๊อกเวปไซท์ บน Open WRT หรือ บน  Ubiquiti NanoStation M5 หรือ บน airOSบล๊อกเวปไซท์ บน Open WRT หรือ บน  Ubiquiti NanoStation M5 หรือ บน airOS
บล๊อกเวปไซท์ บน Open WRT หรือ บน Ubiquiti NanoStation M5 หรือ บน airOS
 
Introduction to Data Centre 3.0
Introduction to Data Centre 3.0Introduction to Data Centre 3.0
Introduction to Data Centre 3.0
 
Windows Server 2012 R2 products & editions comparison
Windows Server 2012 R2 products & editions comparisonWindows Server 2012 R2 products & editions comparison
Windows Server 2012 R2 products & editions comparison
 
Settings MikroTik Router and Access Point to schedule AP radio on off via script
Settings MikroTik Router and Access Point to schedule AP radio on off via scriptSettings MikroTik Router and Access Point to schedule AP radio on off via script
Settings MikroTik Router and Access Point to schedule AP radio on off via script
 
แนะนำแนวทางการออกแบบ การปรับแต่ง การรับส่งสัญญาณ airFiber 24 - airFiber Desig...
แนะนำแนวทางการออกแบบ การปรับแต่ง การรับส่งสัญญาณ airFiber 24 - airFiber Desig...แนะนำแนวทางการออกแบบ การปรับแต่ง การรับส่งสัญญาณ airFiber 24 - airFiber Desig...
แนะนำแนวทางการออกแบบ การปรับแต่ง การรับส่งสัญญาณ airFiber 24 - airFiber Desig...
 
How to link public addresses (real ip) to private ip or lan ip
How to link public addresses (real ip) to private ip or lan ipHow to link public addresses (real ip) to private ip or lan ip
How to link public addresses (real ip) to private ip or lan ip
 
FAQ - Rogue AP - What is Rogue Access Point?
FAQ - Rogue AP - What is Rogue Access Point?FAQ - Rogue AP - What is Rogue Access Point?
FAQ - Rogue AP - What is Rogue Access Point?
 
เอกสาร แนวทาง การอินติเกรท Mac OS X เข้ากับ ระบบ Active Directory อย่างไร Bes...
เอกสาร แนวทาง การอินติเกรท Mac OS X เข้ากับ ระบบ Active Directory อย่างไร Bes...เอกสาร แนวทาง การอินติเกรท Mac OS X เข้ากับ ระบบ Active Directory อย่างไร Bes...
เอกสาร แนวทาง การอินติเกรท Mac OS X เข้ากับ ระบบ Active Directory อย่างไร Bes...
 
Windows server 2012 r2 Hyper-v Component architecture
Windows server 2012 r2 Hyper-v Component architecture Windows server 2012 r2 Hyper-v Component architecture
Windows server 2012 r2 Hyper-v Component architecture
 
Gigabit Wi-Fi 802.11AC In Depth
Gigabit Wi-Fi 802.11AC In DepthGigabit Wi-Fi 802.11AC In Depth
Gigabit Wi-Fi 802.11AC In Depth
 
ค่า Tx Power Mode ใน Ubiquiti และ Mikrotik (RF Tx Power Mode Settings)
ค่า Tx Power Mode ใน Ubiquiti และ Mikrotik (RF Tx Power Mode Settings)ค่า Tx Power Mode ใน Ubiquiti และ Mikrotik (RF Tx Power Mode Settings)
ค่า Tx Power Mode ใน Ubiquiti และ Mikrotik (RF Tx Power Mode Settings)
 
SwOS (MikroTik Switch OS) Administration Guide
SwOS (MikroTik Switch OS) Administration GuideSwOS (MikroTik Switch OS) Administration Guide
SwOS (MikroTik Switch OS) Administration Guide
 
คู่มือเริ่มต้นใช้งานด่วน สำหรับ Excel 2013
คู่มือเริ่มต้นใช้งานด่วน สำหรับ Excel 2013คู่มือเริ่มต้นใช้งานด่วน สำหรับ Excel 2013
คู่มือเริ่มต้นใช้งานด่วน สำหรับ Excel 2013
 
คู่มือเริ่มต้นใช้งานด่วน สำหรับ PowerPoint 2013
คู่มือเริ่มต้นใช้งานด่วน สำหรับ PowerPoint 2013คู่มือเริ่มต้นใช้งานด่วน สำหรับ PowerPoint 2013
คู่มือเริ่มต้นใช้งานด่วน สำหรับ PowerPoint 2013
 
คู่มือเริ่มต้นใช้งานด่วน สำหรับ Word 2013
คู่มือเริ่มต้นใช้งานด่วน สำหรับ Word 2013คู่มือเริ่มต้นใช้งานด่วน สำหรับ Word 2013
คู่มือเริ่มต้นใช้งานด่วน สำหรับ Word 2013
 
ความรู้เกี่ยวกับ MikroTik Nstreme Version 2 (Nv2)
ความรู้เกี่ยวกับ MikroTik Nstreme Version 2 (Nv2)ความรู้เกี่ยวกับ MikroTik Nstreme Version 2 (Nv2)
ความรู้เกี่ยวกับ MikroTik Nstreme Version 2 (Nv2)
 
RouterOS v6
RouterOS v6RouterOS v6
RouterOS v6
 
Building a hyper v cluster for under $2,000 - ข้อมูลสำหรับ สร้าง Hyper-V 2012...
Building a hyper v cluster for under $2,000 - ข้อมูลสำหรับ สร้าง Hyper-V 2012...Building a hyper v cluster for under $2,000 - ข้อมูลสำหรับ สร้าง Hyper-V 2012...
Building a hyper v cluster for under $2,000 - ข้อมูลสำหรับ สร้าง Hyper-V 2012...
 
Solution Wireless Link 10 – 20 KM Speed 200 Mbps MikroTik RB SXT 5nDr2 Lite 5...
Solution Wireless Link 10 – 20 KM Speed 200 Mbps MikroTik RB SXT 5nDr2 Lite 5...Solution Wireless Link 10 – 20 KM Speed 200 Mbps MikroTik RB SXT 5nDr2 Lite 5...
Solution Wireless Link 10 – 20 KM Speed 200 Mbps MikroTik RB SXT 5nDr2 Lite 5...
 
ระบบ Authentication (SCIPA Solution) For Education
ระบบ Authentication (SCIPA Solution) For Educationระบบ Authentication (SCIPA Solution) For Education
ระบบ Authentication (SCIPA Solution) For Education
 

Configuring LDAP authentication on The Open ERP with Active Directory

  • 1. Configuring LDAP authentication The Open ERP with Active Directory First install the python-ldap library: [sudo] apt-get install python-ldap Then install OpenERP's user_ldap module. Go to Administration » Companies, select your company, find the "Configuration" tab, and on the "LDAP Configuration" box click "New" to add a LDAP configuration. Complete the requested information:  LDAP Server address: your.adserver.address  LDAP Server port: 3268  LDAP binddn: your-domaina-username  LDAP password: your-password  LDAP base: DC=your-domain,DC=local  LDAP filter: sAMAccountName=%s  Create User: Yes  Model User: Your template user The parameters bindn and password can be ignored if the AD server is configured to allow anonymous connections. In this case, we preferred to create a generic user to connect to the AD. When someone tries to login to OpenERP for the first time, it's full name is retrieved from the AD and a new Openerp user is created copying from the template user. So, this template user should have assigned default access groups for everyone in the domain. You might need to adjust some of these setting to your specific AD structure. I foundSofterra's free LDAP browser to be useful to explore the AD structure, or just to test the LDAP configuration parameters.