Added an interface to return the KRB5_KDB_PWCHANGE_SERVICE constant
value. This was already listed in the exportable functions, but wasn't
defined. Also improved the dump printing of all attributes to give an
output more similar to the kadmin get command by converting the constant
name to the text descriptio as seen in get.
'KRB5_KDB_SUPPORT_DESMD5',
);
- foreach my $test (@possible) {
- push (@attrs, $test) if $bitmask & &{"Heimdal::Kadm5::$test"}();
- }
+ foreach my $test (@possible)
+ {
+ if ($bitmask & &{"Heimdal::Kadm5::$test"}()) {
+ my $cleaned = lc ($test);
+ $cleaned =~ s#^krb5_kdb_##;
+ $cleaned =~ s#_#-#g;
+ push (@attrs, $cleaned);
+ }
+ }
return @attrs;
}
goto not_there;
#endif
+ if (strEQ(name, "KRB5_KDB_PWCHANGE_SERVICE"))
+#ifdef KRB5_KDB_PWCHANGE_SERVICE
+ return KRB5_KDB_PWCHANGE_SERVICE;
+#else
+ goto not_there;
+#endif
if (strEQ(name, "KRB5_KDB_REQUIRES_HW_AUTH"))
#ifdef KRB5_KDB_REQUIRES_HW_AUTH
return KRB5_KDB_REQUIRES_HW_AUTH;