101TECH is a South Florida based I.T Solution Provider.
We Deliver Enterprise Class I.T Solutions For Small , Mid-Market Business and Startup Companies.

We Can help you :
  • Maintain Your Existing Computers and Network.
  • Evaluate & recommend technology solutions.
  • Secure your vital business information and infrastructure.
  • Assist in establishing business continuity plans.
  • Monitor and Tune your Servers and Applications
  • Design and Maintain your Web site.
  • Host your Servers , Email and Other Web Services.

ldap_add: Invalid syntax (21) – fix

January 21st, 2010 No comments

This error was driving me nuts:

ldap_add: Invalid syntax (21)
additional info: objectClass: value #0 invalid per syntax

despite looking at my ldif a hundred times, until I relized my perl script added white space at the end of the line ….

print "objectClass: top\n";
print "objectClass: person \n";
print "objectClass: organizationalPerson \n";
print "objectClass: inetOrgPerson \n";
print "objectClass: mozillaOrgPerson \n";
print "objectClass: evolutionPerson \n";
print "objectClass: simpleSecurityObject \n";

once changed to :

print "objectClass: top\n";
print "objectClass: person\n";
print "objectClass: organizationalPerson\n";
print "objectClass: inetOrgPerson\n";
print "objectClass: mozillaOrgPerson\n";
print "objectClass: evolutionPerson\n";
print "objectClass: simpleSecurityObject\n";

The ldap gods were smiling again, hope this saves someone some time.

Parse a csv file using perl

January 21st, 2010 No comments

While parsing and converting some CSV files to ldif’s I needed a perl script, the Test::CSV module is helpful :

#!/usr/bin/perl
use strict;
use warnings;
use Text::CSV;

my $file = ‘prospects.csv’;

my $csv = Text::CSV->new();

open (CSV, “< ", $file) or die $!;

while () {
if ($csv->parse($_)) {
my @columns = $csv->fields();
print “@columns\n”;
} else {
my $err = $csv->error_input;
print “Failed to parse line: $err”;
}
}
close CSV;

Centos : permission denied when mounting nfs share from client

January 21st, 2010 No comments

one thing to check is that /proc/nfs is there, if not , mount it.
mount -t nfsd nodev /proc/fs/nfsd

Fix “the installation source for this product is not available. Verify that the source exists and you can access it”

January 8th, 2010 No comments

MAC – Reset office 2008 serial

December 29th, 2009 No comments

I use a time machine backup to build MAC’s for our employees, saves me time on install and configurations, however our MAC users use office 2008 and require a unique key from our licensed copy. to re enter the office serial I just run the following two commands in terminal :

rm "/Applications/Microsoft Office 2008/Office/OfficePID.plist"
rm "~/Library/Preferences/Microsoft/Office 2008/Microsoft Office 2008 Settings.plist"

and re launch office.