August 29, 2005
@ 02:45 PM

How do I get my Personal Address Book and my Contact information to work together? When I add an e-mail address to one, the information does not automatically appear in the other. I have to add the same information twice whenever I put someone new in the database.

http://www.slipstick.com/contacts/olconpab.htm


 
Categories: IT

Inside Microsoft's Zotob Situation Room
August 26, 2005

By  Ryan Naraine
When Microsoft Corp. shipped the MS05-039 bulletin on Aug. 9 to patch a "critical" flaw in the Windows Plug and Play service, there was general feeling of trepidation within the Microsoft Security Response Center.

Software engineers at the Redmond, Wash., company smelled trouble right off the bat. It had been more than a year since the Sasser worm outbreak and, to MSRC Program Manager Stephen Toulouse, the severity of this PnP vulnerability brought back a mixture of memories ranging from chaos and confusion to outright pride in the way the Sasser threat was handled.

More: http://www.eweek.com/print_article2/0,1217,a=158848,00.asp


 
Categories: IT

August 24, 2005
@ 02:04 PM

PORT NUMBERS

(last updated 18 August 2005)

The port numbers are divided into three ranges: the Well Known Ports,
the Registered Ports, and the Dynamic and/or Private Ports.

The Well Known Ports are those from 0 through 1023.

The Registered Ports are those from 1024 through 49151

The Dynamic and/or Private Ports are those from 49152 through 65535

The Well Known Ports are assigned by the IANA and on most systems can
only be used by system (or root) processes or by programs executed by
privileged users.

Ports are used in the TCP [RFC793] to name the ends of logical
connections which carry long term conversations.  For the purpose of
providing services to unknown callers, a service contact port is
defined.  This list specifies the port used by the server process as
its contact port.  The contact port is sometimes called the
"well-known port".

To the extent possible, these same port assignments are used with the
UDP [RFC768].

The range for assigned ports managed by the IANA is 0-1023.

http://www.iana.org/assignments/port-numbers


 
Categories: IT

August 21, 2005
@ 01:36 AM

Saw this a few years ago on Engineer.com, but I thought I'd mention it again now, as a lot of people ask me these questions:

This video gives a good overview of how the internet works - the router, switch, firewall, proxy, packets, servers...

Direct Link: http://www.isrl.uiuc.edu/~mwolske/lis315/goodwarriors.mpg

More: http://www.isrl.uiuc.edu/~mwolske/lis315/warriorsofthenet.html


 
Categories: IT

HomePlug AV, a new networking protocol, was just approved and appears to be on the way in 2006. The new protocol is designed to use existing power lines in your home as a media connector for streaming audio and video at 200 Megabits per second. Say it with me people: ZIPPY!

http://www.hdbeat.com/2005/08/19/room-to-room-hdtv-with-homeplug-av/

See also: http://www.homeplug.org/en/products/index.asp and http://www.homeplug.org/en/products/products.asp

No products found at Linksys yet... need the version 2.0 hardware to support the 2.0 HomePlug spec.  200 mbps would be quite nice across powerlines...!


 
Categories: IT

August 18, 2005
@ 01:10 PM

Roadkil's DHCP Find

Finds active DHCP servers on your network. Displays the configuration information offered by the server including IP address, Netmask, gateway. The servers network address and the length of the dhcp lease are also given. Very handy utility for tracking down rogue DHCP servers during LAN gatherings or tracking down problems with your network.

See attached.

See also: http://www.roadkil.net/dhcpfind.html

dhcpfind.zip (41.01 KB)
 
Categories: IT

http://support.microsoft.com/default.aspx?scid=kb;en-us;822447

SUMMARY

This article describes how to modify recipient policies in Exchange 2003 to determine how a user's e-mail address is generated. When you use the procedure that is described in this article to modify a recipient policy, you can define specific settings that allow you to meet the naming conventions that are required for your organization.
 

MORE INFORMATION

