Category Archives: Networking

OpenVPN : Unable to obtain Session ID

Using OpenVPN Server on Linux as well as Windows machine, you may encounter this error trying to connect a client :

Unable to obtain Session ID from “vpn.domain.tld”, port(s)=443: XML-RPC: TimeoutError

This happen because HTTPS (SSL) port (TCP-443) is closed either on the server or firewall (server-side).

You also need the following ports open in order to get OpenVPN working :

TCP-943
TCP-1194
UDP-1194

Active Directory : You do not have sufficient privileges to delete Organizational Unit

Working in Active Directory Users and Computers (ADUC) trying to delete an Organizational Unit (OU), you get the following error :

Active Directory Domain Services

You do not have sufficient privileges to delete < Organizational Unit >, or this
object is protected from accidental deletetion.

By default, you need to uncheck the box “Protect object from accidental deletion”. To achieve this, you need to activate Advanced Features on ADUC console.

Click on : View > Advanced Features

Now you got a lot more options!

Right click on the OU you want to remove and then Properties ;
Click on Object tab ;
Uncheck the box Protect object from accidental deletion.

You’re done!

Active Directory : Failed to create an index for the following attribute msFVE-RecoveryGuid

On a multi DC (Windows 2003 – 2008) Active Directory, you may encounter the following NTDS event :

Active Directory failed to create an index for the following attribute.

Attribute identifier:
591789
Attribute name:
msFVE-RecoveryGuid

A schema cache update will occur 5 minutes after the logging of this event and will attempt to create an index for the attribute.

Additional Data
Error value:
-1403 JET_errIndexDuplicate, Index is already defined

This is probably caused by a recently added DC running Windows Server 2008, attempting to do a scheme update on the forest to add BitLocker Drive Encryption.

Unfortunately, this feature is not supported by Windows Server 2003.

Here is a workaround to solve this problem – First, find out which DC is propagating this policy (type the following in the command prompt) :

netdom query fsmo

Then, logon in the domain controller causing this and do the following :

- Start / Run; adsiedit.msc
- Open the Schema container and copy the container that contain the schema objects
- Then, click searchFlags and then Edit
- In the Integer Attribute Editor, change the value 27 to 25
- Repeat again step the three latest steps for msFVE-VolumeGuid objects.

Linux : How to add a network static route

route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1

The best way to make it permanent, is to add the gateway directly to the interface by editing the interface script :

/etc/sysconfig/networking/devices/ifcfg-eth0

add :

GATEWAY=192.168.1.1

To remove a static route :

route del -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1

Windows : Adding a permanent static route

route -p add 10.10.10.0 mask 255.255.255.0 192.168.1.1

Samba : Unable to connect to CUPS server, connection refused

You may notify in /var/log/messages the following error about smbd daemon regarding the cupsd printing service :

smbd[5955]: [2011/05/13 15:03:59, 0] printing/print_cups.c:cups_connect(69)
May 13 15:03:59 neptune smbd[5955]:   Unable to connect to CUPS server localhost:631 – Connection refused

This occur when the service is disabled.  If you do not have a printer and do not want the printing service, you may want to disable this in the samba config file to avoid the system log print this error every eight minutes.  To do so edit the following file :

vi /etc/samba/smb.conf

[global]
load printers = no
printing = none

nTop : Install from rpmforge failed to start

After upgrading to latest version or update your existing well working nTop, you may expect this error when starting nTop by doing “service ntop start”.

# service ntop start
Starting ntop:    Processing file /etc/ntop.conf for parameters…
Mon Nov 24 23:56:36 2008  NOTE: Interface merge enabled by default
Mon Nov 24 23:56:36 2008  Initializing gdbm databases
FATAL ERROR: Unrecognized/unprocessed ntop options…
–user ntop,
–db-file-path /var/ntop,

run ntop –help for usage information

A script error in the startup file has been discovered.  Edit the following line in file : /etc/rc.d/init.d/ntop

daemon $prog -d -L @/etc/ntop.conf

(This is in the “start ()” section)

Replace with the line:

daemon $prog @/etc/ntop.conf -d -L

FTP : File transfer failed but permission correct

FTP Server complain about this error:

Command:    STOR upload_test.txt
Response:    150 Ok to send data.
Response:    451 Failure writing to local file.
Error:    File transfer failed

 

The operation failed to complete even if file permission are correct.  Most of the time on unix ftp servers such as vsFTPd, this may indicate that the user’s quota is full.

Remote Desktop : stop working after Windows Update

This happen after updating to Windows XP Service Pack 3 or Windows Server 2003 SP2:

Microsoft added a security feature to disable RDP if Windows Firewall is disabled.

Enable Windows Firewall and add exception for Remote Desktop Protocol (TCP-3389) to get it working.

(Also make sure that the Windows Terminal Service is started if problem persist).

FTP : connection failed to LIST, Failed to retrieve directory listing

The following error occured/hang trying to connect to FTP server:

Status:    Connected
Status:    Retrieving directory listing…
Command:    PWD
Response:    257 “/”
Command:    TYPE I
Response:    200 Switching to Binary mode.
Command:    PASV
Response:    227 Entering Passive Mode (xxx,xxx,xxx,xxx,xxx,xx)
Command:    LIST
Error:    Connection timed out
Error:    Failed to retrieve directory listing

This is probably because you are trying to connect to a “active” FTP server using “passive” mode.  Set your FTP client to active mode.