El 19/08/2014 2:22, "Dale Scott" <dalesc...@shaw.ca> va escriure: > > On Aug 18, 2014, at 4:24 PM, Dale Scott <d...@dalescott.net> wrote: > >> On Sunday, 17 August 2014 05:23:12 UTC-6, Luis Falcon wrote: >>> >>> Hi Dale >>> On Sat, 16 Aug 2014 20:58:20 -0700 (PDT) >>> Dale Scott <da...@dalescott.net> wrote: >>> >>> > On Saturday, 16 August 2014 21:43:25 UTC-6, Dale Scott wrote: >>> > > >>> > > On Saturday, 16 August 2014 19:42:19 UTC-6, Mark Hayden wrote: >>> > >> >>> > >> >>> > >> On 16 Aug 2014 19:37, "Dale Scott" <dale...@shaw.ca> wrote: >>> > >> > >>> > >> > > Hi list, I'm using a local openLDAP server as the source of >>> > >> authentication >>> > >> > for >>> > >> > > various server apps. What's the best way (module?) for Tryton >>> > >> > > to >>> > >> > authenticate >>> > >> > > users using the OpenLDAP server? >>> > >> > >>> > >> > I'm guessing I need *both* trytond_ldap_connection and >>> > >> > trytod_ldap_authentication modules. I try pip install >>> > >> > trytond_ldap_connection and get following include error. I am >>> > >> > running >>> > >> Tryton >>> > >> > on FreeBSD-10 (and understand I may be the only one), but does >>> > >> > thing >>> > >> obvious >>> > >> > jump out at anyone? Any suggestions? Fwiw, I'm not using >>> > >> > virtualenv. >>> > >> >>> Please check the references on configuring LDAP on GNU Health >>> https://en.wikibooks.org/wiki/GNU_Health/Central_Authentication >>> >> Now I'm really confused. I still can't get an LDAP menu selection to appear in the Tryton client. I've installed trytond_ldap_connection and trytond_ldap_authentication using pip, but if I try to init the trytond_ldap_connection module in my database ("scc") I get a "module not found" error. I'm also confused by why I install e.g. trytond_ldap_connection but pip shows trytond-ldap-connection is installed (underscores vs hyphens). Can anyone shed some light? >> >> root@whizzer:~ # pip list | grep trytond >> trytond (3.2.2) >> trytond-account (3.2.1) >> trytond-account-invoice (3.2.1) >> trytond-account-invoice-stock (3.2.0) >> trytond-account-product (3.2.0) >> trytond-company (3.2.0) >> trytond-company-work-time (3.2.0) >> trytond-country (3.2.0) >> trytond-currency (3.2.0) >> trytond-dashboard (3.2.0) >> trytond-ldap-authentication (3.2.1) >> trytond-ldap-connection (3.2.0) >> trytond-party (3.2.0) >> trytond-product (3.2.0) >> trytond-product-attribute (3.2.0) >> trytond-production (3.2.0) >> trytond-project (3.2.0) >> trytond-project-plan (3.2.0) >> trytond-purchase (3.2.0) >> trytond-sale (3.2.0) >> trytond-stock (3.2.2) >> trytond-stock-lot (3.2.0) >> trytond-stock-split (3.2.0) >> trytond-timesheet (3.2.0) >> root@whizzer:~ # >> root@whizzer:~ # trytond -c /usr/local/etc/trytond.conf -i trytond_ldap_connection -d scc >> [Mon Aug 18 22:13:34 2014] INFO:server:using /usr/local/etc/trytond.conf as configuration file >> [Mon Aug 18 22:13:34 2014] INFO:server:initialising distributed objects services >> [Mon Aug 18 22:13:35 2014] INFO:database:connect to "scc" >> [Mon Aug 18 22:13:35 2014] INFO:modules:ir:registering classes >> [Mon Aug 18 22:13:35 2014] INFO:modules:res:registering classes >> [Mon Aug 18 22:13:35 2014] INFO:modules:webdav:registering classes >> [Mon Aug 18 22:13:35 2014] INFO:modules:tests:registering classes >> [Mon Aug 18 22:13:35 2014] INFO:modules:currency:registering classes >> [Mon Aug 18 22:13:35 2014] INFO:modules:product:registering classes >> [Mon Aug 18 22:13:35 2014] INFO:modules:country:registering classes >> [Mon Aug 18 22:13:35 2014] INFO:modules:ldap_connection:registering classes >> [Mon Aug 18 22:13:35 2014] INFO:modules:dashboard:registering classes >> [Mon Aug 18 22:13:35 2014] INFO:modules:party:registering classes >> [Mon Aug 18 22:13:35 2014] WARNING:party:Unable to import vatnumber. VAT number validation disabled. >> [Mon Aug 18 22:13:35 2014] INFO:modules:product_attribute:registering classes >> [Mon Aug 18 22:13:35 2014] INFO:modules:ldap_authentication:registering classes >> [Mon Aug 18 22:13:35 2014] INFO:modules:company:registering classes >> [Mon Aug 18 22:13:35 2014] INFO:modules:company_work_time:registering classes >> [Mon Aug 18 22:13:35 2014] INFO:modules:stock:registering classes >> [Mon Aug 18 22:13:35 2014] INFO:modules:account:registering classes >> [Mon Aug 18 22:13:35 2014] INFO:modules:stock_split:registering classes >> [Mon Aug 18 22:13:35 2014] INFO:modules:stock_lot:registering classes >> [Mon Aug 18 22:13:35 2014] INFO:modules:account_product:registering classes >> [Mon Aug 18 22:13:35 2014] INFO:modules:production:registering classes >> [Mon Aug 18 22:13:35 2014] INFO:modules:timesheet:registering classes >> [Mon Aug 18 22:13:35 2014] INFO:modules:account_invoice:registering classes >> [Mon Aug 18 22:13:35 2014] INFO:modules:project:registering classes >> [Mon Aug 18 22:13:35 2014] INFO:modules:account_invoice_stock:registering classes >> [Mon Aug 18 22:13:35 2014] INFO:modules:project_plan:registering classes >> [Mon Aug 18 22:13:35 2014] INFO:modules:sale:registering classes >> [Mon Aug 18 22:13:35 2014] INFO:modules:purchase:registering classes >> [Mon Aug 18 22:13:36 2014] INFO:pool:init pool for "scc" >> Traceback (most recent call last): >> File "/usr/local/bin/trytond", line 113, in <module> >> trytond.server.TrytonServer(options).run() >> File "/usr/local/lib/python2.7/site-packages/trytond/server.py", line 123, in run >> Pool(db_name).init(update=update, lang=lang) >> File "/usr/local/lib/python2.7/site-packages/trytond/pool.py", line 151, in init >> lang=lang) >> File "/usr/local/lib/python2.7/site-packages/trytond/modules/__init__.py", line 429, in load_modules >> _load_modules() >> File "/usr/local/lib/python2.7/site-packages/trytond/modules/__init__.py", line 394, in _load_modules >> graph = create_graph(module_list)[0] >> File "/usr/local/lib/python2.7/site-packages/trytond/modules/__init__.py", line 159, in create_graph >> raise Exception('Module %s not found' % module) >> Exception: Module trytond_ldap_connection not found >> root@whizzer:~ # >> > > > P.s. Same behaviour with "trytond -c /usr/local/etc/trytond.conf -i trytond-ldap-connection -d scc" ("Exception: Module trytond-ldap-connection not found").
The module name is ldap_connection "trytond" is a prefix for the Python package