Hello Guys, After two days trying, I gave up. Is there anyone here that can points me or at least give me a clue on how can I replace dn_expand and res_search/res_query calls? Thanks Eduardo.