new support for specifying homedir

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5143 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1998-09-04 16:25:46 +00:00
parent 35d205c57c
commit d5c71ea58e
5 changed files with 88 additions and 24 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1995, 1996, 1997 Kungliga Tekniska H<>gskolan
* Copyright (c) 1995, 1996, 1997, 1998 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
@@ -114,8 +114,12 @@ get_realm(kafs_data *data, const char *host)
}
krb5_error_code
krb5_afslog_uid(krb5_context context, krb5_ccache id,
const char *cell, krb5_const_realm realm, uid_t uid)
krb5_afslog_uid_home(krb5_context context,
krb5_ccache id,
const char *cell,
krb5_const_realm realm,
uid_t uid,
const char *homedir)
{
kafs_data kd;
struct krb5_kafs_data d;
@@ -126,12 +130,34 @@ krb5_afslog_uid(krb5_context context, krb5_ccache id,
d.context = context;
d.id = id;
d.realm = realm;
return afslog_uid_int(&kd, cell, uid);
return afslog_uid_int(&kd, cell, uid, homedir);
}
krb5_error_code
krb5_afslog(krb5_context context, krb5_ccache id,
const char *cell, krb5_const_realm realm)
krb5_afslog_uid(krb5_context context,
krb5_ccache id,
const char *cell,
krb5_const_realm realm,
uid_t uid)
{
return krb5_afslog_uid_home (context, id, cell, realm, uid, NULL);
}
krb5_error_code
krb5_afslog(krb5_context context,
krb5_ccache id,
const char *cell,
krb5_const_realm realm)
{
return krb5_afslog_uid (context, id, cell, realm, getuid());
}
krb5_error_code
krb5_afslog_home(krb5_context context,
krb5_ccache id,
const char *cell,
krb5_const_realm realm,
const char *homedir)
{
return krb5_afslog_uid_home (context, id, cell, realm, getuid(), homedir);
}