Could basedn == NULL ?