* NEW: ad: ad set subcommand for changing Mac metadata on the server
* UPD: unix charset is UTF8 by default
vol charset is same value as unix charset by default
+* FIX: afpd: Server info packet was malformed resulting in broken
+ server names being displayed on clients
Changes in 3.0 alpha2
=====================
offset = ntohs(offset);
data += offset;
- char *DirectoryNamesCount = data++, *DirectoryNames = data;
- *DirectoryNamesCount = 0;
+ char *DirectoryNamesCount = data++;
+ char *DirectoryNames = data;
size_t size = sizeof(uint8_t);
+ *DirectoryNamesCount = 0;
if (!uam_gss_enabled())
goto offset_calc;
strlen(principal),
principal);
- // XXX: should this be krb5_xfree?
- krb5_free_unparsed_name(context, principal);
+ free(principal);
goto krb5_cleanup;
krb5_error:
if (ret) {
error_msg = krb5_get_error_message(context, ret);
- LOG(log_error, logtype_afpd,
- "status:DirectoryNames: Kerberos error: %s",
- (char *) error_msg);
+ LOG(log_note, logtype_afpd, "Can't get principal from default keytab: %s",
+ (char *)error_msg);
krb5_free_error_message(context, error_msg);
}
offset_calc:
/* Calculate and store offset for UTF8ServerName */
- if (uam_gss_enabled())
- *diroffset += sizeof(uint16_t);
+ *diroffset += sizeof(uint16_t);
offset = htons(data - begin);
memcpy(begin + *diroffset, &offset, sizeof(uint16_t));
options->flags & OPTION_SERVERNOTIF,
(options->fqdn || ipok),
options->passwdbits,
- uam_gss_enabled(),
+ 1,
options->flags);
/* returns offset to signature offset */
c = status_server(status, options->hostname, options);