Loading src/auth.cpp +7 −7 Original line number Diff line number Diff line Loading @@ -98,13 +98,13 @@ bool blogi::Auth::ldapLogin(const char *username,const char *password,std::strin int ldap_vers = LDAP_VERSION3; ldap_set_option(userldap, LDAP_OPT_PROTOCOL_VERSION, &ldap_vers); ulerr = ldap_start_tls_s(userldap, &userserverctls, &userclientctls); if (ulerr != LDAP_SUCCESS) { excep[libhttppp::HTTPException::Critical] << "User Ldap Tls failed: " << ldap_err2string(ulerr); throw excep; } // ulerr = ldap_start_tls_s(userldap, &userserverctls, &userclientctls); // // if (ulerr != LDAP_SUCCESS) { // excep[libhttppp::HTTPException::Critical] << "User Ldap Tls failed: " // << ldap_err2string(ulerr); // throw excep; // } berval cred, * servercred; cred.bv_val = (char*)password; Loading Loading
src/auth.cpp +7 −7 Original line number Diff line number Diff line Loading @@ -98,13 +98,13 @@ bool blogi::Auth::ldapLogin(const char *username,const char *password,std::strin int ldap_vers = LDAP_VERSION3; ldap_set_option(userldap, LDAP_OPT_PROTOCOL_VERSION, &ldap_vers); ulerr = ldap_start_tls_s(userldap, &userserverctls, &userclientctls); if (ulerr != LDAP_SUCCESS) { excep[libhttppp::HTTPException::Critical] << "User Ldap Tls failed: " << ldap_err2string(ulerr); throw excep; } // ulerr = ldap_start_tls_s(userldap, &userserverctls, &userclientctls); // // if (ulerr != LDAP_SUCCESS) { // excep[libhttppp::HTTPException::Critical] << "User Ldap Tls failed: " // << ldap_err2string(ulerr); // throw excep; // } berval cred, * servercred; cred.bv_val = (char*)password; Loading