I've debugged my code. checkCredentials is only called by the method
changePin. It is not called on login.

The only method of the LoginContextImpl class that is called when logging
in is onApplicationEvent. This seems to be a spring eventhandler. Does
anybody know who is firing the event which triggers onApplicationEvent?

Thanks!

-----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/

Reply via email to