You definitely don't want to pass a parsed principal name into gss_import_name. It takes strings for the krb5 name types not data structures. --Sam