Ask on Codemiles community and get answers Free and Fast :
JAVA is a high level programming language .Here ask your JAVA questions and please help us to answer others questions. You will find JAVA articles here.
Our guest share with us your code snippets , your programming problems ,
your open source projects ,read articles and post yours .
Post 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
Post 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: 11 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) { }
Post 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.
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum