9 July 2009
5 July 2009
11 June 2009
Stop asian youth pr0n
China will join the Belgian government in the struggle against porn.
All PC's sold in China will have to be shipped with "youth escort" (!?) software that will filter out pornographic websites.
It is known that the Great Firewall of China concentrates on filtering politically sensitive content,
so the motives behind this move are questionnable.
Labels:
china,
content filter,
free speech,
porn,
security
6 June 2009
Firefox plugin: split browser
Allows yout to have a Norton commander like multi pane browser. Handy when you're having to work on one page with data from another page.
I'm still missing tabs in the other panes, but otherwise another great firefox plugin.
Warning: does not interact well with firebug's split screens.

25 May 2009
JSP/servlet authentication
You can define authentication in the web.xml deployment descriptor of a web application.
- Define roles
<security-role> <role-name>admin</role-name> </security-role> <security-role> <role-name>boss</role-name> </security-role> User definition is web container dependent.
- Define protected resources
<security-constraint> <display-name>Goodies</display-name> <web-resource-collection> <web-resource-name>Goodies</web-resource-name> <description/> <url-pattern>/Cookies</url-pattern> <url-pattern>/Smarties/*</url-pattern> </web-resource-collection> <auth-constraint> <description/> <role-name>admin</role-name> <role-name>boss</role-name> </auth-constraint> </security-constraint>Take care:- Is only guaranteed for cookie based sessions
- Does not apply to forward and include
- Define authentication method
<login-config> <auth-method>FORM</auth-method> <realm-name/> <form-login-config> <form-login-page>/login.jsp</form-login-page> <form-error-page>/login-error.jsp</form-error-page> </form-login-config> </login-config>The authentication form is supposed to have a POST action called j_security_check and j_username and j_password input fields.
Other HTTP authentication methods are- BASIC: clear text password (base64 encoded)
- DIGEST: hashed password (works in Firefox and IE 7+)
- CLIENT-CERT: mutual certified SSL
Labels:
java,
JSP,
security,
servlet,
SL-314-EE5,
SL-314-EE6
3 May 2009
routing components / Solaris 10
- Commands
- route: manage routing table
- netstat -rn: view routing table
- routeadm: enable/disable routing services
- svcadm: enable/disable routing services (in addition to routeadm from Solaris 10 8/7)
- route
- ipv4-forwarding
- traceroute: test and show route to system
- Daemons
- /usr/sbin/in.routed
- RIPv1
- RIPv2
- RDISC
- /usr/sbin/in.routed
- Files
- /etc/defaultrouter: default route for static routing
- /etc/gateways: in.routed configuration file
- /etc/routing.conf: routeadm persistent state. From Solaris 10 8/7 this information moves to SMF.
- /etc/inet/static.routes: route command persistent state (subject to change)
IPMP components / Solaris 10
- Commands
- ifconfig: configure interfaces
- if_mpadm: change interface state
- -d detach
- -r reattach
- Daemons (SMF network/initial)
- /usr/lib/inet/in.mpathd
- -a alert to syslog daemon.error (undocumented)
- Files
- /etc/default/mpathd: boot time defaults
- /etc/hostname.interface: per interface configuration file for ifconfig
Labels:
IPMP,
network,
SA-300-S10,
solaris
Subscribe to:
Posts (Atom)
