Showing posts with label password. Show all posts
Showing posts with label password. Show all posts

Wednesday, March 28, 2012

Profile value + Sql Value, a login problem

Hi all. Quick question. I'm using VS2005, C#, aspx page.

I'm creating a Profile to store login and password. That part is working... I can call the values (and display them) using this code <%= Profile.login %> and <%=Profile.password %
Now I want to create a Grid View that will connect to the SQL db, see if the login and password value stored in the Profile match that of ones in the SQL db.

So if the profile is login: bob password: dog, the grid view will output all application ID numbers associated with the bob and dog. Here is the SQL code...trying to use the <%=Profile.login %> as a filter on the login and password doesn't seem to work...

Can anyone tell me what I'm doing wrong? How can I reference a value in the Profile within an SQL statement?

SELECT ApplicationStatus.Description, Customer.CustomerName, Application.ApplicationDate
FROM Application INNER JOIN
ApplicationStatus ON Application.ApplicationStatusID = ApplicationStatus.ApplicationStatusID INNER JOIN
Customer ON Application.ApplicationID = Customer.ApplicationID INNER JOIN
[User] ON Application.DealerId = [User].UserId
WHERE ([User].LoginId = '<%= Profile.login %>') AND ([User].LoginPwd = '<%= Profile.password %>') AND (ApplicationStatus.Description = 'Pending')

Try getting the value into a variable and use the variable in the SQL.

SELECT ApplicationStatus.Description, Customer.CustomerName, Application.ApplicationDate
FROM Application INNER JOIN
ApplicationStatus ON Application.ApplicationStatusID = ApplicationStatus.ApplicationStatusID INNER JOIN
Customer ON Application.ApplicationID = Customer.ApplicationID INNER JOIN
[User] ON Application.DealerId = [User].UserId
WHERE ([User].LoginId = @.login) AND ([User].LoginPwd = @.pwd) AND (ApplicationStatus.Description = 'Pending')


Then add the parameters to the command object and set their values appropriately.

|||I agree with ndinakar.

Friday, March 23, 2012

ProClarity Dashboard server user name and password modification

Hi, all experts here,

Does anyone know how can we change the password for a particular user of ProClarity dashboard server? I changed it from the ProClarity dashboard server database's 'users' table, but it does not work. Any one know how can we do that.

Thanks and I am looking forward to hearing from you.

With kind regards,

Yours sincerely,

Hello Helen. Dashboard Server is integrated with Active Directory. You map users into groups in AD and map that groups in Dashboard Server.

Normally you do not handle accounts and passwords in Dashboard Server with the exception of the dashboard administrator.

HTH

Thomas Ivarsson

|||

Hi, Thomas,

Thanks for your kind advices.

Yes, I logged on as the administrator of the Server. What happened was the I logged on as administrator of the dashboard viewer successfully. But it did not let me log on to the dashboard studio with exactly the same administrator account. What I did was going to the database of the dashboard server and changed the password for this administrator account. But it did not let me log on with the reset password again. I am still stuck in it.

Thanks for your help anyway.

With kind regards,

Yours sincerely,

|||

OK. You can always reinstall Dashboard Server once again and get the option to change the password.

I suspect that the integration with Active Directory is not done correctly. I think you will need the help of an it-support specialist. The installation of this product is a little bit tricky.

Changing password directly in a table will usually not work.

Edit: It is possible to change the password for the PDS administrator by changing authentication back to SQL Server /forms authentication and use the default admin id and password. You will have to configure some xml files to do that and make an authentication change in Internet Information Server(IIS).

This is in the documentation.

HTH

Thomas Ivarsson

|||

Hi, Thomas,

Thanks for your help.

With kind regards,

Yours sincerely,

ProClarity Dashboard server user name and password modification

Hi, all experts here,

Does anyone know how can we change the password for a particular user of ProClarity dashboard server? I changed it from the ProClarity dashboard server database's 'users' table, but it does not work. Any one know how can we do that.

Thanks and I am looking forward to hearing from you.

With kind regards,

Yours sincerely,

Hello Helen. Dashboard Server is integrated with Active Directory. You map users into groups in AD and map that groups in Dashboard Server.

Normally you do not handle accounts and passwords in Dashboard Server with the exception of the dashboard administrator.

HTH

Thomas Ivarsson

|||

Hi, Thomas,

Thanks for your kind advices.

Yes, I logged on as the administrator of the Server. What happened was the I logged on as administrator of the dashboard viewer successfully. But it did not let me log on to the dashboard studio with exactly the same administrator account. What I did was going to the database of the dashboard server and changed the password for this administrator account. But it did not let me log on with the reset password again. I am still stuck in it.

Thanks for your help anyway.

With kind regards,

Yours sincerely,

|||

OK. You can always reinstall Dashboard Server once again and get the option to change the password.

I suspect that the integration with Active Directory is not done correctly. I think you will need the help of an it-support specialist. The installation of this product is a little bit tricky.

Changing password directly in a table will usually not work.

Edit: It is possible to change the password for the PDS administrator by changing authentication back to SQL Server /forms authentication and use the default admin id and password. You will have to configure some xml files to do that and make an authentication change in Internet Information Server(IIS).

This is in the documentation.

HTH

Thomas Ivarsson

|||

Hi, Thomas,

Thanks for your help.

With kind regards,

Yours sincerely,

ProClarity Dashboard server user name and password modification

Hi, all experts here,

Does anyone know how can we change the password for a particular user of ProClarity dashboard server? I changed it from the ProClarity dashboard server database's 'users' table, but it does not work. Any one know how can we do that.

Thanks and I am looking forward to hearing from you.

With kind regards,

Yours sincerely,

Hello Helen. Dashboard Server is integrated with Active Directory. You map users into groups in AD and map that groups in Dashboard Server.

Normally you do not handle accounts and passwords in Dashboard Server with the exception of the dashboard administrator.

HTH

Thomas Ivarsson

|||

Hi, Thomas,

Thanks for your kind advices.

Yes, I logged on as the administrator of the Server. What happened was the I logged on as administrator of the dashboard viewer successfully. But it did not let me log on to the dashboard studio with exactly the same administrator account. What I did was going to the database of the dashboard server and changed the password for this administrator account. But it did not let me log on with the reset password again. I am still stuck in it.

Thanks for your help anyway.

With kind regards,

Yours sincerely,

|||

OK. You can always reinstall Dashboard Server once again and get the option to change the password.

I suspect that the integration with Active Directory is not done correctly. I think you will need the help of an it-support specialist. The installation of this product is a little bit tricky.

Changing password directly in a table will usually not work.

Edit: It is possible to change the password for the PDS administrator by changing authentication back to SQL Server /forms authentication and use the default admin id and password. You will have to configure some xml files to do that and make an authentication change in Internet Information Server(IIS).

This is in the documentation.

HTH

Thomas Ivarsson

|||

Hi, Thomas,

Thanks for your help.

With kind regards,

Yours sincerely,