I wanted to be sure that it is not an expected behavior. gluon/tools.py (line 1958)
if user: ... elif checks: ... if self.user_group(user_id=user.id) is None: user_id = user.id if self.settings.create_user_groups: group_id = self.add_group( self.settings.create_user_groups % user) self.add_membership(group_id, user_id) if self.settings.everybody_group_id: self.add_membership(self.settings.everybody_group_id, user_id) This works for me, but may be it is now the best way to do it. Thomas Le lundi 17 mars 2014 à 12:58 -0400, Richard Vézina a écrit : > You can fix it and propose a patch!! > > > Richard > > > On Mon, Mar 17, 2014 at 12:34 PM, Thomas Bellembois > <thomas.bellemb...@gmail.com> wrote: > Hello, > > Is there any way to use LDAP authentication for users and > create user > groups ? > > Apparently the get_or_create_user() method does not create > them when the > user comes from LDAP. > > Thanks, > > Thomas > > -- > 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 web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > > > -- > 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 web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.