0

I have SSRS client code in java to consume SSRS web services.My code is similar to what is mentioned in the site here.As of now for learning purpose i am hard coding my windows user name and password here

 service.setUsername("<DOMAIN>\\<USER_NAME>");
 service.setPassword("<PASSWORD>"); 

But if my windows passsword is changed or i depoy my web app to a server and other users try to retrieve report the authentication fails.Is there any way using which i can prevent hard coding my windows credentials or do i need to use any authentication procedure other than NTML.I am new to SSRS report generation,please help me in this regard .Any sample code that would help me is appreciated.Thanks in advance.

xdev
  • 641
  • 6
  • 18
  • 38

1 Answers1

0

Your app should ask users for their credentials or allow them to set such credentials through configuration.

yorodm
  • 4,359
  • 24
  • 32
  • Thanks yorodm for the reply.What kind of configuration needs to be done to have that feature? – xdev Apr 11 '14 at 14:05
  • If your client is like the one in the example you can easily read username and password from the command line. Check [here](http://stackoverflow.com/questions/367706/is-there-a-good-command-line-argument-parser-for-java) for some tips on choosing an argument parser. – yorodm Apr 11 '14 at 14:37