Commit 28f84edd authored by jan.koester's avatar jan.koester
Browse files

test

parent 2a2d7f57
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -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;