Thanks George! Looks very easy. I'll test it as soon as possible!
-----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von George Niculae Gesendet: Montag, 22. November 2010 19:33 An: sipXecs developer discussions Betreff: Re: [sipx-dev] SipXconfig check user permissions on login On Mon, Nov 22, 2010 at 7:38 PM, Jan Thiemo Fricke <[email protected]> wrote: > Hi members, > > I’d like to add a permission that allows or disallows users to login at > their user portal. Can somebody tell me which method is executed when a > users tries to login at the webinterface and which method I should use to > check if the user has a specific permission? LoginContextImpl.checkCredentials. You can make an extra check here for the setting and return null if not allowed if (!user.getSettingTypedValue("permission/application/login")) return null; For adding a new user setting take a look at etc/commserver/user-settings.xml, should be something like: <group name="permission"> <group name="application"> .... <setting name="login"> <type refid="enable-disable" /> <value>DISABLE</value> </setting> .... George _______________________________________________ sipx-dev mailing list [email protected] List Archive: http://list.sipfoundry.org/archive/sipx-dev/ _______________________________________________ sipx-dev mailing list [email protected] List Archive: http://list.sipfoundry.org/archive/sipx-dev/
