Make CredentialsLookupFunc return a pointer