bonjour,

j'essaye de faire une connexion au LDAP de mon entreprise pour la connexion a mon application.
j'ai suivi ce tuto : http://morpheus.developpez.com/addotnet/ADCSharp/

voici mon code :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
        private void btn_Connexion_Click(object sender, EventArgs e)
        {
            try
            {
                string identifiant = Connexion_txt_Username.Text;
                string password = Connexion_txt_Password.Text;
                DirectoryEntry LDAP = new DirectoryEntry("LDAP://monserveurldap", "identifiant", "password!");
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
            F_Principal fPrincipal = new F_Principal();
            fPrincipal.Show();
mon probleme est que le bloc try catch ne fait remonter aucune exception, que les identifiant soit bon ou pas...
quand je met un espion sur LDAP, je vois qu'il remonte des exceptions, mais aucune n'est intercepté, et je ne vois pas pourquoi?