Clear text  password - how to send it from java.

I am trying to reset the password of a user from java.
So I have to open a socket connection to Unix box and send a packet in following format
"<adminUserid> <adminPassword> PASSWORD <target-userId> <new-passwd>\n"
So they say that user credentials are to be send in cleartext
Please tell me how i can send above string as cleartext
thanks in advance.
Renjith.

But this is not working for me , UNIX gurus please help
import java.net.InetAddress;
import java.net.Socket;
import java.net.UnknownHostException;
import java.io.BufferedWriter;
import java.io.OutputStreamWriter;
import java.io.IOException;
public class TestUnix {
public static void main(String args[] ) {
     try {
             InetAddress addr = InetAddress.getByName("x.x.x.x");
             int port = 6546;
          System.out.println("Address IP : "+addr);
             // This constructor will block until the connection succeeds
             Socket socket = new Socket(addr, port);
          BufferedWriter wr = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));
          String command = "<Admin><admin-pwd>PASSWORD<user><user-pwd>\n";
          System.out.println(command);
                 wr.write(command);
             wr.flush();
          socket.close();
          System.out.println("Finished executing");
         } catch (UnknownHostException e) {
         } catch (IOException e) {
}

Similar Messages

  • How to send SMS from Java program?

    Hello,
    I want to know, how can I send SMS from Java program.I dont have any idea about SMS gateways. Can any one give me Sample code for sending the SMSs from Java Program.
    Thanks,
    -BR

    hi,
    refer javamail concepts
    http://www.google.co.in/search?q=javamail+simple+example&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a

  • How to send parameters from java to perl

    I have a java program which is executing a perl script. I m using
    Runtime.getRuntime().exec method to execute the perl script. Now I have to send some parameters to the perl script from java which will be processed there. can you help me how to do it?

    nitu007 wrote:
    Then there is no solution for this .Not true.
    Actually the perl script was preety big and to convert it to java it will take time.That's no excuse not to do it.
    So i thought i could execute it througn java.You can. CGI is basically a protocol on how to invoke programs and deal with their output; so other programs than web servers can follow it to invoke CGI scripts.
    However, (1) you may find that implementing the CGI protocol from the invoker's side may be a bigger pain than it's worth, and (2) in the long run, you'll end up with a hack that will be a pain to maintain.
    In your case, because the script uses CGI.pm, implementing the full CGI protocol probably won't be necessary. But you'll still be doing some klugery to run the CGI script at all, and you'll be buying yourself pain in the long run. Even if you do run it this way, I'd advise that once you have that working and have some breathing room, you start to work porting the script.

  • How to Send Fax from Java Code ?

    I want to send Fax from my Java Program without using any third party tools like RFax etc.
    I have explore that it is possible by using Java Communication API , but I can''t get the exactly. Can anybody help me Please?

    Ankit_B wrote:
    I want to send Fax from my Java Program without using any third party tools like RFax etc.
    I have explore that it is possible by using Java Communication API , but I can''t get the exactly. Can anybody help me Please?Have you tried searching the web? These open-ended questions like "I don't know how to do X, can someone help me" are almost never answered.
    However, if you have some specific question, feel free to ask it here.

  • How to send sms from java code

    hi
    I have involved in a project where I need to send sms to mobile from java code.Can anyone help me.if u have code please send me.
    thanks
    dhinesh

    Hi,
    there are several methods to do so but using Web Services is an easier one. Google will help you to find a provider. (E.x. http://www.remotemethods.com/home/communic/sms .)
    Best wishes,
    Christian Ullenboom | http://www.tutego.com/

  • Options to avoid Clear-Text Password in Business Objects 4.1 deployed Webi and CR 2013 reports

    We would like to avoid bundling clear-text passwords into each Webi and CR 2013 report in BOE 4.1 .   Could you recommend some alternatives to not embedding clear-text passwords in Webi and CR 2013 reports?  Thanks!

    Hello Kenneth,
    I have few options for you:
    Option 1:
    For BO XI 3.1, the Schedule Manager is a tool to help you manage the database logon information of Crystal Report documents in a BusinessObject Enterprise system. You can use the tool to update the logon information for a particular Crystal Report document, as well as looking for other Crystal Report documents that use the same database and update them in batch.
    As per my knowledge, there is no such tool exists for BI 4.0/4.1. Still I'd suggest you to test it in your TEST environment. I am sure it will work for BI 4.0 as well.
    You can download it on below portal.
    BusinessObjects Enterprise XI Schedule Managerhttp://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80af7965-8bdf-2b10-fa94-bb21833f3db8
    Option 2:
    When doing migration, from one environment to the next, you can setup overrides, within the Promotion Management portion of CMC, that will automatically make changes to the various reports for you, without needing to utilize the external tool to do that.
    Here's a nice list of KBA's for the BI 4.0 UMT (Upgrade Management Tool) & Promotion Management:
    http://wiki.sdn.sap.com/wiki/display/BOBJ/BI4+Upgrade+and+Promotion+Management+KBAs
    Hope this helps!!!
    Regards,
    Maheh

  • How to send sms from iPad via iphone

    How to send sms from iPad via iphone?

    You don't easily.
    The pad, with I message turned on, will send text like messages to any other ios5 user that has I message turned on.
    The pad is not a phone, and does not have the radio to send 'real' SMS messages, which use the phone channel.
    There are a few apps in the store that will convert messages to SMS, for use with non apple folks.  Check out the app store.  Search SMS.

  • How to sending email from Oracle Forms

    How to sending email from Oracle 6i(Forms)
    I need to send email to a distribution list(multiple email addresses).

    send email of multiple email address
    [email protected],[email protected],[email protected]
    create or replace function mailout
    (sender in varchar2,
    recipient in varchar2,
    ccrecipient in varchar2,
    subject in varchar2,
    message in varchar2) return number
    is
    crlf varchar2(2) := chr(13)||chr(10);
    connection utl_smtp.connection;
    mailhost varchar2(50) := 'Add email server Ip Address here';
    header varchar2(4000);
    v_num number :=1;
    str number:=0;
    email varchar2(50);
    begin
    connection := utl_smtp.open_connection(mailhost,25);
    header := 'Date: '||to_char(sysdate,'dd mon yy hh24:mi:ss')||crlf||
    'From: '||sender||' '||crlf||
    'Subject: '||subject||crlf||
    'To: '||recipient||crlf||
    'Cc: '||ccrecipient||crlf||message;
    utl_smtp.helo(connection,mailhost);
    utl_smtp.mail(connection,sender);
    utl_smtp.rcpt(connection,recipient);
    while (instr(ccrecipient,',',1,v_num)>0) loop
    email:=substr(ccrecipient,str+1,instr(ccrecipient,',',1,v_num)-str-1);
    dbms_output.put_line(email);
    utl_smtp.rcpt(connection,email);
    str:=instr(ccrecipient,',',1,v_num);
    v_num:=v_num+1;
    end loop;
    utl_smtp.open_data(connection);
    -- utl_smtp.write_data(connection,header);
    utl_smtp.write_data(connection,'MIME-Version:1.0'||crlf||'Content-type:text/html'||crlf||header);
    utl_smtp.close_data(connection);
    utl_smtp.quit(connection);
    return 0;
    exception
    when utl_smtp.invalid_operation then
    dbms_output.put_line('Invalid Operation in SMTP transaction');
    return 1;
    when utl_smtp.transient_error then
    dbms_output.put_line('Temporary problem with sending email ');
    return 2;
    when utl_smtp.permanent_error then
    dbms_output.put_line('Permanent problem with sending email ');
    return 3;
    end;

  • How to send data from internal table to the shared folder in ABAP

    Hi experts,
             My requirement is to transfer data from a file to shared folder. i just did reading data from a file to a internal table. Now i want to send this internal table data into a shared folder which is  "
    xxx\y\z....".
    I do not have any idea on how to send data from internal table to the shared folder path.
    can anybody please help me out how to do this?
    Thanks & Regards
    Sireesha.

    Where that folder is located, its on presentation server i.e. desktop or application server.
    If its on presentation server, use FM GUI_UPLOAD.
    If its on application server, then use DATASET functions. Have a look at below link.
    [File Handling in ABAP|http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3ca6358411d1829f0000e829fbfe/frameset.htm]
    I hope it helps.
    Thanks,
    Vibha
    Please mark all the useful answers

  • I have iphone 3gs, how to send song from my computer?

    i have iphone 3gs,
    how to send song from my computer in iphone

    You sync it or use iTunes Match.

  • IDOC :: how to send data from Custom Infotype in SAP HR to third party

    Hi,
    I have created one custom Infotype by number 9020. How to send data from this infotype to third party system and also change pointers need to trigger for this infotype.
    Please help me in doing it.
    I am using one Custom Message type ZTALENT and Custom Idoc Type ZTALENT.
                                                                                    ZTALENT                        Talent Management                                                                               
    5  E1PLOGI                        Header for an HR Object (Master Data or Organizational Data)                                                                               
    5  E1PITYP                        HR: Transported Infotypes and Subtypes for an Object                                                                               
    ZPUSER                         User base Data File                                          
                    ZPERSON                        Personal Information File Segment                            
                    ZPOST                          Position File                                                
                    ZOPE                           Overall Performance                                          
                    ZPWORK                         Outside Work Experience                                      
                    ZPEDUC                         Education Details of Employee                                
                    E1P0000                        HR: HR Master Record Infotype 0000 (Actions)                 
                    E1P0001                        HR: HR Master Record Infotype 0001 (Org. Assignment)         
                    E1P0002                        HR: HR Master Record Infotype 0002 (Personal Data)           
                    E1P0016                        HR Master Record: Infotype 0016 (Contract Elements)          
                    E1P0022                        HR Master Record: Infotype 0022 (Education)                  
                    E1P0023                        HR Master Record: Infotype 0023 (Other/Previous Employers)   
                    E1P0041                        HR Master Record: Infotype 0041 (Date Specifications)        
                    E1P0105                        HR: HR Master Record Infotype 0105 (Communications)       
                   ZE1P9020
                    ZPLANG                         Language Details                                             
                    ZACTION                        Actions Changes            
    Regards,
    Krishna

    Hello Shankar,
             Technically TEMSE files are read by calling the following 3 function modules in sequence,
                  1) RSTS_OPEN_RLC or RP_TS_OPEN: open the temse object
                  2) RSTS_READ : read the object
                  3) RSTS_CLOSE: close the object
    Regards,
    Rajesh

  • How to send SMS from a servlet  to a mobile phone

    How to send SMS from a servlet to a mobile phone what are the things i have to do.......
    very urgent..

    Hi, please read this:
    http://forum.java.sun.com/thread.jspa?threadID=345296&messageID=2608297
    Found on the very forum with the search function ;)

  • How to send music from a ipodtouch to another with the bluetooth??

    how to send music from a ipodtouch to another with the bluetooth??

    There is no way you can do that. You should either transfer the music to the phone and play it from there, or you should connect the speaker to the computer itself (provided it is Bluetooth speaker).
    Ericsson T10i -> Nokia 7110 -> Siemens C45, C55, M55, M65 -> Nokia 6131, N73, N82 -> HTC Wildfire, Desire HD -> Nokia Lumia 800 -> HTC Desire X -> Lumia 820 -> Sony Xperia SP -> Lumia 925 + Sennheiser CX 500
    If I've helped, use the Kudos button to thank

  • Forced to use Clear Text Passwords for OD binding

    Running a Tiger Server 10.4.11 as OD master with one Replica. When binding clients to server in Directory Access/LDAPv3, If I "disable Clear Text Passwords," the users can not login. Uncheck this option, everything works fine. Non "Clear Text" passwords used to work, stopped about two weeks ago. If I bind to the Replica, I can disable clear text. Not sure where to look to see what broke.

    Did your SSL cert expire ?
    Any 10.5 clients ? If so, see
    http://www.afp548.com/article.php?story=20071203011158936

  • How to send IDocs from a non-SAP system to a SAP system

    Hi everyone i am new to SAP R/3 System.
    Currently i am required to send IDocs from a non-SAP system to a SAP R/3 System.
    There is a guide on Cost-Effective and Quick Communication between SAP and 3rd Party Systems using IDOC HTTP XML Interface. But its from a SAP system to a non-SAP system and i am able to do that.
    Is there any step by step guide where they teaches you how to send IDocs from a non-SAP system to SAP system via similar method?
    Thank You!

    Hi,
    I hope this link may help you......
    http://publib.boulder.ibm.com/infocenter/iisinfsv/v8r1/index.jsp?topic=/com.ibm.swg.im.iis.ds.entpak.sapr3.use.doc/topics/c_pack_r3_Introduction.html

