mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
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:
parent
4fe8601753
commit
37eb8901c9
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user