OpenAFS Master Repository branch, master, updated. BP--openafs-stable-1_6_x-474-g0af17e7

Gerrit Code Review gerrit@openafs.org
Wed, 24 Nov 2010 19:16:58 -0800 (PST)


The following commit has been merged in the master branch:
commit 0af17e7eccb79dd7d618c98dc0b489d55209df50
Author: Simon Wilkinson <sxw@your-file-system.com>
Date:   Wed Sep 15 11:17:14 2010 +0100

    auth: Allow identities in the UserList
    
    Extend the userok interface provided by the auth library to permit the
    addition, deletion and inspection of identities within the UserList.
    
    A number of additional functions are added, as direct replacements for
    their Kerberos v4 only counterparts - these are:
     *) afsconf_DeleteIdentity
     *) afsconf_GetNthIdentity
     *) afsconf_AddIdentity
     *) afsconf_SuperIdentity
    
    In addition, a new function is added to allow the status of any given
    identity to be queried
     *) afsconf_IsSuperIdentity
    
    New form identities are stored within the same UserList file as
    Kerberos v4 identities. We take advantage of the fact that the current
    code skips any entry with a leading whitespace. Identities are stored as
    a single line, with a leading space, followed by the integer
    representation of their type (0 for Kerberos 4, 1 for GSSAPI), followed
    by the base64 encoded representation of their exported name, followed by
    the display name of the identity. Each field is whitespace separated.
    
    For example:
     1 BAEACwYJKoZIhvcSAQICAAAAEHN4d0BJTkYuRUQuQUMuVUs= sxw@INF.ED.AC.UK
    is the representation of the GSSAPI identity "sxw@INF.ED.AC.UK"
    
    An addition to the test suite is also provided which will test all of
    the existing, and new super user manipulation functions.
    
    Change-Id: I50648bb1ecc3037a90d623c87a60193be4f122ff
    Reviewed-on: http://gerrit.openafs.org/3355
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Derrick Brashear <shadow@dementia.org>

 Makefile.in              |    1 +
 configure.ac             |    1 +
 src/auth/cellconfig.p.h  |    8 +
 src/auth/userok.c        |  484 +++++++++++++++++++++++++++++++++++++---------
 tests/Makefile.in        |    4 +
 tests/TESTS              |    1 +
 tests/auth/.gitignore    |    1 +
 tests/auth/Makefile.in   |   22 ++
 tests/auth/superuser-t.c |  197 +++++++++++++++++++
 9 files changed, 623 insertions(+), 96 deletions(-)

-- 
OpenAFS Master Repository