This is more the Java/Spring developers out there. This article describes how to use Spring Security with Ext JS 4 to provide authentication and authorization using both LDAP and Siteminder.

Enjoy!