(kauth): complain if protection level isn't `private'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7220 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -176,6 +176,10 @@ kauth(char *principal, char *ticket)
|
||||
char *p;
|
||||
int ret;
|
||||
|
||||
if(get_command_prot() != prot_private) {
|
||||
reply(500, "Request denied (bad protection level)");
|
||||
return;
|
||||
}
|
||||
ret = krb_parse_name(principal, &pr);
|
||||
if(ret){
|
||||
reply(500, "Bad principal: %s.", krb_get_err_text(ret));
|
||||
|
Reference in New Issue
Block a user