wekan / ldap

LDAP support for Wekan code has been moved to https://github.com/wekan/wekan/tree/master/packages/wekan-ldap , issues to https://github.com/wekan/wekan/issues , and if PRs are needed please add them instead to https://github.com/wekan/wekan/pulls
https://github.com/wekan/wekan/tree/master/packages/wekan-ldap
MIT License
12 stars 10 forks source link

LDAP Groups->Roles fails #53

Open battosai30 opened 5 years ago

battosai30 commented 5 years ago

Hi,

Fresh install : Ubuntu 19 + Snap wekan install (v2.75.0)

When I activatesync role groups sudo snap set wekan ldap-sync-group-roles='true' ldap-sync-admin-groups='admin' Login fails. Error : Exception while invoking method 'login' { stack: 'ReferenceError: Roles is not defined I guess the line concerned is 177 in loginHandler.js :

if( groups.length > 0 ) {
        Roles.setUserRoles(user._id, groups );
        log_info(`Updated roles to:${  groups.join(',')}`);
      }

Regards