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.
I had this working in debian at one point. If i recall i did need mire than one module. I had to have some dev packages in debian to build it if i recall too. This was in version 2.4 though the setup might have changed a bit. Will see if i can find notes on what i did then.
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.I had this working in debian at one point. If i recall i did need mire than one module. I had to have some dev packages in debian to build it if i recall too. This was in version 2.4 though the setup might have changed a bit. Will see if i can find notes on what i did then.
<snip>
> Modules/errors.h:8:10: fatal error: 'lber.h' file not found
<snip>
El 19/08/2014 2:22, "Dale Scott" <dale...@shaw.ca> va escriure:
The module name is ldap_connection
"trytond" is a prefix for the Python package
El 19/08/2014 2:22, "Dale Scott" <dale...@shaw.ca> va escriure:
>
> On Aug 18, 2014, at 4:24 PM, Dale Scott <da...@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?
>>> > >> >
<snip>
>>> > >>
>>> 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?
>>
<snip>
The module name is ldap_connection
"trytond" is a prefix for the Python package
I am not certain but it may be that if the password field is not null in the database it takes precedence over ldap. Problem is if you set any password the salted hash is stored. Even if you set it to blank after is makes a salted hash for the field representing a blank string. As i said before i only played with ldap back in 2.4, but part of the solution seemed to be to go into psql and make the password field null in the table directly.
>> 2. I created a new user "tuser" (Test User) in the LDAP server
>> (password: "appleton"), and then logged to Tryton as "admin" using
>> Tryton client and created a corresponding user "tuser" (password:
>> "notappleton"). This is as per the process in the GNU Health
>> reference
>> https://en.wikibooks.org/wiki/GNU_Health/Central_Authentication (if
>> I understand it correctly). Logging in to Tryton as user "tuser"
>> with password "appleton" fails, but logging in with password
>> "notappleton" is accepted.
It means LDAP authentication fails. You should:
- check the OpenLDAP logs
- in order to test LDAP parameters: query the LDAP server using
'ldapsearch' and 'tuser' on the computer running the tryton server