Jump to content
EduGeek EdSec 2026 is Go! 27th Oct in Derby! Join us for a day of EdTech security focused talks, networking, and an evening social ×

webman

Members
  • Posts

    8,785
  • Joined

Everything posted by webman

  1. Bossman and I saw this at the new digital 3D IMAX at the Metro Centre in Gateshead. We both thought the story and technology was fantastic. We ended up having rubbish seats at the front and to the side, but that couldn't be helped. For me, sometimes the edges of people/things were slightly fuzzy which was a small annoyance. But an interesting story in The Register reveals some people are taking it a little too seriously, and feel depress because Pandora is only fictional Avatar renders this earthly life meaningless ? The Register
  2. Is this with Classroombookings? If so, you need to change the Booking display type (School Details page) to 'One day at a time'. There is a bug in the other option, which gives the behaviour you described above.
  3. Inkjets = rubbish, lasers = much better. We have HP colour lasers all over the school and never had a problem. Our oldest at 7 years has only just developed a fault.
  4. Correct - it seems the whole address is not required, as I've been using that script with just the username part with great success. But having the email wouldn't be any worse - use whichever is easiest for your setup. Any extra process that has to be done during mail delivery will have some impact - in time and/or system resources. To take one example from our server - according to the logs during mail delivery for the filter, the Postfix delay value is 0.13 when the person is not in the student list, and 3.5 when it is. Our student list is 1,172 lines long. Grep is rather efficient, and you can always test the speed of it manually before implementing the filter. To do this, get the raw source text of emails (one in the student list, one not) and save to a text file (e.g. /tmp/email-staff). Then run it through the same command used in the script: cat /tmp/email-staff | grep -Eif /etc/students Probably the simplest solution would be to test the return value/exit status of ldapsearch, and only update the file if it definitely contains students. Hopefully, changing the FULLDOMAIN variable to something that doesn't exist will make it return non-zero. The modified script here specifies the path to a temporary students file which the ldapsearch command will output to. If it succeeds, the exit status is hopefully 0, so the script will then copy and overwrite /tmp/students to /etc/students. If it fails, it will hopefully not be 0, so will just exit without copying - leaving the previous student list in-tact. #!/bin/bash # Bash shell LDAP query to produce text file with a list of student usernames. # It is to be used in combanation with: /usr/local/sbin/filter.sh # # If you have more than 1000 student users dont forget to change server LDAP defalts # # Changable variables # FULLDOMAIN=sheldon.internal BASESEARCH="OU=Students,OU=SHS,OU=Establishments,DC=Sheldon,DC=Internal" BINDUSER="SHELDON\ldapbind" PASSFILE="/home/.ldapcredentials" STUDENTS="/etc/students" STUDENTS_TEMP="/tmp/students" # ldapsearch \ -h $FULLDOMAIN -p 389 -l 60 -s base \ -b $BASESEARCH \ -s sub "(&(objectCategory=person)(objectClass=user)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))" "sAMAccountName" \ -D $BINDUSER \ -y $PASSFILE | grep sAMAccountName: | awk '{print $2}' > $STUDENTS_TEMP if [ $? -eq 0 ] ; then cp $STUDENTS_TEMP $STUDENTS fi exit $? Hope that helps
  5. I'd recommend putting the LDAP search command in a daily cron at a period of low network activity, and have it output the results to a file. Your LDAP search command so far looks great - it's outputting the addresses fine - we just need to remove the mail: prefix to the addresses. If you append this to the end of the command (to pipe the result into awk) it should just produce the email address: | awk '{print $2}' so the full line would look like this (split over multiple lines just for clarity) ldapsearch -h sheldon.internal -p 389 -s base -b "OU=Establishments,DC=Sheldon,DC=Internal" -s sub "(&(objectCategory=user)(|(memberOf=CN=SHS Teaching Staff,OU=SHS,OU=Establishments,DC=Sheldon,DC=Internal)(memberOf=CN=SHS Non-Teaching Staff,OU=SHS,OU=Establishments,DC=Sheldon,DC=Internal) (memberOf=CN=Domain Admins,CN=Users,DC=Sheldon,DC=Internal)) (mail=*))" "mail" -D "SHELDON\ldapbind" -w "mypassword" | grep mail: | awk '{print $2}' Give that a go and let us know how it goes.
  6. Tumblr is pretty good.
  7. Unfortunately, after being closed Weds-Thurs, we are now open today. Grrr
  8. webman

    FreeNAS

    For those not in the know, FreeNAS is an open source embedded NAS software distribution, based on the FreeBSD operating system. It supports many common protocols including Samba/CIFS, NFS, FTP, Rsync, UPnP and iSCSI. It has low hardware requirements, a small footprint, and a nice web-based management interface. There's been a few changes with the project lately, centring around the 0.7 release in December 2009. One of the main additions was support for the fantastic [ame=http://en.wikipedia.org/wiki/Zfs]Sun ZFS filesystem[/ame]. Late last year, core developer Volker Theile announced he would instead concentrate his efforts on his own Debian Linux-based distribution called coreNAS. Reasons cited for this were: The Debian installer is more customizable than the hand-written FreeNAS install scripts. Wake-on-LAN for waking up the NAS automatically works in Linux. Linux has a working sensor framework to check the temperature and fan speeds. The system can be updated with the Debian package manager. Linux has better driver support. He also summised that a full re-write of FreeNAS was needed to allow the project to fulfil it's future roadmap and feature list. A while after this announcement was made, the founder of FreeNAS, Oliver Cochard-Labbé agreed that a re-write was necessary. This is how things will progress: Volker will create a new project called "OpenMediaVault" (instead of the name coreNAS) based on a GNU/Linux. But he will still continue to work on FreeNAS. iXsystems (a company specialized in professional FreeBSD) are to take FreeNAS under their wings as an open source community driven project. Their professional FreeBSD developers will be involved in the development of FreeNAS and its re-writing. Sources: FreeNAS 0.7: powerful and not dead [LWN.net] FreeNAS forum • View topic - FreeNAS ready for the next step ! bsdtalk: bsdtalk 182 - FreeNAS with Josh Paetzel from iXsystems
  9. Your link didn't work, but a windscreen protector is only £2.50 in the link I posted above...
  10. We put a large plastic sheet on the windscreen on a night. Works wonders - no ice on a morning Similar to this.
  11. Not sure on it. I'll quite gladly give up 3D image galleries and animated wallpaper to save battery life or improve performance on actual functionality. And I prefer physical keyboards too. I still have my eyes on the Motorola Milestone. [ame=http://www.youtube.com/watch?v=FoYr8-uG5C0]YouTube- iDon't, Droid Does from Verizon[/ame]
  12. That sounds strange. There's no references to arrays anywhere in that function.
  13. Did you try using the function from the code I posted before?
  14. There's a function called timespan() in the open source framework CodeIgniter that does just that. The code of which is shown here. All you should have to do is remove the $CI references, and re-work the variable assignments. The function parameters expect time to specified in integers, UNIX timestamp format. For example: $str .= $years.' '.$CI->lang->line((($years > 1) ? 'date_years' : 'date_year')).', '; Would be: $str .= $years . ' ' . (($years > 1) ? 'years' : 'year') . ', '; Put that function somewhere accessible from your own code, and you should be good to go.
  15. Did someone sanction the installation of a firewall? Maybe someone got confused along the way
  16. You need to do a Mr. Bean and stick 12 of them together for greater effect
  17. DVD in, feet up, telly on Hope you've had a good break broc - best wishes for 2010
  18. The batteries in our server room air con remote control have died.
  19. HTML form: Tom Dick Harry In the PHP script, $_POST['names'] will be an array containing the values of the checked boxes. E.g. if you tick tom and harry, then you will end up with an array that has two elements, with values of 'tom' and 'harry'.
  20. A lot of this will depend on your wireless infrastructure. Do you have or are planning to use a managed system such as Ruckus?
  21. Exactly; so why bring it up in response to bossman's post?
  22. CC3 gives us benefits of both - we have the free support with EduGeek and RM Communities for the RM side of things. But the great thing about it is that it gives us more time to understand and develop new things instead of just having to make things work. For example, not having to write GPOs, batch scripts, ADMs and get a workstation imaging solution working (which we would have to do on a vanilla network), has given us the time and freedom to research, develop and implement open source solutions and come up with other ideas to make things better. If there's something CC3 doesn't do, we find another way to do it. Their interface doesn't stop us from learning new things Once people stop thinking of RM like a strait jacket, the better! Our team has a broad range of skills for networking, Microsoft, Linux, hardware, software packaging/deployment, and programming. CC3 allows us the flexibility to do all of this, and I'm confident we could probably manage a vanilla network - it just wouldn't give us the benefits we currently have We're looking forward to the CC4 upgrade this year so we can carry on running a great network which does everything we want, and more
  23. I didn't see all of it, but from what I did - Kasabian should have played the only decent song of theirs, Swarfiga. The one where they don't sing. Florence was fantastic. Dizee Rascal - awful.
  24. Yes. To shoot the crap out of all Apple stuff.
×
×
  • Create New...