(afslog_uid_int): just belive that realm hint the user passed us
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12917 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -209,15 +209,9 @@ afslog_uid_int(kafs_data *data, const char *cell, const char *rh, uid_t uid,
|
|||||||
|
|
||||||
trealm = krb5_princ_realm (d->context, princ);
|
trealm = krb5_princ_realm (d->context, princ);
|
||||||
|
|
||||||
if (d->realm != NULL && strcmp (d->realm, *trealm) == 0) {
|
|
||||||
trealm = NULL;
|
|
||||||
krb5_free_principal (d->context, princ);
|
|
||||||
}
|
|
||||||
|
|
||||||
kt.ticket = NULL;
|
kt.ticket = NULL;
|
||||||
ret = _kafs_get_cred(data, cell, d->realm, *trealm, uid, &kt);
|
ret = _kafs_get_cred(data, cell, d->realm, *trealm, uid, &kt);
|
||||||
if(trealm)
|
krb5_free_principal (d->context, princ);
|
||||||
krb5_free_principal (d->context, princ);
|
|
||||||
|
|
||||||
if(ret == 0) {
|
if(ret == 0) {
|
||||||
ret = kafs_settoken_rxkad(cell, &kt.ct, kt.ticket, kt.ticket_len);
|
ret = kafs_settoken_rxkad(cell, &kt.ct, kt.ticket, kt.ticket_len);
|
||||||
|
Reference in New Issue
Block a user