Bug #198168 --> When a user configures seamonkey to fall back to ldap v2, we were not setting

the ldap version correctly on the LDAP session for auto complete.

r=dmose
sr=bienvenu
This commit is contained in:
scott%scott-macgregor.org 2004-04-27 06:11:58 +00:00
parent 4fe8601753
commit 37eb8901c9
2 changed files with 14 additions and 1 deletions

View File

@ -808,7 +808,7 @@ function setupLdapAutocompleteSession()
// if we don't have this pref, no big deal
}
if (protocolVersion == "2") {
LDAPSession.login =
LDAPSession.version =
Components.interfaces.nsILDAPConnection.VERSION2;
}

View File

@ -804,6 +804,19 @@ function setupLdapAutocompleteSession()
// if we don't have this pref, no big deal
}
// set the LDAP protocol version correctly
var protocolVersion;
try {
`protocolVersion = sPrefs.getCharPref(autocompleteDirectory +
".protocolVersion");
} catch (ex) {
// if we don't have this pref, no big deal
}
if (protocolVersion == "2") {
LDAPSession.version =
Components.interfaces.nsILDAPConnection.VERSION2;
}
// find out if we need to authenticate, and if so, tell the LDAP
// autocomplete session how to prompt for a password. This window
// (the compose window) is being used to parent the authprompter.