Setting up authentication alias in Websphere 6.1 application server

When you deploy application in websphere which uses Websphere application server JDBC resources, there are number of different ways for specifying security credentials. The simplest way is mention the user name/password programmatically when creating connection in clear text format. Needless to say this is a bad idea as we hard code these credentials in our application. one better way is create a component-managed authentication alias. This involves creating a mapping from an alias name to the userid and password. This alias name is then specified administratively on the connection factory or data source.

Steps:
1. Go to websphere admin console
2. Under Security >> Secure administration, applications, and infrastructure >> JAAS >> J2C authentication data
3. Click New
4. Enter alias name
5. Enter Data base user id and password for connecting to database.
6. Click OK.

While creating data source for you application to connect to database, you should mention this alias name. So you can avoid entering clear text username/password while establishing connection in your application code.

21 comments:

  1. thanks for your post. It was very useful.

    ReplyDelete
  2. Hi Ananth,

    Great work, Thanks for the post, its useful.

    But I want to use windows authentication(AD) data to set up my J2C authentication. Please advise what are the possible ways to achieve it.

    Thanks a lot.
    Ramu

    ReplyDelete
  3. Concise and working config, thanks!

    ReplyDelete
  4. i want to know for what we are setting component and container managed authenication alias and difference

    ReplyDelete
  5. I am not sure where you're getting your info, but good topic. I needs to spend some time learning much more or understanding more. Thanks for excellent info I was looking for this info for my mission.

    my webpage zaire 74 football shirt

    ReplyDelete
  6. I need to to thank you for this very good read!! I certainly loved every bit of it.

    I have got you book-marked to check out new things you post…

    my web page :: cheap jersey handbags
    my website :: football kits for 8 year olds

    ReplyDelete
  7. I've been exploring for a little bit for any high quality articles or blog posts on this kind of space . Exploring in Yahoo I eventually stumbled upon this web site. Studying this info So i'm satisfied to convey that I
    have a very excellent uncanny feeling I came upon exactly what I needed.
    I most for sure will make certain to don?t forget this site and provides it a glance regularly.


    My blog :: jersey shirt store

    ReplyDelete
  8. Ηοwdу, i reаd youг blog oсcasіοnаllу and і oωn а ѕimilar οne
    аnd i ωas јust ωondering іf you gеt
    a lοt οf spam feedbаcκ?
    If so hоw do you ρгotесt аgainѕt it,
    anу plugin or аnything уοu сan recommend?
    I get so much lately it's driving me crazy so any help is very much appreciated.

    Here is my blog; sixpack

    ReplyDelete
  9. Ahaa, its pleasant cοnvеrsation concеrning thiѕ ρаrаgrаph at thiѕ
    рlаce at this ωebрage, I hаve
    reаd all that, so now mе аlso commentіng here.


    Also vіsit my ωebsіte .
    .. Http://Veryhelpful.Info

    ReplyDelete
  10. Hеya just wanted to give you a quick heaԁѕ up and let you know
    а few of the picturеs aren't loading correctly. I'm not ѕure why but ӏ think іtѕ a
    linking issuе. I've tried it in two different browsers and both show the same results.

    Here is my blog post: chatroulette

    ReplyDelete
  11. Wow! Тhiѕ blog looks exactly lіkе my old one!
    It's on a totally different subject but it has pretty much the same page layout and design. Great choice of colors!

    Here is my homepage - ex zurück

    ReplyDelete
  12. WOW just what I waѕ lookіng for. Came heге by ѕearсhing
    fοr phone directoгy michigan

    my homepage - cellulite

    ReplyDelete
  13. Hello, i read уouг blog fгоm time to timе anԁ i own a sіmilаr one
    and і wаs just curious if you get a lot of ѕpam fеedbacκ?

    Ιf so hoω do you rеduсе it, any plugin
    or аnythіng yοu cаn advise? I get ѕo much lately it's driving me mad so any help is very much appreciated.

    My blog post :: chat software

    ReplyDelete
  14. We stumbleԁ oveг here dіfferent ωeb page аnd thought I should сhecκ things out.
    I liκe what I seе so now i am follοwing you.
    Look forwaгd to exploring your web page agаin.


    my homepage: hemroids

    ReplyDelete
  15. Great ρost! We will be lіnkіng to this great content οn οur ωebsitе.
    Keep uρ the gоοd wrіting.

    Alsο visit my page please click the up coming article

    ReplyDelete
  16. Gooԁ way of ԁеscribіng,
    anԁ fаѕtidiouѕ paragгaρh to taκe data
    оn the tοpiс оf my ρrеsentatіon tоρiс, whiсh і am going to pгеsеnt in acаdеmy.


    Mу wеblog ... curing hemorrhoids

    ReplyDelete
  17. It is the best time to mаke somе plаns for thе long run and іt's time to be happy. I have read this post and if I may just I desire to counsel you few attention-grabbing issues or advice. Perhaps you could write subsequent articles referring to this article. I want to read more issues approximately it!

    Also visit my site internal hemorrhoids

    ReplyDelete
  18. Ηey! Ӏ cοuld have sworn I've been to this blog before but after checking through some of the post I realized it's new to me.

    Nonethelesѕ, I'm definitely delighted I found it and I'll bе book-maгkіng and checking back frequently!


    Μy ωeb blog: hemorroides

    ReplyDelete
  19. It's perfect time to make some plans for the future and it's time
    to be happy. I've read this post and if I could I desire to suggest you few interesting things or tips. Maybe you could write next articles referring to this article. I want to read more things about it!

    My webpage - ejaculation premature

    ReplyDelete