Pulling wrong DNS, id from server?

Hello -
I'm not sure if this is the correct place for the issue I am experiencing. I am unsure what to call the problem I am seeing so I hope to describe as best as possible and not make too much of a fool of myself with my poor computer terminology.
In the office, the people here have mostly Windows, I'd say they are 98% Windows XP and all Windows servers. I have a mini and my primary machine is a new MacBook. I had been using Synergy to use one keyboard and mouse with my macbook and the windows box I have to use.
For ease, let's say my Mac is named MacBook and my admin user is Jennifer.
Today having some problems starting synergy I went to check the Sharing pane and noticed that it says
"Other Macintosh users can access your computer at afp://xp-joesmoe.xxx.com/ or browse for "macbook" by choosing Network from the Go menu in the Finder."
Strange since my computer is not called xp-joesmoe anywhere!
Then I launch terminal to try to start synergy again and notice that the default terminal user (not sure what you call this) comes up as
Last login: Wed May 30 09:47:26 on ttyp1
Welcome to Darwin!
xp-joesmoe:~ jennifer$
The IT guy (at home today) said probably something with the bad way mac handles DNS and **** see if theres something we can change on my machine config tomorrow. I had numerous Macs at my last company on my network with all windows servers handling the DNS and didnt see this.
Is this some weird thing the server is doing? IS it something I can resolve locally? I have rebooted and renewed my DHCP Lease.
I also have a XP BootCamp partition installed, as well as parallels which uses the bootcamp partition (in case that in anyway effects this)
I hope I have provided enough information.
Thanks so much for any help!
Mac Kitten
MacBook, iBook G4, iMac G4, MacMini G4, PowerBook G4, Dell Vista   Mac OS X (10.4.9)   Current issue is on the MacBook, 2 GHz Intel, 1 GB 667 MHz, Built-in Ethernet, DHCP, BootCamp XP

> The IT guy (at home today) said probably something with the bad way mac handles DNS
Man, what a jerk.
There's nothing wrong with the way Mac handles DNS, but I guess that's not the point - blaming the Mac puts the problem in your court rather than his.
The problem (if it's a problem) is mostly cosmetic.
In the Windows network your admins are problably using Windows Server's DNS service (man, if you want to talk about BAD DNS...). It's likely that it's configured to support dynamic DNS such that it updates the DNS zone with hostnames for DHCP clients.
Normally, DHCP will assign each machine an IP address out of a pool. Since you can't predict what your IP address will be you can't configure DNS. However, in dynamic DNS, the DHCP server updates the zone files each time a host is connected - kind of like saying 'joe's machine is here today'.
The Mac isn't providing the information that the DHCP server needs in order to update the DNS, so the DNS server doesn't get notified when your machine connects. Therefore your DNS entry has the name of whoever last used the IP address you currently have assigned - in this case 'xp-joesmoe'.
Off hand I don't know specifically how the Windows client sends its name - I'm guessing via the DHCP Client ID, but I'm not certain - it might be via Active Directory. You can try setting a DHCP Client ID in System Preferences -> Network to see if it helps, alternatively ask the dor^H^H^H admin if you can have a static IP address for your Macs.
Finally, I say this is mostly cosmetic since it doesn't actually affect anything on your Mac at all, unless people are trying to get to your machine, in which case they can't do it via DNS. If your machine is running as a server, though, I'd move it to a static IP address anyway since running servers on a DHCP address is a PITA (I'm sure all those Windows servers have static addresses).

