Hi Sebastian,
We don't have a custom login module.
We use a custom security domain but that is just the standard ldap configuration with our custom configuration.
If you look at my previous post, that is all the code that I need to login to the server for authentication and authorization.
When the initial context is created with the properties including the username and password, the login is authenticated to the ldap.
The authorization is then done when I call the canConnect() method on the facade.
Sorry that I can't be more help.