Posts

Showing posts with the label Security

Spring 3 Part 9: Spring Security LDAP integration

The expectation of this blog is to enable developer to start LDAP integration quickly and easily with Spring Security. I have used ApacheDS which is embedded in the Apache Studio. Here the steps: The DN dc=example,dc=com is a example domain controller you can easily follow the documentation. Here the ldif document #[1] create domain (distinguished name) dn: dc=example,dc=com objectclass: top objectclass: domain dc: example #[ 2 ] create people organizational unit dn: ou=people,dc=example,dc=com objectClass: organizationalUnit objectClass: top ou: people #[ 3 ] create a user dn: uid=ojitha,ou=people,dc=example,dc=com objectClass: organizationalPerson objectClass: person objectClass: inetOrgPerson objectClass: top cn: Ojitha Hewa sn: Hewa uid: ojitha #[ 4 ] create group dn: ou=groups,dc=example,dc=com ...

Configure Google Analytics access from Tomcat SSL

Image
My recent web application had a requirement to publish the user requests to Google Analytics (GA) who has confirmed the registration. This is because there can be users who have visited the registration page but not confirm the registration or end up with errors even they click the registration button. Fortunately, this web application is using Spring Web Flow therefore I managed to implement the helper method that will send the confirmation information to the GA as a very last even. I've used the Apache HTTP Client to send a http request to GA using Google Measurement Protocol . In my case, I don't use Java general security store, instead use the custom keystore for Tomcat. This situation is very common when you need to configure the developer environment for the secure web applications development. First you have to enter the following URL to the Firfox browser. Then click the upper left corner pad lock icon: you will get the More information button. In the next window...