Validation (check) Username and Password from the database

I have a Login page in my website, username and password as a textbox not as a form, I have already save the admin username and his password in the database, now I need to check or validate these textboxes if  data entered to textbox  match the
existing in the database then show a message box "Successful Login" if not "username or password invalid!!"
Note : The website developed using c# Visual Studio Professional 2013
Thank you

Hi,
Please check if the connection string is right and make sure the IIS application pool identity has enough permission to access database.
For more information, please refer to the document:
http://www.codeproject.com/Questions/328554/IIS-hosted-website-cannot-access-database
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Forgot username and password from the email iCloud chozhe not know forgot. purchase the product, all documents have. What to do?

    forgot username and password from the email iCloud chozhe not know forgot. purchase the product, all documents have. What to do?

    If you don't know your ID, you can try to find it as explained here: http://support.apple.com/kb/HT5625.  If you don’t know your password you can reset the password as explained here: http://support.apple.com/kb/PH2617.

  • Extracting username and password from security header

    Hey all,
    I'm writing a BPEL process that invokes two secured web services. One of them authenticates using Username Token and the other has a authenticate method in which the username and password are supplied as Strings. I have successfully propagated the credentials from the BPEL process to the web service using Username Token by doing the following:
    1) I secured my BPEL process
    2) I imported oasis-200401-wss-wssecurity-secext-1.0.xsd and from it created a variable of type Security
    3) I added the security variable to the Header Variables for the BPEL process input
    4) I added the security variable to the Input Header Variables for the web service's invoke operation
    This worked fine. However, I need to be able to extract out the username and password and supply them as Strings to the authenticate method of the other web service. How can this be done? If it can't, what are some alternatives?
    Environment:
    JDeveloper 11.1.1.6.0
    Thanks,
    Bill

    Hi Sri,
    If I understand your steps correctly, I think the problem I'm having rests with the second step. I don't know how to get a hold of the username and password to assign to the local variables you mention. The BPEL process itself uses Username Token for authentication. These credentials need to be passed to the web services invoked within the BPEL process. If I assign the security header variable directly to the string output for the BPEL process, the string returned will be the complete XML security header, which includes the username and password. However, the security header variable itself doesn't expose the username and password directly. In other words, I can't expand the security header variable node in the dialog for editing the Assign operation and get to the username and password. I think one solution is to parse out the username and password from the complete XML security header using string operations (substring, index-within-string, etc). Also, regarding step 4, I'm not sure if passing the credentials in the header will work for this web service. I think the web service is expecting the credentials as parameters to its authenticate method.
    Thanks,
    Bill

  • Webdynpro application taking MDM username and password from LDAP

    Hi All,
    I am working on EP-MDM integration.
    EP-LDAP , MDM-LDAP and EP-MDM have been integrated.
    The requirement is :
    When we run a webdynpro application from EP , it should take the user id and password of EP user who is currently logged in.(which is actually LDAP user and also exists for MDM) without hard coding it.
    The application will work according to the roles guaranteed to the user in MDM for eg: the user will be able to write into MDM only if he has read/write permissions in MDM.
    Please tell how the application will fetch the username and password from the EP details.
    Regards
    Shilpa

    Hi,
    You need to set a trusted connection between the EP and MDM System.
    And use the trusted connection JAVA API in the Web Dynpro to make a connection to MDM Repository. Trusted connection JAVA API will ask you only the username and not the password.
    Regards,
    Amol

  • HT204085 removing icloud username and password from old iphone

    I sold a previously owned iPhone and the person who purchased it cannot create an iCloud account on it.  He said my iCloud account is still attached to the iPhone.  Is there a way to remove any iCloud username and password from the device?

    Read here: http://support.apple.com/kb/TS4515.

  • Loading the username and password from database when login to xMII

    Hi
      can you explain briefly about how to configure the netweaver for loading username and password from database when the user login to xMII via netweaver platform?
    In xMII 11.5 we are configuring xMII itself? but in xMII 12.0 configuring by netweaver platform. if anyone know please explain step by step

    I am sending you some java code, which you can use in JSP.
    import java.sql.*;
    public class connectOracle{
    public static void main(String[] args) {
    System.out.println("Getting Column Names Example!");
    Connection con = null;
    String url = "jdbc:oracle:thin:@172.16.0.21:1521:orcl";
    String driver = "oracle.jdbc.driver.OracleDriver";
    String user = "scott";
    String pass = "tiger";
    try{
    Class.forName(driver);
    con = DriverManager.getConnection(url, user, pass);
    catch (SQLException s){
    System.out.println("SQL statement is not executed!");
    catch (Exception e){
    e.printStackTrace();
    }

  • Get DB Username and password from current connection

    Hi folks,
    I'm presuming this is something absurdly simple, i therefore offer my apologies in advance. my requirement is quite different from the very famous dynamic JDBC credentials example.
    I'm using Struts on a 10.1.2 implementation. We have numerous Oracle reports that we wish to call from Jdev (through a report server call). To provide the credentials to the Report server I need to provide the DB connection's username, password and SID. This I intend to do in a helper class in my web module.
    Is there a plain vanilla simple way of getting this done. I know "context.getApplicationModule().getTransaction().getConnectionMetadata().getUserName()" gives me the Database Username- just like that. Is there a similar way to obtain the password and SID as well. While getTransaction().getConnectionMetadata().getJdbcURL is also quite useful, how "for the life of me" do i get the password of the current DB connection (assuming I have an application module that is already connected). I basically wish to directly use connections from the application module directly without the need to manually specify/hard-code these credentials in my code.
    I've searched the forums and haven't been able to get the answer I was looking for (that or I;m searching in the wrong areas). Any help would be GREATLY appreciated.
    Cheers

    Hey Timo,
    thanks for that. I still have a couple of doubts.
    One the nature of the application is slightly different. we use independent usernames and passwords which are stored in the DB (different from DB username and password). The request(for the report-server call) comes only after the user is authenticated. Like you rightly said it's not a good idea to store the password and I'm pretty sure that option is completely ruled out.
    My questions is, given that the user already has an application module at hand which would mean he has a valid connection to "a" DB- (once again we have multiple DB scenario), I merely wish to use the information from the Connection that the application module is using to issue the request to the report server call. I take it the call to oracle reports server wouldn't accept a connect string, you necessarily have to provide the DB username/password and SID.
    My question now, is there anyway to obtain the password(or merely point my report server to this without requiring to store it) from the application module connection.
    I hope my query is clear, please let me know if what i'm saying needs to be clarified or doesn't make sense.

  • How to check my job name from the database...

    I have written one job scheduler which is as follows :
    SQL> ED
    Wrote file afiedt.buf
    1 DECLARE
    2 X NUMBER;
    3 JobNumber NUMBER;
    4 BEGIN
    5 SYS.DBMS_JOB.SUBMIT
    6 (
    7 job => X
    8 ,what => 'scott.SPLITSMS;'
    9 ,next_date => SYSDATE+1/1440
    10 ,interval => 'SYSDATE+1/1440 '
    11 ,no_parse => FALSE
    12 );
    13 JobNumber := to_char(X);
    14* END;
    15 /
    PL/SQL procedure successfully completed.
    Now I want to check whether the job has been really created or not?
    so for that I have used the following command line:
    SQL> SELECT JOB_NAME FROM DBA_SCHEDULER_JOBS WHERE JOB_NAME = 'SCOTT.SPLITSMS';
    SELECT JOB_NAME FROM DBA_SCHEDULER_JOBS WHERE JOB_NAME = 'SCOTT.SPLITSMS'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    how to check my job name from the database...
    what is the command used to check the job_name ????
    and how can i ensure that my job scheduler is running properly...???
    please help ........my dear friends.....!

    957029 wrote:
    Now I want to check whether the job has been really created or not?
    so for that I have used the following command line:
    SQL> SELECT JOB_NAME FROM DBA_SCHEDULER_JOBS WHERE JOB_NAME = 'SCOTT.SPLITSMS';
    SELECT JOB_NAME FROM DBA_SCHEDULER_JOBS WHERE JOB_NAME = 'SCOTT.SPLITSMS'
    ERROR at line 1:
    ORA-00942: table or view does not existYou can use DBA_* views only if the User has been Granted a DBA Privilege.
    how to check my job name from the database...
    what is the command used to check the job_name ????You can use USER_JOBS view to check. But, is it not that you have just created the Job, so you must be knowing it?
    and how can i ensure that my job scheduler is running properly...???If USER_JOBS.FAILURES is Non Zero, that means the Job has encountered a problem that needs to be Investigated. Similarly, the LAST_DATE, LAST_SEC, NEXT_DAY, NEXT_SEC can be used to determine if the Job has been running successfully.
    if you are on 11g, you should consider using DBMS_SCHEDULER.

  • Why it is keep asking for Username and Password but i didn't use any username and password with my database.

    Why it is keep asking for Username and Password but i didn't use any username and password with my database. Please help me i m very frustrated right now please help anybody. I m new in this.,

    Hi,
    Please check below threads:
    Crystal Report Layout asking for Login Info
    SAP B1 ask for credentials to print or to preview Crystal Reports report

  • How to pass username and password with the portal url

    i want to access portal from my web site. i have created username and password fields in my web page. when submited , my portal page should open. so how to pass username and password with the portal url.

    This is not straightforward; but it is doable.
    First tell us about your portal version; portal 10.1.4 has a slightly different method of doing it and the pre-10g portals were completely different animals.
    And if you are in AS Rel 2, then the most important document for you would probably be the following:
    [Creating Deployment Specific Pages| http://download-west.oracle.com/docs/cd/B14099_19/idmanage.1012/b14078/custom.htm#i1015535]
    You might want to use it in conjunction with some metalink notes about your portal version and such a login page.
    hope that helps!
    AMN

  • Passing username and password through the URL (SharePoint integration)

    Dear friends
    I have a requirement to integrate MS SharePoint with Jsp application site. user has to login to the Sharepoint first then from link (URL) i want to pass the username and password from
    that link to login into the jsp site without showing the login page !!

    SharePoint with Jsp application site. user has to login to the Sharepoint first then from link (URL) i want to pass the username
    and password from that link to login into the jsp site without showing the login page

  • TS1702 How do change the old Apple ID username and password to the updated username and password for the apps store?

    How do you change the old Apple ID username and password to the updated username and password in order to get updated apps from the app store?

    cbkitche wrote:
    How do you change the old Apple ID username and password to the updated username and password in order to get updated apps from the app store?
    Do you mean you kept the same account but you only updated your AppleID?
    Just log out and log back in with new ID.
    Note that the AppleID is embedded into the item at purchase and cannot be changed.
    However, when you change your AppleID, it will link the old account name to the new account name so you will not have any problems updating apps using the new AppleID.

  • Security issue: parameters username and password in the jbo:ApplicationModule

    Hello,
    in the <jbo:ApplicationModule> tag, you can give parameters for username and password, Then the .jsp connects to the DB via the username/password. Alternativly, You can provide this within the <Module>.properties file.
    Now the question: Isn't this a security hole? I mean, is it under all circumstances impossible, that the source-code can be delivered by the web-server or that the byte-code from the servlet (compiled from .jsp) can be "restringed"?
    Are there other ways to protect the credentials for accessing the ORACLE DB?
    Michael

    Hi John
    thank You very much. You wrote
    BC4J provides a number of mechanisms for specifying the DB username and password that do not require
    the password to be stored in a JSP page. By default, in 9.0.2, the DB password is stored in
    a BC4J configuration (persisted in a bc4j.xcfg file), which should be secured at the customer site. I've forgotten to mention our environment is SuSE7.2, DB 8.1.7.3, iAS 1.0.2.2, Portal 3.0.9.8.
    For simplicity we would like to use the first method via bc4j.xcfg, But our bc4j.xcfg looks as follows
    <quote>
    <BC4JConfig>
    <AppModuleConfigBag>
    <AppModuleConfig name="OPKv1ModuleLocal">
    <ApplicationName>de.condor.OPKv1.OPKv1Module</ApplicationName>
    <DeployPlatform>LOCAL</DeployPlatform>
    <JDBCName>WEBAPP_NETx</JDBCName>
    <jbo.project>de.condor.OPKv1.opkv1PRJ</jbo.project>
    </AppModuleConfig>
    </AppModuleConfigBag>
    </BC4JConfig>
    </quote>
    So the question is, where to leave schema/password?JDeveloper should have also generated a connection description in the same file named WEBAPP_NET. This
    named connection should contain the relevant elements. It is not recommended that you edit this file directly. The
    configuration editor and/or the connection editor should be used instead.
    Hope this helps.
    JR

  • Obtaining a Subjects username and password from a servlet

    Ok probably an easy one for people out there. I don't even know if it is
    possible.
    I have a servlet that has BASIC authentication going on (lets say it's using
    WebLogic 7.0 default security realm). From the servlet I need to explicitly
    obtain the user's username AND password. I have no problem retrieving the
    principal it's the password I can't get a hold of. I've tried all sorts of
    things like:
    javax.security.auth.Subject subject =
    weblogic.security.Security.getCurrentSubject(); and then trying to get the
    private credentials. No luck though.
    Any ideas? Is it possible?
    Mich

    Thanks for the response Neil.
    I need the password because my servlet is accessing a secure Web service.
    When connecting to the Web service I need to provide the username and
    password of the user (these are passed in String format) and I don't want to
    have the user provide username and password again when accessing the
    external Web service. So really I need to access the WLS security realm
    (where my servlet is executing) to obtain the current user's username and
    password. Will the default credential mapper in WLS give me the username
    and password in text format...from the limited documentation I have read it
    doesn't appear to. Is this correct?
    Mich
    "Neil Smithline" <[email protected]> wrote in message
    news:[email protected]..
    The password is not stored in the Subject. We do this to reduce the
    risk of the password being snooped from WLS's memory. If you wish you
    could write a LoginModule that puts the password in the private
    credentials and then creates an authentication provider that uses that
    LoginModule and make it part of the current realm.
    In general there is no way to get the password from within WLS. The
    passwords are stored in a salted one-way hashed format that is not
    reverse decryptable except via exhaustive search.
    Why do you need the password? If it is for a remote access can you use
    the credential mapper?
    - Neil
    Michel Crichton wrote:
    Ok probably an easy one for people out there. I don't even know if it
    is
    possible.
    I have a servlet that has BASIC authentication going on (lets say it'susing
    WebLogic 7.0 default security realm). From the servlet I need toexplicitly
    obtain the user's username AND password. I have no problem retrievingthe
    principal it's the password I can't get a hold of. I've tried all sortsof
    things like:
    javax.security.auth.Subject subject =
    weblogic.security.Security.getCurrentSubject(); and then trying to getthe
    private credentials. No luck though.
    Any ideas? Is it possible?
    Mich

  • How to know username and password from existing PPPOE broadband connection?

    Hi All,
    I am using windows server 2008 R2, and now I've used PPPOE broadband connection to connect the internet. what I am asking is how to know the username and password from my PPPOE setting, I have the requirement to create same setting in the difference machine.
    thanks.

    You can get this info from your ISP. This one may help.
    Create a Broadband connection using PPPoE in Windows Vista and Windows Server 2008
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

Maybe you are looking for

  • Java.lang.NullPointerException with rich:pickList

    Hi every Body, I still getting a problem with my <rich:pickList> and really I need help. I got an error when executing the application, I debugged the application and I have notice that the problem cames from the PickList tag. the error is as follow:

  • Windows Experience Index

    My base score is 7.9 ,My video card is updated, my monitor resolution is 1024x768 ,I run Windows 7 Ultimate,I've chosen an Aero theme, I ain't  running Safe Mode.Why I can't run Aero

  • Read text file and insert into MySQL

    Dears, I need to read text file and then insert the data in the correct column in the MySQL database example I have the following text file: field1=1234 field2=56789 field3=444555 field1=1333 field2=2222 field3=333555 and so on and so forth ,,note th

  • Image offline or not found problem

    I've been traveling a lot so I decided to move my entire Aperture Library to a firewire 800 drive thinking that I would be able to work from my laptop or desktop and have the exact same library without problems. It seemed to work fine until I plugged

  • Safari loading issue

    Recently, when i type in a web address in safari, or choose one of my bookmarks, the blue strip shows the page loading, but then stops half way, with no page loaded - it's as if Safari has frozen. If I hit the X in the browser address window bar and