J'essaie d'accéder à un serveur Active Directory autre que mon serveur
d'authentification, en spécifiant un login et un mot de passe.
Le programme génère une exception "unknown user name or bad password".
Quelle est la syntaxe exacte du login ?
* "LDAP://serveurad.mondomaine.com/CN=Francis
BOULOGNE,OU=truc,OU=machin,DC=test,DC=com" ?
* "LDAP://CN=Francis BOULOGNE,OU=truc,OU=machin,DC=test,DC=com" ?
* "LDAP://serveurad.mondomaine.com/CN=Francis BOULOGNE" ?
* Autre chose ?
Dois-je préciser le mode d'authentification AuthenticationTypes.ServerBind ?
Path :
LDAP://serveurad.mondomaine.com/OU=monou,DC=test,DC=com
Name :
System.Runtime.InteropServices.COMException (0x8007052E): Logon failure:
unknown user name or bad password
at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_Name()
at c1.Main() Exception caught.
J'essaie d'accéder à un serveur Active Directory autre que mon serveur d'authentification, en spécifiant un login et un mot de passe.
Le programme génère une exception "unknown user name or bad password". Quelle est la syntaxe exacte du login ? * "LDAP://serveurad.mondomaine.com/CN=Francis BOULOGNE,OU=truc,OU=machin,DC=test,DC=com" ? * "LDAP://CN=Francis BOULOGNE,OU=truc,OU=machin,DC=test,DC=com" ? * "LDAP://serveurad.mondomaine.com/CN=Francis BOULOGNE" ? * Autre chose ?
Dois-je préciser le mode d'authentification AuthenticationTypes.ServerBind ?
Path : LDAP://serveurad.mondomaine.com/OU=monou,DC=test,DC=com Name : System.Runtime.InteropServices.COMException (0x8007052E): Logon failure: unknown user name or bad password at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at System.DirectoryServices.DirectoryEntry.get_Name() at c1.Main() Exception caught.
J'essaie d'accéder à un serveur Active Directory autre que mon serveur
d'authentification, en spécifiant un login et un mot de passe.
Le programme génère une exception "unknown user name or bad password".
Quelle est la syntaxe exacte du login ?
* "LDAP://serveurad.mondomaine.com/CN=Francis
BOULOGNE,OU=truc,OU=machin,DC=test,DC=com" ?
* "LDAP://CN=Francis BOULOGNE,OU=truc,OU=machin,DC=test,DC=com" ?
* "LDAP://serveurad.mondomaine.com/CN=Francis BOULOGNE" ?
* Autre chose ?
Dois-je préciser le mode d'authentification AuthenticationTypes.ServerBind ?
Path :
LDAP://serveurad.mondomaine.com/OU=monou,DC=test,DC=com
Name :
System.Runtime.InteropServices.COMException (0x8007052E): Logon failure:
unknown user name or bad password
at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_Name()
at c1.Main() Exception caught.
J'essaie d'accéder à un serveur Active Directory autre que mon serveur d'authentification, en spécifiant un login et un mot de passe.
Le programme génère une exception "unknown user name or bad password". Quelle est la syntaxe exacte du login ? * "LDAP://serveurad.mondomaine.com/CN=Francis BOULOGNE,OU=truc,OU=machin,DC=test,DC=com" ? * "LDAP://CN=Francis BOULOGNE,OU=truc,OU=machin,DC=test,DC=com" ? * "LDAP://serveurad.mondomaine.com/CN=Francis BOULOGNE" ? * Autre chose ?
Dois-je préciser le mode d'authentification AuthenticationTypes.ServerBind ?
Path : LDAP://serveurad.mondomaine.com/OU=monou,DC=test,DC=com Name : System.Runtime.InteropServices.COMException (0x8007052E): Logon failure: unknown user name or bad password at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at System.DirectoryServices.DirectoryEntry.get_Name() at c1.Main() Exception caught.