By default, Exchange 2003 has one recipient policy that is named "Default Policy.” Default Policy generates Simple Mail Transfer Protocol (SMTP) e-mail addresses in the following format, where user_name is the Exchange alias property of the user, and domain_name is the Microsoft Active Directory directory service domain name:
user_name@domain_name.com
Note Do not modify Default Policy if you want to use the replacement strings that the following procedure describes to generate your SMTP address. If you want to use replacement strings, you have to create a new recipient policy. If you try to modify Default Policy, you may experience problems if Default Policy is based on attributes such as given name or surname. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
271339 (http://support.microsoft.com/kb/271339/EN-US/) XADM: Cannot Mount Database and Event ID 9546 Occurs

 


 
Categories: IT

Cannot load PRO/100 or PRO/1000 network adapters using RIS installation
During text mode, receive an Error message: "the image selected does not contain drivers for your hardware."

Due to an issue with the Microsoft* parser, you must use different .inf files in the i386 folder for XP than the XP/2003 base driver .inf. These modified .inf files can be downloaded from Download Finder. Download E1000325.exe for the PRO/1000 adapters and E100B325.exe for the PRO/100 adapters

http://support.intel.com/support/network/sb/cs-000023.htm

See also:

http://help.nec-computers.com/au/pib.asp?second=on&platform=topic_01645&layout=1413

https://blogs.conchango.com/markwilson/archive/2005/01/11/798.aspx

http://support.microsoft.com/?kbid=823658

http://www.wug-nordic.net/articles/ris-add-nic.htm#Adding_Intel_Pro_100_drivers_to_RIS_for_Windows_XP_Images_-_Step_by_step_procedure


 
Categories: IT

Desktop Search Engine - Hebbian Recall

Hebbian Inc. provides search ranking technology that emulates human memory, allowing it to predict relevance of search results based on previous user behavior.

The result? The more you use your computer, the more accurate your searches become.

Our activation based ranking technology can be used in a number of situations that require the computer to identify what data is important. Maybe you want only the most important data synched to your PDA. Maybe you want to clean up your computer by getting rid of documents you don't need. These are only a few examples of situations where activation based ranking can help.

The most obvious application is for desktop search. Search tools are everywhere. Why are we different? Most search tools match keywords in documents. We do this, but we do it better. We don't just search your files - we determine which ones are more important to you.

What's our secret? Simple: If you worked on something yesterday for the entire day, it's likely to be more relevant than something you worked on two years ago for an hour. Toss in the latest advances in human-computer interaction, cognitive modeling, and studies of human memory, and what do you get?

Introducing Hebbian Recall, combining Hebbian principles with traditional search algorithms to give you the most relevant results first. Learn more.

www.hebbian.com

I like this desktop search engine.  Its fast, tight, clean, and efficient.  There appear to be some minor glitches, but the software has dramatically improved my computing experience!

Hebbian desktop search is providing me with Googlesque accuracy for searching that I have not seen with ANY other competing product - Google Desktop Search, Yahoo!, MSN, and Copernic all do not deliver the same kind of accuracy that I've seen.

I recommend Hebbian Recall as your desktop searching engine.


 
Categories: IT | Tight

August 9, 2005
@ 11:14 PM

Tight

ASP.net

<%@Page Language="C#"%>
<script runat="server">
private void Page_Load(object sender, System.EventArgs e) {
Response.Status = "301 Moved Permanently";
Response.AddHeader("Location","
http://blog.justinho.com");
}
</script>

This code will intelligently redirect a browser that loads it - generating a 301 status code instead of just a
Untight <meta http-equiv="REFRESH" content="10;url=http://justinho.com">
Which, frankly, does nothing and breaks search engine linking, and relies on client-based redirecting.

ColdFusion
<.cfheader statuscode="301" statustext="Moved permanently">
<.cfheader name="Location" value="
http://blog.justinho.com">

PHP
<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location:
http://blog.justinho.com" );
?>

htaccess
Create a .htaccess file (if does not exists) in your root directory.
Redirect permanent / http://blog.justinho.com

ASP
<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently" Response.AddHeader "Location", "
http://blog.justinho.com"
%>

See also
http://www.php.net/manual/en/function.header.php


 
Categories: IT

SOURCE: http://support.microsoft.com/default.aspx?scid=kb;en-us;884675

When you try to install one of the following programs, the installation stops:
Microsoft Windows XP Service Pack 2 (SP2)
Microsoft Windows XP Tablet PC Edition 2005
Microsoft Windows Server 2003 Service Pack 1 (SP1)

Additionally, you receive the following error message:

Copy Error
Setup cannot copy the file Atapi.sys
Ensure that the location specified below is correct, or change it and insert 'Windows XP System Files' in the drive you specify.
Note Do not click Retry or change the Copy file from location if you receive this error message.
 
CAUSE
This issue may occur if you have one of the following programs installed: • Alcohol 120%
For more information about Alcohol 120%, visit the following Alcohol Software Web site:
http://www.alcohol-soft.com/ (http://www.alcohol-soft.com/)
• DAEMON Tools
For more information about DAEMON Tools, visit the following DAEMON Tools Web site:
http://www.daemon-tools.cc/dtcc/portal/portal.php (http://www.daemon-tools.cc/dtcc/portal/portal.php)
These programs lock the Atapi.sys file and prevent Windows XP SP2 or Windows Server 2003 SP1 from backing up the existing version of the file.
 
WORKAROUND
To work around this issue, follow these steps:
1. In the error message dialog box that is described in the "Symptoms" section, click Cancel. You then receive the following message:
Do you want to continue Setup without copying this file?
2. Click No. The Windows XP SP2 installation will roll back to your earlier Windows installation.
Note If you click Yes, the Windows XP SP2 Setup program will continue without creating a backup copy of the Atapi.sys file. If you later remove Windows XP SP2, the Atapi.sys file will not revert to the earlier version, and your Windows XP-based computer may become unstable.
3. Remove the programs that are described in the "Cause" section.
4. Install Windows XP SP2.
5. Reinstall the programs that you removed in step 3

 
Categories: IT

August 9, 2005
@ 08:54 AM

Customer has a 3 mbit routed (25 IP) block of IPs from Bell Nexxia for Enterprise level business internet service.  Some uptime guarantees, etc. SLA for 1 hour turnaround with complete internet disconnection.  Apparantly, this does not include usable email services.

All of a sudden, all users using smtp1.sympatico.ca stop being able to send emails to head office (running on the 3 mbit line).  This disconnects all our sales sites from our Head Office email system.

I called Bell Nexxia Enterprise support.  We'll see what happens... they were 'escalating' the problem.  But the problem is, you see, the problem has already been 'escalated' 3 separate times.  I, or my colleague, have called several times already this past week.  And still, mail bounces.

Perhaps people should not be allowed to respond to emails right away, Tuesday mornings.  I don't think they read emails at all.

But my email was a simple telnet log paste.  Nothing else.  Why would any other "error message" be any more helpful?

Below is some correspondence:

----- Original Message -----

From: Justin T. Ho

To: abuse@bell.ca

Sent: Tuesday, August 09, 2005 7:29 AM

Subject: smtp1.sympatico.ca not sending mail to certain domains uxsM25brI

 

220 tomts36-srv.bellnexxia.net ESMTP server (InterMail vM.5.01.06.10 201-253-122

-130-110-20040306) ready Tue, 9 Aug 2005 07:23:12 -0400

HELO

250 tomts36-srv.bellnexxia.net

MAIL FROM:[email removed]

250 Sender <[email removed]> Ok

RCPT TO:someuser@baywoodhomes.com

550 Invalid recipient: someuser@baywoodhomes.com

 

----- Original Message -----

From: Bell Internet Service Investigations [mailto:abuse@bellnexxia.net]

Sent: Tuesday, August 09, 2005 8:29 AM

To: Justin T. Ho

Subject: Re: smtp1.sympatico.ca not sending mail to certain domains uxsM25brI

 

Good morning,

 

We need the error message you are getting when trying to send to whatever domain you cannot send to from the Bell's mail server.

 

Regards,

 

Nathalie Foster

Bell Business Internet Management Services -

Internet Service Investigations

abuse@bellnexxia.net

 

----- Original Message -----

From: Justin T. Ho

Sent: Tuesday, August 09, 2005 8:36 AM

To: 'Bell Internet Service Investigations'

Subject: RE: smtp1.sympatico.ca not sending mail to certain domains uxsM25brI

 

Hi Nathalie,

 

            I sent you a log in my original email already.

 

            Whenever a Bell Sympatico customer using smtp1.sympatico.ca as their email server attempts to send ANYTHING to *@baywoodhomes.com, it is instantly rejected, with the message, “Invalid recipient”.  Thus, ANY Bell Sympatico user using smtp1.sympatico.ca cannot email our head office.  The customer ISP is Bell Sympatico, and our head office is using your Bell Nexxia Enterprise 3 mbit routed DSL service.  Our head office router is [IP removed] – Baywood Homes.  We have a routed block (25 IPs) and 207.35.154.98 (mail.baywoodhomes.com) is our primary MX.

 

            Please let me know if this is unclear, or if you need more information.


 
Categories: IT

August 8, 2005
@ 05:00 PM

The Microsoft Office Outlook 2003 Calendar Views Add-in makes it easy for you to view your Outlook Calendar appointments through a filter that is based on Outlook labels and categories. For example, you can create a view that shows you only the appointments on your calendar that are labeled Must Attend, or are categorized as Important.

You add filters by using the Calendar Views toolbar, which opens in your Outlook Calendar after you install the add-in.

Note: This add-in is for Microsoft Office Outlook 2003 only.

http://www.microsoft.com/downloads/details.aspx?FamilyID=4d6d2ff3-6da8-4b4b-a84c-bcd83ad985f0&DisplayLang=en


 
Categories: IT

August 8, 2005
@ 01:27 PM

This has to be one of the few Microsoft products that I have never, and will never like.  When are they going to phase this out and replace it with something that works?

Event Type: Warning
Event Source: FrontPage 5.0
Event Category: None
Event ID: 1000
Date:  08/08/2005
Time:  1:18:56 PM
User:  N/A
Computer: WEBSERVER
Description:
Microsoft FrontPage Server Extensions:
   Error #90057 Message: The role(s) 'Browser' exceed the rights specified for anonymous access and contain the the account used for anonymous logons by your web server directly or indirectly through at least one of the following members: 'WEBSERVER\IUSR_WEBSERVER'. To fix this remove these members from those roles.

Uhhh... what?


 
Categories: IT

August 8, 2005
@ 01:02 PM

download.microsoft.com appears to be experiencing some difficulties today.

I'm getting horrible download speeds from 2 different ISPs.

I've bothered to do a trace route yet, but I hope they get this fixed soon; its impossible to get ANYTHING off the servers over 10-20k/s.

It's like I'm back on dialup! (How sad...)


 
Categories: IT

Gradually (it seems) my email attachments have stopped opening. The last straw was tonight, when I clicked on an old email with a word doc and it worked, then a couple minutes later I clicked on the same email doc attachment and it just sat there. Right-click-open doesn't work either. Save and open does. Finally, I cleared all helper applications completely and sent myself a new email with a known good attachment. Clicking it does not open up the expected window asking me what application I want to use. Just sits there. Any ideas? Thanks in advance.

http://sillydog.org/forum/viewtopic.php?t=3795


 
Categories: IT

Microsoft® Office 2003 service packs and product updates are designed to help improve the security, performance, and reliability of Office applications. A service pack, such as Office 2003 Service Pack 1 (SP1), typically updates the entire Office package and represents a new baseline version of the product.

Between service packs, Microsoft may also offer product updates developed in response to emerging issues such as virus attacks or bug fixes. These interim product updates, which typically update specific applications or features, require the most recent baseline version of the product. Interim updates are also cumulative; for example, you can apply the fifth Microsoft Office Word 2003 patch without applying Word 2003 patches one through four.

The strategy you choose for updating Office on users' computers depends on several factors:

  • Deployment method
    The method you use to deploy Office 2003 in the first place determines your options for updating clients later on. If you want to be able to distribute binary patches throughout your organization, deploy Office from a compressed CD image and take advantage of the local installation source, which Setup creates by default on users' computers.
  • Management practices
    If your organization maintains strong centralized control over software deployment — for example, if you use Microsoft Systems Management Server to help control software distribution — you can more reliably keep clients synchronized with an updated administrative installation point. However, Microsoft still recommends that you maintain the original administrative image and deploy binary or full-file updates to users.
  • Network capacity
    Recaching and reinstalling Office from an updated administrative image requires considerably more network bandwidth than distributing updates to users, and distributing full-file updates requires more bandwidth than distributing smaller binary patches.
  • Client hard disk capacity
    Caching all installation files on the local computer requires approximately 240 MB of hard disk space in addition to the space required by a typical installation of Office 2003.

Other tasks:

To use the OHotFix utility to chain client patches
To use Windows Installer to chain client patches
Patching an administrative installation point
Synchronizing independently updated client computers

More: http://office.microsoft.com/en-us/assistance/HA011402381033.aspx

 


 
Categories: IT

August 7, 2005
@ 02:18 PM

This guide is to show you how to rewire the DSL circuit from the phone Company's NID to your modem and hopefully you’ll gain about 100 to 150kbps in speed, lower Latency and even get rid of all the Filters that are attached to your phones.

http://dslnuts.com/DSLwiring.shtml


 
Categories: IT

August 7, 2005
@ 01:59 PM

There are a lot of great freeware programs out there. Many are as good or even better than their shareware or commercial alternatives.
"A+ Freeware" are choice applications, which when combined, make the complete (!?) freeware package. In other words, all you need is the operating system (Windows®) and you won't have to spend one cent on software. Enjoy!

http://www.aplusfreeware.com/


 
Categories: IT

August 7, 2005
@ 01:53 PM

http://buyersguide.macrumors.com/

This guide tells you how long it's been since an Apple product has been updated. This helps you decide to buy something now, or maybe wait a few weeks for the new model.


 
Categories: IT

Source: http://support.microsoft.com/kb/891861

Error messages
You may receive one of the following error messages when you visit the Windows Update Web site:
MSXML3.DLL File Not Found
Error 0x80244001
Error 0x800700C1

You receive a "Stop 0x000001E" error message when you restart the computer after you install Update Rollup 1 for Windows 2000 SP4

You may receive the following error message when you restart the computer after you install Update Rollup 1 for Windows 2000 SP4:
Stop 0x000001E

On a computer that uses dynamic disks, two system drives may appear after you install Update Rollup 1 for Windows 2000 SP4

You cannot save files from Microsoft Office programs directly to a floppy disk

You cannot connect to a Citrix server that has ICA sessions after you install Microsoft Update Rollup 1 for Windows 2000

An Exchange 5.5 message transfer agent (MTA) that uses an X.400 connector on Windows 2000 SP4 may stop transferring mail after you install Microsoft Update Rollup 1 for Windows 2000

After customers install Microsoft Update Rollup 1 for Windows 2000 SP4, customers who use Sophos Anti-Virus for Windows version 5 may experience a delay when they log on to their networks. A computer may take 15 minutes to log on to the network when the following message appears:
preparing network connections

Some versions of Internet Security Systems products may not start after you install Microsoft Update Rollup 1 for Windows 2000.


 
Categories: IT

Sales of IBM PCs under new owner Lenovo have proven so successful that the company is having trouble filling orders for some models, according to a Lenovo executive.
For Lenovo Group Ltd. channel partners trying to fill customer orders, the product constraints are a hassle. Some partners worry their end-user customers will switch to other brands when buying systems.

...
A further expansion of the popular ThinkPad line is on the way, he said, citing the planned September release of the widescreen Z series.

For partners, the inventory problems come at an inopportune time, just when Lenovo needs to prove the transition form IBM ownership will not cause major disruptions.


FULL: http://www.eweek.com/print_article2/0,1217,a=157342,00.asp


 
Categories: IT

August 3, 2005
@ 03:00 AM

Moving a SunOS sendmail box to Microsoft Exchange 2003.

Mitigating factors: Active Directory has been used for 8+ years for ASP/ASP.net web application.  There are some (about half) duplicate users in both directory systems, and some dead/ghosted users in both directories.

Few users keep mailboxes on the box, so I haven't bothered with *NIX migration utils from Microsoft.

Here's the situation... I've moved over 5 testbed users over to Exchange.  So now, I have two MXes both handling @chem.queensu.ca.  My Exchange system POPs email from the SunOS box.  But now all my Exchange users can't send mail to users on the old system.

Solution?  Add @old.chem.queensu.ca to SunOS mailboxes, establish mailboxes for live users from SunOS system on the Exchange box, create "external" contacts and forward mail.

How do you get VBScripts to manipulate Active Directory objects?  Add an email address, establish an Exchange mailbox, and setup forwarders, all based off a passwd file?

Just hacked up a little script.  It goes through all users in an OU, compares to a passwd file from SendMail, and faithfully creates contacts to the username@old.chem.queensu.ca and sets the Exchange-side user to forward to that address.

I've set my Exchange to smarthost mail thru the SunOS box, so my mail to 'old' users will continue to function without DNS modification.

Thanks to Aidan for helping me with this one =)

(easily modified... note that my 'imported' users on Exchange are lacking EVERYTHING except for an email address and given name.  I'm going to be running a full audit and recreating ALL users - hence the hack.)

Dim MDBName
Dim StorageGroup
Dim Server
Dim AdminGroup
Dim Organization
Dim DomainDN

MDBName = "Mailbox Store (EMAIL2003)"
StorageGroup = "First Storage Group"
Server = "email2003"
AdminGroup = "First Administrative Group"
Organization = "Chernoff 2005"
DomainDN = "DC=domain,DC=chem,DC=queensu,DC=ca"

Function CreateMailbox(objuser)
 Set objMailbox = objUser

        objMailbox.CreateMailbox "LDAP://CN=" & MDBName & _
                               ",CN=" & StorageGroup & _
                               ",CN=InformationStore" & _
                               ",CN=" & Server & _
                               ",CN=Servers" & _
                               ",CN=" & AdminGroup & _
                               ",CN=Administrative Groups" & _
                               ",CN=" & Organization & _
                               ",CN=Microsoft Exchange,CN=Services" & _
                               ",CN=Configuration," & DomainDN
 objUser.SetInfo
End Function


Function FileToArray(ByVal strFile, ByVal blnUNICODE)
 Const FOR_READING = 1
 Dim objFSO, objTS, strContents
 FileToArray = Split("")
 Set objFSO = CreateObject("Scripting.FileSystemObject")
 If objFSO.FileExists(strFile) Then
  On Error Resume Next
  Set objTS = objFSO.OpenTextFile(strFile, FOR_READING, False, blnUNICODE)
  If Err = 0 Then
   strContents = objTS.ReadAll
   objTS.Close
   FileToArray = Split(strContents, vbNewLine)
  End If
 End If
End Function


Function CreateForward(User)
 firstname = User.sAMAccountName
 lastname = "External Contact"
 email = User.sAMAccountName & "@old.chem.queensu.ca"
 
 Dim contactName
 Dim description
 description = firstname & " " & lastname
 contactName = "CN=" & description
 
 
 Set objContainer = GetObject("LDAP://OU=Grandfathered Users,OU=Network Users,DC=domain,DC=chem,DC=queensu,DC=ca")
 Set objContact = objContainer.Create("contact", contactName)
 objContact.Put "givenName", firstname & " External"
 objContact.Put "sn", lastname
 objContact.Put "displayName", description
 objContact.Put "Description", description
 objContact.Put "Mail", email
 objContact.Put "proxyAddresses", "SMTP:" & email
 objContact.Put "targetAddress", "SMTP:" & email
 objContact.Put "mAPIRecipient", "FALSE"
 objContact.Put "mailNickname", description
 objContact.Put "legacyExchangeDN", "/o=Chernoff 2005/ou=First Administrative Group/cn=Recipients/cn=" & firstname & " " & lastname
 objContact.Put "msExchALObjectVersion", "21"
 objContact.SetInfo

 User.Put "altRecipient", "CN=" & description & ",OU=Grandfathered Users,OU=Network Users,DC=domain,DC=chem,DC=queensu,DC=ca"
 User.SetInfo
End Function


'Set rootDSE = GetObject("LDAP://RootDSE")
'domainContainer = rootDSE.Get("defaultNamingContext")

Set CNUsers = GetObject("LDAP://OU=Grandfathered Users,OU=Network Users,DC=domain,DC=chem,DC=queensu,DC=ca")
CNUsers.Filter = Array("user")

' Create the array of usernames from the passwd file
Dim rawUserNamesArray ' with :::: from passwd
rawUserNamesArray = FileToArray("passwd", False)

' Process the file
For i = 0 to UBound(rawUserNamesArray)
 Dim line
 line = Split(rawUserNamesArray(i), ":")
 rawUserNamesArray(i) = line(0)
Next

Set chemEmailTest = New RegExp
With chemEmailTest
 .Pattern = "@chem.queensu.ca"
 .IgnoreCase = True
 .Global = True
End With

'Set objFSO = CreateObject("Scripting.FileSystemObject")
'Set objTS = objFSO.OpenTextFile("contacts.csv", FOR_READING, False, blnUNICODE)
'objTS.Echo "objectClass,DN,displayName"

For Each User in CNUsers
' WScript.Echo User.sAMAccountName

 ' Are they @chem.queensu.ca?
 If chemEmailTest.Test(User.mail) Then
  ' Are they in the passwd file?
  For Each Username in rawUserNamesArray
   'WScript.Echo Username
   'WScript.Echo User.sAMAccountName
   If Username = User.sAMAccountName Then
    'WScript.Echo Username & " is in both"
    ' Create mailbox
    CreateMailbox(User)

    ' Create forwarder
    'WScript.Echo User.givenName & " " & User.sn & " " & User.SamAccountName
    CreateForward User
   End If
  Next  
 End If
Next

WScript.Echo "Done!"

 

And also, a little script that returns a list of all users that are in the Exchange in the appropriate domain name, BUT, not in the passwd file.  (aka... Windows/AD ghosted users)


Function FileToArray(ByVal strFile, ByVal blnUNICODE)
 Const FOR_READING = 1
 Dim objFSO, objTS, strContents
 FileToArray = Split("")
 Set objFSO = CreateObject("Scripting.FileSystemObject")
 If objFSO.FileExists(strFile) Then
  On Error Resume Next
  Set objTS = objFSO.OpenTextFile(strFile, FOR_READING, False, blnUNICODE)
  If Err = 0 Then
   strContents = objTS.ReadAll
   objTS.Close
   FileToArray = Split(strContents, vbNewLine)
  End If
 End If
End Function

 

Set CNUsers = GetObject("LDAP://OU=Grandfathered Users,OU=Network Users,DC=domain,DC=chem,DC=queensu,DC=ca")
CNUsers.Filter = Array("user")

' Create the array of usernames from the passwd file
Dim rawUserNamesArray ' with :::: from passwd
rawUserNamesArray = FileToArray("passwd", False)

' Process the file
For i = 0 to UBound(rawUserNamesArray)
 Dim line
 line = Split(rawUserNamesArray(i), ":")
 rawUserNamesArray(i) = line(0)
Next

Set chemEmailTest = New RegExp
With chemEmailTest
 .Pattern = "@chem.queensu.ca"
 .IgnoreCase = True
 .Global = True
End With

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTS = objFSO.OpenTextFile("out.txt", 2, True, -2)

For Each User in CNUsers
' WScript.Echo User.sAMAccountName

 ' Are they @chem.queensu.ca?
 If chemEmailTest.Test(User.mail) Then
  ' Are they in the passwd file?
  found = False
  For Each Username in rawUserNamesArray
   If Username = User.sAMAccountName Then
    found = true
   End If
  Next
  If Not found Then
   objTS.WriteLine User.sAMAccountName
  End If
 End If
Next

objTS.Close()

WScript.Echo "Done!"


 
Categories: IT

August 2, 2005
@ 11:23 PM

From http://www.dd-wrt.com/

DD-WRT is simply a project which is based on the official GPL Sources of Sveasoft Alchemy. Due the nature of GPL based projects, this firmware will be also release under this license. Initially i wrote this modification to make it possible, to use the Linksys WRT54G/GS inside our Wireless Lan network as cheap replacement for our professional Lancom and Orinocco access points. so what was missing? first, we are using radius authentication with a central account management inside our network for user authentication. There is already a radius application available for OpenWRT, but openwrt was no choice since it is not user friendly for a non computer professional without any linux knowledge. so i just integrated it with some small enhancements in the alchemy software. my wrt-radauth modifications:

radius server timeouts will not be a problem anymore. a client is authenticated just up to the point, the server says really 'no'. a connection timeout will not have any influence to this workflow.

additionally i found it really helpfull to use a external filesystem device inside the WRT. my choice was a samba client since it is useable on any computer platform. you can easilly mount a windows network share into the wrt and additionally its also possible to start a script after mounting from this device. but the work was not over. also if currently the server/client watch function is still under development, i already implemented the RFlow traffic monitoring and management tool into the web interface. this tool is already inside DD-WRT, but you have to start it manually and so far it looks unfinished. (daemon mode does not work). so i finished it and yes now its working inside my DD-WRT and you can configure it out from the administration window.


 
Categories: IT

August 1, 2005
@ 03:24 PM

They say it all boils down to security.  It's the account used by ASP.NET.  It's setting <identity impersonate=“true“/>.  It's the way you set up ADAM.

It's making sure that the ADAM user you are logging in with is a member of the Readers role.

It's making sure that when attempting to create a System.DirectoryServices.DirectoryEntry, the ADAM username you are trying to bind with is the DN of the username, not the CN or anything else.

It's making sure that when trying to create that DirectoryEntry to bind with an ADAM user, you set the AuthenticationTypes to None.

Yes, dear reader, it's all of those.  But, if like me you still find yourself with the “Unknown error”, and you've played with Reflector and walked through System.DirectoryServices, and googled “ADsOpenObject 0x80005000” and you've wept, and shaken your fist--keep going.

If you've ghosted your machine back to August 2003 to get rid of the Framework 2.0 beta you installed a few weeks back to play with Monad, and you still get the “Unknown error”, keep going.

If you've reinstalled ADAM twelve times, then created a fresh VMWare guest of 2003 with all the trappings, installed ADAM, run your code, and you still get the “Unknown error”, keep going.

When, after 24 hours of frustration, seditious thoughts of the quality of System.DirectoryServices.dll going through your head, you find yourself contemplating a switch to Linux, relax.  I have an answer for you:

It's “LDAP://”, not “ldap://”.

[read more]


 
Categories: IT