sharepoint on prem – SP 2016 Remote User Authentication

I am trying to create an item in SP 2016 remotely using user authentication. I found a great guide to do it in SP online (https://paulryan.com.au/2014/spo-remote-authentication-rest/) but I didn't find any resources for it. do this using SP on site. The solution I'm looking for is only web request calls, not C # or PowerShell. If needed, I can use Javascript, but I just prefer web request calls like the ones you would put in Postman or SOAP UI.

The closest thing I could find was to use the SOAP call for authentication documented here: https: //sharepoint_domain/_vti_bin/authentication.asmx

However, every time I make this call and pass my username and password in the SOAP envelope, it just gives me markup text that looks like a web page and it says "Log in to your account" in a tag at the top.

Any help would be greatly appreciated.

Sharepoint 2016 On Prem Single sign-on with Web API

We have an on-premises SharePoint 2016 site that uses both forms-based authentication and Windows authentication.

We plan to add SharePoint Framework Web Parts (SPFx) to the site. For this, we are developing a custom Web API. I am looking on the Internet for a solution to create a unique authentication behavior with SharePoint and the main custom web API .Net.

If anyone has an idea, it will be of great help.

Thank you

sharepoint on prem – How to make a Modal popup when someone clicks on a link on my page

I found a solution to the contextual modals from this question and I implemented this code:

  
  

I know this section of code is what brings up the Modal when someone lands on the page (which is really cool):

SP.SOD.execute('sp.ui.dialog.js', 'SP.UI.ModalDialog.showModalDialog', options);  
return false;  

But I would like to make this modal popup when someone clicks on a link on this page instead of showing up when someone lands.

This code is currently implemented in the same manner as described in this link here.

How can I make sure that when someone clicks on a link on a text on my page, this modal window is displayed?

network – VPN between on prem and GCP: shared routes but the ping does not pass

I have been fighting with the VPN configuration between on-prem and GCP for more than a week. I am completely out of ideas at this point and would love to get help from network specialists.

Goal

The end goal is simple: get a virtual machine instance on GCP to talk transparently to a virtual machine on site, but with 2 routers in play.
The configuration is something like below:

       GCP_VM                                                           OP_VM
    10.0.0.25                                                    10.100.0.200
            |                                                    |
            |                                           (DC Router Gateway)
            |                                               10.100.0.80
            |                                                    |
            └-- HA_VPN (AS65001) <==========> Router (AS65002) --┘

     Public IP: xx.xx.xx.xx                   yy.yy.yy.yy
     Advertise: 10.0.0.0/24 BGP               10.100.0.0/24 BGP
  VPN IP Range: 169.254.0.1/30                169.254.0.2 (as Peer)
    Private IP: NA                            10.100.0.50

The complication here is that Router here is not directly connected to OP_VM. This is the on-site configuration over which we have no control. OP_VM gets his IP 10.100.0.200 from another router, and our Router is put on the same LAN. We only have one rack in the data center and need to reach OP_VM which is hosted by another party (in another rack). Our rack is associated with 10.100.0.50.

And with that, I want to be able to get the job below:

me@GCP_VM:10.0.0.25:~$ ping 10.100.0.200

Actual status

With the above configuration, VPN and BGP appear healthy from the logs on both sides.

Of GCP_VM, I can ping 10.100.0.50 (Router) with success.

me@GCP_VM:10.0.0.25:~$ ping 10.100.0.50
PING 10.100.0.50 (10.100.0.50) 56(84) bytes of data.
64 bytes from 10.100.0.50: icmp_seq=1 ttl=254 time=24.9 ms
...

Also, from Router, I could confirm that I can ping 10.100.0.200 (OP_VM).

# With the Router setup of something like
#
#     ip route 10.100.0.0/24 gateway 10.100.0.80

root@Router:10.100.0.50:~$ ping 10.100.0.200
ping 10.100.0.200
received from 10.100.0.200: icmp_seq=0 ttl=63 time=0.583ms
received from 10.100.0.200: icmp_seq=1 ttl=63 time=0.571ms

2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max = 0.571/0.577/0.583 ms

Of GCP_VM, however, ping 10.100.0.200 (OP_VM) go faded away.

# With the Router setup of something like
#
#     ip route 10.100.0.0/24 gateway 10.100.0.80

me@GCP_VM:10.0.0.25:~$ ping 10.100.0.200
PING 10.100.0.200 (10.100.0.200) 56(84) bytes of data.
^C
--- 10.100.0.200 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3051ms

I probably misunderstand the gateway configuration, but changing the route as below gives me a different result:

# With the Router setup of something like
#
#     ip route 10.100.0.0/24 gateway 10.100.0.50
#                                             ~~ <- Router itself

me@GCP_VM:10.0.0.25:~$ ping 10.100.0.200
PING 10.100.0.200 (10.100.0.200) 56(84) bytes of data.
From 169.254.0.2 icmp_seq=7 Destination Host Unreachable
From 169.254.0.2 icmp_seq=6 Destination Host Unreachable
From 169.254.0.2 icmp_seq=5 Destination Host Unreachable
From 169.254.0.2 icmp_seq=4 Destination Host Unreachable
From 169.254.0.2 icmp_seq=3 Destination Host Unreachable
From 169.254.0.2 icmp_seq=2 Destination Host Unreachable
From 169.254.0.2 icmp_seq=1 Destination Host Unreachable
^C
--- 10.100.0.200 ping statistics ---
9 packets transmitted, 0 received, +7 errors, 100% packet loss, time 8141ms
pipe 7

With this gateway configuration, Router can no longer ping OP_VM. It seems to me at least that the VPN is established and that the IP is advertised correctly. But that doesn't seem right from the point of view of real networking.

Questions

I don't think there is much more to do on the GCP side, and the problem seems to be only on the site.

Are there any configuration issues or concerns that can cause poor VPN, BGP, ARP, etc. behavior? What would cause such a case where the routes seem to be shared, but cannot actually access them?


Other Notes

  • I confirmed the ARP table on Router comprises 10.100.0.200
  • I can see the routes propagated in GCP
  • I tested with the GCP VPC firewall configuration to allow 169.254.0.0/30 and 10.100.0.0/24
  • I will need access from GKE at the end, but I confirmed that GKE gets the same exact behavior as GCP_VM
  • Router is from Yamaha
  • TCPdump tried (packetdump in Yamaha routers), but did not see 10.0.0.25 in the newspaper
  • TCPdump showed the trace of 10.0.0.25 when i ran nmap -Pn 10.100.0.200 of GCP_VM, but with a single line like this:
2019/12/21 16:35:40: LAN1 OUT:IP TCP 10.100.0.227:50516 > 10.103.24.1:80

sharepoint on prem – How to edit and add / delete links to the "div id = SuiteBarTop"?

I started honestly two hours ago and I am out of breath.

I want to edit the global navigation bar at the top (next to SharePoint text) and add my own icons / links that would be right next to the gear icon settings.

The div id is the SuiteBarTop but I can't find it in the seattle.html master file. The image below will show you what I'm talking about. enter the description of the image here

There doesn't seem to be any way to add code to the seattle.html master file that would allow me to grab this. I know it's possible but I can not discover it myself. I know how to target it using CSS and do a lot of cool things but I want to physically add an icon / image that has a link to the orange bar.

For context, I use SharePoint Designer 2013. I've also found exactly where I want to edit using the development tools via F12. And please ignore the "1". It was my attempt to visualize what was in the seattle.html file.

How can I reach my goal?

Filing of SPFX Web Part on Prem Prem 2019

I used the example of the Microsoft site. I've used the 2019 option and online without adding anything to the project. I have packaged and published the web part. I was able to deploy it in the catalog of SharePoint Online applications of our companies without any problem. I then took exactly the same package and tried to add it to the application catalog of one of our 2019 clients on Prem environments and the package does not decompile properly. I expected the web part to unfold in the same way as the SP Online environment.

The error message of the application package is

There were errors when validating the App manifest.: Xml Validation Exception: 'The 'IsClientSideSolution' attribute is not declared.' on line '1', position '240'., 
Xml Validation Exception: 'The element 'Properties' in namespace 'http://schemas.microsoft.com/sharepoint/2012/app/manifest' has incomplete content. List of possible elements expected: 'StartPage' in namespace 'http://schemas.microsoft.com/sharepoint/2012/app/manifest'.' on line '1', position '320'., 
Xml Validation Exception: 'The element 'App' in namespace 'http://schemas.microsoft.com/sharepoint/2012/app/manifest' has incomplete content. List of possible elements expected: 'AppPrincipal' in namespace 'http://schemas.microsoft.com/sharepoint/2012/app/manifest'.' on line '1', position '333'.

My .yo-rc.json file has the environment set to "onprem19"

The AppManifest.xml file has the attribute IsClientSideSolution="true"

I have not seen any suggestions that have not solved my problem yet. I saw the GitHub page that talks about some elements, but I still face the problem.

Any assistance will be greatly appreciated

powershell – How to update a hyperlink field in SharePoint on prem doc library

I work with SP On Prem 2019. In one of the document libraries, I have about 440 files that have a "hyperlink" type metadata field called "Main Letter". This Hyperlink field contains a link to a document in the same library.

Of 440 files, there are approximately 8 to 9 hyperlinks used for tagging as metadata. Examples of text to display from these links are:

  1. Document updated 8
  2. LCA updated
  3. Initial proposal I

So maybe I'm using PowerShell, I want to grab the lines where the "Main Letter" display text matches "LCA Updated" and update the URL to what I'm providing in www.google.com, as I can for the remaining 7-8. hyperlink display texts as well.

Anyone can help me with a script or feed that I can run, thanks in advance.

sharepoint on prem – The Modern Team Site document library page in SP2019 does not display the Exit Classic Experience option.

I work with SharePoint on the 2019 prem and a team site was created as part of a modern experiment where several document libraries were added.
When you access the site and click the document library link from Quick Launch, it opens in the modern user interface. Once you've clicked on the return to the classic share point, you'll switch to the classic experience. Once on the page of the classic UI, I do not see the link "Quit the classic experience" at the bottom left to return to the modern user interface.

What could be the cause of this, if any one please help, thank you in advance.

With a SharePoint site collection URL, how can you determine if it is SharePoint Online or SharePoint On Prem?

I would like to be able to determine if a SharePoint web application URL is a SharePoint online instance or not.

Previously, I thought you could check if the URL of a sharepoint web application had the form https://{tenantname}.sharepoint.com to see if it 's about an instance sharepoint online URL.

But now, I've seen the online URLs of Office 365 share points that looked like https://prefix.mycompany.com.

Is there a simple way to check a URL for online sharing or on-site sharing?

I would prefer not to have to add a checkbox "SharePoint Online" in my user interface.

sharepoint on prem – Using Custom Mosaics on Multiple Web Applications in Different Batteries

In the article "Custom Mosaics in SharePoint 2016 and 2019 Servers"
https://docs.microsoft.com/en-us/SharePoint/administration/custom-tiles-in-sharepoint-server-2016
this indicates that you can use the same custom tiles in multiple web applications.

I managed to follow the article and create a list of custom "mistress" mosaics and consume it from multiple web applications in the same farm.

I was able to use the same "master" mosaics for several web applications of the same farm.

However, I can not get other web applications from other farms to use the same "master" mosaics.

Is there a way to make other battery applications use the list of "main" mosaics?