What are the values of the username and password parameters when you run this? It would be helpful if your sample didn't include any code that isn't relevant like commented code and such. It makes it very hard to read. Posting a sample that clearly demonstrates the problem makes it easiest to help you.
Additionally, did you consider setting the AuthenticationType parameter as well? What value do you want it to have?
Also, what version of AD are you connecting to?