Overview

Noodle can use LDAP with AD to authenticate as well as import users and groups.

Noodle Prerequisites

  • Before enabling LDAP in Noodle ensure your license key will accommodate the total number of users( local and from the AD group).
  • Using SSL may require a client certificate installed on the Noodle server.

Configuration

The AD settings are in System Tools > Settings > Single Sign-On.

  1. Toggle Enabled to Yes
  2. Enter the Name or IP address of your DC
  3. Make a new user in AD in the Users Container with rights to search other users, and enter the display name and primary FQDN in the Noodle Administrative field, password in the password field.
    • yes the display name, not the user name.
    • Add the service user account to the "Read-only Domain Controllers" security group if read only is enabled in the Noodle AD settings.
  4. Make a new Security Group in AD, add some users and groups to it, and tell Noodle it's name.
  5. Tell Noodle the primary Domain of the users in the security group
  6. Save

You should see “Active Directory is synchronized” display at the bottom of the page after the first sync is complete.

Additional Information

  • Synchronizing fields: firstname, lastname, email, phone1, phone2, pager, mobile, fax, address, city, state, country, zip, note, expiry, change password on login, locked, manager (read only)
  • Other synchronizing fields can be added in "System Tools > People > Administration > Settings > User Fields" (add "CN=sAMAccountName" to enable 1996 authentication)
  • Noodle imports ONLY users and groups that are directly members to the “Group Name” specified in Noodle (users from sub groups will not be imported) and users must have a matching primary "domain" specified in Noodle.
  • AD changes are reflected in Noodle every 10 minutes by default.
  • Authentication requests are forwarded from Noodle to Active Directory in real time.
  • Multiple DCs can be used by separating the settings with commas.
    • The same number of commas should exist in all settings (think spreadsheet).
  • Backup DCs can be used by separating the IPs with semicolons.
  • When configuring AD from the cloud, port forwarding (or firewall rules and routes) must be configured. Please review the Microsoft documentation:
  • See also the AD Troubleshooting Guide.

What it does:

  • When the page loads the buttons are changed to will wait for a calendar entry to be made before submitting the form.

How to do it:

  1. Make your Calendar and Database applications, add at least a text and date element to your Database.
  2. Note the folder id and event type from the Calendar. Note the date and button element ids on the form.
  3. Customize the following sample script accordingly.
  4. Add the script to a rich text element in the form.
<script>
	function init() {
		if(document.location.href.indexOf("MainWindow.po")<0 || document.location.href.indexOf("formHandle")>0 ){
			return;
		}
		document.getElementById("add").type="button";
		document.getElementById("addAnother").type="button";
		top.noodle.cbc.addEventListener(document.getElementById("add"), 'click', doit);
		top.noodle.cbc.addEventListener(document.getElementById("addAnother"), 'click', doit);
	}
	
	function doit() {
		document.getElementById("lowerButtonBar").style.display="none";
		var folder="256272"
		var evetnTypeID="3511";
		var title="Training "+top.noodle.headWindow().document.getElementById("currentUserName").innerHTML;
		var day=document.getElementById("day_220063").value;
		var month=document.getElementById("month_220063").value;
		var year=document.getElementById("year_220063").value;
		month=parseInt(month)-1;
		var vars="";
		vars+="folder="+folder;
		vars+="&eventid=new";
		vars+="&addedRecipients=";
		vars+="&title="+title;
		vars+="&isAllDay=";
		vars+="&isPrivate=";
		vars+="&eventType="+evetnTypeID;
		vars+="&quickSave=Quick Save";
		vars+="&repeat=";
		vars+="&eventColorName=LightBlue";
		vars+="&eventColor=#add8e6";
		vars+="&save=Save";
		vars+="&selMonth="+month;
		vars+="&selDay="+day;
		vars+="&selYear="+year;
		vars+="&startHour=9";
		vars+="&startMinute=00";
		vars+="&am_pm=am";
		vars+="&durationMonth="+month;
		vars+="&durationDay="+day;
		vars+="&durationYear="+year;
		vars+="&durationHour=5";
		vars+="&durationMinute=00";
		vars+="&duration_am_pm=pm";
		vars+="&TimeZone=6";
		vars+="&eventLocation=";
		vars+="&groupsAndUsersList=";
		vars+="&addedGroupsAndUsers=";
		vars+="&endAfterN=1";
		top.noodle.ajax.post("/calendar/HandleEventView.po", vars, handle_doit, []);
		return false;
	}
	
	function handle_doit(xml, txt, array) {
		top.noodle.cbc.removeEventListener(document.getElementById('add'), 'click', doit);
		top.noodle.cbc.removeEventListener(document.getElementById('addAnother'), 'click', doit);
		document.getElementById("lowerButtonBar").style.display="block";
		document.mainform.submit();
	}
	
	window.onload = init;
	
