MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ACLGetUserByName

Function ACLGetUserByName

app/redis-6.2.6/src/acl.c:1164–1168  ·  view source on GitHub ↗

Return an username by its name, or NULL if the user does not exist. */

Source from the content-addressed store, hash-verified

1162
1163/* Return an username by its name, or NULL if the user does not exist. */
1164user *ACLGetUserByName(const char *name, size_t namelen) {
1165 void *myuser = raxFind(Users,(unsigned char*)name,namelen);
1166 if (myuser == raxNotFound) return NULL;
1167 return myuser;
1168}
1169
1170/* Check if the command is ready to be executed in the client 'c', already
1171 * referenced by c->cmd, and can be executed by this client according to the

Callers 7

clientCommandFunction · 0.85
ACLCheckUserCredentialsFunction · 0.85
ACLAuthenticateUserFunction · 0.85
ACLLoadConfiguredUsersFunction · 0.85
ACLLoadFromFileFunction · 0.85
aclCommandFunction · 0.85

Calls 1

raxFindFunction · 0.85

Tested by

no test coverage detected