Maybe you are looking for

  • Supplied credentials not accepted by the server and Could not validate SPNEGO token

    Hi, We have installed and configured SSO 2.0 SP02 on HP-UX system. We have exported the client policy files, root certificate from SLS and imported the same in the client PC. Then we have installed the SLC in client PC with logging enabled option. No

  • Dbxtool and clearcase-plugin

    Hi there, our company is considering tu upgrade our development chain to Solaris Studio 12.2 (possibly 12.3). In this context, we want to use dbxtool, e.g. to debug executables. As our company uses clearcase as revision control system, we've tried to

  • Authorization object for item level

    Hi, Is there an authorization object for item categories for business transactions. Actually our need is that partners at item level should edit the documents. Authorization objects CRM_ORD_OP and CRM_ORD_PR are not success this need. Regards.

  • Problem: KDC has no support for encryption type (14)

    hi, I have dealing the problem for long time and no response in bea forum. I feel very exhausted when checking mit's kerberos mailist and sun forum. Any try every method they provide but not success. first I generate the keytab using w2k's ktpass ktp

  • Spry menu font color

    I've replaced a traditional navigation menu with  Spry menu.  I thought the ul.MenuBarVertical a was where I should change the font color but it is not having an effect.  Can you direct me to the right CSS to change.  You can see the site at http://w