Similar Messages

  • DNS requests from Solaris 10 box to Bind/MySQL DNS server fail

    We have some servers running solaris 9 and some running solaris 10. We also have a DNS server setup running BIND with the MySQL backend. When I query the DNS server from our solaris 9 boxes, they always work just fine. However, when I query the DNS server from our solaris 10 boxes, they always fail. Queries to other DNS servers from the Solaris 10 boxes work just fine - they only fail when being sent to this particular DNS server. Here's exactly what I'm doing:
    ON SOLARIS 9 BOX:
    bash-3.00$ nslookup google.com calo-sunset
    Server: calo-sunset
    Address: <IP_OF_DNS_SERVER>#53
    Non-authoritative answer:
    Name: google.com
    Address: 64.233.187.99
    Name: google.com
    Address: 72.14.207.99
    Name: google.com
    Address: 209.85.171.99
    ON SOLARIS 10 BOX:
    bash-2.05$ nslookup google.com calo-sunset
    *** Can't find server name for address <IP_OF_DNS_SERVER>: Non-existent host/domain
    *** Default servers are not available
    In the case of the SOLARIS 10 box, <IP_OF_DNS_SERVER> is correct - it knows the IP address of the DNS server, but apparently it doesn't recognize that it's actually a DNS server.
    I am utterly perplexed by this. It seems to me that a DNS request is a DNS request, regardless of your OS. Clearly something is different from Solaris 9 to Solaris 10 though because the requests fail on all of our solaris 10 boxes, and they succeed on all of our Solaris 9 boxes. Incidentally, dig requests from the Solaris 10 box also fail, where they succeed on the Solaris 9 boxes.
    I don't really know what other information I could offer that might be useful. If you have any information at all about this or ideas on what I might try to troubleshoot/fix it, I'd love to hear it. Thanks in advance.

    First off, I am an idiot. I got this entire post backwards. The fact is that the DNS requests work swimmingly well on our Solaris 10 boxes. They fail on our Solaris 9 boxes. I don't know how I managed to read this post all of these times and not notice that I got that backwards. Nice.
    In any case, I've found the problem. It was non-trivial to me because I am not terribly familiar with the inner-workings of DNS. To those who are, it may seem painfully obvious. To me it certainly was not.
    The problem was that the DNS server (BIND 9 with MySQL backend) did not contain a reverse DNS entry for itself. Apparently this is a big problem for Solaris 9. I got a hint that this might be the cause when I turned on verbose debugging info when I ran nslookup (nslookup -d2). I had to add the PTR record for the DNS server itself. I don't know why Solaris 9 would require that a DNS server contain reverse DNS information about itself, but sure enough it does. As soon as I added that info, the Solaris 9 boxes were able to successfully query the DNS server. Very odd.
    Anyway, I doubt anyone else will come across this problem, but if you do, now you know something that might fix it.
    Edited by: dprater on Oct 7, 2008 8:09 PM

  • Server 2012 X64 R2 DNS Server keeps shutting down after inplace upgrade from Server 2012 X64

    Hi,
    ever since upgrading from Server 2012 X64 to Server 2012 R2 X64 my dns server keeps shutting down every several minutes before having to do a restart.  When viewing the event log this is all I see..
    The DNS Server service terminated unexpectedly.  It has done this 497 time(s).  The following corrective action will be taken in 60000 milliseconds: Restart the service.
    if I look in the Application Error Log,  I will also find the following:
    Faulting application name: dns.exe, version: 6.3.9600.17031, time stamp: 0x530871fb
    Faulting module name: dns.exe, version: 6.3.9600.17031, time stamp: 0x530871fb
    Exception code: 0xc0000005
    Fault offset: 0x000000000010b0e0
    Faulting process id: 0x1740
    Faulting application start time: 0x01cf531b2e3a7f5e
    Faulting application path: C:\Windows\system32\dns.exe
    Faulting module path: C:\Windows\system32\dns.exe
    Report Id: 90a4ab37-bf0e-11e3-9446-003048df3f03
    Faulting package full name:
    Faulting package-relative application ID:
    I have tried removing and then reinstalling the DNS Server role, but the same situation occurs..
    thanks,

    Hi,
    I'm going crazy,  I've upgraded my Server 2012 Standard to Server 2012 R2 Standard and now my DNS server keeps crashing since the in place upgrade.  I have finally narrowed it down to it only crashes after several minutes if I load the data from
    a file instead of the registry.  As a test I:
    -1- killed all my dns data,
    -2- uninstalled the dns server role
    -3- deleted the /windows/system32/dns directory
    -4- reinstalled the DNS server role
    -5- used the wizard to create a DNS server and a forward zone.
    everything works okay, no crashes,  then I change the advanced propertied of the DNS server to load from file, restart the DNS server and once again it crashes every 2 minutes..
    Please help,  this is killing me..
    thanks in advance..

  • TS2621 ipad is pulling my email off the server is there a setting to stop this from happing

    ipad is pulling my email off my server. dont want that , is there a setting i am missing

    Change your location from within the settings to the US.

  • Mail suddenly not being received from server. The ISP tells me there's nothing wrong at his end. I can see emails on the server if I look up WebMail; they don't come into Mail. I haven't changed anything lately.

    Mail suddenly not being received from server. The ISP tells me there's nothing wrong at his end. I can see emails on the server if I look up WebMail; they don't come into Mail. I haven't changed anything lately. The incoming server details haven't changed; the Connection Doctor shows the accounts are connected; I've turned everything off including the modern. Have exhausted my limited knowledge. Anyone with something similar?

    I have decided to dedicate this thread to the wonderful errors of Lion OSX. Each time I find a huge problem with Lion I will make note of it here.
    Today I discovered a new treasure of doggie poop in Lion. No Save As......
    I repeat. No Save As. In text editor I couldn't save the file with a new extension. I finally accomplished this oh so majorly difficult task (because we all know how difficult it should be to save a file with a new extension) by pressing duplicate and then saving a copy of the file with a new extension. Yet then I had to delete the first copy and send it to trash. And of course then I have to secure empty trash because if I have to do this the rest of my mac's life I will be taking up a quarter of percentage of space with duplicate files. So this is the real reason they got rid of Save As: so that it would garble up some extra GB on the ole hard disk.
    So about 20 minutes of my time were wasted while doing my homework and studying for an exam because I had to look up "how to save a file with a new extension in  mac Lion" and then wasted time sitting here and ranting on this forum until someone over at Apple wakes up from their OSX-coma.
    are you freaking kidding me Apple? I mean REALLY?!!!! who the heck designed this?!!! I want to know. I want his or her name and I want to sit down with them and have a long chat. and then I'd probably splash cold water on their face to wake them up.
    I am starting to believe that Apple is Satan.

  • Server 2008 DHCP is handing out the wrong DNS server.

    We have two new 2008 DC that handles, DNS, DHCP and WINS. Our DHCP scopes have been migrated to these servers. We are seeing some random issues where clients are using the new dhcp server but the old dns server information is listed for the some systems. We discover this by using network monitor on the old DC, DNS, DHCP server.  Once the client performs a ipconfig /renew, the problem is corrected. Any ideas?

    Hi BrianAuH20,
    Thank you for posting here.
    Based on your description, I understand that your Windows 2008 DHCP server hands out the wrong DNS server address.
    To troubleshoot this issue, please perform the follow steps to see whether the clients retrieve the right DNS server address.
    1.     Temporarily make the old DC, DNS, DHCP server offline.
    2.     Check the new 2008 DHCP server setting.
                          i.        In the DHCP console tree, under Scope [172.16.0.0] SS Scope, right-click Scope Options, and then click Configure Options.
                         ii.        On the Advanced tab, verify that Default User Class is selected next to User class.
                        iii.        Select the 006 DNS Servers check box, in IP Address, under Data entry, type DNS Server IP address, and then click Add.
                        iv.        Select the 015 DNS Domain Name check box, in String value, under Data entry, type your domain's FQDN name, and then click OK.
    3.     Restart the DHCP service.
    For more information, you may refer to:
    http://technet.microsoft.com/en-us/library/ee404786(WS.10).aspx
    Hope this helps.
    Sincerely,
    Wilson Jia
    This posting is provided "AS IS" with no warranties, and confers no rights.

  • Emails to/from server always bounce to some domains

    Sorry if I'm posting this in the wrong place. I've wasted 2 full days and sporadic time throughout the last 3 weeks on this.
    I recently migrated a site from Server 2003 to a new Windows Server 2008 server. Ever since the move, my emails to and from my email address bounce from the server. I've spent 3 weeks with tech support on both ends getting nowhere.
    Here's a rundown of the problem and what I've done about it:
    Problem 1: Email from my domain (call it mydomain .tld) sent to the new server (call it serverdomain .tld) always bounces
    Emails sent from mydomain .tld to serverdomain .tld get bounced back INSTANTLY with the error "550-The mail server could not deliver mail to "user@ serverdomain .tld".  The account or domain may not exist, they may be blacklisted, or missing the proper
    dns entries."
    Problem 2: Email from serverdomain .tld sent to mydomain .tld always bounces
    Emails sent from serverdomain .tld directly to mydomain .tld always bounce back after a 5-10 second delay with the error "550 Sender verify failed."
    All emails were sent directly from server to server using webmail interfaces.
    Possible problems/solutions I've explored:
    Spam Filtering:
    The new server's mail server (SmarterMail 2010) has spam filter bouncing disabled. No blacklists or greylists are defined.
    The server hosting my email account is a shared hosted server, so I don't have access to its spam settings, but I have been assured by their technical support that the server's IP address is not blacklisted or blocked in any way.
    Blacklist tests at MXToolBox.org all come up clean.
    SPF Records:
    I have defined an SPF (TXT) record for the domain "v=spf1 ip4:xxx.xxx.xxx.xxx -all", which points to the IP address of the mail server / web server. I do not have a type (SPF) record as Windows Server doesn't have an option for this type of record.
    SPF test passes without errors at www . kitterman.com/spf/validate.html. Test email through spf-test@ openspf.net returns no errors.
    Reverse Lookup:
    I have a working reverse IP set up and is confirmed by checking it at ipadmin.junkemailfilter.com/rdns.php that points back to serverdomain .tld.
    Testing through Telnet actually works:
    I followed the steps at technet.microsoft.com/en-us/library/bb123686.aspx to log into the SMTP server on the new server's end and was able to successfully send an email manually to the new server, even using the same email address that keeps failing to send
    directly to the server.
    Some observations from the logs:
    When sending email from mydomain .tld to serverdomain .tld, NO LOG ENTRIES are created at serverdomain .tld. This leads me to believe something is blocking it before it ever connects to the server.
    When sending email from serverdomain .tld to mydomain .tld, the following log entries are created:
    13:02:50 [60055] Delivery started for user@ serverdomain .tld at 1:02:50 PM
    13:02:53 [60055] Skipping spam checks: No local recipients
    13:02:56 [60055] Sending remote mail for user@ serverdomain .tld
    13:02:56 [60055] Initiating connection to xxx.xxx.xxx.xxx
    13:02:56 [60055] Connecting to xxx.xxx.xxx.xxx:25 (Id: 1)
    13:02:56 [60055] Connection to xxx.xxx.xxx.xxx:25 from xxx.xxx.xxx.xxx:65260 succeeded (Id: 1)
    13:02:56 [60055] RSP: 220-mydomain-host.tld ESMTP Exim 4.77 #2 Wed, 24 Oct 2012 13:02:58 -0700
    13:02:56 [60055] RSP: 220-We do not authorize the use of this system to transport unsolicited,
    13:02:56 [60055] RSP: 220 and/or bulk e-mail.
    13:02:56 [60055] CMD: EHLO serverdomain .tld
    13:02:56 [60055] RSP: 250-mydomain-host.tld Hello serverdomain .tld [xxx.xxx.xxx.xxx]
    13:02:56 [60055] RSP: 250-SIZE 52428800
    13:02:56 [60055] RSP: 250-AUTH PLAIN LOGIN
    13:02:56 [60055] RSP: 250-STARTTLS
    13:02:56 [60055] RSP: 250 HELP
    13:02:56 [60055] CMD: MAIL FROM:<user@ serverdomain .tld> SIZE=951
    13:02:56 [60055] RSP: 250 OK
    13:02:56 [60055] CMD: RCPT TO:<user@ mydomain .tld>
    13:02:57 [60055] RSP: 550-Verification failed for <user@ serverdomain .tld>
    13:02:57 [60055] RSP: 550-The mail server could not deliver mail to user@ serverdomain .tld.  The account or domain may not exist, they may be blacklisted, or missing the proper dns entries.
    13:02:57 [60055] RSP: 550 Sender verify failed
    13:02:57 [60055] CMD: QUIT
    13:02:57 [60055] RSP: 221 mydomain-host.tld closing connection
    13:02:57 [60055] Bounce email written to 851023860056.eml
    13:02:57 [60055] Delivery for user@ serverdomain .tld to user@ mydomain .tld has completed (Bounced)
    13:02:59 [60056] Delivery started for  at 1:02:59 PM
    13:02:59 [60055] Delivery finished for user@ serverdomain .tld at 1:02:59 PM    [id:851023860055]
    13:03:02 [60056] Skipping spam checks: Internally Generated Message
    13:03:05 [60056] Starting local delivery to user@ serverdomain .tld
    13:03:05 [60056] Delivery for  to user@ serverdomain .tld has completed (Delivered) Filter: None
    13:03:05 [60056] End delivery to user@ serverdomain .tld
    13:03:05 [60056] Delivery finished for  at 1:03:05 PM    [id:851023860056]
    Configuration:
    The new server uses Windows Server 2008 for DNS.
    The mail server is also hosted at the same IP as the DNS server.
    DNS Records for Serverdomain .tld:
    [All xxx.xxx.xxx.xxx IP addresses point to the server's IP address]
    Forward Lookup Zone: Serverdomain .tld
    (same as parent folder) (SOA) 57, servername., hostmaster.
    (same as parent folder) (NS) servername
    (same as parent folder) (MX) [10] xxx.xxx.xxx.xxx
    (same as parent folder) (TXT) v=spf1 ip4:xxx.xxx.xxx.xxx -all
    * (A) xxx.xxx.xxx.xxx
    mail (A) xxx.xxx.xxx.xxx
    mail (MX) [10] xxx.xxx.xxx.xxx
    mail (TXT) v=spf1 ip4:xxx.xxx.xxx.xxx -all
    ns1 (A) xxx.xxx.xxx.xxx
    ns2 (A) xxx.xxx.xxx.xxx
    www (A) xxx.xxx.xxx.xxx
    Reverse Lookup Zone: xxx.xxx.xxx.in-addr.arpa (syntax of IP is backwards, does not include last 3 digits)
    (same as parent folder) (SOA) 10, servername., hostmaster.
    (same as parent folder) (NS) servername
    xxx.xxx.xxx.xxx (PTR) Serverdomain .tld
    I'm totally at a loss. This is not just blocking email to/from me, but it has blocked email to at least one other domain name as well. I can get no useful help from tech support on either end.
    (I had to put spaces in all links in this post because it wouldn't let me post links. Also, this forum crashes every single time I try to post in IE9, but works fine in FireFox. How ironic is that...)

    I can only help with Exchange, but generally speaking, that line;
    13:02:57 [60055] RSP: 550-The mail server could not deliver mail to user@ serverdomain .tld.  The account or domain may not exist, they may be blacklisted, or missing the proper dns entries.
    Mean the server checked the GAL (it's global adress book) and it refused it. It's usually a simple antispam and antirelay configuration. The strange thing is the log after, that the email is received...
    That lead me to think the antispam software/hardware is badly configured, and for a reason X, it does not block the email from passing by it's filter. So yes, their answer is correct, but that mean all email is filtered in some way, so it's not
    correct in some way too.
    Does they configured your domain alias correctly and such basic information ? I have a big doubth at this point.
    Run some wireshark to be sure the problem is not in your CIE, and after pass that to their IT's tech, if the email is sent correctly, and you receive a server answer back, then something in their config is not ok.
    Don't forget that if the packet X is sent on your WAN to their datacenter, they are responsable for the correct receiving when it enter their datacenter.
    (edited: A last point; don't forget they HAVE to run a antispam's box, as the MX is the same IP, so basicly the antispam box dispatch the email to the correct server (like check
    https://www.barracudanetworks.com/ns/downloads/Setup_Guides/Barracuda_Email_Security_Service_SG_US.pdf) you will see what I mean, a list of domain and server)
    MCP | MCTS 70-236: Exchange Server 2007, Configuring
    Want to follow me ?  |  Blog:
    http://www.jabea.net | http://blogs.technet.com/b/wikininjas/

  • DHCPv6 gives wrong DNS address

    DHCPv6 in the Time Capsule gives me wrong DNS address (same as GW). I can not figure out how to solve this problem. I am using the latest version 7.6.1.
    First relevant screen (IPv6 page):
    I configured everything statically. There is no problem in routing. I can ping everywhere. But there is problem in DNS.
    Second relevant screen (TCP/IP page):
    IPv4 is configured statically too. Time Capsule is giving IPv4 DNS 192.168.0.2 by DHCP correctly, but the IPv6 DNS is ignored.
    Thirth relevant screen (Windows box):
    This machine works as a Domain Controller and DNS so I need the DNS requests to end here. At IPv4 no problem. At IPv6 Time Capsule`s DHCPv6 is giving incorrect DNS address. It shoud give the one from line "IPv6 DNS Server(s)". Instead of it it gives the one from line "LAN IPv6 Address".
    Because of this I have to shut the whole IPv6 down otherwise clients report that they can not resolve.
    Thanks for any idea.

    We're new to supporting Thunderbird here, so apologies for not knowing the program well.
    I don't think this is a DNS problem, since the host name is completely different. Usually a DNS problem would be getting the wrong IP address for a host.
    If you do not have any accounts on the old server set up for send/receive, then there's no reason for Thunderbird to be connecting.
    I have a guess, based on experience with Microsoft email clients. If you open an old message that you have not read before (or move it out of your Inbox without reading it), and it is set to send a Read Receipt, this can trigger attempts to send the receipt out using the connection on which it was received.
    If you have Thunderbird set to never send a read receipt, or to prompt you, then this probably isn't the issue. You could check your receipt setting here:
    Tools > Options > Advanced > General

  • Multiple pdf attachments from server folder using SO_DOCUMENT_SEND_API1

    Dears,
    I am trying to build a program able to send an email with multiple pdf attachments.
    The files are stored in a folder in SAP server.
    I am able to generate a pdf file from a spool and sucessfully attach it to the email using:
    CALL FUNCTION 'CONVERT_OTF_2_PDF'
          IMPORTING
            bin_filesize           = v_bin_filesize
          TABLES
            otf                    = job_output_info-otfdata
            doctab_archive         = it_docs
            lines                  = it_lines
          EXCEPTIONS
            err_conv_not_possible  = 1
            err_otf_mc_noendmarker = 2
            OTHERS                 = 3.
        IF sy-subrc = 0.
          LOOP AT it_lines.
            TRANSLATE it_lines USING ' ~'.
            CONCATENATE gd_buffer it_lines INTO gd_buffer.
          ENDLOOP.
          TRANSLATE gd_buffer USING '~ '.
          DO.
            it_mess_att_aux = gd_buffer.
            APPEND it_mess_att_aux.
            SHIFT gd_buffer LEFT BY 255 PLACES.
            IF gd_buffer IS INITIAL.
              EXIT.
            ENDIF.
          ENDDO.
        ENDIF.
    Internal table it_mess_att_aux is the parameter contents_bin of FM SO_DOCUMENT_SEND_API1.
    I have now 2 files on a server folder which I would like to include as well.
    I am reading the content of the pdf files in following way:
    DATA:   gd_buffer                 TYPE string,
          OPEN DATASET lv_fileserver FOR INPUT IN BINARY MODE.
          IF sy-subrc <> 0.
            MESSAGE e257(zmsgsd) WITH lv_fileserver.
          ELSE.
            CLEAR: it_mess_att_aux[], gd_buffer.
            DO.
              READ DATASET lv_fileserver INTO gd_buffer.
              IF sy-subrc <> 0.
                EXIT.
              ENDIF.
              APPEND gd_buffer TO it_mess_att_aux.
            ENDDO.
            APPEND LINES OF it_mess_att_aux TO it_mess_att.
    I do not understand the purpose of the statement:
            TRANSLATE it_lines USING ' ~'.
    in this context. Could anyone explain it?
    All the files are attached to email with the desired name but corrupted and with the wrong size.
    Can anyone help me build the logic to attach a pdf file from server in a email?
    Thank you in advance,
    Kind Regards,
    João Cabrita

    hi , try this ,it is working fine  .
      DATA: i_objbin LIKE solisti1 OCCURS 0 WITH HEADER LINE,
              i_objpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
              i_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
    *          wa_doc_chng LIKE sodocchgi1,
              i_objtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE,
    *         i_objpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
           i_objhead LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          i_tline TYPE TABLE OF tline WITH HEADER LINE,
          i_record LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          wa_doc_chng LIKE sodocchgi1,
          v_lines_txt TYPE i,
           l_lines TYPE I VALUE '20'.
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format        = 'PDF'
          max_linewidth = 132
        IMPORTING
          bin_filesize  = bin_filesize
        TABLES
          otf           = int_tab_otf_final
          lines         = int_pdf_tab.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    *****************soc ranjan***************************
    *  IF full_path IS INITIAL.
    *    CALL METHOD cl_gui_frontend_services=>file_save_dialog
    *      EXPORTING
    **    WINDOW_TITLE         =
    **           DEFAULT_EXTENSION    = 'PDF'
    **    DEFAULT_FILE_NAME    =
    *           file_filter          = 'Portable Document Format (.pdf)' " for restricting saving file only as pdf
    *      CHANGING
    *        filename             = file_name
    *        path                 = file_path
    *        fullpath             = full_path
    *    IF sy-subrc <> 0.
    ** MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    **            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *    ENDIF.
    *  ENDIF.
    ******************eoc ranjan*****************
    *break-point.
      CONCATENATE full_path git_select_option-pernr INTO path SEPARATED BY '_'.
      CONCATENATE path 'PDF' INTO path SEPARATED BY '.'.
    **  **************************for downloading*********************************
    *  CALL FUNCTION 'GUI_DOWNLOAD'
    *    EXPORTING
    *      bin_filesize = bin_filesize
    *      filename     = path
    *      filetype     = 'BIN'
    *    IMPORTING
    *      filelength   = file_size
    *    TABLES
    *      data_tab     = int_pdf_tab.
    *  IF sy-subrc <> 0.
    ** MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    **         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *  ENDIF.
      CLEAR : lop , el , sl , cl .
    *  ******************addeddd later  by ranjan  21.04.2011
    DATA : desc TYPE char40 ,
          desc1 TYPE char100 .
      CALL FUNCTION 'QCE1_CONVERT'
    TABLES
    t_source_tab = int_pdf_tab
    t_target_tab = i_record
    EXCEPTIONS
    convert_not_possible = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    WRITE : / 'Error in conversion of pdf lines'(015).
    ENDIF.
    APPEND LINES OF i_record TO i_objbin.
    *Creation of the entry for the compressed attachment
    DESCRIBE TABLE i_objbin LINES bin_filesize.
    i_objtxt = 'Hi'.
    APPEND i_objtxt.
    i_objtxt = '                                     '.
    APPEND i_objtxt.
    i_objtxt = 'Pls  find  the attached  salary slip ' .
    APPEND i_objtxt.
    i_objtxt = '  '.
    APPEND i_objtxt.
    i_objtxt = '  '.
    APPEND i_objtxt.
    i_objtxt = '  '.
    APPEND i_objtxt.
    i_objtxt = '  '.
    APPEND i_objtxt.
    i_objtxt = '  '.
    APPEND i_objtxt.
    i_objtxt = '         '.
    APPEND i_objtxt.
    i_objtxt = '  '.
    APPEND i_objtxt.
    i_objtxt = '  '.
    APPEND i_objtxt.
    i_objtxt = '        '.
    APPEND i_objtxt.
    i_objtxt = '  '.
    APPEND i_objtxt.
    i_objtxt = '         '.
    APPEND i_objtxt.
    i_objtxt = '  '.
    APPEND i_objtxt.
    i_objtxt = '  '.
    APPEND i_objtxt.
    i_objtxt = '         '.
    APPEND i_objtxt.
    i_objtxt = '  '.
    APPEND i_objtxt.
    i_objtxt = 'Regards:  '.
    APPEND i_objtxt.
    i_objtxt = 'Corporate HR  '.
    APPEND i_objtxt.
    DESCRIBE TABLE i_objtxt LINES L_LINES.
    READ TABLE i_objtxt INDEX L_LINES.
    wa_doc_chng-doc_size = ( L_LINES - 1 ) * 255 + STRLEN( i_objtxt ).
    *Creating the entry for the compressed document
    CLEAR i_objpack-transf_bin.
    i_objpack-head_start = 1.
    i_objpack-head_num = 0.
    i_objpack-body_start = 1.
    i_objpack-body_num = L_LINES.
    i_objpack-doc_type = 'RAW'.
    APPEND i_objpack.
    ***CLEAR:  i_objpack .
    ***i_objpack-transf_bin = ' '.
    **i_objpack-head_start = 1.
    **i_objpack-head_num = 0.
    **i_objpack-body_start = 1.
    **i_objpack-body_num = L_LINES.
    **i_objpack-doc_type = 'TXT'.
    **i_objpack-obj_descr = desc1 .
    **APPEND i_objpack.
    *CLEAR: i_objhead .
    *i_objhead = DESC.
    *APPEND i_objhead.
    *break-point .
    i_objpack-transf_bin = 'X'.
    i_objpack-head_start = 1.
    i_objpack-head_num = 1.
    i_objpack-body_start = 1.
    i_objpack-body_num = bin_filesize.
    i_objpack-obj_name = 'Employee Payslip'.
    i_objpack-obj_descr = 'Employee Payslip'.
    i_objpack-doc_size = bin_filesize  * 255 .
    i_objpack-doc_type = 'PDF'.
    APPEND i_objpack.
    CONCATENATE 'Salary Slip of Month' p_month INTO desc SEPARATED BY ' ' .
    *DESCRIBE TABLE i_objtxt LINES v_lines_txt.
    *READ TABLE i_objtxt INDEX v_lines_txt.
    ****wa_doc_chng-doc_size = ( v_lines_txt - 1 ) * 375 + STRLEN( i_objtxt ).
    wa_doc_chng-obj_name = 'Payslip'.
    wa_doc_chng-expiry_dat = sy-datum + 10.
    wa_doc_chng-obj_descr = desc.
    wa_doc_chng-sensitivty = 'F'.
    wa_doc_chng-doc_size = v_lines_txt * 255.
    CLEAR i_objpack.
    DATA: l_usrid_long TYPE pa0105-usrid_long.
    DATA : emessage(70) TYPE c.
    CLEAR : l_usrid_long.
    SELECT SINGLE usrid_long
    FROM pa0105
    INTO l_usrid_long
    WHERE pernr = git_pa0001-pernr
    AND subty = '0010'.
    *break-point.
    IF sy-subrc EQ 0.
    i_reclist-receiver = l_usrid_long.                     
    i_reclist-rec_type = 'U'.
    i_reclist-com_type = 'INT'.
    APPEND i_reclist.
    ELSE.
    WRITE:/ 'No email id is maintained for this personnel number' , git_pa0001-pernr.
    ENDIF.
    IF NOT i_reclist[] IS INITIAL.
    ***************************************for senders id *************************************
    CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
      EXPORTING
        document_data                    = wa_doc_chng
      put_in_outbox = 'X'
       sender_address                   = 'xys'
       sender_address_type              = 'SMTP'
       commit_work                      = 'X'
    * IMPORTING
    *   SENT_TO_ALL                      =
    *   NEW_OBJECT_ID                    =
    *   SENDER_ID                        =
      TABLES
    packing_list = i_objpack
    object_header = i_objhead
    contents_bin = i_objbin
    contents_txt = i_objtxt
    receivers = i_reclist
    EXCEPTIONS
    too_many_receivers = 1
    document_not_sent = 2
    document_type_not_exist = 3
    operation_no_authorization = 4
    parameter_error = 5
    x_error = 6
    enqueue_error = 7
    OTHERS = 8.          .
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • IMAP option to not delete from server OR recommend alternate mail app?

    Using POP in Windows computer and IMAP on iphone.
    In the iphone, POP has the opton to "delete from server: never"
    There seems no way to accomplish this in the stock mail app when using IMAP ?
    Using POP on the iphone is not an option due to the longstanding issue of the Apple mail apps not sending a  proper termination signal back. The mailbox remains locked until the server times it out for inactivity and cleans up the stale lock after 10 minutes. The result is "wrong password" on the computer if it then tries to retrieve during that period. It's a feature of POP by design to use a lock to prevent corruption caused by simultaneous access to the mailbox. BUT, BB,Android,Windows all handle this correctly so that their POP transaction (and the mailbox lock) only lasts seconds! Only ever see this persistent lock with Apple mail clients
    The user likes to keep his phone inbox clean, he will delete messages as he deals with them as well as messages he is postponing to deal with on computer later.
    Moving messages to a 'later' folder won't help, as that 'later' folder will not be available thru POP (for the computer)
    They also don't want to use IMAP on the computer because they don't want their communications stored on the server any longer than necessary.
    Can anyone recommend:
    - Windows IMAP client which downloads all and keeps a local copy of inbox which does not synch with server inbox.
    - Alternate mail app for iphone which allows "delete from device only // never delete from server "

    That's not how IMAP works. If you want to keep the inbox clean, but not delete the messages, create folders and move the messages into them for later review.

  • Delete WorkBook and Query file from Server .

    Dear All Experts .
    I dun know i posted in correct places or not .. (correct me if i m wrong) .. i want to ask about the BW Workbook and query.
    How we going to remove the remove the workbook or query files from Server ? bc i tried to delete from Analyzer(excel 2007), the file is deleted from the view , but havent delete from the server... So how i going to remove the file from server ?
    Thank.

    Hello I have the same problem. Can you please tell me how you finaly manage to delete the workbook.
    thank's you for advance,
    Akiba

  • Access/download file from server.

    have a problem. When I am trying to save/open a file from server(secure) which uses HTTPS, its displaying error message:
    Internet Explorer cannot download ...File_name.doc from Server_name.
    Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later.
    My code is below. Please help me out.
    Its working with my localhost(http) and with Firefix browser. Its something to do with http and IE 6.
    <java>
    if (!request.getScheme().equals("https"))
    response.setHeader("Pragma", "no-cache");
         String fileName=request.getParameter("instruction");
         //filename = filename.replaceAll( "\\W*", "" ) ;
         String DirName = request.getParameter("directory");
         String value = (DirName+"/"+fileName);
                   File f = new File (value);
                   response.setContentType("application/msword");
                   //set the header and also the Name by which user will be prompted to save
                   response.setHeader("Content-disposition", "attachment; filename=" + fileName);
                   InputStream in = new FileInputStream(f);
                   out.clearBuffer();          
                   int bit = 256;
                   int i = 0;
                   try {
                        while ((bit) >= 0) {
                             bit = in.read();
                             out.write(bit);
                   } catch (IOException ioe) {
                        ioe.printStackTrace(System.out);
                   out.flush();
                   out.close();
                   in.close();     
    </java>

    HI,
    To avoid redirection, Safari users are having good luck with Open DNS Free / Basic
    Carolyn

  • How to download a file from server machine to client machine using jsp

    Hi,
    In my application, I have an excel file stored on my server machine. How can I download that excel file on to my client machine using jsp. Is there any other way I can open that file from my machine and save it in my machine using jsp/java?
    Its an emergency for me to do this.
    Can anyone provide me the full code to download a file from server machine as I don't have
    time to browse through various sites.
    thanks in advance,
    Tiijnar

    Please post your code using code tags (click on CODE above the text area, when posting)
    response.setContentType("application/octet-stream");Why octet-stream? Set the correct mime-type.
    String disHeader = "Attachment; Filename=\"filename\"";The filename should just be the file's name. Not the complete path to the file! This will tell anyone where the file is located on the server. It's also inconvenient because by default,the browser will suggest it as the name for the download.
    Your way of writing to the output stream is just plain wrong. See this snippet (picked from [http://balusc.blogspot.com/2007/07/fileservlet.html])
            BufferedInputStream input = null;
            BufferedOutputStream output = null;
            try {
                // Open streams.
                input = new BufferedInputStream(new FileInputStream(file), DEFAULT_BUFFER_SIZE);
                output = new BufferedOutputStream(response.getOutputStream(), DEFAULT_BUFFER_SIZE);
                // Write file contents to response.
                byte[] buffer = new byte[DEFAULT_BUFFER_SIZE];
                int length;
                while ((length = input.read(buffer)) > 0) {
                    output.write(buffer, 0, length);
                // Finalize task.
                output.flush();
            } finally {
                // Gently close streams.
                close(output);
                close(input);
            }

  • Custom logging, multiple apps in one file, different from server.log

    I have several applications running on my integration server. I would like to log from these apps to a single file (different file from server.log)
    I tried to use custom log4j logging, but there's a problem with the RollingFileAppender. Whenever a file is rolled, the backup copies are deleted. It probably happens because different classloaders load different apps and I configure the log4j in every app, but I don't understand classloaders.
    Here is a part of the log4j.properties file:
    log4j.appender.file=org.apache.log4j.RollingFileAppender
    log4j.appender.file.File=/path/log
    log4j.appender.file.maxBackupIndex=10
    log4j.appender.file.maximumFileSize=10485760and I configure the logger in every app by
    org.apache.log4j.PropertyConfigurator.configure( logPropertiesPath );(Is this wrong? Is it even possible to use one log file from different apps? The integration servers does it...)
    I don't need the log4j, if the internal logging can be set up to log app. messages to a different file and configured with a different layout pattern, it would be enough.
    Can anybody please help with my logging problem?

    I've tried this:
    I've put log4j.jar to the lib dir of the logicalhost and log4j.properties to another jar (my own) and put it to the lib dir too. I deleted the PropertyCOnfigurator.configure() line from the apps. Built it, manually deleted log4j.jar from the EARs. Then I deployed EARs, restarted the domain and ran the apps. They both logged to the same and correct file, but again the rolling didn't work. How is this possible? I thought that this way the IS should have one and only one instance of Log4j...

  • I have an iPad 2 and receive e-mail through internet connection. When I delete e-mails, and clear my Trash folder, they re-appear. Setting are for remove from server when moved from Inbox. Any idea what I can do to actually delete them?

    I have an iPad 2 and receive e-mail through regular internet connection. Lately, when I delete e-mails, and clear my Trash folder, they re-appear, downloaded anew from the server and marked as unread. My e-mail Advanced Settings are selected for "Remove from server when moved from Inbox." Even when I access the e-mail accountfrom my desktop and delete the e-mails, the re-appear on my iPad. Does anyone have any idea what is causing this and what I can do to actually delete them?

    Sounds like you are looking in the wrong Administrative Group container which is why you are seeing your Exchange 2010 servers in there.
    When you install Exchange 2003 only you will see a container named by default as "CN=First Administrative Group" container. But this could be named anything if you changed the Organization Name on the installation when you installed the first
    Exchange 2003 server into the domain/forest. 
    You will notice that when you install Exchange 2010 part of the AD setup is to create a new configuration container and is named by default "CN=First Administrative Group (FYDIBOHF23SPDLT)".
    So it sounds like you are not looking in the right location within ADSIEdit. 
    You may find the following article also helpful for this issue which is the same resolution:
    http://blogs.technet.com/b/sbs/archive/2012/05/17/empty-cn-servers-container-causing-issues-with-public-folders-on-small-business-server-2011.aspx
    I recommend though that you ensure your Exchange 2003 servers are fully uninstalled or no longer present in your environment before you go deleting the Servers container though.. The following Microsoft article will help with this:
    http://technet.microsoft.com/en-gb/library/gg576862(v=exchg.141).aspx

Maybe you are looking for

  • Mac keeps freezing and crashing

    Hi, I'm on a late 2009 iMac (3.06 Intel Core 2 Duo, 12 GB 1067 DDR3, 1TB HD) with Yosemite. I installed Yosemite a few days ago. Previously I ran Mountain Lion. While on Mountain Lion the mac suddenly started freezing and crashing. I could still move

  • Can I upload a Siena APP to SharePoint Online Store so I can Install it as a SharePoint APP?

    Hello everybody, We're using SharePoint Online for our internal business solutions, but I'm interested on Siena App's uploaded and inserted like a SharePoint APP or even as a web part. Can this be posible near future? Thanks for your advice Rafael Nu

  • Safari problems viewing javascript & more

    I am a PC user and need help configuring Safari to read our web site correctly. (Hopefully we don't have to rewrite the site). Safari doesn't read the javascript correctly and doesnt' respond to clicks on menu choices. I have similar problems with Fi

  • Has anyone began using the new iStick?  I cannot figure out how to save files from my iPad to the new iStick?

    I have recently bought the new iStick and absolutely love it!  The only question that I have is figuring out how to open a file on my iPad and saving it to the iStIck.  Does anyone have any experience with this?

  • Galaxy Nexus will not Roam

    Hi All, I live in Kansas where in a lot of places service can be poor or not existent. While visiting my family and my girlfriends family over Christmas, who live in two different areas in Southeast Kansas, where both phone and 4g/3g/1x data signal d