Search 1.9 billion lines of Odoo code on GitHub

auth_ldap

Author: OpenERP SA
License: no license
Branch: 8.0-linux64
Repository: buke/GreenOdoo
Dependencies: base
Languages: PO File (5904, 94.9%), Python (181, 2.9%), XML (84, 1.4%), and reStructuredText (53, 0.9%)
Other branches: 7.0-win32, and 8.0-win32
Other repositories: 30s/openerp, 3dfxmadscientist/cbss-server, 3dfxmadscientist/openerp-addons, 3dfxsoftware/openerp-addons, 3iData/odoo8, Aaronpan126/odoo13-x64, Acerole/odoo, Admilson/openerp-addons, AgustinJAM/openerp-addons, Aidako20/flectra, Aidako20/flectra-1, Albin-John/flectra, Albin-John/koozic, Aldais/odoo, Aletz-Arce/openerp-addons, Andresxgf/odoo, AwesomeFoodCoops/odoo-production, BMOTech/OpenERP, BMTechno/odoo, BizzCloud/PosBox, BorderITS/odoo, CamiloRamirez90/odoo, CarlosPichardo/flectra, Ctrusan/odoo, Cywaithaka/openerp-addons, DITIntl/odoo, DITIntl/odoo-production, DITIntl/odoo10-x64, Danisan/odoo, Dhs-odoo/openerp-addons, Diegosmith/openerp-addons-bundle, DocMarty84/koozic, DreamPeak/OpenERP-1, EDYDSI/odoo, ERPymes/ERPymes, Elbagoury/OpenERP_V8, Elbagoury/actpy, Elbagoury/pos, Elico-Corp/odoo, Endika/openerp-addons, EquipoVision/openerp-addons, Groupe-Informatique-LaCoopSurMer/odoo-production, Guobower/odoogoeen, Ichag/openerp-addons, JBAhire/flectra, LordBago/openerp-addons-bundle, MAbuElmagd/odoo-1, MFIGROUP/odoo, MadhbhavikaR/actpy, Manashadevi/purchaseandInventory, Mathews421/odoo, Maxwc/flectra, Mefistous/typ-odoo, Moh-has/ODEX, NIKULAHIR/flectra, Neurotec/odoo, Novasoft-India/OperERP-AM-Motors, Nucleoos/saas3, OCA/OCB, OCA/OpenUpgrade, OSSESAC/odoopubarquileds, OthmaneGhandi/openerp-addons-bundle, Otsokop/odoo-production, RakhiSudevan/OperERP-AM-Motors, Regent-Young/odoo12-x64, Saharadevtalents/odoo, Saran440/Odoo, SaravananSakthivel/flectra-1, SetRac/pos-1, ShantiSR/openerp-addons, ShrutiVerma31/openerp-addons, SimonRolin/openerp-addons, SistemERP/flectra, Soufianeterhzaz/openerp-addons, Soufianeterhzaz/openerp-addons-bundle, Storegud/flectra, Sukikiroi/odoo-1, TRESCLOUD/odoopub, TamerNagah/odoo13-x64, TariqBstc/odoo, Tariqlab/odoo, ThanhICSC/skit_odoo12, Vauxoo/typ-odoo, WytheLi/openerp-7.0-20170329, XtremXpert/flectra, XtremXpert/flectra-1, Zilur/odoo13-x64, a7madz90/openerp-oemedical-v0.1, aakzubaidi/ODEX, abhijitdalavi/odoo, abhishek1289/openerp-addons, absalhi/openerp-addons-bundle, achuthanselvaraj/pos, actpy/actpy, aden-lu/odoo13-x64, adolfoeliazat/odoo-1, aeme000/odoo, afgnsu/odoo12-x64, akretion/openerp-addons, alangwansui/Enterprise_odoo_account, alangwansui/odoo10-x64, alangwansui/odoo12-x64, alhashash/flectra, allanwong/read_openerp, amco/odoo, aminget/odoo, ammarzaied/openerp-addons-bundle, andre66bardina66/openerp-addons, anilgs/openerp-addons, anndream/flectra, anndream/mixprint_addons, anon-hello/odoo-design, antonyexpenli/openerp-addons, anuprakash/flectra, arakdraja/flectra, armohamm/actpy, askmetoo/actpy, astirpe/koozic, ax003d/openerp, azmeuk/odoo-production, babatoko/odoo-production, baggiowang/read_openerp, baidule/odoo10-x64, baimnimax/flectra, balaprasad18/odoo-1, baomi4577/odoo12-x64, baomi4577/odoo13-x64, bdunnette/openshift-openerp-quickstart, beloeuvre/odoo-production, binhdinhjsc/openerp-addons-bundle, bluedaemondev/odoo, bmya/odoo-1, borderitsolutions/flectra, boujie06/actpy, browseinfo/odoo_saas3_nicolas, buguelos/odoo, bunheng168/odoo, caiki/odoo, caosena5101/odoo11-x64, carito1982m/odoo, carset/OpenERP, caruccio/openshift-openerp-quickstart-old, ccdos/OpenERP, ccdos/OpenERP-2, ccdos/openerp-addons, chegirow/odoo-1, chenzhiming/odoo10-x64, chenzhiming/odoo11-x64, chenzhiming/odoo12-x64, chetanrdhaduk/odoo-production, chianggq/odoo11-x64, chinanet001/odoo10-x64, chinanet001/odoo12-x64, chinu23081994/odoo, choilive/odoo, cialuo/flectra, ciberick/odoo, ciptasoft/OpenERP, claro5/odoo10-x64, claro5/odoo11-x64, claro5/odoo12-x64, clefresh/read_openerp, cmorisse/openerp7, connect-to-ak/odoo-design, crzuniga-rw/odoo, danikmil/openerp-addons, defyasdf/openerp-addons, demain-supermarche/odoo-production, den5509/odoo, detian08/mixprint_addons, detian08/odoo-1, dga-odoo/odoo8, dhp-denero/PosBox, dhp-denero/cubicerp, diode/flectra, dkodnik/Ant, druidoo/FoodCoops, dsasoftware/odoo8, dtorbay/odoo-1, dvitme/openerp-restaurant, dw250100785/read_openerp, dzungtran89/odoo-production, ecwashburn/openshift-openerp-quickstart, edanpiro/odoo, edisaac/odoo_cubic, ehabqino/odoo13-x64, ehtishamfaisal/odoo8, elhartimohamedcharif/actpy, emgciudad/odoo-1, eneldoserrata/marcos_openerp, eribowo/skit_odoo12, ericdai/flectra, eslammohamed13/actpy, eslammohamed13/pos, esosaja/odoo-1, estebanvm30/odoo, estevebadia/odoo-production, ewail/odoo_win10, expsa/ODEX, ezdoo/flectra, ezdoo/flectra01, fanguloa/odoo, fanzalika/odoo-1, farfansixto/odoo, fc-azurtech/odoo, ferdiga/flectra, fjouatte/odoo-production, flectra-hq/flectra, fourthgear88/flectra, franck333/openerp-oemedical-v0.1, freezmeinster/odoo8, frouty/odoogoeen, fs45/odoo, fwl998877/odoo12-x64, gastonfeng/odoo11-x64, gedeslan/odoo, genral73/ODEX, ghanshyam2911/openerp-addons, gitlabuser/odoo-design, gmoncada/odoo, gonbike/OpenERP, guohuadeng/odoo10-x64, guohuadeng/odoo11-x64, guohuadeng/odoo12-x64, guohuadeng/odoo13-x64, guoyu07/OpenERP-1, gustotc/odoo11-x64, gustotc/odoo12-x64, guzzi235/saas3, hakimtawerghi/odoo-1, halgandd/odoo-production, hamedalhosiny/actpy, hamzawy55/actpy, hanasaram/odoo, hanisha93/odoo, hannank/openerp7, haryoran04/odoo8, hawkeg/ODEX, henrytao-me/openerp.positionq, hilarak/odoo-design, hilarak/odoo-production, hindata/odoo, hljhttp/odoo11-x64, huacamx/OpenERP, hxq123-qing/odoo13-x64, hzh0292/odoo12-x64, iSqXIE/odoo12-x64, iceship/PosBox, iceship/openerp-restaurant, inftao/odoo12-x64, inftao/odoo13-x64, inovtec-solutions/OpenERP, ironhuan/odoo12-x64, isos/flectra-1, isoscl/flectra, istevenG/flectra-1, ivanofp/odoo, izzihector/pos, j0rdm4n/openerp-addons, jackxusho/odoo10-x64, jackxusho/odoo12-x64, jackxusho/odoo13-x64, jango2015/OpenERP, jarmedali/odoo, jason156/odoo10-x64, jason156/odoo11-x64, jason156/odoo12-x64, javogiraldez/skit_odoo12, jeanabreu/odoo-1, jeffery9/mixprint_addons, jellyhappy/xjerp, jenggo/flectra, jhanys/odoo, jhochoa/CubicERPOdoo, jiraya/openerp-addons, jlzhou/flectra, jlzhou/odoo10-x64, jmcarbo/openerp7, jmesteve/saas3, jolevq/odoopub, josealfredomunozmelendez/flectra, jsabastizagal/odoopub, jsrhtc/odoo13-x64, jss-emr/openerp-7-src, jtodeveloper/odoo, juaniyyo/odoo, jupiterzhuo/skit_odoo12, jvaldiviezo/odoo, jweste/odoo-production, kailIII/odoo, karl-cenliming/OpenERP, kenoyer/odoo, kevin-de-granta/openerp, kevinpthorne/flectra, kiran-parepalli/openerp-addons, kit9/skit_odoo12, kleosus/odoo, kobra34/odoo8, konstantinkonstantinovbgo/openerp-addons-bundle, kousikaganesan/purchaseandInventory, krunal267/odoo-production, lachouettecoop/odoo-production, lauracvilla-zz/odoo-1, leangjia/OpenERP, leao-c/flectra, leemannd/openerp-addons-bundle, legalsylvain/odoo-production, lelsheri/flectra, likaiyuan/odoopub, limamp/openerp-addons, limengchang/odoo13-x64, limweb/flectra01, lisidan/odoo12-x64, lo-gun/flectra-1, lonelysun/odoo, luchaoshuai/flectra, lukehuang/odoo12-x64, ly2ly/flectra, maestrano/odoo, mah007/actpy, manishmarahatta/flectra, marionumza/pos-1, marionumza/skit_odoo12, mathieuvatel/odoo-production, mausvt/flectra, mbenyoub/server, melfry/odoo, mindphp/openerp-addons, minhphung171093/GreenERP_V7, minhphung171093/OpenERP_V7, minhphung171093/OpenERP_V8, mmoreta/openerp-addons-bundle, modemax93/odoo, mohitg1312/openerp-7-src, mohitg1312/openerp-addons-bundle, mol8/openerp-addons-bundle, molandtoxx/PosBox, morpheo909/openerp-addons-bundle, mrbamboovn/odoo, mrissa/openerp-addons, mrshelly/openerp71313, mrshelly/read_openerp, mszinte/odoo-production, muguli22/flectra, muhassaf/flectra, muk-projects/flectra, mulaudzicalvin/odoo-production, munruf/odoo-design, mustafan83/openerp-addons, mutita/odoo, nabiforks/odoo-1, nagyistge/odoo-design, napster2001/koozic, ncavalierm/flectra, neimarrampazo/openerp-addons, netice/flectra, nick2474/openerp-addons-bundle, nikunj7790/openerp-addons-bundle, nileshsheliya/odoo, niulinlnc/flectra, niulinlnc/odoo12-x64, niulinlnc/odoo13-x64, niulinlnc/skit_odoo12, nmhung89/odoo-design, ntcat/odoo12-x64, nthnnl/odoo-production, ntiufalara/universidade-digital, odewitt/odoo8, odic30/openerp-addons-bundle, odoo-modules/odoo-production, odoo/odoo, odooerpperu/odoo-1, odoofans/odoo, odoousers2014/OpenERP, okkype/flectra, old-boy/odoo12-x64, omarouhari/odoo, omegayang/odoo11-x64, onmywaytoheaven/odoo, oussa/openerp-oemedical-v0.1, ovnicraft/openerp-restaurant, owenwdx/odoo12-x64, owenwdx/odoo13-x64, paaq0659342/odoopub, petrus-v/odoo-foodcoops, phuctranerp/odoo-production, pinghendro/flectra, poiesisconsulting/openerp-restaurant, poljeff/openerp-addons-bundle, ppokah0111/openerp-addons, praveen-krishnappa/openerp-7.0-20170329, prem-hunt/openerp-addons, prinznazzy/odoo-1, priyankarani/openerp-addons, progressdll/openerp-addons-bundle, quiks13/openerp-addons-bundle, quysticiero/odoo, rafaelbeckel/openerp-addons, railsuser2014/openerp-addons-bundle, rajivkumar00006/openerp-addons, rapidgrps/eagle-erp-main, raulha10/odoo, realestdon/odoo, redhead520/odoo12-x64, ricky6251/ssh-git-github.com-odoo-odoo.git-13.0-ricky6251, rihene-abdelwahed/odoo-production, robinNode/flectra, rogeriofalcone/openerp-1, romendil/odoo, ronniedemarco/odoo8, royallinejo/odoo13-x64, ruifranco/odoo-design, rvalyi/openerp-addons, s2motion/flectra, safecoms/odoo8, salahable/odoo-design, samsonharrison/openerp-addons-bundle, samuel1971/odoo11-x64, sasakuma/odoo12-x64, sayeedul-islam-bd/flectra, sc4you/odoo-design, sc4you/odoo-production, sematicshood/flectra, sengottuvel/openerp-foundry, senthilnathang/flectra, sgeerish/odoo, shouyejing/mixprint_addons, siddharth7815/odoo-production, simhaonline/flectra, simplifysolutions/flectra, sixtofarfan/odoo-1, sjpatel21/openerp-addons, skalyanapu-mtuity/odoo, slacrey/odoo13-x64, sm2x/skit_odoo12, softapps/odoo12, soksireyrath/odoo, sopheak1/odoo, sprevot44/odoo-production, springuser2014/odoo, srikesh/skit_odoo12, steedos/odoo7, steedos/odoo8, suningwz/odoo-production, supercoopbdx/odoo-production, superquinquin/odoo-production, surgeon001/openerp-addons-bundle, tahirlanre/odoo, tasmail/odoo, tasosiakovidis/openshift-openerp-quickstart-old, tavinshky/odoo, tedi3231/openerp, tejastank/flectra-1, teruy1958/openerp-addons, thapelombulase/flectra, thomasullrich/odoo, tiagojfpais/openerp-addons-bundle, titasakgm/brc-stock, tonyshen277/odoo12-x64, tonyshen277/odoo13-x64, torbero/odoopub, trabacus-softapps/openerp-7.0-20170329, trabacus-softapps/openerp-8.0-cc, trobz/odoo-production, ttfseiko/openerp-trunk, ttfseiko/openerp_7_osbzr, ttpphuctran/odoo-production, ubic135/odoo-design, ujwalap/openerp-addons, umingpeng/odoo, usp-sa/actpy, vak0160/odoo-1, valdir-ti/flectra, valenciaricardos/flectra, valenciaricardos/flectra-1, valenciaricardos/odoo-1, varcharli/odoo13-x64, vauxoo-dev/addons-clearcorp, vauxoo-dev/typ-odoo, vidtsin/OpenERP_V8, vidtsin/koozic, vidtsin/odoo-production, vidtsin/pos, vidtsindia/odoo-design, vieterp-huy/odoo, vincentchen/odoo11-x64, viveksikri/odoo, vizura/openerp-addons, vnc-biz/openerp-addons-bundle, vnsofthe/openerp, wajidksa/odoo, wdjlover/odoo11-x64, westlyou/flectra-1, westlyou/odoo10-x64, westlyou/odoo13-x64, wgepapa/odoo, wilbeekman/odoo8, wuhuizhong/flectra, wwjiang007/flectra-1, wwwebweber/flectra, xavier-ramirez/framework-python, xiaonibakeji/odoo12-x64, xuliang87/odoo11-x64, xxshutong/openerp-7.0, yasr3mr96/actpy, yf956613/odoo12-x64, yf956613/odoo13-x64, youifki/odoo-1, younessel/openerp-addons, yuntux/odoo-production, yvescharles/flectra, yvoirin/openerp-addons, z042492/odoo10-x64, zeinfikri/flectra, zeroincombenze/account-closing, zeroincombenze/account-financial-reporting, zeroincombenze/account-financial-tools, zeroincombenze/account-invoicing, zeroincombenze/account-payment, zeroincombenze/bank-payment, zeroincombenze/crm, zeroincombenze/knowledge, zeroincombenze/management-system, zeroincombenze/partner-contact, zeroincombenze/product-attribute, zeroincombenze/report-print-send, zeroincombenze/stock-logistics-barcode, zeroincombenze/stock-logistics-tracking, zeroincombenze/stock-logistics-warehouse, zeroincombenze/stock-logistics-workflow, zeroincombenze/web, zfis/skit_odoo12, zhaohuaw/odoo12-x64, zhb123/actpy, zjpjohn/OpenERP, and zyfking/odoo12-x64

