Welcome Panupat
Other users may have more to say on this issue, anyway ...

web2py has pluggable login methods. One is gluon/contrib/login_methods/
ldap_auth.py. It contains an example of how to use it. It will allow
you to login using Active Directory using LDAP.

More complex is the issue with groups. Web2py has its own mechanism
for creating groups and checking membership.

There is a third party  python module to get Active Directory groups
and membership (http://timgolden.me.uk/python/
ad_cookbook.html#find_a_user_quick).

Somehow you need to put the two together.

One option is to extend the class Auth in gluon/tools.py and overload
methods add_group, del_group, add_membership, del_membership,
has_membership to use the active directory APIs internally.

Another option is to use Auth as it is an periodically runs a
background script that syncs the web2py database with the ative
directory once.

I am sorry but if there is a simpler solution I have not seen one.

Massimo





On Jan 30, 4:25 am, Panupat <panup...@gmail.com> wrote:
> I just discovered web2py. I'm wondering if web2py is the right choice
> for me.
>
> Would greatly appreciate any input :)
>
> A little background is that I'm a PHP user and a 3D artist. So Python
> has always been on the top of the to-learn list because it can be used
> with MAX and MAYA. I recently was given an assignment to create a
> website for internal use across our LAN network. I'm given a HUGE
> amount of time so I am using this opportunity to eventually learn
> Python.
>
> Here are some of the specifications of my current assignment and I
> really would really love to know if web2py provides functionality to
> make them happen without much fuss.
>
> - username and password will be authenticated against Windows Acrive
> Directory
>
> - User group also determines by Active Directory groups.
>
> - Everything else will be in MySQL.
>
> - A lot of real time drag-and-drop using javascript on the front end.
> The back end will have to be able to respond to a lot of small
> requests and update database accordingly.
>
> Everything else are generic web stuff so my main concern is only the 4
> specs mentioned above.
>
> Thank you very much!
>
> best regards,
> Panupat.
>
> :)

Reply via email to