Question subject: need help with Create USER and Password in JAVA
Posted: Fri Apr 10, 2009 12:37 pm
Joined: Fri Apr 10, 2009 12:01 pm Posts: 1 Has thanked: 0 time Have thanks: 0 time
Hi I really need for Someone help me with create user og password in JAVA, I am also upload how should system looking be... I will be thanksful if someone can help me with this... this is my msn ID: k.yalda@hotmail.com plzzzzzzzzzzzz if someone can help me contact me.... I hope someone help me... bye bye
orion
Question subject: Re: need help with Create USER and Password in JAVA
Posted: Mon Apr 20, 2009 12:22 pm
Joined: Sat Jan 17, 2009 7:51 pm Posts: 13 Has thanked: 0 time Have thanks: 1 time
hey if you can use java netbeans 6 point something.you can do it in design mode.just drag jlabel1 for user name then drag jtextfield ,then drag jpasswordfield for password.and drag a button for action.if you double click in button then created jButton1ActionPerformed. At last you can run this code in JButton1ActionPerformed
Code:
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { //// Action submit button for main form submit//
String user_name=jTextField1.getText(); String pasword=jPasswordField1.getText(); if(user_name==" " || pasword==" ") { JOptionPane.showMessageDialog(null,"Invalid User Name or Password","Error",JOptionPane.ERROR_MESSAGE); }
if you want file upload as like text file.you can see this code for file chooser
private JFileChooser fileChooser;
try { fileChooser = new JFileChooser(); int result= fileChooser.showOpenDialog(this); if(result==JFileChooser.CANCEL_OPTION) { JOptionPane.showMessageDialog(null,"You Cancel it.","Warning",JOptionPane.ERROR_MESSAGE); } else { your work } catch(FileNotFoundException exception) { }
haffila
Question subject: Re: need help with Create USER and Password in JAVA
Posted: Tue Aug 11, 2009 9:32 am
Joined: Tue Aug 11, 2009 9:25 am Posts: 3 Has thanked: 0 time Have thanks: 0 time
Thankyou for this hint. By setting both expirePassword to true and pwdLastSet to 0 I can force the user of the new AD account I create to change his password immediately the first time he logs in... which what I want. pay day loanpayday advance loans I notice this WS_PasswordExpired attribute is mentioned in the IDM 7.1 documentation. However, ALL Microsoft TechNet articles about this subject only mention pwdLastSet. I hope this helps others in AD account creation.