<h1 class="title">Adds support for authentication by LDAP server.</h1> <p>This module allows users to login with their LDAP username and password, and will automatically create OpenERP users for them on the fly.</p> <p><strong>Note:</strong> This module only work on servers who have Python's <code>ldap</code> module installed.</p> <a name="configuration"></a> <h2>Configuration:</h2> <p>After installing this module, you need to configure the LDAP parameters in the Configuration tab of the Company details. Different companies may have different LDAP servers, as long as they have unique usernames (usernames need to be unique in OpenERP, even across multiple companies).</p> <p>Anonymous LDAP binding is also supported (for LDAP servers that allow it), by simply keeping the LDAP user and password empty in the LDAP configuration. This does not allow anonymous authentication for users, it is only for the master LDAP account that is used to verify if a user exists before attempting to authenticate it.</p> <p>Securing the connection with STARTTLS is available for LDAP servers supporting it, by enabling the TLS option in the LDAP configuration.</p> <p>For further options configuring the LDAP settings, refer to the ldap.conf manpage: manpage:<cite>ldap.conf(5)</cite>.</p> <a name="security-considerations"></a> <h2>Security Considerations:</h2> <p>Users' LDAP passwords are never stored in the OpenERP database, the LDAP server is queried whenever a user needs to be authenticated. No duplication of the password occurs, and passwords are managed in one place only.</p> <p>OpenERP does not manage password changes in the LDAP, so any change of password should be conducted by other means in the LDAP directory directly (for LDAP users).</p> <p>It is also possible to have local OpenERP users in the database along with LDAP-authenticated users (the Administrator account is one obvious example).</p> <a name="here-is-how-it-works"></a> <h2>Here is how it works:</h2> <blockquote> <ul class="simple"> <li>The system first attempts to authenticate users against the local OpenERP database;</li> <li>if this authentication fails (for example because the user has no local password), the system then attempts to authenticate against LDAP;</li> </ul> </blockquote> <p>As LDAP users have blank passwords by default in the local OpenERP database (which means no access), the first step always fails and the LDAP server is queried to do the authentication.</p> <p>Enabling STARTTLS ensures that the authentication query to the LDAP server is encrypted.</p> <a name="user-template"></a> <h2>User Template:</h2> <p>In the LDAP configuration on the Company form, it is possible to select a <em>User Template</em>. If set, this user will be used as template to create the local users whenever someone authenticates for the first time via LDAP authentication. This allows pre-setting the default groups and menus of the first-time users.</p> <dl class="docutils"> <dt><strong>Warning:</strong> if you set a password for the user template, this password will be</dt> <dd>assigned as local password for each new LDAP user, effectively setting a <em>master password</em> for these users (until manually changed). You usually do not want this. One easy way to setup a template user is to login once with a valid LDAP user, let OpenERP create a blank local user with the same login (and a blank password), then rename this new user to a username that does not exist in LDAP, and setup its groups</dd> </dl>