|
NAMEkrb5_acl_match_file ,
krb5_acl_match_string —
ACL matching functions
LIBRARYKerberos 5 Library (libkrb5, -lkrb5)SYNOPSISkrb5_error_codekrb5_acl_match_file (krb5_context
context, const char *file, const
char *format, ...);
krb5_error_code
DESCRIPTIONkrb5_acl_match_file matches ACL format against each line
in a file. Lines starting with # are treated like comments and ignored.
The ACL format has three format specifiers: s, f, and r. Each specifier will retrieve one argument from the variable arguments for either matching or storing data. The input string is split up using " " and "\t" as a delimiter; multiple " " and "\t" in a row are considered to be the same.
All unknown format specifiers cause an error. EXAMPLESchar *s; ret = krb5_acl_match_string(context, "foo", "s", "foo"); if (ret) krb5_errx(context, 1, "acl didn't match"); ret = krb5_acl_match_string(context, "foo foo baz/kaka", "ss", "foo", &s, "foo/*"); if (ret) { /* no need to free(s) on error */ assert(s == NULL); krb5_errx(context, 1, "acl didn't match"); } free(s); SEE ALSOkrb5(3)
Visit the GSP FreeBSD Man Page Interface. |