Hi George,
thanks! Now it works fine.

I've added

<setting name="login">
  <type refid="enable-disable" />
  <value>ENABLE</value>
</setting>

To neoconf/etc/commserver/user-settings.xml,

LOGIN(Type.APPLICATION, "login"),

to neoconf/src/org/sipfoundry/sipxconfig/permission/PermissionName.java


and
import static org.sipfoundry.sipxconfig.permission.PermissionName.LOGIN;

if (!user.hasPermission(LOGIN))
{
     throw new UsernameNotFoundException(userNameOrAliasOrImId);
}

to
neoconf/src/org/sipfoundry/sipxconfig/security/AbstractUserDetailsService.
java




-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von George
Niculae
Gesendet: Donnerstag, 25. November 2010 14:34
An: sipXecs developer discussions
Betreff: Re: [sipx-dev] SipXconfig check user permissions on login

On Thu, Nov 25, 2010 at 3:26 PM, Jan Fricke <[email protected]> wrote:
> 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?
>

Sorry about, check AbstractUserDetailsService.loadUserByUsername

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