krb5_kuserok man page on FreeBSD

Man page or keyword search:  
man Server   9747 pages
apropos Keyword Search (all sections)
Output format
FreeBSD logo
[printable version]

KRB5_KUSEROK(3)		 BSD Library Functions Manual	       KRB5_KUSEROK(3)

     krb5_kuserok — checks if a principal is permitted to login as a user

     Kerberos 5 Library (libkrb5, -lkrb5)

     #include <krb5.h>

     krb5_kuserok(krb5_context context, krb5_principal principal,
	 const char *user);

     This function takes the name of a local user and checks if principal is
     allowed to log in as that user.

     The user may have a ~/.k5login file listing principals that are allowed
     to login as that user. If that file does not exist, all principals with a
     first component identical to the username, and a realm considered local,
     are allowed access.

     The .k5login file must contain one principal per line, be owned by user,
     and not be writable by group or other (but must be readable by anyone).

     Note that if the file exists, no implicit access rights are given to

     Optionally, a set of files may be put in ~/.k5login.d (a directory), in
     which case they will all be checked in the same manner as .k5login.  The
     files may be called anything, but files starting with a hash (“#”), or
     ending with a tilde (“~”) are ignored. Subdirectories are not traversed.
     Note that this directory may not be checked by other implementations.

     krb5_kuserok returns TRUE if access should be granted, FALSE otherwise.

     The ~/.k5login.d feature appeared in Heimdal 0.7.

     krb5_get_default_realms(3), krb5_verify_user(3),
     krb5_verify_user_lrealm(3), krb5_verify_user_opt(3), krb5.conf(5)

HEIMDAL				  May 4, 2005			       HEIMDAL

List of man pages available for FreeBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net