BindAdminIdentity Function

Binds an admin to an identity for fast lookup later on. The bind must be unique.

bool BindAdminIdentity(AdminId id, const char[] auth, const char[] ident)

Parameters

AdminId id

AdminId of the admin.

const char[] auth

Auth method to use, predefined or from RegisterAuthIdentType().

const char[] ident

String containing the arbitrary, unique identity.

Return Value

True on success, false if the auth method was not found, ident was already taken, or ident invalid for auth method.