A few weeks ago I switched from client and began a new mission at an International Bank. They have big SharePoint Platform with 2 DMZ zones. Here is the technical overview of the SharePoint Platform.
DMZ Zone
Clients, members and other people can connect to the public SharePoint Internet sites.
People connecting from the public cloud have to pass the firewall and they are going to be routed by the F5 (Physical Load Balancer) to the DMZ zone so they can check the internet site. The sites who are being hosted on the DMZ zones are all anonym sites and visitors don’t have to use a username or password to check the site.
But Site Administrators or Persons who fill data on the site have to connect to the site; so basically they have to get access so they can authenticate.
But we had a problem to authenticate peoples coming from the public cloud and also contributors from other Active Directory’s.
Problem 1: We search for a user from another Active Directory and we have to wait more than 1 minute before the user is displayed in the people picker or getting a user is not found. Normally with this little PowerShell script you can tell the People Picker to search multiple domains. If you have a 2-way trusted domains
Stsadm -o setproperty -pn peoplepicker-searchadforests -pv “domain:Hades.Corp.Pegasus;domain:Poseidon.Corp.Perseus” -url http://publicinternetsite/
Even when I executed this little PowerShell command I couldn’t find my user. So I had to check the SharePoint Logs but even there not an explicit error. Only one solution left and this was to use WireShark to sniff the network protocol.
WireShark SharePoint 1
You will notice that for the first time when you will begin capture all the traffic a million of record will be appearing and you can normally not follow. We have authentication errors so we have to search on query who’s containing LDAP. So on the Filter text box you can hit LDAP so only traffic about LDAP will appear.
WireShark SharePoint 2
The next step is to create LDAP traffic. Therefore open any SharePoint Site. Just go to the site actions menu and select Site Permissions. Try to search a user in the new AD. As an example I search a user with the login name “Gokan Ozcifci”.
You will see now some traffic in the WireShark. Click on stop monitoring.
WireShark SharePoint 3
Click on Edit Menu and then on “Find Packet”. Give the login name you searched for into the search box.
WireShark SharePoint 4
WireShark SharePoint 5
In my case, by inspecting the LDAP query I found out that we had a very long filer. By removing the filter everything worked fine.
Now I could authenticate my users coming from the public cloud or other domains. The question was I want to make changes on the Master Page without having design skills or even the capacity to use Design Manager on SharePoint 2013. I want to hide some parts of my page.
Actually it’s pretty simple; if you can use JavaScript you can directly make changes on the MasterPage without changing anything on the Website.
Therefor you need to know that there is something called “Developer tools” on Internet Explorer that helps and leads you to get the name of each part on a SharePoint Site.
Hit F12 on a SharePoint Site and select “Select element by click”
Developer Tools 1
So when I click the Quick launch of our SharePoint Website
Developper Tools 2
I got every information on the Developper tool. I even can manually made changes here a get a little preview on the SharePoint Site.
Developper Tools 3
Now you can take each information that you want and use it.
A little example I want to hide my #s4-bodyContainer. Only thing to do is to edit the SharePoint Site and add a Content Query Web Part and paste this little code:
#s4-bodyContainer{ display:none }
Just do not forget to place your web part hidden; and you made directly changes on your website without affecting your MasterPage.
More information
Naomi N edited Revision 3. Comment: Minor corrections. Is is really Developper Tools (with 2 p?) I fixed in 2 places but started to doubt when I saw it repeated
Ed Price - MSFT edited Original. Comment: Title, tags
AFAIK, the word "person" doesn't have plural form. I would use the word "people" instead.