This function takes the following parameters:
DN to compare with the value in sdn2.
DN to compare with the value in sdn1.