diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/libsmb/smberr.c | 1 | ||||
-rw-r--r-- | source/passdb/pdb_ldap.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/source/libsmb/smberr.c b/source/libsmb/smberr.c index fbe1d779472..3085211115b 100644 --- a/source/libsmb/smberr.c +++ b/source/libsmb/smberr.c @@ -78,6 +78,7 @@ err_code_struct dos_msgs[] = { {"ERRlogonfailure",ERRlogonfailure,"Logon failure"}, {"ERRdiskfull",ERRdiskfull,"Disk full"}, {"ERRgeneral",ERRgeneral, "General failure"}, + {"ERRunknownlevel",ERRunknownlevel, "Unknown info level"}, {NULL,-1,NULL}}; /* Server Error Messages */ diff --git a/source/passdb/pdb_ldap.c b/source/passdb/pdb_ldap.c index a4258347178..5795aa7b9bd 100644 --- a/source/passdb/pdb_ldap.c +++ b/source/passdb/pdb_ldap.c @@ -155,9 +155,9 @@ static BOOL ldap_open_connection (LDAP ** ldap_struct) /* Connect to older servers using SSL and V2 rather than Start TLS */ if (ldap_get_option(*ldap_struct, LDAP_OPT_PROTOCOL_VERSION, &version) == LDAP_OPT_SUCCESS) { - if (version != LDAP_VERSION2) + if (version != LDAP_VERSION3) { - version = LDAP_VERSION2; + version = LDAP_VERSION3; ldap_set_option (*ldap_struct, LDAP_OPT_PROTOCOL_VERSION, &version); } } |