[web2py] Re: LDAP DAL Adapter Help

2011-12-22 Thread Bruno Lottero
I realized LDAP tree won´t fit in DAL. In my opinion, the best way to implement this is to create a whole new library, but i don´t have the time.

[web2py] Re: LDAP DAL Adapter Help

2011-12-21 Thread Bruno Lottero
I went for something like this: DAL ( 'ldap://server:port', driver_args={'dn': 'cn=admin,ou=People,dc=example,dc=com', 'password':'password'}) Ok, now i have to find out how to make define_table() to work with ldap tree model Cheers.

[web2py] Re: LDAP DAL Adapter Help

2011-12-20 Thread Bruno Lottero
I'll dig into it, but additional mappings doesn´t fit my needs as i need to do (search, add, delete) and other operations.

[web2py] LDAP DAL Adapter Help

2011-12-20 Thread Bruno Lottero
Hello there, Im currently developing an LDAP DAL adapter, so far i´ve been able to bind to a server. Tomorrow i will start to model the methods for the operations (add, search, etc) But, there's a little problem since an ldap URI looks like this ldap://server:port Where should i put the "dn"