This function takes the following parameters:
DN of the entry whose parent is searched.
Parent DN of sdn.
Backend of which the parent of sdn is to be searched.