Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Perl Script integration with Microsoft Sharepoint

by vikrantumap (Initiate)
on Jun 01, 2013 at 08:31 UTC ( #1036396=perlquestion: print w/replies, xml ) Need Help??

vikrantumap has asked for the wisdom of the Perl Monks concerning the following question:

Hello Everyone, I have a query related to the configuration of Perl script with Microsoft Sharepoint. Currently we are facing issue with it and below are the details for the same.

Configuration:- We have current configuration where a PERL script is written to publish files on Microsoft Sharepoint site. The PERL script is executed on the Unix server and it publishes files on MS Sharepoint site successfully.

Change in Configuration:- We are trying replicate the above Configuration for new Unix server. When we try to execute PERL script on new Unix server to publish the files on same MS Sharepoint site, it gives below error.

Issue:- This has been investigated from network perspective and from Microsoft side. The network traffic is reaching to Sharepoint site but the request is getting expire there. As per investigation done from Microsoft, there is difference in the request coming from both the Unix servers. (Old Unix server from where the script is working fine and the new server which is giving below error.
/opt/SharePointFiles/scripts/ --DEBUG=3 --SDIR=/opt/SharePointFiles/reports/ --MODE=REPORT '--REPORTNAME=Daily Transactions.pdf' Setting auth details for, default to UK\username,password new_resource: For, creating new resource Could not open Unauthorized.
As per investigation the request coming from Old Unix server has the authentication information in it whereas the request from new server doesn't.

If anyone come across such scenario then please provide your inputs. Any help on this is appreciated.

Thanks in advance. Vikrant
  • Comment on Perl Script integration with Microsoft Sharepoint

Replies are listed 'Best First'.
Re: Perl Script integration with Microsoft Sharepoint
by marto (Cardinal) on Jun 01, 2013 at 08:50 UTC

    I feel like I'm stating the obvious, but if this works from system A, but fails on system B, then the first thing to check would be that things are exactly the same between the two systems. Ensure the scripts are identical, ensure the modules being used are identical. And by this I literally mean identical, I don't mean the same number of bytes, or the same stated module versions. Basically ensure the whole stack is the same.

    Do you use Authen::NTLM via LWP or one of the SharePoint modules? Was Authen::NTLM on server A modified? Perhaps to patch the authentication packet for IIS6 & 7?

    If the perl code (including all modules used) is exactly the same, then perhaps using a tool like Wireshark would help pinpoint what's going wrong. Compare the same test being sent from Server A and Server B. This may help you back track the issue.

    Update: fixed typo, added some text.

    Update 2: s/NTML/NTLM/ thanks Corion ;)

Re: Perl Script integration with Microsoft Sharepoint
by Anonymous Monk on Sep 28, 2016 at 15:31 UTC

    Happy to hear that you have a PERL script that successfully uploads files from UNIX to SharePoint. Could you guide us as to what this PERL script is doing. We are trying to achieve same from Linux command line using curl utility, but failing. Any pseudo-code / code snippets are appreciated.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1036396]
Approved by marto
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (1)
As of 2022-05-22 20:59 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (81 votes). Check out past polls.