|
|
@ -2695,9 +2695,16 @@ int LDAPManager::getTDECertificate(TQString certificateName, TQString fileName,
|
|
|
|
TQByteArray ba;
|
|
|
|
TQByteArray ba;
|
|
|
|
ba.duplicate(vals[i]->bv_val, vals[i]->bv_len);
|
|
|
|
ba.duplicate(vals[i]->bv_val, vals[i]->bv_len);
|
|
|
|
file.writeBlock(ba);
|
|
|
|
file.writeBlock(ba);
|
|
|
|
|
|
|
|
file.close();
|
|
|
|
|
|
|
|
if (chmod(fileName.ascii(), S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH) < 0) {
|
|
|
|
|
|
|
|
if (errstr) *errstr = i18n("Unable to change permissions of \"%1\"").arg(fileName.ascii());
|
|
|
|
|
|
|
|
returncode = -1;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
returncode = 0;
|
|
|
|
returncode = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
ldap_value_free_len(vals);
|
|
|
|
ldap_value_free_len(vals);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ldap_memfree(attr);
|
|
|
|
ldap_memfree(attr);
|
|
|
|