</script>

Some browsers incorrectly cache HTTP 302 "Found/Moved temporarily" and 303 "See Other" redirects as if they were 301 "Permanent Redirect"s.

Safari

The "Too many redirects" error can be temporarily fixed In the "Safari" menu by selecting "Reset Safari".

Chrome/Chromium

Disabling "Use a prediction service to load pages more quickly" is advised.

<script>
function loadjsfile(filename){
  var fileref=document.createElement('script');
  fileref.setAttribute("type","text/javascript");
  fileref.setAttribute("src", filename);
  if (typeof fileref!="undefined"){
    document.getElementsByTagName("head")[0].appendChild(fileref);
  }
}
var link=document.getElementById("elementValue_10");
if(link){
    link=link.firstChild;
    if(link){
        link=link.href;
        if(link.length>10){
            link="/feed2js/feed2js.php?targ=y&move=elementValue_10&src="+encodeURI(link);
            loadjsfile(link);
        }
    }
}
</script>

replace elementValue_10 with the id of the RSS feed you want to use from the entry.
This will work on newer browsers:

<script src="/feed2js/feed2js.php?targ=y&move=demo&src=http://my.domain.tld/feed.rss"></script>
<div id="demo"> </div>

Other ways to insert JavaScript here

  1. Press the "Edit" button
  2. Press the "More" button
  3. Press the "Source" button
  4. make a script tag
  5. put your Javascript in it

If you want to use the page re-writer or otherwise effect other pages you will have to escape the scope of the page:

<script>
function temp(){
	if(!top.noodle.custom){
	    top.noodle.custom=function(){
	        var doc=top.noodle.mainWindow().document;
	        var url=doc.location.href;
	        
                //your code here
	        
	    };
	}
}
top.noodle.core.evalString(temp.toString()+";temp();");
</script>

You need custom scripts enabled.

top.document.title = "Intranet";
function titleChange() {
    if(!top.noodle || !top.noodle.core || !top.noodle.core.title){
        setTimeout("titleChange();", 1000);
        return;
    }
    top.noodle.core.title="Intranet";
    top.document.title = top.noodle.core.title;
}
setTimeout("titleChange();", 1000);

This is an example only; if you want to change the title please use "System Tools > Settings > Theme"

If your browser is capable Videos will play in the browser from the folder and Media applications, and from embedded in Pages etc;

<video width="320" height="240" controls>
    <source src="/ShowItemData.po?path=/folder/example.mp4" type="video/mp4">
    <source src="/ShowItemData.po?handle=1&filename=example.ogg" type="video/ogg">
    <source src="//domain.tld/example.webm" type="video/webm">
    Please use a modern browser for video support.
</video>

Tools:

  • ffmpeg can be used to thumbnail and transcode.
    • Noodle will thumbnail images and videos for you.
    • make sure to encode with the "faststart" flag;
      ffmpeg -i in.mp4 -codec copy -movflags +faststart out.mp4
  • MediaInfo can be used to inspect.
    • Verify faststart/IsStreamable;
      mediainfo -f file.mp4 | grep IsStreamable
  • handbrake is a nice GUI for encoding
    • make sure to encode with "web optimized"
  • djpeg + pngtopnm + pnmscale can be used to thumbnail non-progressive jpgs of any size with minimal RAM usage.

List what is available in the enabled repositories on your CentOS Install:
yum info postgresql-server.x86_64 | grep Version
Select a newer version form http://yum.postgresql.org/
yum install http://yum.postgresql.org/9.3/redhat/rhel-7-x86_64/pgdg-centos93-9.3-1.noarch.rpm
# if you are using priorities add some to /etc/yum.repos.d/pgdg-93-centos.repo
yum install postgresql93-contrib
service postgresql-9.3 initdb
service postgresql-9.3 start
Directories of interest are:
conf/var/lib/pgsql/9.3/data/
data/var/lib/pgsql/9.3/data/base/