On Tuesday, April 11, 2017 at 9:01:09 AM UTC-4, Anthony wrote:
>
> On Tuesday, April 11, 2017 at 8:55:20 AM UTC-4, Carlos Cesar Caballero 
> wrote:
>>
>> Hi guys, I think he is talking about the web2py api, and there are some 
>> undocumented features, by example, when you authenticate against an ldap 
>> you can map ldap groups against web2py groups, but this is not documented, 
>> and there are some undocumented features like that.
>>
>
> Yes, a few more advanced features are not documented, but that is far from 
> being "no documentation".
>

And to be fair, ldap is a contrib module, and there is quite a bit of 
documentation in the module itself. For example:

    If you need group control from ldap to web2py app's database feel free
    to set:

        auth.settings.login_methods.append(ldap_auth(...as usual...,
            manage_groups=True,
            db=db,
            group_dn='ou=Groups,dc=domain,dc=com',
            group_name_attrib='cn',
            group_member_attrib='memberUid',
            group_filterstr='objectClass=*'
           ))

        Where:
        manage_group - let web2py handle the groups from ldap
        db - is the database object (need to have auth_user, auth_group,
            auth_membership)
        group_dn - the ldap branch of the groups
        group_name_attrib - the attribute where the group name is stored
        group_member_attrib - the attribute containing the group members 
name
        group_filterstr - as the filterstr but for group select

In fact, the book even explicitly directs the reader to the documentation 
within the module:

*See the documentation of ldap_auth in 
web2py/gluon/contrib/login_methods/ldap_auth.py*

Anthony

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to