Hi,
After you have decided the type of connection(jdbc or file) you have to configure your realm as
Creating custom realm -------

2. Left panel Configuration --> Security --> Realm
tht will look like the image SERVERREALM
3. Right Panel Click New
4. Give any name you like just as MyRealm
5. ClassName you can use predefined class or provide your own class name.
6. Provide JAAS_CONTEXT as sampleRealm

/SUNWappserver/domains/domain1/config/login.conf
sampleRealm {
complete path custom login module with required;
};
7. Now place this custom Class file making the proper packaged jar of
loginModule and RealmClass(If Custom Realm).
Put this jar in the /home/gaurav/SUNWappserver/lib
8. Now Restart the server.